Papers › DART-Math: Difficulty-Aware Rejection Tuning for Mathematical Problem-Solving

DART-Math: Difficulty-Aware Rejection Tuning for Mathematical Problem-Solving

18 Jun 2024arXiv:2407.13690archive 2025-07-28

Yuxuan Tong, Xiwen Zhang, Rui Wang, Ruidong Wu, Junxian He

Solving mathematical problems requires advanced reasoning abilities and presents notable challenges for large language models. Previous works usually synthesize data from proprietary models to augment existing datasets, followed by instruction tuning to achieve top-tier results. However, our analysis of these datasets reveals severe biases towards easy queries, with frequent failures to generate any correct response for the most challenging queries. Hypothesizing that difficult queries are crucial to learn complex reasoning, we propose Difficulty-Aware Rejection Tuning (DART), a method that allocates difficult queries more trials during the synthesis phase, enabling more extensive training on difficult samples. Utilizing DART, we have created new datasets for mathematical problem-solving that focus more on difficult queries and are substantially smaller than previous ones. Remarkably, our synthesis process solely relies on a 7B-sized open-weight model, without reliance on the commonly used proprietary GPT-4. We fine-tune various base models on our datasets ranging from 7B to 70B in size, resulting in a series of strong models called DART-MATH. In comprehensive in-domain and out-of-domain evaluation on 6 mathematical benchmarks, DART-MATH outperforms vanilla rejection tuning significantly, being superior or comparable to previous arts, despite using much smaller datasets and no proprietary models. Furthermore, our results position our synthetic datasets as the most effective and cost-efficient publicly available resources for advancing mathematical problem-solving.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.13690")

Code

Syntology Ran 10 of 12 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hkust-nlp/dart-math officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 10 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran
2unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from hkust-nlp/dart-math. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

async_wrap hkust-nlp/dart-math/dart_math/parallel.py official repository ran MIT (permissive) · ace871f6d9931df1 · report
extract_ans_from_math_sol hkust-nlp/dart-math/dart_math/data.py official repository ran fingerprinted MIT (permissive) · f184066eadcee200 · report
extract_level_from_math_dp hkust-nlp/dart-math/dart_math/data.py official repository ran MIT (permissive) · 4abb06623d7c704d · report
get_answer_type_text hkust-nlp/dart-math/dart_math/olympiadbench.py official repository ran MIT (permissive) · bed2810b31296fa1 · report
get_pathname_from_name_or_path hkust-nlp/dart-math/dart_math/utils.py official repository ran fingerprinted MIT (permissive) · f249e05f5c701d28 · report
get_single_answer_type_text hkust-nlp/dart-math/dart_math/olympiadbench.py official repository ran MIT (permissive) · 0047d2388e36a9dd · report
load_json hkust-nlp/dart-math/dart_math/utils.py official repository ran MIT (permissive) · 3c40f841274b3441 · report
load_jsonl hkust-nlp/dart-math/dart_math/utils.py official repository ran MIT (permissive) · fb57a712227893bd · report
make_prompt hkust-nlp/dart-math/dart_math/olympiadbench.py official repository ran MIT (permissive) · e6eeb93f5a059925 · report
seq_consume_preset_queue_w_each_timeout hkust-nlp/dart-math/dart_math/parallel.py official repository ran MIT (permissive) · c2dd672c3bad60d7 · report
get_icl_egs hkust-nlp/dart-math/dart_math/gen.py official repository unverified MIT (permissive) · ecd6408282b087da · report
get_n_shots hkust-nlp/dart-math/dart_math/gen.py official repository unverified MIT (permissive) · ac56cd1c0989eb82 · report

Tasks

