Enhancing Language Agent Strategic Reasoning through Self-Play in Adversarial Games

Yikai Zhang, Ye Rong, Siyu Yuan, Jiangjie Chen, Jian Xie, Yanghua XiaoarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) demonstrate proficiency in instruction following but often falter in multi-step strategic reasoning within competitive, adversarial environments. This paper introduces SCO-PAL (Step-level poliCy Optimization method through Play-And-Learn), a framework designed to enhance strategic gameplay through self-play and step-level preference optimization. By leveraging balanced interaction data from its own successes and failures, a 7B parameter model achieved a ~30% win rate improvement over baselines and outperformed GPT-4 in complex adversarial games.

Introduction

While LLM-based agents excel in static tasks, dynamic adversarial games—such as board games or poker—present unique challenges. These environments feature rich textual histories, adapting opponents, and sparse, delayed rewards. Traditional reinforcement learning often struggles here because the quality of learning is heavily dependent on the opponent. Playing against weak opponents leads to local optima, while overly strong opponents provide insufficient positive reinforcement. SCO-PAL addresses this "opponent selection" problem by extracting meaningful learning signals from delayed outcomes through self-play.

The SCO-PAL Framework

The SCO-PAL method consists of a three-stage pipeline designed to transform raw game interactions into refined strategic policies.

The SCO-PAL framework overview, illustrating the three stages: Game Interaction, Step-Wise Reward Estimation, and Strategy Refinement.
  1. Game Interaction: The agent engages in thousands of matches against various opponents, including itself, random actors, or search-based algorithms like Monte Carlo Tree Search (MCTS), to gather a diverse set of trajectories.
  2. Step-Wise Reward Estimation: To overcome the sparse reward problem (where feedback only occurs at the game's end), the framework employs Monte Carlo Estimation. This calculates the empirical win rate for intermediate state-action pairs, labeling moves as either "advantageous" or "disadvantageous."
  3. Strategy Refinement: The model is updated in two phases. First, Behavioral Cloning (BC) is applied to advantageous actions to ground the model in the game environment. Second, Kahneman-Tversky Optimization (KTO) is used for preference refinement. KTO is particularly suited for asymmetric game trajectories as it requires only binary labels rather than the strict pairwise comparisons necessitated by methods like DPO.

Experimental Setup

The framework was evaluated using GTBench, a language-driven environment for game-theoretic reasoning.

  • Core Games: Breakthrough, Connect Four, Tic-Tac-Toe, Kuhn Poker, Liar's Dice, and Nim.
  • Generalization Tests: Three unseen games (Blind Auction, Pig, and Prisoner's Dilemma) were used to assess the transferability of strategic reasoning.

Key Insights and Results

The "Goldilocks" Opponent: Self-Play

A critical finding of this research is that self-play provides the most effective training signal. While strong opponents like MCTS win predictably, they result in highly skewed data distributions where the learning agent produces very few "advantageous" actions. Self-play naturally maintains a balanced ratio of successes and failures, offering a richer and more diverse learning signal.

Comparison of win rates and action distributions across different training opponents. Self-play provides the most balanced ratio of advantageous to disadvantageous actions.

Performance and Generalization

  • Superiority over Baselines: A Qwen2-7B-Instruct model trained with SCO-PAL achieved an average win rate of 50.08% against a pool of diverse opponents (GPT-4, GPT-3.5, Random, and MCTS), significantly outperforming the base model (32.17%) and the SPAG baseline (41.70%).
  • Outperforming GPT-4: Remarkably, the SCO-PAL-trained 7B model secured a 54.76% win rate specifically against GPT-4 across the six core games.
  • Zero-Shot Transfer: The model demonstrated an 8% win-rate improvement over the base model on unseen games, suggesting that SCO-PAL fosters general strategic reasoning rather than simple rule memorization.

Conclusion

SCO-PAL demonstrates that self-play, combined with step-level preference optimization, is a powerful paradigm for teaching LLMs complex strategic reasoning. By focusing on data quality and balanced interaction, even relatively small models can achieve performance levels that rival or exceed much larger proprietary models in adversarial settings. Future work will explore applying these techniques to open-ended environments and partially observable tasks.

Summary updated

BibTeX
@misc{zhang2025enhancing,
  author = {Yikai Zhang and Ye Rong and Siyu Yuan and Jiangjie Chen and Jian Xie and Yanghua Xiao},
  title = {{Enhancing Language Agent Strategic Reasoning through Self-Play in Adversarial Games}},
  year = {2025},
  eprint = {2510.16761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.16761},
}
Figure