TLDR: Researchers developed Xiangqi-R1, a 7-billion-parameter language model specifically trained for Chinese Chess (Xiangqi). Unlike general LLMs that struggle with spatial strategic reasoning in complex board games, Xiangqi-R1 uses a multi-stage training framework involving large datasets, expert annotations, and reinforcement learning. This specialized approach significantly improves its ability to generate legal moves and analyze game situations, outperforming much larger general-purpose LLMs and demonstrating a promising path for AI in spatially complex strategic domains.
Game playing has long been a crucial benchmark for evaluating Artificial General Intelligence (AGI). While Large Language Models (LLMs) have shown impressive general reasoning abilities, their performance in spatial strategic reasoning, which is vital for complex board games, has not been fully explored. This research addresses that gap by focusing on Chinese Chess, also known as Xiangqi, a challenging game due to its intricate rules and spatial complexity.
The paper introduces Xiangqi-R1, a 7-billion-parameter model designed to enhance LLMs’ strategic competence in such environments. The development of Xiangqi-R1 involved a unique multi-stage training framework. This framework began with fine-tuning the model on a massive dataset of five million board-move pairs to help it understand basic spatial rules and predict legal moves. Following this, strategic annotations from experts and evaluations from a powerful engine called Pikafish were incorporated to improve the model’s decision-making capabilities.
The final stage of training involved applying reinforcement learning through Group Relative Policy Optimization (GRPO). This stage used multi-dimensional reward signals to enhance the model’s reasoning stability. These rewards included a ‘Move Reward’ for generating accurate moves, an ‘Analysis Reward’ for correct positional analysis, and a ‘Format Reward’ to ensure the model’s output adhered to the expected structure.
Experimental results highlight a significant limitation of general-purpose LLMs in these tasks. Despite their size and power, these models struggle to achieve satisfactory performance in Chinese Chess. In contrast, Xiangqi-R1 demonstrates substantial improvements. For instance, it achieved an 18% rise in move legality and a 22% boost in analysis accuracy compared to general-purpose LLMs like Doubao-Pro-1.5-Think. This indicates that specialized training is crucial for LLMs to excel in complex, rule-heavy spatial reasoning environments.
The research makes several key contributions. It introduces the first Xiangqi-specific evaluation framework, allowing for a detailed analysis of LLMs’ spatial strategic reasoning across different game stages and piece types. It also proposes a novel three-stage training strategy that effectively combines expert knowledge, engine annotations, and a multi-dimensional reinforcement learning reward mechanism. The findings suggest a promising direction for creating general strategic intelligence in spatially complex areas, demonstrating that even a relatively small 7B model can outperform much larger general LLMs with domain-specific training.
Further analysis revealed that Xiangqi-R1’s performance varies with the number of pieces on the board, which roughly corresponds to different game stages (opening, middlegame, endgame). While move legality remained consistently high, the ability to generate the ‘best’ moves decreased in the middlegame due to increased complexity. Situation analysis also became more challenging in later stages. However, reinforcement learning significantly improved performance across all stages, especially in situation analysis, with gains of 15% to 30%.
The model also showed better performance with offensive pieces that have simpler movement rules, like Pawns and Rooks, compared to defensive pieces with more complex, rule-constrained movements, such as the King and Elephant. Despite these challenges, Xiangqi-R1 achieved an overall success rate of over 95% across all piece types, showcasing the effectiveness of the training approach.
Also Read:
- Guiding AI Teams: A New Approach to Collaborative Language Models
- Intelligent Commanders: Vision-Language Models Guide Multi-UGV Tactical Decisions
This work, detailed in the paper Xiangqi-R1: Enhancing Spatial Strategic Reasoning in LLMs for Chinese Chess via Reinforcement Learning, provides a strong foundation for advancing general strategic intelligence in complex spatial domains.


