Manuscript Offprint
arXiv:2609.30936Self-Play Search Distillation for Large Language Model Reasoning
Abstract
Improving reasoning abilities in Large Language Models (LLMs) requires high-quality data that exposes difficult decisions, competing alternatives, and their consequences. Data scarcity is driven by the low quality of synthetic data and the cost of human labeling. We introduce Self-Play Search Distillation (SPSD), a framework for generating superhuman synthetic data via self-play of MuZero-like networks trained on board games. SPSD uses executable environments to turn search into structured reasoning problems. At each state, the expert identifies a preferred decision, plausible alternatives, plausible opponent replies, and value estimates. By converting the self-play search records into superhuman chains-of-thought, we train LLMs with environment-grounded supervision. Although trained only on self-play search records, SPSD transfers to unseen mathematics. On Qwen3-4B-Base, it raises the mean over six mathematics benchmarks from 24.1 to 36.6 while increasing the held-out-game win rate from 15% to 45%. SPSD offers an annotation-efficient way to create high-quality synthetic data for improving LLM performance in reasoning tasks.
1 Introduction
Scaling the reasoning capabilities of large language models (LLMs) requires more than simply increasing the amount of training data. It requires synthetic supervision whose quality can exceed the student's current capabilities. Final answers reveal whether a solution succeeded, but not how the solver preserved state, rejected plausible alternatives, or anticipated delayed consequences (Li et al., 2023; Nanda et al., 2023; Valmeekam et al., 2023a,b). Human process supervision can expose these operations, but it is costly to collect, difficult to verify, and ultimately bounded by the expertise of its annotators (Ouyang et al., 2022).
Recent self-generation methods offer a scalable alternative by allowing the learner to construct tasks, traces, or feedback (Chen et al., 2024; Liu et al., 2025a; Zhao et al., 2025). Yet, when the learner itself participates in generating the supervision, data quality remains coupled to its current errors and limitations. The central challenge is to generate structured supervision that exposes comparisons and consequences beyond the student's current policy and can be checked independently.
Executable board games provide a compact testbed for this challenge. Their rules define exact transitions and legal actions, and terminal outcomes expose delayed consequences, while controlled rule changes vary the reasoning problem without changing the evaluation interface. Search-based self-play systems in this lineage have achieved superhuman play and, crucially, retain more than the selected action: they expose alternatives, opponent replies, branch values, and replayable consequences (Silver et al., 2017a; Schrittwieser et al., 2020; Ye et al., 2021). A single root search can therefore provide a preferred action, a distribution over legal alternatives, branch values, and continuations that can be checked independently by replay. These records capture the comparisons and delayed consequences absent from outcome-only game logs. Crucially, search-based self-play has already demonstrated that such experts can surpass human performance, providing a source of supervision that is not inherently capped by human expertise (Silver et al., 2017a; Schrittwieser et al., 2020). By placing these external search experts—rather than the LLM itself—in the data-generation loop, we decouple supervision quality from the student's current policy. Self-play search thus becomes more than a game-playing mechanism. It provides a programmable source of search-derived reasoning traces whose alternatives and consequences can be checked by replay under the executable rules of each environment.
We introduce Self-Play Search Distillation (SPSD), an offline bridge from superhuman-capable self-play search to LLM post-training. Given a search expert, SPSD converts replayable decision states into verifier-grounded supervision that exposes the selected action, plausible alternatives, and their consequences, together with complementary questions about the underlying state. The LLM never participates in expert self-play during post-training and receives no search information at inference time. Our experiments show that SPSD can improve mathematical reasoning while preserving game competence, although the magnitude of the gains depends on the backbone.
We make three contributions.
① We introduce an offline framework that turns self-play search into a scalable source of replay-grounded supervision for LLM reasoning.
② We develop a replay-grounded interface that converts expert decisions, alternatives, and state transitions into reasoning traces and six complementary state-supervision tasks.
③ We evaluate whether this supervision transfers beyond the source search environments, across game play, controlled rule variation, and mathematical reasoning.
Synthetic supervision. Synthetic methods derive supervision from verifiable tasks and explicit solution processes. AlphaGeometry (Trinh et al., 2024) generates synthetic theorems and proofs without human demonstrations, Enigmata (Chen et al., 2025) pairs controllable puzzles with rule-based verifiers, and Absolute Zero (Zhao et al., 2025) lets one model propose and solve executable reasoning tasks under programmatic feedback. LogicPuzzleRL (Wong et al., 2025) trains with verifier rewards on logic puzzles, while Reasoning Gym (Stojanovski et al., 2025) provides procedurally generated reasoning environments with verifiable rewards. Complementary lines of work expose intermediate computation rather than only final outcomes. Chain-of-thought prompting (Wei et al., 2022) elicits stepwise rationales, Tree of Thoughts (Yao et al., 2023) searches over alternative thoughts at inference, and ASTRO (Kim et al., 2025) trains on natural-language MCTS traces with reflection and backtracking. Procedure cloning (Yang et al., 2022) imitates expert computations, while Stream of Search (Gandhi et al., 2024) bootstraps from flattened search trajectories. RLoT (Hao et al., 2025) learns adaptive reasoning control through inference-time reinforcement learning, and ToTRL (Wu et al., 2025) reinforces tree-structured reasoning through puzzle solving. Algorithm Distillation (Laskin et al., 2023) models learning histories to induce in-context policy improvement. Studies of Othello sequence models (Li et al., 2023; Nanda et al., 2023) probe latent board-state representations, while PlanBench (Valmeekam et al., 2023a) and a related critical planning evaluation (Valmeekam et al., 2023b) test plan generation and reasoning about change. SPSD also transfers structured decision information, but it supervises one root decision from a planning expert. It retains ranked alternatives and replayable continuations that justify the selected action without exposing the full search tree or asking the student to reproduce the planner's internal computations.
(a) game performance
(b) mathematics

Qwen 3/3.5/3.6/3.8 Gemma 4 Muse-Glimmer GPT-OSS/GPT-5.6 Opus 5 Gemini 3.1 Pro
Figure 1: Game and mathematics performance across model scale. Panel (a) reports episode-mean FIDE with SEM whiskers on the SPSD board-game benchmark; panel (b) averages GPQA-Diamond and Humanity’s Last Exam. While game competence tracks mathematical accuracy across scale, even frontier models do not saturate on board-game reasoning.
Self-play and post-training. Language-model post-training draws supervision from people, teachers, model generations, and executable environments. RLHF (Christiano et al., 2017; Ouyang et al., 2022) established preference-based post-training, DPO (Rafailov et al., 2023) optimizes preference pairs directly, and knowledge distillation (Hinton et al., 2015) transfers predictive behavior from a teacher. Self-Instruct (Wang et al., 2023) bootstraps instruction data from model generations, while SPIN (Chen et al., 2024) iteratively contrasts target responses with responses produced by earlier model versions. Beyond Human Data (Singh et al., 2024) filters self-generated solutions using binary feedback, DeepSeekMath (Shao et al., 2024) introduces GRPO for mathematical reasoning, ProRL (Liu et al., 2025b) studies prolonged reinforcement learning, and VersaPRM (Zeng et al., 2025) learns process rewards from synthetic reasoning data. SPIRAL (Liu et al., 2025a) directly optimizes an LLM through online multi-turn game self-play. OpenSIR (Kwan et al., 2025) alternates a single policy between proposing and solving mathematical problems under difficulty- and diversity-calibrated rewards, and SCOPE (Kwan et al., 2026) extends self-play to open-ended tasks by co-evolving a task-proposing challenger with a retrieval-augmented solver, graded by rubrics from a judge model. Code-based self-play (Bachrach et al., 2025) refines executable game strategies through competition, while SPADE (Liu et al., 2026) co-evolves executable tasks and a reasoning agent through hint-based regret. ALE (Belle-mare et al., 2013), TextWorld (Côté et al., 2018), Procgen (Cobbe et al., 2020), Ludii (Piette et al., 2020), and OpenSpiel (Lanctot et al., 2019) provide automatically scored settings for interaction and training. POET (Wang et al., 2019), unsupervised environment design (Dennis et al., 2020), and regret-based environment design (Parker-Holder et al., 2022) instead adapt the task distribution as the learner changes. In SPSD, self-play is part of corpus construction. The decisions of the trained search experts are converted into an offline corpus. This shifts self-play from optimizing the learner to producing reusable, environment-grounded reasoning data.
3 Background
Expert Iteration. Expert Iteration (ExIt) alternates a planning expert that improves decisions at individual states with an apprentice that generalises those improvements across states (Anthony et al., 2017; Anthony, 2021). At iteration k, an apprentice guides expert search over a set of states . For each searched state, the planner produces a search-improved policy , and the training loop supplies an optional value target . The next apprentice fits these targets through
(1)
Here, and fit the policy and value targets, while yields policy-only training. The value target may be a planner estimate, an observed return, or a bootstrapped target, depending on the ExIt instance. Search concentrates computation on the current state, and apprentice fitting propagates the resulting improvements to later states. Repeating these operations forms an approximate modified-policy-iteration loop (Anthony et al., 2019; Anthony, 2021). After training, the apprentice-guided planner can be queried for search-improved policies and values.
Neural-guided MCTS. Monte Carlo tree search provides a common planning mechanism within ExIt. AlphaGo (Silver et al., 2016) established neural-guided MCTS at scale. AlphaGo Zero (Silver et al., 2017b) and AlphaZero (Silver et al., 2017a) coupled this search process to iterative self-play policy and value fitting. MuZero (Schrittwieser et al., 2020) performs the search through learned latent dynamics, and EfficientZero (Ye et al., 2021) adds sample-efficiency mechanisms around the same planning interface. For a game g, let denote the legal actions at state s. At ExIt iteration k, let denote the current action-value estimate at node s, the apprentice prior assigned at expansion, and the number of simulations selecting action a. Writing , MuZero-style PUCT combines the backed-up value with a prior-weighted exploration bonus
(2)
The value term favours actions with strong backed-up estimates, while the prior and visit-dependent bonus allocate simulations toward promising under-explored actions. After a fixed simulation budget, root visits define the search-improved policy
The temperature controls the sharpness of Equation 3, which supplies the policy target in Equation 1. At , it recovers the normalized root-visit target used in the original ExIt formulation (Anthony et al., 2017). LightZero (Niu et al., 2023) provides a unified implementation of this neural-guided search family across diverse environments. A completed root search also yields a selected action and a root value estimate, while retained paths can preserve concrete continuations behind these summaries. These outputs capture both the expert decision and the evidence accumulated while comparing legal actions.
Search-derived supervision. The outputs of a completed search retain different levels of decision information. A selected action records the final choice, the root distribution preserves relative support over legal actions, and retained continuations expose the state changes and delayed consequences behind that comparison. Reasoning chains and procedure-cloning targets can convert this intermediate structure into direct supervision (Wei et al., 2022; Yang et al., 2022; Gandhi et al., 2024). Executable environments provide an additional guarantee, because each narrated transition or outcome can be checked against them. On-policy self-distillation (OPSD) further allows privileged evidence to guide a teacher along prefixes sampled by the current student (Shenfeld et al., 2026). Together, these ingredients motivate an intermediate representation that preserves search evidence in executable form before any choice of language form or post-training objective.
4 Method
SPSD turns this intermediate representation into an offline bridge from self-play search to LLM post-training. SPSD comprises three stages. A search expert plays against itself and exports one record for each decision state it reaches. Each record is then replayed in the environment, and records whose fields cannot be reproduced are discarded. The surviving records are converted into prompts and reference responses. The expert is held fixed during generation, so the supervision it produces is independent of the student trained on it. For each source game we train an ExIt-family search expert (Anthony et al., 2017) and select a training step, suppressing the ExIt iteration index to write the search outputs as , , and .
4.1 Executable decision records
Game interface. Each game g defines a state space , legal-action function , transition function , terminal and outcome functions,

