Diverse Alternative Reasoning Traces for Hard Math Problems

Lukas Aichberger, Adam Golinski, Arno Blaas, Arwen Bradley, Jacob Springer, Mehrdad Farajtabar, Michael Kirchhof, Sinead WilliamsonarXiv 2026

TL;DR

When teaching large language models (LLMs) to solve hard math problems, standard trial-and-error sampling often hits a wall—generating dozens of failed attempts that repeat the same mistakes and leave zero valid training data behind. DART (Diverse Alternative Reasoning Traces) fixes this by dissecting failed attempts, pinpointing the exact early steps where the model felt shaky, and prompting it to deliberately pivot to a fresh strategy. The result is a massive boost in solved problems and rich, diverse training data at a 30% lower compute cost per valid solution.

What Problem Does This Paper Address?

To make LLMs better at math, we typically rely on post-training with self-generated "reasoning traces" (step-by-step chains of thought). Because human-written proofs are scarce at scale, researchers ask the model to try a problem multiple times using nonzero temperature—a process called Monte Carlo (MC) sampling—and check the final answers against a known solution key. Good traces are kept for training; bad ones are tossed.

Here is the catch: on genuinely hard problems, a model's chance of stumbling onto a valid proof might be tiny. Independent MC sampling starts from scratch every single time without learning from previous failures. It tends to fall into the same conceptual ruts, leaving hard problems completely uncovered in the resulting training dataset. If a model never solves a hard problem during data collection, it never gets the training signal needed to learn how to solve it.

Methods

Instead of throwing failed traces in the bin and starting over, DART performs targeted surgery on them. If an initial greedy (zero-temperature) attempt fails, DART steps in with a three-stage pipeline:

Figure 1: DART decomposes a rejected trace into self-contained reasoning steps (§2.1), selects a non-final reasoning step based on its position-weighted uncertainty (§2.2), proposes a deliberately distinct alternative candidate (§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.
  1. Reasoning Step Decomposition: Rather than relying on brittle rules like line breaks, the LLM itself inserts [STEP] boundaries between sentences while the failed trace is teacher-forced (meaning the model reads the existing text without rewriting it, adding minimal compute overhead).
  2. Uncertainty-Based Step Selection: DART doesn't branch everywhere. It ranks steps using position-weighted greedy negative log-likelihood ($\text{G-NLL}_{\text{POS}}$). Essentially, it looks for steps that are both high in uncertainty (the model's token probabilities were low) and early in the trace (where a course correction can actually redirect the rest of the proof).
  3. Diversity Sampling: At a chosen step, DART keeps the prefix, throws away everything after, and prompts the model to write a fundamentally different next step. Crucially, during this proposal phase, the prompt shows the model the original failed step (to avoid repeating it), peeks at the reference answer (with strict instructions not to reveal it), and asks for a brief "meta-thought" planning a new angle. Once this single alternative step is written, the meta-thought and reference answer are hidden, and the model greedily completes the rest of the math problem on its own.

Datasets

No new benchmarks are introduced; instead, the authors use established math datasets for different stages of their pipeline:

  • Method Development & Ablations: MATH-500 is used to test step-selection rules and prompt components.
  • Trace Mining & SFT Training: DeepMath-103K and OpenMathInstruct-2 serve as the pools of hard problems from which DART and baseline methods mine training corpora.
  • Downstream Evaluation: Fine-tuned models (Llama-3.1-8B-Instruct) are tested on MATH-500 and competition-level AIME problems (split into AIME 22+23 and AIME 24+25).

Key Insights and Ideas

  • Early uncertainty is a compass for course correction: Revisiting steps randomly takes nearly seven tries on average to find a winning trace on solvable problems; targeting early, uncertain steps with $\text{G-NLL}_{\text{POS}}$ cuts that down by ~40% to under four tries.
  • Contrastive prompting works—even without peeking at the answer: While giving the model a peek at the reference answer during the step-proposal phase maximizes recovery, ablations show that removing the reference answer still beats standard step-level MC sampling. Simply showing the model its old step and asking for a qualitatively different angle forces useful exploration.
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 gen- erating a meta-thought to identify promising alter- native candidates. Hatching indicates problems recovered by a method but not by full-trace MC sampling with 1,024 traces.
  • Smart branching pays for its own compute: DART processes more prompt tokens per attempt due to its diversity prompts and meta-thoughts, but because it reuses cached prefixes and succeeds so much more often, its compute efficiency per accepted trace easily beats brute-force sampling.

Key Results

  • Higher Problem Coverage: On 6,200 greedy-unsolved DeepMath-103K problems (at a budget of 8 traces per problem), DART recovers 48% of problems compared to 35% for MC sampling—a 37% relative increase, reaching up to $2\times$ coverage on the hardest difficulty strata. On MATH-500, DART even solves problems that 1,024-sample full-trace MC completely misses.
  • Compute Efficiency: While DART uses 39% more matrix-multiplication FLOPs per attempted problem, its cost per recovered problem is virtually identical to MC sampling ($0.65$ vs. $0.64 \times 10^{15}$ FLOPs), and its cost per accepted trace is 30% lower because it yields nearly twice as many valid solutions.
  • Better Post-Training: Supervised fine-tuning (SFT) on DART-mined traces achieves the highest Greedy ∪ pass@32 accuracy in 5 out of 6 benchmark evaluations, beating MC sampling by up to 5 percentage points (e.g., hitting 28.12% vs. 23.05% on AIME 24+25 after OpenMathInstruct-2 training) and outperforming reference-guided baselines like STaR and RFT.

Limitations and Future Work

  • Training-time vs. Test-time: Full DART relies on reference answers to guide alternative steps, making it a data-mining tool for post-training rather than a standalone test-time solver (though reference-free variants show promise).
  • Outcome-Only Verification: Like most math pipelines, DART checks only whether the final boxed answer is right; a trace could still sneak through with flawed intermediate logic.
  • Scope and Next Steps: Experiments focused on a single 8B model (Llama-3.1-8B-Instruct), mathematical reasoning, and a single SFT seed. Future work could scale DART to other model sizes and domains, use smaller models to handle step decomposition even more cheaply, and apply DART adaptively online during reinforcement learning as the model's weak spots shift.

Summary updated

Abstract

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.
BibTeX
@misc{aichberger2026diverse,
  author = {Lukas Aichberger and Adam Golinski and Arno Blaas and Arwen Bradley and Jacob Springer and Mehrdad Farajtabar and Michael Kirchhof and Sinead Williamson},
  title = {{Diverse Alternative Reasoning Traces for Hard Math Problems}},
  year = {2026},
  eprint = {2611.34928},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34928},
}
Figure