← Latest papers
💬 NLP

MathDebugger: Detecting and Diagnosing Errors in Synthetic Mathematical Data

This paper introduces MathDebugger, a comprehensive benchmark comprising 6,000 manually verified mathematical instances with fine-grained error annotations, to evaluate and reveal the limitations of current large language models in detecting and diagnosing errors in synthetic mathematical data while demonstrating the value of explicit error-type information for improving data quality.

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

Published 2026-08-06
📖 5 min read🧠 Deep dive

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

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a super-smart robot how to solve math problems. You don't have enough real homework for it to practice on, so you ask a computer program to invent thousands of new math questions and answers for it to study. This is called "synthetic data." It's like a chef creating a massive library of recipes to train a new cook. But here's the catch: the computer making the recipes might accidentally write a dish that requires "half an egg" or a math problem where the numbers don't add up. If the robot learns from these broken recipes, it will learn to be wrong.

For a long time, scientists have built tests to see if robots can solve math problems. But this paper asks a different, harder question: Can the robot spot the mistakes in the recipes before it even tries to cook them? Can it look at a question and say, "Wait, this problem is impossible," or look at an answer and say, "You calculated that wrong"? This is the difference between being a student who gets an A on a test and being a teacher who can grade the test and find the errors in the questions themselves.


The Math Detective's New Playground

Meet MathDebugger, a new playground built by researchers to test if our smartest AI robots can act as math detectives. Think of it as a giant "spot the difference" game, but instead of finding the extra dot in a picture, the AI has to find broken logic, missing information, or silly mistakes in math problems and their solutions.

The researchers built a massive dataset containing 6,000 items in total. They created 2,000 perfect math questions, 2,000 broken questions, and 2,000 annotated answers (where about 610 of them had mistakes). They didn't just make them broken; they made them broken in specific, tricky ways.

For the questions, they invented four types of traps:

  1. Expression Errors: The sentence is a mess, like a recipe written in gibberish or with confusing grammar.
  2. Lack of Conditions: The question asks for a solution but forgets to give a crucial number, like asking "How long is the trip?" without saying how fast you are driving.
  3. Contradictions: The question gives two rules that fight each other, like saying "The box is empty" and "The box is full" in the same breath.
  4. Unrealistic: The answer defies common sense, like a math problem where a person skips 1.5 times (you can't skip half a time in real life!).

For the answers, they created three types of errors: Logic (the reasoning steps are wrong), Computing (the math calculation is wrong), and Expression (the explanation is messy).

The Great AI Showdown

The researchers then invited 14 of the world's smartest AI models to play this game. This included famous closed-source giants (like GPT-o3 and Claude-3.5) and powerful open-source models (like LLaMA and Qwen). They also tested three specialized "Process Reward Models," which are AIs trained specifically to check the steps of a solution.

Here is the big surprise: Even the smartest robots are still terrible at this.

Despite being able to solve incredibly hard math problems, these AIs struggled to detect when a problem was broken.

  • On the "Question Detection" task (finding broken questions), the best models only got about 76% right on easy questions and 78% on hard ones.
  • On the "Answer Detection" task, they did a bit better, but when it came to identifying exactly what kind of mistake was made (the "Error-Type Classification"), the scores dropped significantly. The best model only got about 55% right on the hardest category.

The paper suggests that there is a "Solving-vs-Verifying Gap." It seems that AIs are great at doing the math (solving) but are surprisingly bad at checking the math (verifying). It's like a student who can ace a calculus exam but fails to notice that the teacher wrote the wrong formula on the board. Interestingly, the models specifically tuned for "reasoning" (like DeepSeek-R1) didn't necessarily do better at spotting errors than their general-purpose cousins; in fact, sometimes they did worse.

Why This Matters (and How to Fix It)

The researchers didn't just stop at saying "AI is bad at this." They asked: "What if we tell the AI what kind of mistake to look for?"

They tested a new strategy: giving the AI a hint about the error type before asking it to fix the problem. For example, telling the AI, "This question has a 'Contradiction' error," and then asking it to rewrite the question.

  • The results were a clear win. When the AI knew the error type, its ability to fix the problem improved significantly.
  • For "Lack of Conditions" errors, the improvement was nearly 5 percentage points, a statistically significant jump.
  • This proves that these error labels aren't just for grading; they are like a flashlight that helps the AI see exactly where to shine its correction efforts.

The Bottom Line

MathDebugger is the first tool that treats math data like a crime scene, looking for specific types of "crimes" (errors) rather than just asking "Is this right or wrong?" The paper shows that while our current AI models are incredibly powerful, they are not yet perfect editors. They can solve the puzzle, but they often miss the fact that the puzzle pieces don't fit together in the first place.

The researchers conclude that we need to keep building better tools to audit our training data. If we want AI to be truly reliable, it needs to learn not just how to solve math, but how to be a critical, type-aware detective that spots the broken questions before they ever reach a student's desk.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →