Diverse Alternative Reasoning Traces for Hard Math Problems
Authors: Lukas Aichberger, Adam Golinski, Arno Blaas, Arwen Bradley, Jacob Springer, Mehrdad Farajtabar, Michael Kirchhof, Sinead Williamson
Organizations: Johannes Kepler University Linz (Work done during an internship at Apple Inc.) · Apple Inc. · Carnegie Mellon University (Work done during an internship at Apple Inc.)
Post-training large language models (LLMs) for mathematical reasoning often relies on accepted traces whose final answers pass a verifier. For hard math problems, however, such traces can be rare under independent Monte Carlo (MC) sampling. To address this, we propose Diverse Alternative Reasoning Traces (DART), a trace-mining method that starts from a rejected trace, decomposes it into reasoning steps, and ranks them by position-weighted uncertainty. It then generates deliberately distinct alternative candidates for highly ranked steps using reference-answer guidance and a meta-thought before completing the resulting traces. On greedy-unsolved DeepMath-103K problems, DART recovers 37% more problems than MC sampling at a matched number of generated traces. Its estimated generation cost per recovered problem is nearly identical, while its cost per accepted trace is 30% lower. Post-training Llama-3.1-8B-Instruct on traces mined by DART achieves the highest point estimate in five of six evaluations across MATH-500 and AIME benchmarks. These results demonstrate that revisiting rejected traces with DART can expand problem coverage and provide effective post-training data.
Figures & tables
Figure 1: DART decomposes a rejected trace into self-contained reasoning steps ( Section 2.1 ), selects a non-final reasoning step based on its position-weighted uncertainty ( Section 2.2 ), proposes a deliberately distinct alternative candidate ( Section 2.3 ), and then greedily decodes a new continuation. This procedure can be repeated for a fixed number of iterations or until a target number of accepted traces is obtained.
Figure 2: Mean rank of the first accepted trace on greedy-unsolved MATH-500 problems with both accepted and rejected completed traces. G-NLL, PPL, MAX: uncertainty; POS: position; LLM: self-reported confidence; RAND: random. Subscript POS denotes position weighting. Lower is better.
Figure 3: MATH-500 problem coverage, including 224 problems solved by greedy decoding (gray). We compare DART and its ablations (blue) against step-level MC sampling with sampled or greedy continuation (dark green or red) and full-trace MC sampling (light green). The full-trace axis reports Greedy ∪ pass@ k . For the ablations, sol denotes reference-answer guidance, while rsn denotes generating a meta-thought to identify promising alternative candidates. Hatching indicates problems recovered by a method but not by full-trace MC sampling with 1,024 traces.
Figure 4: Number of problems recovered by DART and MC sampling at matched numbers of completed traces. All problems are greedy-unsolved. Blue: DART recoveries by the first (dark) and second (light) selected reasoning step; green: recovered by both methods; red: recovered by MC sampling only; red hatching: recovered by DART only. Difficulty strata and MC sampling results are based on the same 512-trace pool, so MC sampling has zero recoveries by construction in the hardest stratum.
Figure 5: Coverage and estimated generation cost on 6,200 shared greedy-unsolved DeepMath-103K problems, using approximately eight completed traces per problem. Blue denotes DART ; red denotes MC sampling. ( 5(a) ) Fraction recovered by at least one accepted trace. Error bars are 95% Wilson intervals. ( 5(b) – 5(d) ) Estimated matrix-multiplication FLOPs per attempted problem, recovered problem, and accepted trace, respectively. Panel ( 5(d) ) counts multiple accepted traces from one problem, without semantic deduplication.
OpenMathInstruct-2 ( Toshniwal et al., 2025 )
DeepMath-103K ( He et al., 2025 )
Method
MATH-500
AIME 22+23
AIME 24+25
MATH-500
AIME 22+23
AIME 24+25
Base
82.23 [82–85]
15.90 [12–20]
16.94 [12–22]
82.23 [82–85]
15.90 [12–20]
16.94 [12–22]
Greedy
87.73 [86–89]
19.61 [15–23]
23.52 [17–30]
87.18 [86–88]
22.60 [17–28]
22.62 [18–28]
MC sampling
87.09 [86–88]
21.66 [17–27]
23.05 [18–28]
87.47 [86–89]
22.88 [18–27]
23.02 [18–27]
STaR
88.12 [87–89]
19.95 [15–25]
26.45 [20–32]
86.92 [86–88]
20.80 [15–25]
22.22 [17–27]
RFT
84.21 [83–85]
14.13 [10–17]
19.07 [15–23]
84.66 [83–86]
23.91 [18–28]
18.85 [13–25]
Table 1: Greedy ∪ pass@32 accuracy (%) after SFT of Llama-3.1-8B-Instruct on traces mined from 16k OpenMathInstruct-2 or 8k DeepMath-103K problems. Base denotes the model before SFT. Each entry is the highest point estimate across evaluated checkpoints; bold and underline mark the two largest per column. Brackets give central 95% ranges over repeated draws of 32 stochastic traces without replacement from the recorded pools, with a separate accepted greedy trace as an override. They exclude training-seed and checkpoint-selection uncertainty.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 6: MATH-500 coverage across sampling strategies. All bars include the 224 greedy-solved problems (gray); completed traces are generated from rejected greedy traces that terminate normally. Labels #1–4 denote alternative candidates per selected reasoning step. Dark green denotes step-level MC sampling with sampled continuation, red denotes step-level MC sampling with greedy continuation, and blue denotes DART and its three ablations with greedy continuation. Light green denotes full-trace MC sampling from scratch; MC sampling uses T=1 . The full-trace axis reports Greedy ∪ pass@ k . Error bars show one standard deviation of stochastic-only coverage under resampling, before including separate greedy-solved problems. Hatched portions mark problems not recovered by full-trace MC sampling with 1,024 traces. The dashed line at 440 marks the number of normally terminated greedy traces.
Figure 7: DeepMath-103K problem counts grouped by assigned AoPS difficulty. Gray denotes greedy-solved problems. The remaining bars compare recovery among greedy-unsolved problems: blue shades denote cumulative DART recoveries across selected reasoning steps, green denotes recovery by both methods, solid red denotes recovery by MC sampling only, and red hatching denotes DART -only recovery at the displayed budget. Rows use one, two, or four selected reasoning steps. Columns use one, two, or four alternative candidates per reasoning step. Annotations next to the dotted line count problems not covered by greedy decoding or DART .
Figure 8: OpenMathInstruct-2 recovery by model-adjusted difficulty. All problems are greedy-unsolved. Rows use one, two, or four selected reasoning steps. Columns use one, two, or four alternative candidates per reasoning step. Blue shades denote cumulative DART recoveries, green denotes recovery by both methods, solid red denotes recovery by MC sampling only, and red hatching denotes DART -only recovery at the matched completed-trace budget. The traces from MC sampling also contribute to the difficulty estimate q(x) .
Figure 9: DeepMath-103K recovery by model-adjusted difficulty, using the same layout, completed-trace budgets, and colors as Figure 8 . All problems are greedy-unsolved. The traces from MC sampling also contribute to q(x) , so zero recovery by MC sampling in the hardest stratum follows from its definition.
Method
Tm
Pm
Zm
Recovered
Accepted
Fm
MC sampling
86.85
145.26
86.73
2,168
3,987
1.380
DART
124.52
158.36
90.81
2,971
7,921
1.917
Appendix
Table 2: Recorded counters and FLOP estimates for the 6,200 shared greedy-unsolved problems. Recovered denotes the number of problems with at least one accepted trace and Accepted denotes the total number of accepted traces. Tm and Zm are in millions, Pm in billions, and Fm ( Equation 5 ) in units of 1018 FLOPs.
Figure 10: Greedy ∪ pass@ k accuracy of Llama-3.1-8B-Instruct after SFT on traces mined from 16k OpenMathInstruct-2 problems. Plot labels pass@ k denote this union metric, and STaR and RFT denote the adapted mining methods in Section 5 . Checkpoints are selected by Greedy ∪ pass@32 on the set named in each panel.
Asset and source
Role and stated license
Llama-3.1-8B-Instruct ( Grattafiori et al., 2024 )
Trace generation and SFT initialization. Llama 3.1 Community License , including its Acceptable Use Policy.
DeepMath-103K ( He et al., 2025 )
Mining problems and reference answers from the training split. Dataset card: MIT.
OpenMathInstruct-2 ( Toshniwal et al., 2025 )
Mining problems and reference answers from train_1M . Dataset card: CC BY 4.0.
MATH-500 ( Lightman et al., 2024 )
Method development and evaluation. The MATH and PRM800K repositories each state MIT.
AIME 2022–2025, Ai2 compilation ( Mathematical Association of America, 2022 )
Evaluation on MAA competition problems. No license stated on the dataset card.
Appendix
Table 3: Principal existing model and data assets. Links identify their upstream repositories and license information; no new license is assigned to these assets.
Post-training is central to mathematical reasoning in modern large language models (LLMs), but endpoint pass@1 alone underidentifies what has changed. Gains may reflect newly reachable solutions, cheaper sampling of latent solutions, surface robustness, or memorisation. We compare three post-training paths under a common diagnostic readout: our sufficiently trained off-policy distillation trajectories, released Qwen3 off-policy-plus-on-policy distillation endpoints, and a released DeepSeek-Math endpoint trained with Group Relative Policy Optimisation (GRPO). Our probe uses cross-surface pass@K over verbatim prompts, paraphrases, numerical isomorphisms, and translations, plus consistency, distribution-shape, and verified supervised-fine-tuning (SFT) membership analyses. We find two regimes. On easier AMC problems, large-K ceilings are near saturation, so post-training mainly compresses sample cost. On harder AIME problems, post-training expands the large-K ceiling over the base model: sufficient off-policy distillation already raises this ceiling, Qwen3 released endpoints raise it further, and DeepSeek-Math GRPO does not dominate sufficient off-policy distillation at large K. English-dominant distillation improves non-English reasoning but preserves language-tier gaps. A controlled-overfit audit finds limited sensitivity in current SFT-membership probes. Compression is one regime of post-training, not a universal explanation.
Hongyang Li, Yiming Zhu, Xiao Li +3
University of Luxembourg · Seafill Open-Source Community · Université Paris-Saclay
Mathematical reasoning benchmarks are vital for evaluating large language models (LLMs), but many are static and repeatedly exposed through public evaluation and training pipelines, making it difficult to separate genuine reasoning from memorization. Meanwhile, manually constructing new math problems with reliable answers remains costly. We introduce ReverseMath, a scalable method for generating new math problems through answer inversion. Given a problem and its answer, ReverseMath masks a numerical value in the original problem, treats the original answer as a known condition, and rewrites the problem so that the masked value becomes the new answer. The generated problem reverses the original input-output relation, making its answer known by construction. We study ReverseMath for both evaluation and training. For evaluation, paired original/reversed problems reveal substantial behavioral shifts: models sometimes fail on reversed problems and even incorrectly output the original answer, suggesting memorization-like behavior. For training, ReverseMath provides automatically labeled reversed problems as data augmentation for reinforcement learning (RL). Experiments show that including ReverseMath-generated data improves mathematical reasoning performance across multiple benchmarks, demonstrating its value as both an analysis tool and a scalable source of verifiable training data.
Raoyuan Zhao, Yihong Liu, Yupei Du +2
Center for Information and Language Processing, LMU Munich · 2Munich Center for Machine Learning (MCML) · 3Saarland University
Large reasoning models (LRMs) have attracted increasing attention for their ability to solve complex mathematical problems by generating extended reasoning chains. In this work, we focus on two critical yet underexplored aspects of the reasoning process: reasoning transitions capturing the distinct transitions between reasoning steps and answer candidates reflecting the variety of solution paths produced by the model. We collectively define these two aspects as thinking schemata. We observe a correlation between the diversity of thinking schemata and model performance, which motivates us to enhance diversity as a means to further improve reasoning potential. To this end, we propose Diverse Schemata Policy Optimization (DiScO), a framework that first endows the model with schemata awareness, then encourages diversity through reinforcement learning, and further promotes diverse reasoning at inference time. Experiments on multiple mathematical reasoning benchmarks demonstrate that DiScO consistently outperforms standard group relative policy optimization. Beyond accuracy, human-annotated analyses show that DiScO substantially improves the model's ability to recover from erroneous initial attempts. Overall, our work suggests the important role that diversity of the thinking schemata plays and points to scaling along the diversity dimension as a promising research direction.
Xinyue Liang, Yizhe Yang, Yu Bai +3
School of Computer Science and Technology, Beijing Institute of Technology, Beijing, China