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:
- 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). - 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).
- 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.
- 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@32accuracy 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