Self Generated Wargame AI: Double Layer Agent Task Planning Based on Large Language Model

Yuxiang Sun, Checheng Yu, Junjie Zhao, Wei Wang, Xianzhong ZhouarXiv 2023 · DOI

Researchers at Nanjing University have introduced a significant shift in the development of autonomous agents for complex, adversarial wargame environments. By moving away from traditional "black-box" Reinforcement Learning (RL) and toward a dual-layer architecture powered by Large Language Models (LLMs), they have demonstrated an AI that is both more effective and significantly more interpretable.

The Problem with Traditional Wargame AI

Traditional wargame AI typically falls into two categories: rule-based systems and Reinforcement Learning. Rule-based AI is predictable and limited by its programmed logic, while RL-based AI (like AlphaStar) can be powerful but suffers from being a "black box"—it is difficult to understand why it makes specific moves. Furthermore, RL models often generalize poorly, requiring complete retraining if map or unit parameters change slightly.

Methods: The Double Layer Agent Architecture

The proposed framework utilizes a hierarchical "Double Layer Agent" task planning system to manage decision-making:

The dual-layer architecture showing the flow from situational awareness to tactical and strategic decision-making.
  1. Strategic Agent (The "General"): Powered by GPT-4, this agent observes the entire battlefield, converts situational data into natural language summaries, and issues macro-level "Task Plans."
  2. Tactical Agent (The "Soldier"): Powered by GPT-3.5, these agents manage individual units. They are not merely executors; they can provide feedback to the Strategic Agent if a command seems unreasonable based on local observations.

This architecture is supported by three key streams: a Memory Stream (storing past observations based on recency and importance), a Reflection Stream (generating abstract insights from high-scoring memories), and a Task Planning Stream (translating intent into specific action sequences).

Experimental Evaluation

The study utilized a custom wargame simulation featuring a confrontation between a Red side (6 units) and a Blue side (5 units). The LLM-based agents—GWA (Generative Wargame AI) and GWAE (Enhanced with military domain knowledge)—were compared against several state-of-the-art RL algorithms, including PPO (Proximal Policy Optimization) and DQN (Deep Q-Network).

Key Results

The researchers measured performance across three mission types: Kill, Goal, and Survive. The LLM-driven approach showed immediate advantages over traditional methods.

Cumulative win rates of the GWA/GWAE models compared to traditional reinforcement learning baselines over 200 episodes.
  • Superior Win Rates: GWA and GWAE maintained higher and more stable cumulative win rates over 200 episodes compared to all RL benchmarks. Unlike RL agents that require thousands of episodes to converge, the LLM-based agents showed high intelligence from episode one ("zero-shot intelligence").
  • Goal Achievement: GWAE achieved a "Goal" score of 10,504, nearly 50% higher than the standard DQN score of 6,948.
  • Interpretability: Unlike RL models, the GWA system produced logs explaining its moves (e.g., "Tank 1 is moved... while avoiding the direct attack of blue tank 2"), allowing human commanders to follow the AI's logic.

Insights and Limitations

A core finding was the value of "human-like" friction; the Tactical Agent's ability to "talk back" to the Strategic Agent led to more robust and adaptive plans. However, the authors noted that latency and API costs remain hurdles for real-time, large-scale simulations. Future work will focus on scaling the architecture to manage hundreds of units and improving the "adversarial blue" AI to further challenge the LLM-driven red team.

Summary updated

BibTeX
@misc{sun2023self,
  author = {Yuxiang Sun and Checheng Yu and Junjie Zhao and Wei Wang and Xianzhong Zhou},
  title = {{Self Generated Wargame AI: Double Layer Agent Task Planning Based on Large Language Model}},
  year = {2023},
  eprint = {2312.01090},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.01090},
}
Figure