Arithmetic ReasoningMathMath Word Problem SolvingMathematical Problem-SolvingNatural Questions

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Arithmetic Reasoning GSM8K DART-Math-Llama3-70B-Uniform (0-shot CoT, w/o code) Accuracy 90.4 #21 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Llama3-70B-Uniform (0-shot CoT, w/o code) Parameters (Billion) 70 #21 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Llama3-70B-Prop2Diff (0-shot CoT, w/o code) Accuracy 89.6 #23 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Llama3-70B-Prop2Diff (0-shot CoT, w/o code) Parameters (Billion) 70 #23 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-DSMath-7B-Uniform (0-shot CoT, w/o code) Accuracy 88.2 #30 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-DSMath-7B-Uniform (0-shot CoT, w/o code) Parameters (Billion) 7 #30 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-DSMath-7B-Prop2Diff (0-shot CoT, w/o code) Accuracy 86.8 #40 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-DSMath-7B-Prop2Diff (0-shot CoT, w/o code) Parameters (Billion) 7 #40 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Mistral-7B-Uniform (0-shot CoT, w/o code) Accuracy 82.6 #57 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Mistral-7B-Uniform (0-shot CoT, w/o code) Parameters (Billion) 7 #57 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Llama3-8B-Uniform (0-shot CoT, w/o code) Accuracy 82.5 #59 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Llama3-8B-Uniform (0-shot CoT, w/o code) Parameters (Billion) 8 #59 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Mistral-7B-Prop2Diff (0-shot CoT, w/o code) Accuracy 81.1 #66 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Mistral-7B-Prop2Diff (0-shot CoT, w/o code) Parameters (Billion) 7 #66 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Llama3-8B-Prop2Diff (0-shot CoT, w/o code) Accuracy 81.1 #67 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K DART-Math-Llama3-8B-Prop2Diff (0-shot CoT, w/o code) Parameters (Billion) 8 #67 of 164 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Llama3-70B-Prop2Diff (0-shot CoT, w/o code) Accuracy 56.1 #35 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Llama3-70B-Prop2Diff (0-shot CoT, w/o code) Parameters (Billions) 70 #35 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Llama3-70B-Uniform (0-shot CoT, w/o code) Accuracy 54.9 #38 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Llama3-70B-Uniform (0-shot CoT, w/o code) Parameters (Billions) 70 #38 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-DSMath-7B-Prop2Diff (0-shot CoT, w/o code) Accuracy 53.6 #40 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-DSMath-7B-Prop2Diff (0-shot CoT, w/o code) Parameters (Billions) 7 #40 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-DSMath-7B-Uniform (0-shot CoT, w/o code) Accuracy 52.9 #42 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-DSMath-7B-Uniform (0-shot CoT, w/o code) Parameters (Billions) 7 #42 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Llama3-8B-Prop2Diff (0-shot CoT, w/o code) Accuracy 46.6 #59 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Llama3-8B-Prop2Diff (0-shot CoT, w/o code) Parameters (Billions) 8 #59 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Mistral-7B-Prop2Diff (0-shot CoT, w/o code) Accuracy 45.5 #62 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Mistral-7B-Prop2Diff (0-shot CoT, w/o code) Parameters (Billions) 7 #62 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Llama3-8B-Uniform (0-shot CoT, w/o code) Accuracy 45.3 #63 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Llama3-8B-Uniform (0-shot CoT, w/o code) Parameters (Billions) 8 #63 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Mistral-7B-Uniform (0-shot CoT, w/o code) Accuracy 43.5 #72 of 135 Archive leaderboard report
Math Word Problem Solving MATH DART-Math-Mistral-7B-Uniform (0-shot CoT, w/o code) Parameters (Billions) 7 #72 of 135 Archive leaderboard report
Natural Questions TheoremQA DART-Math-DSMath-7B-Uniform (0-shot CoT, w/o code) Accuracy 32.5 #4 of 19 Archive leaderboard report
Natural Questions TheoremQA DART-Math-DSMath-7B-Prop2Diff (0-shot CoT, w/o code) Accuracy 32.2 #5 of 19 Archive leaderboard report
Natural Questions TheoremQA DART-Math-Llama3-70B-Prop2Diff (0-shot CoT, w/o code) Accuracy 28.2 #8 of 19 Archive leaderboard report
Natural Questions TheoremQA DART-Math-Llama3-70B-Uniform (0-shot CoT, w/o code) Accuracy 27.4 #9 of 19 Archive leaderboard report
Natural Questions TheoremQA DART-Math-Llama3-8B-Prop2Diff (0-shot CoT, w/o code) Accuracy 19.4 #16 of 19 Archive leaderboard report
Natural Questions TheoremQA DART-Math-Mistral-7B-Prop2Diff (0-shot CoT, w/o code) Accuracy 17.0 #17 of 19 Archive leaderboard report
Natural Questions TheoremQA DART-Math-Mistral-7B-Uniform (0-shot CoT, w/o code) Accuracy 16.4 #18 of 19 Archive leaderboard report
Natural Questions TheoremQA DART-Math-Llama3-8B-Uniform (0-shot CoT, w/o code) Accuracy 15.4 #19 of 19 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBASEBPEDARTDense ConnectionsDropoutFocusGPT-4Label SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections