TL;DR
TacticCraft introduces a parameter-efficient adapter framework to steer pre-trained StarCraft II AI agents using natural language tactical directives. By freezing the base policy network and training lightweight adapters with KL-divergence constraints, the agent successfully executes diverse gameplay styles (like aggressive rushes or heavy economic expansion) without sacrificing its core gameplay competencies.
What Problem Does This Paper Address?
State-of-the-art StarCraft II agents, such as AlphaStar and DI-Star, are incredibly powerful but suffer from a major limitation: they are black boxes optimized solely to maximize win rates. This focus leads to rigid, predictable, and often non-human-like behaviors.
Furthermore, these agents lack an intuitive interface for human players or game developers to specify strategic preferences (e.g., "play defensively" or "focus on fast technology transitions"). TacticCraft bridges this gap by enabling natural language control over complex real-time strategy (RTS) agents, allowing users to customize an agent's tactical style on the fly.
Methods
Instead of fine-tuning an entire massive policy network—which is computationally expensive and risks destroying the agent's baseline capabilities—TacticCraft freezes the pre-trained base network (DI-Star).
Inspired by ControlNet in computer vision, the authors insert lightweight, zero-initialized adapter modules (two-layer MLPs) into each of the policy's multi-head outputs (such as Action Type, Delay, and Target Unit).
The core input to these adapters is a 9-dimensional tactic tensor, which represents a probability distribution over predefined strategic archetypes derived from natural language. During training, a knowledge distillation objective with KL-divergence constraints ensures that the adapted policy stays close to the base agent's core mechanics while allowing the adapter to modulate specific action distributions based on the tactical prompt.
Datasets
- StarCraft II Language Corpus: Aggregated from community strategy platforms like Spawningtool and Liquipedia, containing thousands of game guides, match analyses, and strategic discussions.
- Replay Dataset: Approximately 50,000 high-level Zerg vs. Zerg (ZvZ) match replays (MMR > 4800) provided by the DI-Star team. The authors extracted sequential "build orders" from these replays and used Large Language Models (GPT-4 and DeepSeek-v3) to classify them into 9 distinct tactical categories, generating the tactic tensors used for training.
Key Insights and Ideas
- The Specialization Trade-off: As the adapters train longer, the agent's win rate against a generic built-in AI decreases. This is a feature, not a bug: it demonstrates that the agent is successfully shifting away from pure win-rate maximization to specialize in the requested tactical style.
- Emergent Hybrid Strategies: By blending different tactical archetypes in the input tensor, the agent can discover highly effective, novel strategies that are rarely seen in standard play. For example, it successfully combined early Zergling aggression with a mid-game transition into Lurkers—two strategies normally considered economically contradictory.
- Fine-Grained Innovation Control: By varying the KL-divergence constraint weights across different action heads, researchers can control exactly where the AI is allowed to innovate (e.g., spatial positioning) versus where it must strictly adhere to the base policy (e.g., fundamental action selection).
Key Results
- In early training epochs (1K), TacticCraft configurations maintained high win rates (80.65% to 89.00%) against the built-in Level 10 StarCraft II AI, proving that the adapters do not immediately degrade the base agent's competence.
- When prompted with a hybrid strategy (+1 Zergling Strategy + Lurker Transition), the adapted agent achieved a 73% win rate in dedicated test matches using a unique, emergent timing attack.
- Under economic/defensive prompts, the agent learned an unusual but highly effective defensive posture, building an unusually high number of Spine Crawlers to perfectly counter early rush tactics while minimizing economic damage.
Limitations and Future Work
- Matchup Restriction: The current implementation is strictly limited to the Zerg vs. Zerg (ZvZ) matchup. Expanding the taxonomy and framework to Terran and Protoss matchups remains future work.
- Generalist Performance Drop: Highly specialized tactical adaptations come at the cost of decreased general performance against fixed, unprompted opponents.
- Static vs. Dynamic Control: The current system sets the tactical style at the beginning of the match. A promising future direction is enabling real-time, dynamic language adjustments mid-game, allowing players to "coach" or steer the AI interactively as the match unfolds.
Summary updated