SPSD Self-Play Search Distillation
Play the next move for X:
Let me think about this position. If I start with (a,2), I'm one move away from winning. However the opponent could follow and win with (a,3). The same would happen with move (b,3).
Move (a,3) would shut down their immediate winning threat, leaving me with at least the possibility of a draw.
I'll play :{(a,3)}
How many immediate winning actions does O have:
0 already occupies (b,2) and (c,1).
Placing 0 at (a,3) completes the diagonal; the other empty cells do not complete a line.
Final answer:1
Figure 2: From self-play search to language supervision. A search expert exports selected actions, root-level estimates, and replayable continuations. These records are validated before they become move-choice and state-question supervision for language-model post-training.
and state formatter . The executable functions determine which states and transitions are valid, while maps a restored state into the shared language interface.
Expert record. The expert record stores the selected decision together with the search evidence needed to construct its supervision. To enforce diversity in the data while accounting for the deterministic nature of the expert, we begin each trajectory with a uniformly random legal prefix and thereby distribute retained decisions across the reachable state space. The expert controls both seats after the prefix. At each selected state, it runs 50 MCTS simulations, selects the root action , and exports
where is the legal-action set at , the selected root action, the visit-derived root policy, the root value estimate, and the retained branch evidence. For each exported root action, stores its visit count, export index, edge value or missing-value marker, and replayable prefix. Each retained branch is replayed in the environment from the prefix stored in , recovering its successor states and any terminal outcome, and verbalized from those transitions.
4.2 Replay-grounded supervision
Supervision interface. Each decision record becomes a replay-grounded supervision training instance. Materialization produces the row , where is the board-game state, is the target best action, and is the target-hidden expert trace derived from its MCTS process. The prompt is built from and includes the rules, board, side to move, the list of legal options, and the answer contract. Both and come from the verified contents of . The student receives only , so it must reconstruct the comparison from the board and the legal-action list.
Move choice. For move-choice rows, and rank the legal root actions. Replay follows the expert-selected action, up to one visit-ranked legal alternative, and, when available, one opponent reply from the selected continuation. Each retained branch contains its ordered action prefix, recomputed successor states, and a terminal outcome upon reaching a terminal state. The generated trace verbalizes only the board effects and outcomes recovered from these transitions. Linearization preserves three invariants. The final handle remains , every narrated prefix replays legally, and equivalent failed branches are deduplicated. Terminal outcomes appear only when replay reaches a terminal state, while non-terminal comparisons remain anchored to the retained root continuations. The trace concludes with the expert-selected boxed legal handle. Section A details the linearization algorithm and record schema, and Section J shows a linearized record.
State questions. A model can select a strong move while misreading the board that justifies it. To supervise the reading itself, SPSD adds six environment-derived question types covering occupancy, legality, threat count, legal-action count, legal-action enumeration, and successor state. At every retained decision state, the answer to the selected state question is computed from the board, legal-action set, transition function, and terminal rules. Across games, SPSD applies the same executable interface to all six question types. The prompt format remains fixed, while each answer is computed from the rules and transitions of the selected game. Splits are grouped by source trajectory, and each decision state belongs to exactly one row family, which prevents a state from being both trained and probed. Figure 2 illustrates an example of move-choice reasoning and a state question derived from an expert MCTS record. Sections B and K report the question types, row-construction procedure, and privileged fields.
4.3 Language-model post-training
We consider three post-training paths for distilling expert search into the LLMs.
Supervised Fine-Tuning. SFT trains the language model directly on , exposing the replay-grounded response as the target sequence.
On-policy self-distillation. SFT is fitted to states the expert visits, which are not the states a weaker student reaches. To align teacher guidance with the states induced by the student’s own responses while retaining the expert trace as privileged evidence, we employ OPSD (Shenfeld et al., 2026), which lets the student sample its own response from while the trace conditions the teacher rather than the student. A fixed teacher with parameters evaluates the same student-generated prefix while conditioning on the expert trace
where are the frozen teacher parameters, e the privileged trace of the current row, and the prefix the student has already produced. Equation (5) attaches replay-grounded guidance to the exact prefixes the current student has visited, so the supervision follows the student's own state distribution as it changes. At each visited prefix, OPSD minimizes the forward KL over vocabulary V
where V is the model vocabulary, the teacher distribution of Equation (5), and the student distribution being optimized. Training averages Equation (6) over completions along each student-sampled response, masks prompt and padding tokens, and updates the student parameters . The forward direction penalizes low probability on tokens the grounded teacher deems likely, keeping the student within the teacher's support.
Rule-bot emulation. RuleBot-Distill provides a non-search control under the same student-facing interface. It draws decision states and selected actions from trajectories generated by a fixed heuristic policy, yielding compact rule-verified completions. Instead, SPSD uses MuZero state and value predictors to construct a linearized MCTS trace containing the selected action, visit-derived preferences over alternatives, value estimates, and replayable branch evidence. Both arms present the student with the same prompt format and require the same boxed legal handle. They differ in the teacher-side source of the action and its justification. The comparison tests whether the search-derived structure improves on a verified action alone. Section H and Sections I and J report the prompt templates and record examples for each configuration. Section C details the search, optimization, decoding, and compute settings for all three paths.
5 Experimental Setup
Training corpus and search experts. We construct the main SPSD corpus from Connect4, Domineering, Simplified Othello, and Tic-Tac-Chess to cover alignment under gravity, spatial blocking, line capture, and movement-based tactics. For each game, an EfficientZero expert (Ye et al., 2021) is trained by self-play through LightZero (Niu et al., 2023), with 50 MCTS simulations per decision during data generation. Each game contributes 5,000 examples, reduced to 600 for Tic-Tac-Chess by its smaller pool of verified states. Each game allocates 80% of its examples to move choice with replay-grounded reasoning and 20% to the six state-question tasks, which receive equal quotas after pooling. Appendix B details the allocation and verification criteria, and Appendix C.1 reports the expert-training settings.
Models and post-training. We test a pool of models spanning different families and types. Qwen3-4B-Base, Qwen3-8B with thinking disabled and enabled, and Llama-3.1-8B cover base, thinking, and instruction-tuned conditions across two families. SFT fits the linearized MCTS traces of the SPSD corpus directly, and OPSD supplies them as the privileged trace e that conditions the teacher. RuleBot-Distill keeps the OPSD procedure unchanged and replaces the search-derived corpus with completions from the heuristic rule bot, leaving the origin of the supervision as the only difference between the two conditions. Every setting is trained for 1,000 optimization steps on one Nvidia H200 GPU with 141 GB. Appendices C and G detail the optimization, decoding, and compute settings.
Prompting. For move-choice tasks, all conditions receive the game rules, current state, player to move, and legal actions, and return a final action in the same boxed-answer format. State-question prompts use the same state representation and require the task-specific answer in a box. Appendices H and K specify the move prompt and state-question tasks.
Rule diversity. To test the effect of rule diversity under a fixed training budget, we compare curricula drawn from a separate pool of five base games and nine variants per game, yielding 50 environments. Each variant changes a local rule governing scoring, openings, movement, or winning conditions while preserving the observation shape, board topology, and action-space size. Appendix D details the rule changes, and Appendix F reports the composition and structural properties of these 50 environments.
Evaluation Benchmarks. We evaluate game transfer on 15 held-out games from the Ludii collection (Piette et al., 2020), disjoint from the training environments. Appendices E and E.1 describe the game selection and rules. The primary game metric is the mean FIDE score, assigning 0, 0.5, and 1 to losses, draws, and wins, respectively. Episode win rate and move legality are also reported, where legality is the fraction of scored attempts that produce a valid legal action. Formatting, parsing, and illegal-action failures count as unsuccessful attempts. For out-of-domain transfer, we evaluate mathematics on MATH500, AIME24, AIME25, AMC23, Olympiad Bench, and Minerva Math. We use pass@1 for MATH500, Olympiad Bench, and Minerva Math, and average accuracy over 32 sampled responses per problem for AIME24, AIME25, and AMC23. Appendix C specifies the sampling settings and generation limits for both evaluations.
Search distillation analysis. To assess whether SPSD transfers the action-choice policy of MCTS into the LLM, which analyses candidate actions through the positions they lead to before committing to one, we follow Chen et al. (2026) and use GPT-5.6 to read each reasoning trace and recover the positions it considers and the move it commits to, expressed as legal actions of the game. Restoring the position the model faced at that turn and querying the expert of that game yields a value for every legal move together with the move its search prefers. For each episode, averages the search values the expert assigns to the committed moves from the player-to-move perspective, over the turns for which it returns a value. Oracle agreement measures how often the committed move matches the action the expert search prefers. Appendix C.2 reports the selection and aggregation protocol.
6 Results
Our results support a conditional view of search transfer. Search-derived supervision improves performance when the student can convert value-ordered traces into decisions, and neither legality nor longer reasoning traces is sufficient on its own. Table 1, Figure 3, and Figure 4 expose this distinction across model conditions, throughout optimization, and under fresh search replay.
RQ-1 How does transfer vary across model families and decision metrics? Held-out games provide the central test of transfer beyond the training environments, where the model must choose actions in unfamiliar rule systems (Table 1). For Qwen3-4B-Base, OPSD triples the held-out-game win rate from 15% to 45%. The corresponding FIDE score rises from 15% to 39.9%, while the model produces legal actions in 75.1% of the evaluated positions. Search-distilled guidance lets the model use ranked alternatives and their consequences when it encounters games outside the training environments. This knowledge transfers to mathematical reasoning, raising the six-benchmark mean from 24.1 to 36.6. The two evaluation gains mark a reusable reasoning pattern learned from synthetic search supervision. The Qwen3-8B conditions show how thinking configuration shapes this transfer. With thinking enabled, mathematics performance is already near saturation in this comparison, while OPSD achieves the strongest trained held-out-game result with complete action legality. With thinking disabled, search-derived knowledge
| Model | Condition | MATH | A24 | A25 | AMC | Olympiad Bench | Minerva Math | FIDE (%) | Legal (%) | Win (%) | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Qwen3-4B-Base | Baseline | 56.4 | 6.2 | 5.9 | 29.7 | 26.4 | 20.2 | 24.1 | 15.0 | 65.0 | 15.0 |
| SFT | 63.0+6.6 | 7.9+1.7 | 6.0+0.1 | 42.1+12.4 | 31.6+5.2 | 31.2+11.0 | 30.3+6.2 | 19.9+4.9 | 34.9-30.1 | 20.0+5.0 | |
| RuleBot | 69.4+13.0 | 10.5+4.3 | 9.6+3.7 | 44.0+14.3 | 35.7+9.3 | 34.2+14.0 | 33.9+9.8 | 35.1+20.1 | 70.1+5.1 | 35.0+20.0 | |
| OPSD | 74.0+17.6 | 12.7+6.5 | 12.4+6.5 | 47.0+17.3 | 35.1+8.7 | 38.6+18.4 | 36.6+12.5 | 39.9+24.9 | 75.1+10.1 | 45.0+30.0 | |
| Qwen3-8B | Baseline | 84.4 | 26.4 | 19.5 | 68.0 | 48.9 | 42.6 | 48.3 | 42.5 | 95.0 | 45.0 |
| SFT | 83.2-1.2 | 24.4-2.0 | 19.9+0.4 | 64.2-3.8 | 48.1-0.8 | 41.2-1.4 | 46.8-1.5 | 52.5+10.0 | 95.0-0.0 | 55.0+10.0 | |
| RuleBot | 84.4-0.0 | 31.0+4.6 | 21.4+1.9 | 73.1+5.1 | 53.2+4.3 | 43.0+0.4 | 51.0+2.7 | 42.5-0.0 | 90.0-5.0 | 45.0-0.0 | |
| OPSD | 86.8+2.4 | 29.9+3.5 | 21.6+2.1 | 74.0+6.0 | 52.9+4.0 | 43.0+0.4 | 51.4+3.1 | 52.5+10.0 | 85.0-10.0 | 55.0+10.0 | |
| Qwen3-8B | Baseline | 94.4 | 73.1 | 62.0 | 95.3 | 65.3 | 59.2 | 74.9 | 51.0 | 100.0 | 53.7 |
| SFT | 94.0-0.4 | 72.0-1.1 | 64.0+2.0 | 94.8-0.5 | 67.7+2.4 | 59.9+0.7 | 75.4+0.5 | 15.6-35.4 | 30.6-69.4 | 16.4-37.3 | |
| RuleBot | 94.4-0.0 | 70.3-2.8 | 64.2+2.2 | 94.6-0.7 | 66.8+1.5 | 58.8-0.4 | 74.9-0.0 | 53.0+2.0 | 100.0-0.0 | 55.8+2.1 | |
| OPSD | 94.6+0.2 | 70.9-2.2 | 64.8+2.8 | 94.1-1.2 | 66.8+1.5 | 58.5-0.7 | 75.0+0.1 | 59.5+8.5 | 100.0-0.0 | 62.7+9.0 | |
| Llama-3.1-8B | Baseline | 46.4 | 4.3 | 1.5 | 21.7 | 15.7 | 27.6 | 19.5 | 42.5 | 90.0 | 45.0 |
| SFT | 51.6+5.2 | 2.6-1.7 | 0.6-0.9 | 23.4+1.7 | 16.0+0.3 | 27.2-0.4 | 20.2+0.7 | 42.5-0.0 | 100.0+10.0 | 45.0-0.0 | |
| RuleBot | 47.0+0.6 | 3.6-0.7 | 0.8-0.7 | 23.9+2.2 | 17.6+1.9 | 23.2-4.4 | 19.3-0.2 | 47.5+5.0 | 100.0+10.0 | 50.0+5.0 | |
| OPSD | 46.8+0.4 | 4.9+0.6 | 0.2-1.3 | 24.9+3.2 | 16.6+0.9 | 21.7-5.9 | 19.2-0.3 | 47.5+5.0 | 100.0+10.0 | 50.0+5.0 |
♀ = thinking enabled; ♀ = thinking disabled.
Table 1: SPSD training effects. Mathematics benchmarks and their six-benchmark mean, normalized FIDE, legality, and win rate. Best and second to best results are highlighted.

