[KongchangAI]
· 2 min read· 1,102 words

DART: Mining Mathematical Reasoning Data from Rejected Reasoning Traces

DART: Mining Mathematical Reasoning Data from Rejected Reasoning Traces

DART mines alternative paths from rejected mathematical reasoning traces, improving difficult-problem coverage and reducing data costs.

Aiming at the scarcity of valid trajectories in mathematical reasoning post-training, DART mines value from rejected traces. It decomposes failed traces into steps, ranks them by position-weighted uncertainty, generates deliberately different alternative candidates for high-uncertainty steps, and completes full trajectories. On DeepMath-103K, DART recovers 37% more problems than Monte Carlo sampling and cuts the cost per accepted trace by 30%. Post-training Llama-3.1-8B-Instruct with its mined traces yields the highest point estimates on five of six evaluations on MATH-500 and AIME. The method relies on reference-answer guidance.

Training large language models to solve math problems typically relies on "accepted" reasoning traces—paths whose final answers pass the verifier. But for difficult problems, independent Monte Carlo sampling rarely encounters such successful trajectories. A new paper proposes DART (Diverse Alternative Reasoning Traces), which mines value from rejected traces, significantly improving difficult-problem coverage and training effectiveness.

Why Rejected Traces Are Worth Attention

In post-training for mathematical reasoning, the common practice is to keep only trajectories with correct answers. However, for difficult problems, valid trajectories under independent Monte Carlo sampling are extremely rare, and a large amount of computation is wasted. DART's core insight is that rejected traces are not worthless—they contain the intermediate steps the model attempted while solving the problem, and some of these steps may be only locally incorrect and, once corrected, could lead to the correct answer.

According to the paper, DART starts from a rejected trace, decomposes it into multiple reasoning steps, and then ranks the steps by "position-weighted uncertainty." The later a step occurs, the greater the impact of an error in that step on the final answer, so it is given higher weight. This ranking mechanism guides the method to prioritize the links most likely to go wrong.

DART method overview

Monte Carlo sampling in language model reasoning refers to independently and randomly sampling complete reasoning paths multiple times from the model policy (for example, starting from the same problem and performing multiple independent decodes according to a temperature parameter). For math problems, only paths whose final answers pass the verifier are considered "valid," so the probability of a valid trajectory appearing equals the probability that the model succeeds on a single sample for that problem. When the problem is difficult, this probability is extremely low, and sampling a large number of trajectories under a fixed budget may still yield nothing. This "all-or-nothing" sampling approach leads to wasted computation, which is also the motivation for DART to turn to reusing rejected traces.

How DART Generates Alternative Traces

For high-ranking (i.e., high-uncertainty) steps, DART generates deliberately different alternative candidates. "Deliberately different" means using the reference answer as guidance and introducing a "meta-thought" to ensure that the newly generated step differs substantially from the original erroneous path, rather than simply retrying. The method then completes the reasoning after these alternative steps to form a complete trajectory.

This strategy is fundamentally different from Monte Carlo sampling: sampling is random retrying, whereas DART explores in a targeted way at key points of divergence. This enables it to find acceptable solutions more efficiently under the same number of generated traces.

Position-weighted uncertainty is the core mechanism by which DART ranks steps. The intuition comes from error propagation: the later a step in a reasoning chain goes wrong, the closer it is to the final answer, and the greater its impact on answer correctness; while an error in an earlier step may be partially compensated by subsequent correct reasoning. Therefore, DART assigns weights according to the position of a step in the trajectory, gives higher ranking scores to the uncertainty of later steps, and prioritizes generating alternative candidates at these links. This concentrates the limited generation budget on the steps most likely to determine success or failure, rather than uniformly retrying the entire trajectory.

Experimental Results: Coverage and Cost Advantages

The paper conducted experiments on the DeepMath-103K dataset, focusing on problems that greedy decoding failed to solve. The results show that, under the condition of matching the number of generated traces, DART recovered 37% more problems than Monte Carlo sampling. More importantly—and perhaps easy to overlook—the cost-effectiveness: the estimated generation cost per recovered problem is almost the same, while the cost per accepted trace is reduced by 30%.

This means DART not only expands problem coverage but also improves the cost-effectiveness of data production. For post-training pipelines that require large amounts of high-quality mathematical reasoning data, this efficiency improvement is of practical significance.

Post-Training Validation: Improvements to Llama-3.1-8B-Instruct

To verify whether the mined traces are actually useful, the research team used traces mined by DART to post-train Llama-3.1-8B-Instruct. Across six evaluations on the MATH-500 and AIME benchmarks, the model achieved the highest point estimate on five of them. This result shows that alternative reasoning paths derived from rejected trajectories can provide effective training signals and help the model learn more robust problem-solving strategies.

Llama-3.1-8B-Instruct is an instruction-tuned open-source model released by Meta, with about 8 billion parameters. It supports multi-turn dialogue and instruction following and is often used as a base for post-training research. MATH-500 is a test set of 500 competition-style math problems drawn from the MATH dataset, covering algebra, geometry, number theory, etc., and is used to measure model accuracy in mathematical reasoning; AIME is the American Invitational Mathematics Examination, whose problems are more difficult and which is often used as a challenging benchmark for evaluating the mathematical capabilities of large models. Combining the two allows assessment of both in-distribution and challenging out-of-distribution performance, which is why the paper chose them to validate the post-training value of DART traces.

Implications and Limitations

The value of DART lies in re-examining how "failure data" is utilized. In traditional pipelines, rejected traces are often discarded, whereas DART, through step decomposition and uncertainty ranking, converts them into usable training resources. This method is expected to alleviate the scarcity of data for difficult problems.

Of course, the method relies on reference answers to guide alternative generation, so its applicability is limited in scenarios lacking reference answers. In addition, the experiments in the paper are mainly concentrated in the mathematical domain, and whether the method can be generalized to other reasoning tasks still requires further validation.

Overall, DART provides a new idea for post-training data mining in mathematical reasoning: rather than repeatedly sampling and waiting for success, it is better to systematically mine alternative paths from failures.

One-line Summary

DART mines alternative paths from rejected mathematical reasoning traces, improving difficult-problem coverage and reducing data costs.

Paragraph Summary

Aiming at the scarcity of valid trajectories in post-training for mathematical reasoning, the DART method proposes mining value from rejected traces. It decomposes failed traces into steps, ranks them by position-weighted uncertainty, generates deliberately different alternative candidates for high-uncertainty steps, and completes them into full trajectories. On DeepMath-103K, DART recovered 37% more problems than Monte Carlo sampling and reduced the cost per accepted trace by 30%. Post-training Llama-3.1-8B-Instruct with the traces it mined achieved the highest point estimates on five of six evaluations on MATH-500 and AIME. The method relies on reference-answer guidance, so its applicability is limited in scenarios without reference answers.

#DART#mathematical reasoning#rejected reasoning traces#Monte Carlo sampling#position-weighted uncertainty#DeepMath-103K#Llama-3.1-8B-Instruct#post-training#MATH-500#AIME
Share:

Related articles