[논문 리뷰] Large Language Models Play StarCraft II: Benchmarks and A Chain of Summarization Approach
tldr: 본 논문은 텍스트 기반의 스타크래프트 II 환경 TextStarCraft II와 LLM이 스타크래프트 II를 플레이할 수 있게 하는 Chain of Summarization(CoS) 방법을 제시하며, GPT3.5-Turbo-16k와 GPT-4가 프로토스로서 Harder (Lv5) 저그 AI를 이길 수 있음을 보이고, 오픈 소스 코드와 데모를 제공한다.
StarCraft II is a challenging benchmark for AI agents due to the necessity of both precise micro level operations and strategic macro awareness. Previous works, such as Alphastar and SCC, achieve impressive performance on tackling StarCraft II , however, still exhibit deficiencies in long term strategic planning and strategy interpretability. Emerging large language model (LLM) agents, such as Voyage and MetaGPT, presents the immense potential in solving intricate tasks. Motivated by this, we aim to validate the capabilities of LLMs on StarCraft II, a highly complex RTS game.To conveniently take full advantage of LLMs` reasoning abilities, we first develop textual StratCraft II environment, called TextStarCraft II, which LLM agent can interact. Secondly, we propose a Chain of Summarization method, including single frame summarization for processing raw observations and multi frame summarization for analyzing game information, providing command recommendations, and generating strategic decisions. Our experiment consists of two parts: first, an evaluation by human experts, which includes assessing the LLMs`s mastery of StarCraft II knowledge and the performance of LLM agents in the game; second, the in game performance of LLM agents, encompassing aspects like win rate and the impact of Chain of Summarization.Experiment results demonstrate that: 1. LLMs possess the relevant knowledge and complex planning abilities needed to address StarCraft II scenarios; 2. Human experts consider the performance of LLM agents to be close to that of an average player who has played StarCraft II for eight years; 3. LLM agents are capable of defeating the built in AI at the Harder(Lv5) difficulty level. We have open sourced the code and released demo videos of LLM agent playing StarCraft II.
연구 동기 및 목표
- LLM 상호작용을 위한 텍스트 기반 스타크래프트 II 환경(TextStarCraft II)을 개발한다.
- 다중 프레임 추론과 빠른 의사결정을 가능하게 하는 Chain of Summarization 제안.
- 전문가 평가와 게임 내 평가를 통해 LLM의 지식과 전략적 능력을 평가한다.
- 여러 LLM과 프롬프트를 비교하고 프롬프트의 영향 및 제거 분석을 분석한다.
- 재현성을 위한 오픈 소스 코드와 데모 비디오를 제공한다.
제안 방법
- 관찰-텍스트 및 텍스트-동작 어댑터를 갖춘 python-sc2 기반의 텍스트 기반 스타크래프트 II 인터페이스(TextStarCraft II)를 만든다.
- 텍스트 관찰과 매크로 행동을 갖는 다중 에이전트 POMDP로 TextStarCraft II를 공식화한다.
- 단일 프레임 요약, 다중 프레임 요약, 액션 큐를 위한 액션 추출로 구성된 Chain of Summarization(CoS)을 제안한다.
- LLM 추론 비용과 게임 속도를 균형 잡기 위해 두 단계 상호작용 주기(K-프레임 사이클)를 사용한다.
- CoS하에서 인간 평가와 게임 내 평가를 통해 다양한 LLM(GPT3.5-Turbo, GPT3.5-Turbo-16k, GPT-4, Finetune-ChatGlm2 6b, Finetune-Llama2 7b)을 평가한다.
- CoS와 프롬프트 효과를 평가하기 위한 제거 연구를 수행한다.
실험 결과
연구 질문
- RQ1CoS를 갖춘 LLM이 스타크래프트 II 시나리오에 필요한 도메인 지식과 계획 능력을 보유하고 있는가?
- RQ2Chain of Summarization이 효과적인 장기 전략적 의사결정과 더 빠른 상호작용을 가능하게 하는가?
- RQ3TextStarCraft II에서 서로 다른 LLM(및 프롬프트)의 비교 가능한 게임 내 성능은 무엇인가?
- RQ4프롬프트가 내장 AI에 대한 전략 수립과 승률에 어떤 영향을 미치는가?
- RQ5인간 전문가 평가가 LLM이 주도하는 게임 내 성능과 일치하는가?
주요 결과
- LLMs는 TextStarCraft II 설정에서 스타크래프트 II에 관한 관련 지식과 복잡한 계획 능력을 보유하고 있다.
- 인간 전문가들은 LLM 에이전트의 성능을 스타크래프트 II 경험이 8년인 평균 선수에 거의 근접하다고 평가한다.
- 프로토스로 플레이할 때 LLM 에이전트가 Harder(Lv5) 난이도의 내장 AI를 이길 수 있다.
- CoS는 의사결정을 가속하고 비-CoS 설정에 비해 API 호출 수를 줄인다.
- GPT3.5-Turbo-16k와 GPT-4는 CoS 하에서 고급 추론을 보이고 Harder AI를 이길 수 있지만; GPT-4는 Very Hard를 넘지 못한다; 미세조정 모델(ChatGLM2 6b, Llama2 7b)은 효과적으로 플레이하기에 어려움을 겪는다.
- 프롬프트 설계는 전략 수립과 승률에 상당한 영향을 미치며, Prompt2가 Prompt1보다 더 뛰어나다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.