Adaptive Command : Real-Time Policy Adjustment via Language Models in StarCraft II

Weiyu Ma, Dongyu Xu, Lin Shu, Haifeng Zhang, Jun Wang2024

Abstract

Adaptive Command is a novel framework that leverages Large Language Models (LLMs) as real-time strategic advisors in StarCraft II. By bridging high-level natural language processing with low-level behavior tree execution, the system enables players to adjust complex strategies via voice commands. This approach significantly reduces the cognitive load of macro-management, particularly for novice and intermediate players, leading to substantial performance gains and improved human-AI collaboration in dynamic environments.

Introduction

Real-time strategy (RTS) games like StarCraft II (SC2) demand simultaneous mastery of long-term strategic planning (macro-management) and precise unit control (micro-management). While autonomous AI systems like AlphaStar have achieved superhuman performance, they operate as "black boxes" with limited capacity for human-AI collaboration. Most players struggle with the high "Actions Per Minute" (APM) and cognitive overhead required to manage both domains effectively. Adaptive Command addresses this by creating an AI assistant that interprets player intent through natural language and translates it into executable game actions.

Methodology

The Adaptive Command framework integrates five core modules to facilitate real-time strategy adjustment:

  1. Game State Processor: Utilizes a "Chain of Summarization" (CoS) to condense complex game data into concise text descriptions suitable for an LLM's context window.
  2. LLM-based Strategic Advisor: Employs commercial models (e.g., GPT-4o) to analyze the game state and player input, suggesting tactical shifts.
  3. Behavior Tree (BT) Framework: Acts as the execution engine. The LLM modifies high-level parameters called Behavior Modulators (BMs) within the BT, which then handles the low-level execution (e.g., unit production, building placement).
  4. Natural Language Interface: Integrates Speech-to-Text (Whisper) and Text-to-Speech (edge-tts) for hands-free interaction.
  5. Real-time Policy Adjustment: A two-stage process involving an initial strategy setup followed by dynamic updates during gameplay.
The Strategy Initialization Phase allows players to define and refine their opening tactics through a dialogue with the AI assistant.

The core of the system's adaptability lies in the interaction between the human user and the AI assistant during the execution phase, where verbal commands are translated into behavioral adjustments.

The Adaptive Execution Phase: The AI assistant analyzes the game state and player adjustments to modify Behavior Modulators (BMs) within a Behavior Tree.

Key Results

The framework was evaluated against the "Very Hard" built-in SC2 AI with 12 participants of varying skill levels:

  • Novice Players: Experienced the most dramatic improvement, with win rates rising from 0% to 42%. They reported high satisfaction (4.7/5) with the system's helpfulness.
  • Intermediate Players: Win rates increased from 58% to 75%.
  • Expert Players: While maintaining a 100% win rate, experts found the AI's suggestions too simplistic, rating instruction following lower (2.8/5) than other groups.
  • Instruction Following: The system demonstrated robust accuracy, with scores between 4.1 and 4.4 out of 5 for non-expert players, proving that LLMs can accurately translate verbal intent into game-winning actions in real-time.

Discussion and Limitations

Adaptive Command successfully offloads the cognitive burden of macro-management, allowing players to focus on tactical micro-management. The use of Behavior Modulators effectively bridges the "semantic gap" between high-level strategy and low-level execution.

However, several limitations remain. The small sample size (n=12) suggests a need for broader validation. Furthermore, the reliance on static Behavior Trees can be less flexible than Reinforcement Learning (RL) models. The "meta-drift" of game balance patches also poses a challenge for LLMs trained on historical data. Future work will explore integrating RL for more fluid execution and enhancing NLP capabilities to support the jargon-heavy communication of expert players.

Summary updated

BibTeX
@misc{ma2024adaptive,
  author = {Weiyu Ma and Dongyu Xu and Lin Shu and Haifeng Zhang and Jun Wang},
  title = {{Adaptive Command : Real-Time Policy Adjustment via Language Models in StarCraft II}},
  year = {2024},
  eprint = {2508.16580},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.16580},
}
Figure