Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models Play StarCraft II: Benchmarks and A Chain of Summarization Approach

Weiyu Ma, Qirui Mi|arXiv (Cornell University)|Dec 19, 2023
Topic ModelingComputer Science10 citations
TL;DR

The paper introduces TextStarCraft II, a text-based StarCraft II environment, and a Chain of Summarization (CoS) method enabling LLMs to play StarCraft II, showing GPT3.5-Turbo-16k and GPT-4 can beat Harder (Lv5) Zerg AI as Protoss, with open-sourced code and demos.

ABSTRACT

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.

Motivation & Objective

  • Develop a text-based StarCraft II environment (TextStarCraft II) for LLM interaction.
  • Propose Chain of Summarization to enable multi-frame reasoning and fast decision-making.
  • Evaluate LLMs’ knowledge and strategic ability via expert and in-game assessments.
  • Compare multiple LLMs and prompts, and analyze prompt impact and ablations.
  • Provide open-source code and demo videos for reproducibility.

Proposed method

  • Create a text-based StarCraft II interface (TextStarCraft II) built on python-sc2 with observation-to-text and text-to-action adapters.
  • Formulate TextStarCraft II as a multi-agent POMDP with text observations and macro actions.
  • Propose Chain of Summarization (CoS) consisting of single-frame summarization, multi-frame summarization, and action extraction for an action queue.
  • Use a two-stage interaction frequency (K-frame cycles) to balance LLM inference cost and game speed.
  • Evaluate different LLMs (GPT3.5-Turbo, GPT3.5-Turbo-16k, GPT-4, Finetune-ChatGlm2 6b, Finetune-Llama2 7b) under CoS with human and in-game assessments.
  • Perform ablation studies to assess CoS and prompt effects.

Experimental results

Research questions

  • RQ1Can LLMs with CoS possess the domain knowledge and planning needed for StarCraft II scenarios?
  • RQ2Does the Chain of Summarization enable effective long-term strategic decision-making and faster interaction?
  • RQ3What is the comparative in-game performance of different LLMs (and prompts) in TextStarCraft II?
  • RQ4How do prompts influence strategy formulation and win rates against built-in AI?
  • RQ5Do human expert evaluations align with LLM-driven in-game performance?

Key findings

  • LLMs have relevant StarCraft II knowledge and complex planning capabilities in the TextStarCraft II setting.
  • Human experts rate LLM agents’ performance as close to an average player with eight years of StarCraft II experience.
  • LLM agents can defeat the built-in AI at Harder (Lv5) difficulty when playing as Protoss.
  • Chain of Summarization accelerates decision-making and reduces API calls compared with a non-CoS setup.
  • GPT3.5-Turbo-16k and GPT-4 show advanced reasoning under CoS and can beat the Harder AI; GPT-4 does not surpass Very Hard; Finetuned models (ChatGLM2 6b, Llama2 7b) struggle to play effectively.
  • Prompt design significantly impacts strategy formulation and win rates, with Prompt2 outperforming Prompt1.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.