DAPO-Math-17k-Clean / README.md
JefferyChen453's picture
Remove orig_row 11972: a copy of orig_row 12169 (reference 660) that deduplication missed (15,123 rows)
b619af7 verified
|
Raw History Blame Contribute Delete
9.07 kB
metadata
license: apache-2.0
task_categories:
  - question-answering
  - text-generation
language:
  - en
  - zh
tags:
  - math
  - reasoning
  - reinforcement-learning
  - rlvr
  - decontamination
pretty_name: DAPO-Math-17k Clean
size_categories:
  - 10K<n<100K
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train.parquet

DAPO-Math-17k Clean

A cleaned version of DAPO-Math-17k for math RL (RLVR / on-policy distillation). Each row is a problem with one gradable reference answer, in verl parquet format.

Cleaning started from the 17,917-row processed copy of DAPO-Math-17k released with thunlp/OPD. It:

  • checked the reference answers that strong models disagree with, then corrected or removed the wrong ones;
  • removed broken, ambiguous, figure-dependent and multi-question statements found during verification;
  • removed every problem that is the same problem as one in seven evaluation sets: AIME 2024, AIME 2025, AIME 2026, HMMT Feb 2025, HMMT Feb 2026, AMC 2023 (math-ai/amc23, 40 problems) and OlympiadBench (674 English open-ended problems);
  • removed duplicates, keeping one copy of each problem.

"The same problem" means identical in meaning. It may differ in wording, formatting, punctuation or language, or ask for a transformed form of the same answer (for example m+n of a fraction m/n). Variants derived from the same source with changed numbers or conditions are kept. That includes variants of evaluation problems.

rows
Source rows 17,917
Kept 15,123
— of which with a corrected answer 422
Removed 2,794

Revisions of 2026-11-30: three more problems (four rows) were removed because a correct answer cannot be graded against their reference answer as one exact value. All of them were in the unflagged group (all 4 first-vote samples matched the reference), which was accepted on a spot check.

  • orig_row 12078: the derivatives $f^{(k)}(0)$ of a function with $f(1/n)=n^2/(n^2+1)$. The reference answer 0 holds only for odd $k$; for even $k$ the value is $(-1)^{k/2}k!$.
  • orig_row 12169 and 11972: positive integers $n$ and $a_1, \ldots, a_n$ with sum 1979 and the largest product. The reference answer 660 gives only $n$; a complete answer also gives the $a_i$ (659 threes and one 2). The two rows are the same problem written with \cdots and with …, a duplicate that the deduplication missed.
  • orig_row 16710: the best estimate of the hours needed to fly once around the equator. The exact value is $2\pi \cdot 4000/500 \approx 50.3$, so an answer stated as an approximation (for example $\approx 50$) is correct but does not match the reference 50 exactly.

Schema

The columns are the same as in the source file:

  • prompt: chat messages, [{"role": "user", "content": <problem>}]. The content is the bare problem statement. The trailing answer-format instruction from the thunlp/OPD release has been stripped, so append your own (for example "Please reason step by step, and put your final answer within \boxed{}.").
  • reward_model: {"ground_truth": <answer>, "style": "rule-lighteval/MATH_v2"}.
  • data_source: dapo_math_17k_clean.
  • ability: MATH.
  • extra_info: the source fields (index, problem, solution), plus
    • upid: id of the unique problem text,
    • orig_row: row index in the source file,
    • gold_old: the source answer,
    • clean_status: keep or fix,
    • clean_reason: why the row was kept, or how its answer was confirmed.

