Xiangqi-R1: Enhancing Spatial Strategic Reasoning in LLMs for Chinese Chess via Reinforcement Learning
Yuhao Chen, Shuochen Liu, Yuanjie Lyu, Chao Zhang, Jiayao Shi, Tong Xu
TL;DR
Xiangqi-R1 addresses the challenge of spatial strategic reasoning in fully observable board games by training a 7B LLM through a three-stage pipeline on a large Xiangqi dataset augmented with expert annotations and engine evaluations. The approach combines staged supervised fine-tuning (SFT) on board-move and commentary data with a stage-3 expert-guided GRPO reinforcement learning stage using multi-dimensional rewards for moves, analysis, and formatting. Empirical results show Xiangqi-R1 significantly improves move legality and position analysis over larger general-purpose LLMs, demonstrating that domain-specific structure and reinforcement signals can unlock strategic capabilities in compact models. The work provides a Xiangqi-specific evaluation framework and demonstrates that small, specialized models can achieve competitive, even superior, strategic reasoning, with implications for general strategic intelligence in complex spatial domains.
Abstract
Game playing has long served as a fundamental benchmark for evaluating Artificial General Intelligence. While Large Language Models (LLMs) have demonstrated impressive capabilities in general reasoning, their effectiveness in spatial strategic reasoning, which is critical for complex and fully observable board games, remains insufficiently explored. In this work, we adopt Chinese Chess (Xiangqi) as a challenging and rich testbed due to its intricate rules and spatial complexity. To advance LLMs' strategic competence in such environments, we propose a training framework tailored to Xiangqi, built upon a large-scale dataset of five million board-move pairs enhanced with expert annotations and engine evaluations. Building on this foundation, we introduce Xiangqi-R1, a 7B-parameter model trained in multi-stage manner. Our Experimental results indicate that, despite their size and power, general-purpose LLMs struggle to achieve satisfactory performance in these tasks. Compared to general-purpose LLMs, Xiangqi-R1 greatly advances with an 18% rise in move legality and a 22% boost in analysis accuracy. Our results point to a promising path for creating general strategic intelligence in complex areas.