Figure 3: Training trajectories. Evolution of reasoning abilities of Qwen3-4B-Base during training. SPSD's advantage emerges from opposite dynamics: SFT peaks early and declines while OPSD keeps improving.
transfers to both held-out games and mathematical reasoning. The instruction-tuned Llama-3.1-8B condition produces the same game outcomes under both expert sources.
RQ-2 How does the expert source affect transfer? For Qwen3-4B-Base, OPSD raises held-out-game win rate from 35% with RuleBot-Distill to 45%. The same condition raises the six-benchmark mathematics mean from 33.9 to 36.6 (Table 1). OPSD is the strongest overall solution among the compared Qwen3-4B training conditions, with the highest mathematics aggregate, FIDE, legality, and win rate. RuleBot-Distill achieves the best Olympiad-Bench result among these conditions, scoring 35.7 compared with 35.1 for OPSD. The accompanying mathematics improvement extends the gain to problems where comparing candidate continuations and rejecting unproductive ones can guide a solution.
RQ-3 How does transfer evolve during training? To trace how game behavior and mathematics evolve during training, we compare the best observed performance at each training budget in Figure 3. SFT learns the linearized targets quickly, but its held-out-game performance peaks early and declines as training continues. The loss of earlier gains is consistent with increasing forgetting under longer continual SFT in this setting. The concurrent decline in legality and mathematics suggests that continued SFT narrows the model's useful behavior across both the game interface and the separate reasoning tasks. OPSD improves later in training by attaching search evidence to prefixes sampled by the current model, keeping the update target connected to the decisions the model must make. At step 1000, the variants curriculum reaches FIDE, legality, and a mathematics mean of 39.2, compared with , ,