How it was cleaned

  1. Exact duplicates. Rows with an identical problem string were merged, going from 17,917 rows to 17,255 problems. For the 12 problems whose copies carried different answers, the verified answer was used.

  2. First vote. Qwen3-30B-A3B-Thinking-2507 sampled 4 answers per problem. A problem was flagged if any of these held (1,506 problems in total):

    • no sample matched the reference;
    • the majority answer differed from the reference;
    • near-duplicate problems carried different answers;
    • the problem had several answers.
  3. Verification. Claude agents checked each flagged problem in three roles:

    • a solver worked out the problem independently, using executable checks (exhaustive search with a justified bound, exact arithmetic, sympy, coordinates);
    • a second verifier tried to refute the solver's result;
    • an adjudicator settled any disagreement.

    The verdicts are: answer correct, answer wrong (corrected), notation problem (rewritten), ambiguous, broken statement, or undecidable. Problems with one of the last three verdicts are removed. Every correction was also checked by a blind verifier that saw only the statement and the original answer. A correction was applied only if the blind verifier reached the same answer; otherwise the problem was removed.

  4. Unflagged problems. These are problems where the 30B model matched the reference in all 4 samples. A random sample was verified the same way: 233 of 235 were clean, with no wrong answers. The group was accepted.

  5. Second vote and verification with a stronger model. Qwen3.5-122B-A10B voted again on 2,290 problems; 11 of them were voted by Qwen3.5-397B-A17B instead. The 2,290 were:

    • unverified problems where the 30B model matched the reference in only 1–3 of 4 samples;
    • every corrected answer;
    • every confirmed answer that the 30B model had disputed.

    Problems the stronger model disputed were verified again, without the verifier seeing the earlier verdict. A sample of the problems it agreed with was spot-checked, and 99 of 100 were clean. Of the 427 first-round corrections, 425 were supported by a second independent source. That source was either the stronger model's vote, or a re-verification that reached the same answer without seeing the earlier one.

  6. Decontamination against the seven evaluation sets.

    • Candidate pairs came from Qwen3-Embedding-4B nearest neighbours in both directions, 8-character shingle and number-sequence matches, and pairs found related in earlier rounds. That gave 126,560 pairs for the 867 evaluation problems.

    • Qwen3.5-397B-A17B scored every pair as same problem, variant or different.

    • Claude agents judged the pairs above a low threshold, plus pairs whose answers coincide and whose problems are near neighbours. Each of these pairs had an independent re-check. 9,051 pairs were judged in all.

    • A training problem is removed when either judge calls it the same problem as an evaluation problem, or when the two texts differ only in formatting (whitespace, math delimiters, \left/\right, CJK vs ASCII punctuation). 229 training problems were related to an evaluation problem. 160 of them are the same problem and were removed. 69 are variants and were kept; 56 of those passed verification and deduplication.

      Evaluation set Removed (same problem) Kept variants (in the final data)
      OlympiadBench 115 47
      AMC 2023 44 3
      AIME 2024 / 2025 / 2026 0 / 0 / 1 2 / 1 / 2
      HMMT Feb 2025 / 2026 0 / 0 1 / 0
  7. Duplicates, same problem only.

    • Texts that differ only in formatting were merged across the whole set. Commas, decimal points, brackets, ! and letter case are not ignored, so the merge cannot join different problems.
    • Candidate pairs came from two sources: problems with an 8-gram Jaccard of at least 0.8 and the same multiset of numbers, and texts that become equal once all punctuation and case are dropped. 912 such pairs were judged: 908 were the same problem and were merged, and 4 were variants or different problems and were kept.
    • One problem per group was kept.

Final checks:

  • No kept problem is the same problem as an evaluation problem.
  • No kept problem differs from an evaluation text only in formatting.
  • No two kept problems differ only in formatting.
  • Every reference answer grades as correct against itself with a math_verify-based grader.

Limitations

  • All verification was done by models (Qwen models and Claude agents). Nobody reviewed the results by hand.
  • Problems that were never verified individually were accepted on spot checks, so a small share of flawed statements remains (about 1% in the samples).
  • Only the seven evaluation sets above were decontaminated, and only the same problem was removed. Variants of evaluation problems (56) are intentionally kept. Other benchmarks may overlap; MATH-500, for example, is not covered.
  • Ambiguous cases follow one convention: for example, "the sum of all elements in the solutions" is computed over ordered solutions.

Source and license

Derived from BytedTsinghua-SIA/DAPO-Math-17k (Apache-2.0), via the processed copy in thunlp/OPD. Released under Apache-2.0. An earlier revision of this repository (15,074 rows) also removed variants.