◇ Mathematical Data ⌁ Error Detection ▦ Benchmark & Diagnostics

Can a model verify the math it learns from?

MathDebugger.

A Benchmark for Type-Aware Error Detection in Synthetic Math Data

A diagnostic benchmark that tests whether language models can detect and classify errors in both mathematical questions and their answers—not merely solve them.

Hao Liang* · Meiyi Qiang* · Yuying Li* · Zefeng He · Xiaochen Ma · Ruichuan An
Yongzhen Guo · Zhengzhou Zhu · Bin Cui · Wentao Zhang
Peking University · Tsinghua University · Nanjing University · HKUST · Ant Group * Equal contribution · Corresponding author
4,000Questions2k correct · 2k erroneous
2,000Answers610 annotated errors
7Error types4 question · 3 answer
17Evaluators14 LLMs · 3 PRMs
01

Overview

Synthetic math data can scale model training, but a plausible-looking sample may still contain a broken premise, a missing condition, or a subtle reasoning error.

MathDebugger turns this data-quality problem into four controlled evaluation tasks, spanning both detection and fine-grained diagnosis.

  • Question verification. Decide whether a mathematical problem is internally valid.
  • Question diagnosis. Identify contradictions, missing conditions, unrealistic premises, or expression errors.
  • Answer verification. Check the entire solution trace rather than only the final answer.
  • Answer diagnosis. Distinguish logic, computation, and expression errors.
Overview of the MathDebugger question and answer evaluation pipeline
Question-side and answer-side verification, paired with type-aware diagnosis.
02

Four Tasks, One Diagnostic View

The benchmark separates “is it wrong?” from “what went wrong?” so model capability can be measured at two levels of granularity.

Q✓
Binary classification

Question Error Detection

Verify whether the problem statement admits a coherent, mathematically valid solution.

Q≠
4-way classification

Question Error Type

Classify the earliest invalidating issue across four question-side error types.

A✓
Binary classification

Answer Error Detection

Check a complete reasoning trace and determine whether the proposed answer is correct.

A≠
3-way classification

Answer Error Type

Locate whether the failure is logical, computational, or in mathematical expression.

03

Dataset at a Glance

Two difficulty tiers preserve the character of their seed domains: SIMPLE items are GSM8K-seeded and CHALLENGING items are MATH-seeded.

Distribution of the MathDebugger question dataset
Question dataset: balanced correctness and four balanced error classes.
Distribution of the MathDebugger answer dataset
Answer dataset: naturally imbalanced answer errors across three classes.
30 + 10STEM annotators + reviewers
Dual reviewIndependent labels and expert adjudication
0.69–0.91Per-type Fleiss’ κ agreement
Earliest errorA consistent single-label policy
04

Explore the Benchmark

Switch between a question-side failure and an answer-side reasoning trace.

SIMPLEUnrealistic

Jennifer purchased 40 cans of milk…

Jennifer bought 7.5 additional cans for every 5 cans Mark bought. If Mark purchased 50 cans, how many cans did Jennifer bring home?

Why it failsThe item treats fractional cans as ordinary countable objects. The arithmetic is executable, but the premise violates the discrete nature of the quantity.
05

Error Taxonomy

Question-side4 types
Contradictions

Conditions cannot hold simultaneously.

Lack of conditions

Required information is absent.

Unrealistic

The premise violates real-world constraints.

Expression error

Language or notation makes the task invalid.

Answer-side3 types
Logic error

An invalid inference or mathematical method.

Computing error

A numerical or symbolic calculation failure.

Expression error

An unclear or malformed mathematical expression.

Each annotation includes a written justification and is independently reviewed.
06

Experimental Results

Even frontier systems remain far from saturation, especially on fine-grained error-type classification. Values below are accuracy on the SIMPLE split.

Closed-source Open-sourcex-axis: Accuracy (%)
55%

Best answer-type Macro-F1 remains near 55, revealing substantial headroom in fine-grained diagnosis.

↑ size

Qwen2.5 question-type Macro-F1 rises monotonically from 1.5B to 72B.

≠ solve

Math-tuned and long-reasoning models do not consistently outperform general-purpose siblings on verification.

07

From Diagnosis to Correction

Error labels are useful supervision, not merely diagnostic metadata.

Providing the ground-truth error type consistently improves correction accuracy for both DeepSeek-R1 and GPT-4o. The largest gains occur on structurally ambiguous errors such as missing or contradictory conditions.

Takeaway. Knowing what kind of failure to look for helps a model revise the data more reliably.

Largest correction gainspercentage points
Missing conditions · GPT-4o+4.7
Missing conditions · DeepSeek-R1+3.5
Contradictions · GPT-4o+2.1
Computing errors · both+1.8
Largest gains confirmed by paired bootstrap, p < 0.01.
09

Paper & Citation

arXiv preprint

MathDebugger: A Benchmark for Type-Aware Error Detection in Synthetic Math Data

Hao Liang, Meiyi Qiang, Yuying Li, Zefeng He, Xiaochen Ma, Ruichuan An, Yongzhen Guo, Zhengzhou Zhu, Bin Cui, and Wentao Zhang.

Read the paper ↗
“ BibTeX
@article{liang2025mathdebugger,
  title   = {MathDebugger: A Benchmark for Type-Aware
             Error Detection in Synthetic Math Data},
  author  = {Liang, Hao and Qiang, Meiyi and Li, Yuying
             and He, Zefeng and Ma, Xiaochen and An, Ruichuan
             and Guo, Yongzhen and Zhu, Zhengzhou and Cui, Bin
             and Zhang, Wentao},
  journal = {arXiv preprint arXiv:2502.19058},
  year    = {2025}
}