TL;DR
This paper investigates how different training datasets influence the reasoning capabilities of language models in chess, moving from supervised fine-tuning (SFT) to reinforcement learning (RL). They discover that while predicting the single best move leads to strong RL performance, it results in unfaithful reasoning. Conversely, training on multi-move trajectories yields comparable performance with more stable and faithful reasoning, alongside reduced hallucinations.
What Problem Does This Paper Address?
Large Language Models (LLMs) have shown promise in various reasoning tasks, but their ability to perform complex, sequential decision-making, like in chess, remains a challenge. The authors aim to understand how different training data strategies, specifically during supervised fine-tuning (SFT) and reinforcement learning (RL), impact an LLM's reasoning quality, faithfulness, and overall performance in chess. They explore how to best train LLMs to reason effectively in a verifiable domain, moving beyond traditional benchmarks in math and coding.
Methods
The researchers trained a 7B-parameter Qwen2.5 model using a combination of SFT and RL. They experimented with various custom-designed datasets, each with a specific focus on chess reasoning. Key to their approach is the use of RL to further refine the model's reasoning after initial SFT. They employed Proximal Policy Optimization (PPO) variants, specifically Dr. GRPO, for RL training. Their evaluation involved custom chess tasks like "Predict Move," "Best Move," "Worst Move," and "Legal Moves," and they used an LLM-as-a-judge approach (gpt-oss-120b) to assess reasoning quality and faithfulness.
Datasets
The paper introduces several custom datasets designed to probe different aspects of chess reasoning:
- General Instruction Following: Magpie (Llama 3.3 70B) for regularization.
- Rejection Sampling: Generated by Llama 4 Maverick on evaluation tasks, filtered for correctness or quality.
- Guided Synthetic: Synthetically generated data where a teacher model verbalizes move outcomes, including logic and verdicts.
- Verbalized Alpha-Beta Pruning: Programmatically generated data from Stockfish, verbalizing search trees, minimax decisions, and pruning.
- Factual Board Answering: Question-answer pairs about board states, testing legal moves, threats, and material advantage.
- Best Move: Directly predicting the single best move in UCI notation.
- Best Line: Predicting an optimal sequence of moves (4-6 plies) and the resulting centipawn delta.
Key Insights and Ideas
- Best Move vs. Best Line: Training to predict a single best move leads to effective RL and strong downstream performance, but the RL stage introduces unfaithful reasoning (the model's explanation doesn't align with its chosen move). In contrast, training on multi-move trajectories ("Best Line") results in comparable performance with faithful reasoning and more stable RL.
- RL's Impact: RL significantly improves move quality distribution and substantially reduces hallucination rates as a beneficial side effect of maximizing rewards.
- SFT Predictors: Certain metrics from SFT checkpoints (like referenced move accuracy and reasoning quality) are strong predictors of final RL performance, suggesting that a truthful and already capable reasoner at the SFT stage is crucial for successful RL.
- Dataset Diversity: While dense, high-quality datasets like "Best Move" and "Best Line" are effective, incorporating diversity from other datasets (even those with mixed results) generally leads to superior performance.
- Information Density: The authors propose "chess information density" as a way to understand dataset efficacy, suggesting that datasets with less prose and more chess-specific tokens, combined with predictive complexity, are more beneficial.
Key Results
- The best final performance was achieved by training on 60 million tokens of "Best Move - All" data followed by 60 million tokens of "Best Line - All" data.
- The scaled 7B-parameter model surpassed leading open-source reasoning models in chess.
- RL training led to a substantial positive shift in move quality, decreasing the frequency of low-quality moves.
- Hallucination rates were reduced through RL, with models trained on "Best Move - All" showing a significant decrease.
- Referenced move accuracy and reasoning quality from SFT checkpoints were statistically significant predictors of final RL performance. For example, a 1-point increase in SFT reasoning quality correlated with a 0.57-point increase in final RL reasoning quality.
Limitations and Future Work
- Model Choice: The experiments were primarily conducted on Qwen2.5 7B-Instruct. Replicating these findings on other base models would be valuable.
- Full-Game Play: The final RL model showed poor performance in full-game play against OpenAI 03, possibly due to distribution mismatch in training data (emphasizing mid/late-game positions).
- Reward Function Tuning: Minimal experimentation was done on reward function tuning, suggesting this is a promising area for improvement.
- Multi-Turn RL and Puzzles: Incorporating multi-turn RL and chess puzzles could better mimic full chess games and yield stronger improvements.
- Environment Dynamics: The authors suggest exploring training on environment dynamics for general reasoning abilities, citing works like CodeI/O and Absolute Zero as inspiration, and believe this can extend to other sequential domains like dialogue or embodied agents.
Summary updated