(a) Opus 5
(b) Gemini 3.1 Pro
(c) GPT-5.5
(d) SPSD-Qwen3-4B-Base
Figure 4: MCTS structure and reasoning sharpness. Surfaces relate episode wins to mean selected-action value and oracle@50 under a fresh 50-simulation MuZero search.
and 36.6 for the base curriculum. The variants condition leads across all three metrics at every evaluated post-training step, supporting broader coverage of search-grounded decision patterns. Its advantage on both evaluations suggests that variation in the training rules encourages decision patterns that remain useful across environments and reasoning tasks. This result motivates using SPSD to diversify the decisions and consequences encountered during post-training while preserving guidance on the model's own responses.
RQ-1 How does SPSD distill MCTS search into model decisions? We investigate how SPSD distills MCTS search by relating the model's selected actions to MCTS values and preferences, and examining their association with game outcomes (Figure 4). Wins concentrate in the high- and high-agreement region across the four systems. At high selected-action values, the smoothed win surfaces rise with agreement, linking successful play to the model's preference for the actions favored by MCTS. Gemini 3.1 Pro maintains a high estimated win rate at intermediate agreement when its selected actions have high search values, indicating that successful choices can differ from those preferred by MCTS. For GPT-5.5 and SPSD, high-valued choices are more strongly associated with wins when agreement is also high, while Opus 5 has a lower estimated win rate even when both value and agreement are high. For the SPSD model, successful play is associated with generating the actions favored by MCTS. The stronger coupling between successful play and MCTS agreement than in Gemini 3.1 Pro suggests that our comparative search supervision encourages a reasoning pattern centered on ranking actions by their downstream consequences. The model makes these decisions from the game prompt while the search values and traces remain hidden at inference, so agreement with the independently evaluated search reflects alignment in the choices it produces. This alignment provides a behavioral signature of distillation, with the model favoring alternatives whose evaluated consequences support successful play.
7 Conclusion
SPSD turns records produced by self-play search experts in executable environments into replay-grounded supervision for language-model post-training. Each record combines the selected action with ranked alternatives, search values, and replayed continuations to support comparative move-choice traces, verified state questions, and OPSD along student-generated prefixes. Across the Qwen3-4B training budgets studied, OPSD provides the most stable overall performance improvements among the compared methods, while SFT loses earlier gains under longer training. The variant-enriched curriculum strengthens held-out-game performance and mathematical reasoning transfer through more diverse search-grounded supervision. SPSD opens a direction for future work on continual training through expanding curricula of executable environments, with search experts generating supervision for new rules and decision problems.
Acknowledgements
This research was partially supported by the AI-PACT project (CUP B47H22004450008, B47H22004460001); the National Plan PNC-I.1 DARE initiative (PNC0000002, CUP B53C22006450001); the Horizon Europe VAL-WARP project (proposal no. 101326664); Huawei–Edinburgh Joint Research Laboratory Grant. We thank LG Solution Srl for partially funding a PhD scholarship to L. Molfetta.
References
Thomas Anthony, Robert Nishihara, Philipp Moritz, Tim Salimans, and John Schulman. 2019. Policy gradient search: Online planning and expert iteration without search trees. CoRR, abs/1904.03646.
Thomas Anthony, Zheng Tian, and David Barber. 2017. Thinking fast and slow with deep learning and tree search. In NIPS.
Thomas William Anthony. 2021. Expert Iteration. Ph.D. thesis, University College London.
Yoram Bachrach, Edan Toledo, Karen Hambardzumyan, Despoina Magka, Martin Josifoski, Minqi Jiang, Jakob N. Foerster, Roberta Raileanu, Tatiana Shavrina, Nicola Cancedda, Avraham Ruderman, Katie Millican, Andrei Lupu, and Rishi Hazra. 2025. Combining code generating large language models and self-play to iteratively refine strategies in games. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2025, Montreal, Canada, August 16-22, 2025, pages 10999–11003. ijcai.org.
Marc G. Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. 2013. The arcade learning environment: An evaluation platform for general agents. J. Artif. Intell. Res.
Jiangjie Chen, Qianyu He, Siyu Yuan, Aili Chen, Zhicheng Cai, Weinan Dai, Hongli Yu, Qiying Yu, Xuefeng Li, Jiaze Chen, Hao Zhou, and Mingxuan Wang. 2025. Enigmata: Scaling logical reasoning in large language models with synthetic verifiable puzzles. CoRR, abs/2505.19914.
Sixing Chen, Ji-An Li, Saner Cakir, Sinan Akcali, Kayla Lee, and Marcelo G. Mattar. 2026. Extracting search trees from LLM reasoning traces reveals myopic planning. CoRR, abs/2605.06840.
Zixiang Chen, Yihe Deng, Huizhuo Yuan, Kaixuan Ji, and Quanquan Gu. 2024. Self-play fine-tuning converts weak language models to strong language models. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, Proceedings of Machine Learning Research, pages 6621–6642. PMLR / OpenReview.net.
Paul F. Christiano, Jan Leike, Tom B. Brown, Miljan Martic, Shane Legg, and Dario Amodei. 2017. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 4299–4307.
Karl Cobbe, Christopher Hesse, Jacob Hilton, and John Schulman. 2020. Leveraging procedural generation to benchmark reinforcement learning. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, Proceedings of Machine Learning Research, pages 2048–2056. PMLR.
Marc-Alexandre Côté, Ákos Kádár, Xingdi Yuan, Ben Kybartas, Tavian Barnes, Emery Fine, James Moore, Matthew J. Hausknecht, Layla El Asri, Mahmoud Adada, Wendy Tay, and Adam Trischler. 2018. Textworld: A learning environment for text-based games. In CGW@IJCAI.
Michael Dennis, Natasha Jaques, Eugene Vinitsky, Alexandre M. Bayen, Stuart Russell, Andrew Critch, and Sergey Levine. 2020. Emergent complexity and zero-shot transfer via unsupervised environment design. In NeurIPS.
Jinhao Duan, Renming Zhang, James Diffenderfer, Bhavya Kailkhura, Lichao Sun, Elias Stengel-Eskin, Mohit Bansal, Tianlong Chen, and Kaidi Xu. 2024. Gtbench: Uncovering the strategic reasoning limitations of llms via game-theoretic evaluations. CoRR, abs/2402.12348.
Xidong Feng, Yicheng Luo, Ziyan Wang, Hongrui Tang, Mengyue Yang, Kun Shao, David Mguni, Yali Du, and Jun Wang. 2023. Chessgpt: Bridging policy learning and language modeling. In NeurIPS.
Kanishk Gandhi, Denise Lee, Gabriel Grand, Muxin Liu, Winson Cheng, Archit Sharma, and Noah D. Goodman. 2024. Stream of search (sos): Learning to search in language. CoRR, abs/2404.03683.
Leon Guertler, Bobby Cheng, Simon Yu, Bo Liu, Leshem Choshen, and Cheston Tan. 2025. Textarena. CoRR, abs/2504.11442.
Hongyi Guo, Zhihan Liu, Yufeng Zhang, and Zhao-ran Wang. 2024. Can large language models play games? A case study of A self-play approach. CoRR, abs/2403.05632.
Qianyue Hao, Sibo Li, Jian Yuan, and Yong Li. 2025. RL of thoughts: Navigating LLM reasoning with inference-time reinforcement learning. CoRR, abs/2505.14140.
Geoffrey E. Hinton, Oriol Vinyals, and Jeffrey Dean. 2015. Distilling the knowledge in a neural network. CoRR, abs/1503.02531.
Lanxiang Hu, Mingjia Huo, Yuxuan Zhang, Haoyang Yu, Eric P. Xing, Ion Stoica, Tajana Rosing, Haojian Jin, and Hao Zhang. 2025. lmgame-bench: How good are llms at playing games? CoRR, abs/2505.15146.
Adam Karvonen. 2024. Emergent world models and latent variable estimation in chess-playing language models. CoRR.
Joongwon Kim, Anirudh Goyal, Liang Tan, Hannaneh Hajishirzi, Srinivasan Iyer, and Tianlu Wang. 2025. ASTRO: teaching language models to reason by reflecting and backtracking in-context. CoRR, abs/2507.00417.
Wai-Chung Kwan, Aryo Pradipta Gema, Joshua Ong Jun Leang, and Pasquale Minervini. 2026. Scope: Self-play via co-evolving policies for open-ended tasks. arXiv preprint arXiv:2605.31433.
Wai-Chung Kwan, Joshua Ong Jun Leang, Pavlos Vougiouklis, Jeff Z. Pan, Marco Valentino, and Pasquale Minervini. 2025. Opensir: Open-ended self-improving reasoner. Preprint, arXiv:2511.00602.
Marc Lanctot, Edward Lockhart, Jean-Baptiste Lespiau, Vinícius Flores Zambaldi, Satyaki Upadhyay, Julien Pérolat, Sriram Srinivasan, Finbarr Timbers, Karl Tuyls, Shayegan Omidshafiei, Daniel Hennes, Dustin Morrill, Paul Muller, Timo Ewalds, Ryan Faulkner, János Kramár, Bart De Vylder, Brennan Saeta, James Bradbury, and 8 others. 2019. Openspiel: A framework for reinforcement learning in games. CoRR, abs/1908.09453.
Michael Laskin, Luyu Wang, Junhyuk Oh, Emilio Parisotto, Stephen Spencer, Richie Steigerwald, DJ Strouse, Steven Stenberg Hansen, Angelos Filos, Ethan Brooks, Maxime Gazeau, Himanshu Sahni, Satinder Singh, and Volodymyr Mnih. 2023. In-context reinforcement learning with algorithm distillation. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
Kenneth Li, Aspen K. Hopkins, David Bau, Fernanda B. Viégas, Hanspeter Pfister, and Martin Wattenberg. 2023. Emergent world representations: Exploring a sequence model trained on a synthetic task. In ICLR. OpenReview.net.
Bo Liu, Leon Guertler, Simon Yu, Zichen Liu, Penghui Qi, Daniel Balcells, Mickel Liu, Cheston Tan, Weiyan Shi, Min Lin, Wee Sun Lee, and Natasha Jaques. 2025a. Spiral: Self-play on zero-sum games incentivizes reasoning via multi-agent multi-turn reinforcement learning. CoRR, abs/2506.24119.
Bo Liu, Simon Yu, Yiding Jiang, Ao Qu, Andrew Zhao, Zichen Liu, Junsu Kim, Zijian Zhou, Seungone Kim, Tongzheng Ren, Mickel Liu, Hanfei Yu, Zhaorun Chen, Weiyan Shi, Paul Pu Liang, Luke Zettlemoyer, Yejin Choi, and Natasha Jaques. 2026. SPADE: Self-play in adaptive synthetic executable environments. Preprint, arXiv:2608.19197.
Mingjie Liu, Shizhe Diao, Ximing Lu, Jian Hu, Xin Dong, Yejin Choi, Jan Kautz, and Yi Dong. 2025b. Prorl: Prolonged reinforcement learning expands reasoning boundaries in large language models. CoRR, abs/2505.24864.
Neel Nanda, Andrew Lee, and Martin Wattenberg. 2023. Emergent linear representations in world models of self-supervised sequence models. In BlackboxNLP@EMNLP.
Yazhe Niu, Yuan Pu, Zhenjie Yang, Xueyan Li, Tong Zhou, Jiyuan Ren, Shuai Hu, Hongsheng Li, and Yu Liu. 2023. Lightzero: A unified benchmark for monte carlo tree search in general sequential decision scenarios. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela
Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F. Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022.
Jack Parker-Holder, Minqi Jiang, Michael Dennis, Mikayel Samvelyan, Jakob N. Foerster, Edward Grefenstette, and Tim Rocktäschel. 2022. Evolving curricula with regret-based environment design. In International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, Proceedings of Machine Learning Research, pages 17473–17498. PMLR.
Éric Piette, Dennis J. N. J. Soemers, Matthew Stephenson, Chiara F. Sironi, Mark H. M. Winands, and Cameron Browne. 2020. Ludii - the ludemic general game system. In ECAI 2020 - 24th European Conference on Artificial Intelligence, 29 August-8 September 2020, Santiago de Compostela, Spain, August 29 - September 8, 2020 - Including 10th Conference on Prestigious Applications of Artificial Intelligence (PAIS 2020), Frontiers in Artificial Intelligence and Applications, pages 411–418. IOS Press.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning, Stefano Ermon, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023.
Anian Ruoss, Grégoire Delétang, Sourabh Medapati, Jordi Grau-Moya, Li Kevin Wenliang, Elliot Catt, John Reid, and Tim Genewein. 2024. Grandmaster-level chess without search. CoRR, abs/2402.04494.
Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, Timothy P. Lillicrap, and David Silver. 2020. Mastering atari, go, chess and shogi by planning with a learned model. Nat., 588(7839):604–609.
John Schultz, Jakub Adámek, Matej Jusup, Marc Lanctot, Michael Kaisers, Sarah Perrin, Daniel Hennes, Jeremy Shar, Cannada A. Lewis, Anian Ruoss, Tom Zahavy, Petar Velickovic, Laurel Prince, Satinder Singh, Eric Malmi, and Nenad Tomasev. 2025. Mastering board games by external and internal planning with language models. In ICML, Proceedings of Machine Learning Research. PMLR / OpenReview.net.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. CoRR, abs/2402.03300.
Idan Shenfeld, Mehul Damani, Jonas Hübotter, and Pulkit Agrawal. 2026. Self-distillation enables continual learning. CoRR, abs/2601.19897.
Jiajun Shi, Jian Yang, Jiaheng Liu, Xingyuan Bu, Jiangjie Chen, Junting Zhou, Kaijing Ma, Zhou-futu Wen, Bingli Wang, Yancheng He, Liang Song, Hualei Zhu, Shilong Li, Xingjian Wang, Wei Zhang, Ruibin Yuan, Yifan Yao, Wenjun Yang, Yunli Wang, and 10 others. 2025. Korgym: A dynamic game platform for LLM reasoning evaluation. CoRR, abs/2505.14552.
David Silver, Aja Huang, Chris J. Maddison, Arthur Guez, Laurent Sifre, George van den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Vedavyas Panneershelvam, Marc Lanctot, Sander Dieleman, Dominik Grewe, John Nham, Nal Kalchbrenner, Ilya Sutskever, Timothy P. Lillicrap, Madeleine Leach, Koray Kavukcuoglu, Thore Graepel, and Demis Hassabis. 2016. Mastering the game of go with deep neural networks and tree search. Nat.
David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, Timothy P. Lillicrap, Karen Simonyan, and Demis Hassabis. 2017a. Mastering chess and shogi by self-play with a general reinforcement learning algorithm. CoRR, abs/1712.01815.
David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang,
Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, Yutian Chen, Timothy P. Lillicrap, Fan Hui, Laurent Sifre, George van den Driessche, Thore Graepel, and Demis Hassabis. 2017b. Mastering the game of go without human knowledge. Nat.
Avi Singh, John D. Co-Reyes, Rishabh Agarwal, Ankesh Anand, Piyush Patil, Xavier Garcia, Peter J. Liu, James Harrison, Jaehoon Lee, Kelvin Xu, Aaron T. Parisi, Abhishek Kumar, Alexander A. Alemi, Alex Rizkowsky, Azade Nova, Ben Adlam, Bernd Bohnet, Gamaleldin Fathy Elsayed, Hanie Sedghi, and 22 others. 2024. Beyond human data: Scaling self-training for problem-solving with language models. Trans. Mach. Learn. Res., 2024.
Zafir Stojanovski, Oliver Stanley, Joe Sharratt, Richard Jones, Abdulhakeem Adefioye, Jean Kaddour, and Andreas Köpf. 2025. REASONING GYM: reasoning environments for reinforcement learning with verifiable rewards. CoRR, abs/2505.24760.
Trieu H. Trinh, Yuhuai Wu, Quoc V. Le, He He, and Thang Luong. 2024. Solving olympiad geometry without human demonstrations. Nat., 625(7995):476–482.
Karthik Valmeekam, Matthew Marquez, Alberto Olmo Hernandez, Sarath Sreedharan, and Subbarao Kambhampati. 2023a. Planbench: An extensible benchmark for evaluating large language models on planning and reasoning about change. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023.
Karthik Valmeekam, Matthew Marquez, Sarath Sreedharan, and Subbarao Kambhampati. 2023b. On the planning abilities of large language models - A critical investigation. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023.
Rui Wang, Joel Lehman, Jeff Clune, and Kenneth O. Stanley. 2019. Paired open-ended trailblazer (POET): endlessly generating increasingly complex and diverse learn-
ing environments and their solutions. CoRR, abs/1901.01753.
Shu Wang, Lei Ji, Renxi Wang, Wenxiao Zhao, Haokun Liu, Yifan Hou, and Ying Nian Wu. 2025. Explore the reasoning capability of llms in the chess testbed. In NAACL.
Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. Self-instruct: Aligning language models with self-generated instructions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2023, Toronto, Canada, July 9-14, 2023, pages 13484–13508. Association for Computational Linguistics.
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022.
Zhen Hao Wong, Jingwen Deng, Runming He, Zirong Chen, Qijie You, Hejun Dong, Hao Liang, Chengyu Shen, Bin Cui, and Wentao Zhang. 2025. Logicpuzzlerl: Cultivating robust mathematical reasoning in llms via reinforcement learning. CoRR, abs/2506.04821.
Haoyuan Wu, Xueyi Chen, Rui Ming, Jilong Gao, Shoubo Hu, Zhuolun He, and Bei Yu. 2025. Totrl: Unlock LLM tree-of-thoughts reasoning potential through puzzles solving. CoRR, abs/2505.12717.
Mengjiao Yang, Dale Schuurmans, Pieter Abbeel, and Ofir Nachum. 2022. Chain of thought imitation with procedure cloning. In NeurIPS.
Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. 2023. Tree of thoughts: Deliberate problem solving with large language models. In NeurIPS.
Weirui Ye, Shaohuai Liu, Thanard Kurutach, Pieter Abbeel, and Yang Gao. 2021. Mastering atari games with limited data. In Advances in Neural Information Processing Systems 34: Annual
Conference on Neural Information Processing Systems 2021, NeurIPS 2021, virtual, pages 25476–25488.
Thomas Zeng, Shuibai Zhang, Shutong Wu, Christian Classen, Daewon Chae, Ethan Ewer, Minjae Lee, Heeju Kim, Wonjun Kang, Jackson Kunde, Ying Fan, Jungtaek Kim, Hyung Il Koo, Kannan Ramchandran, Dimitris Papailiopoulos, and Kangwook Lee. 2025. Versaprm: Multi-domain process reward model via synthetic reasoning data. CoRR, abs/2502.06737.
Yinqi Zhang, Xintian Han, Haolong Li, Kedi Chen, and Shaohui Lin. 2025. Complete chess games enable LLM become A chess master. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL 2025 - Volume 2: Short Papers, Albuquerque, New Mexico, April 29 - May 4, 2025, pages 1–7. Association for Computational Linguistics.
Andrew Zhao, Yiran Wu, Yang Yue, Tong Wu, Quentin Xu, Yang Yue, Matthieu Lin, Shenzhi Wang, Qingyun Wu, Zilong Zheng, and Gao Huang. 2025. Absolute zero: Reinforced self-play reasoning with zero data. CoRR, abs/2505.03335.
A Grounded MCTS Linearization
To distill search reasoning abilities into the LLM, we linearize the records that the trained SPSD MuZero experts produce. For each decision state, a non-terminal board position with the player to move and the legal actions available in it, the experts export one record. We state the recorded decision, its retained alternatives, and their consequences in natural language. Replay restores the recorded state and follows each retained branch, so every statement in the resulting trace follows from an observed transition. A record stores the serialized environment state s, its legal-action set, the recorded target, the root policy and value outputs, and, for each exported root action, its canonical handle, visit count, export index, action-specific edge value or missing-value marker, and retained branch prefix. Numerical search telemetry selects which evidence to retain and never enters the trace. The record pairs the trace with the action sequence it replays, and only the trace reaches the student, ending with exactly one boxed legal handle.
Replay validation. Restoring in the executable environment recomputes the board, active player, legal actions, and phase-specific fields. A record is retained only when these fields agree with their serialized values and . Failure to replay rejects the record, whereas failure to replay an optional alternative or reply removes only that branch from the trace. For every retained branch, replay records the legal action prefix, the recomputed successor states, and any terminal flag and outcome reached along the prefix.
Branch selection and evidence gates. Each export contains at most eight root-action records. After excluding , the exported legal action with the greatest visit count becomes , with ties broken by export order. The corresponding edge value is
expressed from the current root player’s perspective, where in this corpus, when the child changes player, and otherwise. Values are not rescaled across states or games, and a missing exported value is represented by . If the exported subset contains no other legal action, it sets and and omits the contrast. Target-only detail requires either a numeric or a replayed terminal win. A target-alternative contrast additionally requires a retained alternative and either , with , or a better replayed terminal outcome for the target. Terminal outcomes are ordered win > draw > loss from the root player’s perspective.
Trace modes. Fallback mode states only replay-supported target facts and the required final action. Target-only mode adds detail about the selected action when the detail gate is satisfied, while contrast mode compares it with only when the contrast gate is satisfied. Illegal replies are omitted, and non-terminal prefixes are described without outcome language. Retained facts take a stable surface form across states and games.
B Corpus Materialization
To build supervised rows from the exported records, materialization produces one move-choice family and six state-QA families. Each row is retained only when it passes the executable checks in Table 2.
Record interface and source identity. Each stored row is written as , where contains the state and task prompt, the reference response, and teacher-side reasoning or verifier context hidden from the student input. The selected move, reference answer, search telemetry, and replay context remain in or , never in . The source-state identifier is a SHA-256 digest of a deterministic family-specific representation containing the board, active player, legal actions, and the rule or phase metadata required to reconstruct the state. The same identifier is carried by the move-choice and state-QA families.
Allocation and trajectory generation. Materialization first reserves an equal number of rows for each of the six state tasks, then draws move-choice rows from the remaining decision states. Each game contributes 100 trajectories, each opening with a non-terminal prefix of at most eight moves drawn
Algorithm 1 Grounded MCTS linearization. Replay validates the selected action, any retained alternative, and any bounded reply before emitting a fallback, target-only, or contrast trace ending in exactly one boxed legal handle.
Require: Search record with serialized state , legal set , target , up to eight exported root-action records, replay depth , separation threshold
1: Restore and recompute its state fields and ; reject if any field disagrees with the serialized record or .
2: Replay ; reject on failure, otherwise record its state effect and any observed terminal outcome.
3: if an exported legal alternative exists then
4: Choose with greatest visit count, preserving export order for ties.
5: Replay its retained branch prefix from ; if any action is illegal, set and , otherwise record the recomputed states and any terminal outcome.
6: else
7: Set and .
8: end if
9: Set the detail gate .
10: Set the contrast gate , with the numeric test false when either value is missing.
11: Retain target facts from replay; select contrast mode if , target-only mode if , and fallback mode otherwise.
12: if the target is non-terminal and is true then
13: Follow at most replayed opponent replies on the target branch.
14: Drop the reply walk if any action is illegal; otherwise retain only facts recomputed from the replayed states.
15: end if
16: Attach win, loss, or draw language only when replay reaches the corresponding terminal outcome.
17: Write the selected mode from the recomputed facts, including any retained reply and the commitment to .
18: Append exactly one final line containing .
19: return the trace and replayed action sequence.
| Row family | Reference output | Executable criterion |
|---|---|---|
| Move choice | One boxed legal handle | The recomputed legal set contains the target; every narrated branch replays legally; any outcome statement follows an observed terminal state |
| Occupancy | Piece or empty-cell identity | Board value at the queried coordinate after state restoration |
| Legality | Boolean action status | Membership in the legal-action set recomputed from the restored state |
| Threat count | Integer count | Environment-specific winning threats enumerated from legal successors |
| Legal-action count | Integer count | Cardinality of the recomputed legal-action set |
| Legal-action enumeration | Complete handle set | Exact set equality with the legal-action handles enumerated from the restored state |
| Successor state | Next-state board text | One legal action replayed through the environment transition function |
Table 2: Executable criteria for supervision rows. Each reference output is checked against a restored state or replayed successor. Move-choice rows additionally require legal replay of every narrated branch and terminal evidence for every outcome claim.
uniformly at random from the legal actions of each state, after which the expert controls both seats. Prefix actions provide state diversity and are excluded from the training rows.
Canonicalization and provenance. After every environment operation, legal handles and answer formats are canonicalized. We then order candidate states by a seed-keyed hash of the source identity, move index, and decision-state identity, and assign them to task families and split groups in that order. Move-choice rows are drawn last. RuleBot-Distill draws from rule-bot trajectories, whereas SPSD draws
| Component | Setting | Selected value |
|---|---|---|
| Expert | Family / search procedure | EfficientZero-trained MuZero experts / full-tree search |
| Expert search | Simulations per retained move | 50 |
| State sampling | Opening diversification | Uniformly sampled legal prefix of at most 8 moves (seed 0); prefix actions excluded from training rows |
| State sampling | Expert control | The expert controls both seats after the prefix |
| Move choice | Exported roots / retained alternatives | At most 8 / at most 1 |
| Move choice | Reply depth | |
| Move choice | Root separation | |
| Move choice | Surface content | Legal targets; retained alternatives and replies; replay-observed terminal outcomes |
| Corpus | Source games | Connect4, Domineering, Simplified Othello, Tic-Tac-Chess |
| Corpus | Row-family separation | Move-choice and state-QA rows use disjoint unique decision states |
| State tasks | Balance rule | Equal quotas for occupancy, legality, threat count, legal-action count, legal-action enumeration, and successor state |
Table 3: Expert-data configuration. Search, state-sampling, move-choice, and allocation settings used to materialize the SPSD corpus.
| Stage | Setting | Selected value |
|---|---|---|
| Reasoning-chain SFT | Sequence length / learning rate | |
| Reasoning-chain SFT | Epochs / effective batch | 2 / 128 examples |
| OPSD | Base learning rate / schedule | |
| OPSD | Distillation objective / teacher update | Full-vocabulary forward KL / fixed teacher |
| OPSD | Optimizer / steps / effective batch | AdamW / 1,000 / 16 |
| OPSD | Completion / sequence limit | 1,024 tokens / 20,000 tokens |
| OPSD | Gradient norm / divergence clip | 0.1 / 0.06 |
| OPSD | Distillation weight / rollout sampling | |
| OPSD | LoRA adapter | |
| OPSD | Student / teacher thinking | Disabled / enabled |
| OPSD | Seed | 42 |
| Game benchmark | Prompt / answer contract | Rules, state, side to move, and legal handles; exact boxed-answer format; thinking disabled by default and enabled for the native-thinking row |
| Game benchmark | Sampling / limits / failures | |
| Mathematics | Suites | Pass@1: MATH500, OlympiadBench, Minerva Math; AVG@32: AIME24, AIME25, AMC23 |
| Mathematics | Decoding / stopping | Boxed-answer decoding with constrained continuation;; 8,192-token limit; seed 0; tokenizer EOS and template terminators; unresolved format failures remain incorrect |
| Compute | Hardware | Expert training: 1 H200 GPU |
Table 4: Post-training, decoding, and compute configuration. Selected reasoning-chain SFT and OPSD hyperparameters, fixed game and mathematics decoding contracts, and hardware allocation.
from randomized-prefix self-play. The two sources share the same row interface and keep distinct teacher and decision-state provenance.
C Experimental Configuration
Tables 3–4 report the settings for expert-data generation, language-model post-training, benchmark decoding, and hardware allocation. Replay geometry is evaluated with 50-simulation estimates.
C.1 MuZero-family Expert Training
The language-data teachers are EfficientZero agents, a MuZero-family algorithm, trained by self-play. Table 5 reports the settings that determine the four experts.
The training runs use undiscounted board-game returns (), deterministic argmax evaluation, and no reanalysis. Root noise and temperature affect collection only through the LightZero defaults. Data generation then applies the trained expert's deterministic 50-simulation policy after the randomized opening prefix.
| Game | Setting | Value |
|---|---|---|
| All four | Algorithm / mode | EfficientZero / self-play for both seats |
| All four | Search / batch / updates | 50 simulations per move / batch 256 / 50 learner updates per collection |
| All four | Optimizer / learning rate / seed | Adam / 0.003 constant learning rate / 0 |
| All four | Unroll / reanalyse / replay | 5 steps / ratio 0 / replay capacity 100,000 segments |
| All four | Model | One residual block, 64 channels |
| All four | Environment workers | 8 collectors, 5 evaluators, 5 evaluation episodes |
| All four | Evaluation | Rule-bot action interface; evaluation every 2,000 training iterations |
| Connect4 | Environment steps / segment geometry | 500,000 / LightZero default segment and TD geometry |
| Domineering | Environment steps / scheduler | 500,000 / piecewise-decay scheduler disabled |
| Simplified Othello | Environment steps / segment geometry / collectors | 1,000,000 / segment length 64 and TD horizon 64 / 32 collectors |
| Tic-Tac-Chess | Environment steps / scheduler | 500,000 / piecewise-decay scheduler disabled |
Table 5: EfficientZero expert-training configuration. The four teachers share the common profile unless a game-specific override is shown. The retained data comes from a separate 50-simulation search run from each expert.
C.2 Replay-Geometry Expert Selection
We evaluate the four experts at training steps 50, 100, 200, and 400 on a shared set of scenario indices. Game-macro oracle agreement selects the expert, with game-macro breaking ties. The selected expert defines the replay surface used in Figure 4. Scoreable turns are averaged by episode and episodes with missing are omitted.
D Controlled Variants
The controlled-diversity intervention compares two curricula under the same 1,000-step optimization budget. Each rule family contributes 9 variants that alter local rules while preserving the observation shape, board topology, and action space size. Controlled variants mutate one local factor at a time along the axes listed in Table 6, so that transfer can be attributed to a specific perturbation. This rule-family roster is reported separately from the four-game main corpus in Table 3.
| Parent family | Controlled rule axes |
|---|---|
| 3 6 9 | Scoring thresholds and weights; orthogonal versus diagonal scoring; center or corner locks |
| Connect4 | Exact versus gapped four; legal winning directions; opening restrictions; locked columns |
| Domineering | Player orientations; shared modes; contact and opening constraints; blocked-state outcome |
| First Attack | Forbidden-neighbor geometry; opening locks; normal versus misere last move; move offsets |
| Tic-Tac-Chess | Placement timing; winning-line direction; piece movement; hop or capture behavior; locks |
Table 6: Controlled rule axes. Each row lists the local rule factors varied within one family. Every admitted variant preserves the parent observation shape and legal-handle space.
The model architecture, optimizer, training schedule, prompt contract, and evaluation protocol remain fixed across both curricula. A variant is admitted only when it preserves the parent observation shape and legal-handle space and passes the executable-state checks.
E Game Corpus
The controlled-diversity corpus comprises five base games and 15 held-out games, and the held-out set supplies the main-text evaluation. We selected the games from the Ludii collection (Piette et al., 2020), keeping finite two-player games with compact board states, discrete legal actions, and terminal outcomes that the SPSD game interface can write and check. Each selected game became a language-facing environment with a normalized board form, legal-action enumerator, transition function, terminal predicate, and outcome function. GPT-5.6-sol and Opus 4.8 generated the rule descriptions and the environment code in cooperation, and each model's output was cross-validated against the other's before the game entered the corpus. For each game the generated environment normalizes the rule text, defines the prompt-facing state notation, enumerates legal actions, implements deterministic transition and terminal checks, and verifies that its rollouts match the intended rules. A candidate enters the library only after it passes schema validation, legality checks, invariant rollouts, and smoke training. The five SPSD base games are Connect4, Tic-Tac-Chess, 3 6 9, Domineering, and First Attack.
E.1 Game Cards
Each card shows the prompt-facing rules of one game and a representative board sketch.
369
Shared-stone scoring game over lines of length three, six, and nine.
ACTION shared placement
GOAL higher score

Players share an empty board; stones do not belong to either player after placement.
On each turn, place one shared stone on any empty cell.
The mover scores from non-contiguous occupied lines through the placed cell.
Lines of exactly three, six, or nine occupied cells score one, two, or three points; the higher final score wins.
Variation axes: scoring thresholds and weights, orthogonal versus diagonal scoring, and center or corner locks.
A Simple Game
Orthogonal movement game with a three-in-a-row objective.
ACTION orthogonal steps
GOAL line of three

Each player starts with four stones on alternating cells along the top and bottom edges.
Move one own stone exactly one orthogonal step into an adjacent empty cell.
Diagonal movement is not allowed, and there are no captures.
A player wins immediately after forming a horizontal, vertical, or diagonal line of three stones.
Agapi
Bishop movement followed by a permanent orthogonal blocker shot.
ACTION bishop move + shot
GOAL immobilize

Each player has two bishops on a board.
A turn first moves one bishop diagonally to the farthest reachable empty cell.
From the destination, the mover shoots a permanent blocker orthogonally to the farthest reachable empty cell.
If a player begins their move phase with no legal move-plus-shot option, the other player wins.
All Queens Chess
Queen-slide race to form a line before the board locks.
ACTION queen slides
GOAL line of three

Each player controls three queens on a board.
Choose a queen and slide it orthogonally through empty cells to the farthest reachable square.
The square the queen left becomes a permanent blocker that no queen may enter or cross.
A player wins by forming three queens in a row, column, or diagonal, or by leaving the opponent with no legal slide.
Alquerkonane
Checkers-like forward movement with orthogonal jump captures.
ACTION diagonal moves/jumps
GOAL immobilize

The game starts from a fixed pawn pattern on a board.
A pawn may move one step diagonally forward to an empty square.
A pawn may instead jump orthogonally over an adjacent enemy pawn to the empty square beyond, removing it.
There is no promotion; a player wins by leaving the opponent with no legal move.
Aralzaa
Forward-leap race to occupy the opponent's home row.
ACTION forward leaps
GOAL opponent row

Each player starts with three horse-shaped pieces on their home row.
A piece leaps two squares forward and one square sideways into an empty square.
The forward knight-style leap does not capture; a player with no legal leap passes.
A player wins immediately after occupying all three squares of the opponent's starting row.
Bajr
Directional camp-race game on a compact square board.
ACTION forward steps
GOAL opposite camp

Player 1 starts in the lower-left camp and Player 2 starts in the upper-right camp.
Move one stone one orthogonal step into an empty cell.
Player 1 may move upward or sideways toward the right; Player 2 may move downward or sideways toward the left.
A player wins by occupying all three cells of the opponent's camp, or by leaving the opponent without a legal move.
Chains of Thought
Hex-chain game where legal moves depend on local group sizes.
ACTION place/merge/capture
GOAL largest chain

Players use a radius-one hex board with seven cells.
A turn either places a stone on a legal empty hex or moves one stone to an adjacent empty hex that merges friendly groups.
Placement and movement legality depend on the relative sizes of adjacent friendly and opposing chains.
After every move, smaller adjacent opposing chains can be captured; if no legal move remains, chain-size signatures decide the winner.
Connect 4
Vertical connection game on a grid.
ACTION column drop
GOAL connect four

Players use a vertical grid and Player 1 moves first.
Choose one non-full column and drop a disc into it; gravity sends it to the lowest empty cell.
A move is illegal if the chosen column is already full.
A player wins immediately after connecting four own discs horizontally, vertically, or diagonally.
Variation axes: win patterns including exact or gapped four, legal winning directions, opening restrictions, and locked columns.
Domineering
Asymmetric domino-placement game of move exhaustion.
ACTION domino placement
GOAL last move

Players share an initially empty grid.
The mover places one domino on two adjacent empty squares.
One player may place only horizontal dominoes, while the other may place only vertical dominoes.
A placement may not overlap or extend off the board; the first player with no legal placement loses.
Variation axes: player orientation assignments, shared orientation modes, contact and opening constraints, and blocked-state outcomes such as win, loss, or draw.
Epelle
Adjacent-sliding alignment game where starting rows do not count.
ACTION adjacent slides
GOAL new line of three

Each player begins with three pieces already on opposite rows of a intersection graph.
Move one own piece to an adjacent connected empty intersection.
Starting rows do not count as wins; the line must be created by play.
A player wins by creating a line of three along the board lines.
Feldja
Alignment-and-capture game on a three-ring point graph.
ACTION place/slide/remove
GOAL capture

Each player starts with nine reserve stones on a 24-point three-ring graph.
Place reserve stones on empty points, then slide committed stones to adjacent empty points.
A vacated point closes and cannot be reused; completing a marked line removes one opposing stone.
A player wins by reducing the opponent to two or fewer total stones, or by leaving the opponent with no legal action.
First Attack
Non-attacking placement puzzle played as a last-move contest.
ACTION non-attacking place
GOAL last move

Players share a board and all placed stones are neutral.
Place one shared stone on an empty cell.
A legal cell shares no row, column, or diagonal with any occupied cell.
The player who makes the last legal placement wins.
Variation axes: forbidden-neighbor geometry, opening locks, and normal versus misere last-move outcomes, including orthogonal, diagonal, and knight offsets.
Groups
Connection game where friendly jumps help assemble one group.
ACTION move/jump
GOAL connected group

The game starts from a fixed position with seven Player 1 pieces and six Player 2 pieces.
A piece either steps orthogonally to an adjacent empty square or jumps one friendly piece to the empty square beyond.
Jumps do not capture; the jumped piece remains on the board.
A player wins immediately after at least six own pieces form a single orthogonally connected group.
King's Valley
Sliding-piece race to bring the king into the central throne.
ACTION maximal slides
GOAL king to throne

Each player starts with one king and three guards on a board.
Choose one piece and one orthogonal direction; the piece slides as far as possible through empty cells.
The four central cells form the throne zone.
A player wins when their king lands on a throne-zone cell, or by leaving the opponent with no legal slide.
Moxie
Compact placement, movement, and forced-jump alignment game.
ACTION place/move/jump
GOAL line or capture

Each player starts with four reserve stones on an empty board.
If no capture is available, place a reserve stone or move one stone one orthogonal step.
If an orthogonal jump capture is available, the player must take one; captures do not chain.
A player wins by forming three in a row, reducing the opponent to two or fewer total stones, or immobilizing the opponent.
Othello
Disc-flipping majority game with straight-line outflanks.
ACTION outflank flips
GOAL disc majority

The game uses a board with the standard four-disc center start.
Place a disc on an empty square that outflanks one or more straight lines of opposing discs.
All outflanked discs immediately flip to the mover's color; a player with no legal placement passes.
When the board is full or both players are stuck, the higher disc count wins.
Tapatan
Placement-then-sliding alignment game on a nine-point graph.
ACTION place/slide
GOAL line of three

Each player has three stones on a point graph with diagonals.
First place stones on empty intersections, then slide one stone to an adjacent connected empty intersection.
Lines are checked along the board lines in both phases.
A player wins immediately after forming a line of three.
Tic-Tac-Chess
Tic-tac-toe objective with queen movement after placement.
ACTION place/queen moves
GOAL line of three

Players first alternate placing three queen pieces each on empty cells of a board.
After all six pieces are placed, a queen may slide any distance in a straight line through empty cells.
A queen may also hop over one adjacent enemy piece to the empty cell beyond; hops do not capture.
A player wins immediately after forming a horizontal, vertical, or diagonal line of three pieces.
Variation axes: placement-phase timing, winning-line direction, piece movement, hop or capture behavior, and center or corner locks.
Tic-Tac-Toe
Classic mark-placement alignment game on a grid.
ACTION mark placement
GOAL line of three

Player 1 uses X and moves first; Player 2 uses O.
Place one mark on any empty cell.
A move is legal only if the chosen cell is empty.
A player wins by forming a line of three; a full board without a line is a draw.
F Corpus Statistics
The controlled-diversity pool is separate from the four-game corpus that supplies the main SPSD conditions, and its 15 held-out games never contribute training rows. Figure 5 groups the 45 variants by the rule family they edit, and Table 7 reports the structural range of the 50 environments.

Figure 5: Controlled variant distribution. The 45 controlled variants grouped by edited rule family.
| Statistic | Min | Median | Mean | Max |
|---|---|---|---|---|
| Max game length | 12 | 42 | 50.2 | 81 |
| Action-space size | 7 | 36 | 47.0 | 81 |
| Board cells | 9 | 36 | 40.8 | 81 |
| Board rows | 3 | 6 | 6.0 | 9 |
| Board cols | 3 | 6 | 6.2 | 9 |
Table 7: Diversity-pool statistics. Min, median, mean, and max for the structural properties of the 50 environments.
G Training Hyperparameters
Table 8 reports the settings used to construct controlled game variants, train the ExIt planning experts, build search traces, and post-train the Qwen3-4B SPSD student. The controlled-diversity procedure constructs candidate games and variants for the held-out transfer study, whereas the four EfficientZero experts used to generate the main SPSD corpus are trained under the settings in Sections C and C.1. We keep trace-construction parameters fixed across ablations so that differences come from the source game, downstream training objective, or teacher MCTS budget.
| Component | Hyperparameter | Value |
|---|---|---|
| Variant authoring | Base games | Connect4, Tic-Tac-Chess, 3 6 9, Domineering, First Attack |
| Variant authoring | Variants per base game | 9 |
| Held-out evaluation | Evaluation games | 15 held-out games |
| ExIt-trained planning expert | MCTS simulations per move | 32, 64, 128, 256 |
| ExIt-trained planning expert | Exploration constant | |
| Trace construction | Max retained root alternatives | |
| Trace construction | Max verbalized search depth | |
| Student SPSD | Base model | Qwen3-4B |
| Student SPSD | Sequence length | 4096 tokens |
| Student SPSD | Learning rate | |
| Student SPSD | Epochs | 2 |
| Student SPSD | Effective batch size | 128 examples |
Table 8: Training configuration. The table reports hyperparameters for variant authoring, ExIt planning experts, trace construction, and Qwen3-4B SPSD post-training.
Table 9 records every scientific and optimization choice explored for OPSD. The asterisks identify the configuration used for the main matched experiments, and the daggers identify the configuration that reached the highest mathematics transfer in the search. Hardware topology and inference-server memory allocation are runtime settings and therefore remain outside the selection grid.
G.1 Teacher and Optimization Selection
Table 10 reports the outcome of the search on Qwen3-4B-Base, the condition with the widest training dynamic range. Every run uses the same corpus, prompt contract, decoding, seed, and 1,000-step budget. These runs use a single evaluation configuration that differs from the one behind Table 1, so their absolute values are not directly comparable to the main table. An exponential moving-average teacher outperforms
| Hyperparameter | Search space |
|---|---|
| Student model | {Qwen3-4B-Base*†, Qwen3-8B*, Llama-3.1-8B-Instruct*, Qwen3-30B-A3B-Instruct} |
| Learning rate | |
| Learning-rate schedule | {constant*†, cosine with 0.03 warmup} |
| Generalized-JSD β | {0, 0.10, 0.25 * †, 0.5, 1.0} |
| Teacher update | {fixed*, EMA†} |
| EMA teacher decay | {0.995, 0.996, 0.997, 0.998†, 0.999} |
| Distillation estimator | {full-vocabulary*†, sampled-token reverse KL} |
| Optimizer steps | {400, 1,000 * †, 2,000} |
| Effective batch size | {8, 16 * †, 32} |
| LoRA adapter | {r=64, α=128*, r=128, α=256†, r=256, α=512}, dropout 0 |
| Maximum completion length | 1,024 tokens |
| Maximum sequence length | 20,000 tokens |
| Gradient norm clip | 0.1 |
| Distillation weight λ | 1.0 |
| Per-token divergence clip | 0.06 |
| Rollout sampling | T = 1.1, p = 0.95, k = 20 |
| Student / teacher thinking | disabled / enabled |
| Random seed | 42 |
Table 9: On-policy self-distillation hyperparameter search. The table reports every explored training choice and the settings held fixed. * marks the matched main-experiment configuration and † the configuration with the highest mathematics transfer in Table 10.
| Teacher | Varied factor | Final |
|---|---|---|
| Fixed | 31.9 | |
| Fixed | Cosine schedule | 31.5 |
| Fixed | Forward KL () | 4.0 |
| Fixed | 34.5 | |
| EMA 0.999 | 35.0 | |
| EMA 0.999 | 34.2 | |
| EMA 0.999 | 32.5 | |
| EMA 0.995 | 35.0 | |
| EMA 0.999 | 35.6 | |
| EMA 0.999 | 35.5 | |
| EMA 0.999 | Effective batch 32 | 34.7 |
| EMA 0.999 | 34.5 | |
| EMA 0.996 | 35.7 | |
| EMA 0.997 | 36.2 | |
| EMA 0.997 | 35.4 | |
| EMA 0.998† | 36.6 | |
| EMA 0.997 | 33.2 |
Table 10: Teacher and optimization selection on Qwen3-4B-Base. Mean accuracy over the six mathematics benchmarks at the end of training, for runs that differ from the row above the midrule only in the factor named in the Varied factor column. All EMA rows use and learning rate unless stated.
the fixed teacher used in the main experiments, and its decay follows an inverted U with an optimum at 0.998, which reaches 36.6 against 31.9 for the matched fixed-teacher run. Adapter capacity beyond , larger batches, a weaker divergence anchor, and doubling the step budget all leave that level unreached, and forward KL alone collapses training.
H Prompt Templates
All training conversations follow the same contract. The system message contains the rules, the user message contains the board and the legal actions, and the assistant must end with a boxed legal move. In the replay analysis, that final boxed move is the selected action evaluated by the fresh 50-simulation MuZero MCTS search described in Section 6. Figure 6 shows the field order of the move prompt and the SPSD ASCII board format shared by every game.
Move-prompt template. Each game supplies its own rules, state lines, board text, option handles, and option descriptions within this fixed field order. Line breaks in the figure are typographic. The non-
Game-Playing Prompt Template
Game Rules: {rules_text}
Player to move: Player {current_player} ({X_or_0}).
Current State: {state_lines}
Legend: {legend_lines}
Current Board: {ascii_board}
Legal Options:
- {handle}: {human_description}
Your objective is to choose the legal move that gives you the best game result: win if possible, otherwise draw rather than lose. A legal handle is the exact text after ‘- ’ and before ‘:’ in one Legal Options bullet, or the full bullet text after ‘- ’ when that bullet has no ‘:’. Copy the legal handle verbatim, including leading words such as ‘place’ or ‘column’; do not abbreviate it to only a coordinate or number. Reason briefly, then choose exactly one legal handle from Legal Options. End with that legal handle inside \boxed{}.
Figure 6: Game-playing prompt template. The prompt provides the optional game rules, current state and board representation, and the available legal actions. The model is instructed to reason briefly and return exactly one legal action using its full handle inside a boxed answer.
reasoning contract keeps the same visible fields and replaces the final two lines with “Choose exactly one legal handle from Legal Options. Return only that legal handle inside □.” For state questions we append a task-specific question instead of the move-selection instruction, and Table 11 lists the six question forms and answer types. Figure 7 instantiates the same contract for a single Connect4 position.
I RuleBot-Distill Example
RuleBot-Distill uses a rule-bot-verified target to provide a compact reference completion while keeping the student prompt target-hidden. Figure 8 separates the student-visible board task from the teacher-only rule-bot context and the resulting reference completion.
The prompt alone is supplied at inference. The privileged context builds and verifies the reference completion during teacher-side construction and never enters the student input. This arm uses rule-bot supervision without MCTS search.
J Grounded MCTS Example
Figure 9 shows how a grounded record is presented. The student receives the board task in the visible prompt, while the grounded comparison and replay evidence remain in teacher-only context. The displayed teacher context uses the vocabulary of the trace without exposing raw search telemetry.
Connect4 SPSD Training Example
System: Connect4 is a two-player connection game on a vertical 6x7 grid. Players choose a non-full column, the disc falls to the lowest empty cell, and the first player to connect four horizontally, vertically, or diagonally wins.
User: Let's play Connect4. I'll be Player 2 and you be Player 1.
Description: Gravity matters, central columns support more future lines, and the final answer must be a legal boxed move.
Board:
6 . . . . . . .
5 . . . . . . .
4 . . . . . . .
3 X 0 X . . . .
2 0 X 0 X . . .
1 X 0 X 0 X . .
a b c d e f g
Side to move: Player 1.
Legal actions: column a, column b, column c, column d, column e, column f, column g.
Choose the expert move and finish with \boxed{action}.
Assistant:Column d is the cleanest continuation because the searched alternatives leave weaker replies: column c lets Player 2 answer in d and flatten the central threat, while column e keeps material but does not create an immediate fork. After d, the retained rollout still leaves Player 1 with a horizontal threat on row 1 and a diagonal follow-up if Player 2 blocks only one line. Therefore the move is \boxed{column d}.
Figure 7: Representative Connect4 prompt. The example shows full rules in the system message, the board and legal actions in the user turn, and a move explanation ending with its boxed legal handle.
RuleBot-Distill Connect4 Example
Student-visible prompt
Game: Connect4 on a vertical 6x7 grid. Player 2 (0) moves; a disc falls to the lowest empty cell in its chosen column.
Current board, rows 6 through 1:
6 . . . X . . . 5 . . . 0 . . . 4 . . 0 X . . X
3 . . 0 0 . X X 2 . . 0 0 . X X 1 . . X X . 0 0
Legal actions: column 1, column 2, column 3, column 5, column 6, column 7.
Choose exactly one legal handle and end with the boxed answer.
Teacher-only RuleBot-Distill context
Verified action column 3 resolves to c5 while completing the unique vertical line of at least 4.
Reference completion
The verified action column 3 resolves to c5 while completing the unique vertical line of at least 4.
Final answer: column 3
Figure 8: RuleBot-Distill record. The student receives rules, state, legal handles, and the answer contract but not the selected target. Teacher-only context verifies the target consequence, and the reference completion returns its boxed handle.
Only the prompt is used at inference. The grounded context is available during teacher-side construction and checking, while the student must infer the target from the visible state and legal-action contract.
Grounded MCTS Connect4 Example
Student-visible prompt
Game: Connect4 on a vertical 6x7 grid. Player 2 (0) moves; a disc falls to the lowest empty cell in its chosen column.
Current board, rows 6 through 1:
6 . . . . . . . .
5 . . . . . . . .
4 . . . . . . . .
3 X . . . . . . .
2 0 . . . . . . .
1 X X 0 0 X . .
Legal actions: column 1, column 2, column 3, column 4, column 5, column 6, column 7.
Choose exactly one legal handle and end with the boxed answer.
Teacher-only grounded context
The fresh root comparison retains target column 4 and the most tempting legal alternative, column 7. A bounded replay verifies opponent column 1 as a legal, non-terminal reply after the target, after which the turn returns to Player 2.
Reference completion
Column 4 is preferred to the tempting column 7. The verified opponent reply in column 1 remains non-terminal and returns the turn to Player 2.
Final answer: column 4
Figure 9: Grounded MCTS record. The record shows the student receiving rules, state, legal handles, and the answer contract, while teacher-only context contrasts the target with an alternative through bounded replay. The reference completion ends with the boxed handle, and numerical search telemetry remains hidden.
K SPSD-dataset Task Taxonomy
The six state-question tasks use the same replay-backed answer contract while probing different state facts.
| Task | Question | Verifier-backed evidence | Expected answer |
|---|---|---|---|
| Occupancy | What occupies a named cell? | Replay reads the encoded occupant at the requested coordinate. | Empty, or the encoded player value. |
| Legality | Is a named handle legal in this state? | Membership in the replay-enumerated legal-action list. | Yes or no. |
| Threat count | How many immediate winning actions does the opponent have? | Opponent replies are enumerated and checked for immediate terminal wins. | A nonnegative integer. |
| Legal-action count | How many legal actions does the current player have? | The replay-enumerated legal-action list is counted. | An integer. |
| Legal-action enumeration | List every exact legal handle in displayed order. | The replay-verified legal handles are matched to the displayed list. | A comma-separated list of exact handles. |
| Successor state | After a named action, what occupies a named successor cell? | The action is replayed and the requested successor cell is inspected. | Empty, or the encoded player value. |
Table 11: State-task taxonomy. The table compares six SPSD tasks by question type, replay-computed evidence, and compact expected answer.