TL;DR
Large Language Models (LLMs) are increasingly used for mathematical reasoning, but synthetic training data can introduce subtle errors. This paper introduces MathClean, a new benchmark designed to rigorously evaluate LLMs' ability to detect and categorize errors in synthetic mathematical questions and answers. Even state-of-the-art models struggle with MathClean, highlighting its importance for improving LLM robustness in mathematical tasks.
What Problem Does This Paper Address?
The rapid advancement of LLMs has highlighted the critical role of high-quality training data. While mathematical data is crucial for developing strong reasoning abilities in LLMs, collecting enough high-quality, real-world mathematical problems is challenging. This often leads to the generation of synthetic data. However, synthetic mathematical questions and answers can inadvertently contain inaccuracies, logical flaws, or inconsistencies that can degrade the LLM's performance. Existing benchmarks primarily focus on evaluating LLMs' reasoning capabilities rather than their ability to clean and validate this synthetic data. This paper addresses the need for a robust benchmark to specifically assess and improve the effectiveness of mathematical data cleaning techniques for LLMs.
Methods
The core contribution of this paper is the MathClean benchmark. This benchmark is designed to evaluate two key capabilities:
- Error Detection: Distinguishing between correct and erroneous mathematical questions and answers.
- Error Type Classification: Identifying the specific category of error within erroneous questions or answers.
To construct MathClean, the authors employed a sophisticated data synthesis process:
- Seed Data: They used existing datasets like GSM8K and MATH as a foundation.
- Augmentation: They developed a comprehensive set of 10 "error augmentation prompts" and 16 "diversity augmentation prompts" (more than previous methods like MuggleMath) to systematically introduce various types of errors and ensure diversity in the generated data.
- Error Categories: They defined four primary error types: Expression Errors, Lack of Conditions, Contradictions, and Unrealistic scenarios, with further sub-categorizations for detailed analysis.
- Human Annotation: Graduate students with strong mathematical backgrounds manually annotated the generated data to ensure quality and accuracy.
The benchmark consists of 2,000 correct questions, 2,000 erroneous questions, 2,000 correct answers, and 2,000 erroneous answers, each annotated with specific error types.
Datasets
- Training/Seed Data: GSM8K and MATH (train splits) were used as the foundation for generating synthetic data.
- Newly Introduced Benchmark: MathClean. This benchmark comprises:
- 2,000 correct questions
- 2,000 erroneous questions
- 2,000 correct answers
- 2,000 erroneous answers
- Each erroneous question/answer is annotated with a specific error type.
- Questions are categorized by difficulty: SIMPLE and CHALLENGING.
MathClean aims to be more challenging than existing benchmarks by focusing on data cleaning and error type identification, rather than just pure reasoning.
Key Insights and Ideas
- Synthetic Data is Problematic: The paper strongly emphasizes that even with advanced LLMs generating synthetic data, a significant portion (reported as ~50% in related work) can be incorrect, posing a risk to LLM training.
- Error Type Matters: Simply detecting an error isn't enough; understanding why it's an error (e.g., logical flaw vs. grammatical mistake) is crucial for improving data quality and LLM reasoning.
- SOTA Models Still Struggle: Even top-tier models like GPT-o1 and DeepSeek-R1 perform surprisingly poorly on MathClean, especially in error type detection, indicating a significant gap in their ability to critically assess and clean mathematical data.
- MathClean's Rigor: The benchmark's design, with diverse error types and detailed annotations, makes it a challenging and valuable tool for pushing the boundaries of LLM data cleaning capabilities.
Key Results
The paper presents comprehensive evaluations of various closed-source and open-source LLMs, as well as Process Reward Models (PRMs), on the MathClean benchmark.
- Error Detection (Questions): Most models scored above 70% accuracy in detecting incorrect questions.
- Error Type Detection (Questions): Performance dropped significantly, with models often scoring around 50% accuracy, highlighting a weakness in identifying the type of error.
- Error Detection (Answers): Closed-source models generally performed well, with some open-source models showing comparable results.
- Error Type Detection (Answers): Models showed varying performance, with some struggling to accurately classify error types.
- Challenging Benchmark: SOTA models like GPT-o1-preview and DeepSeek-R1 performed poorly (below 80% in error detection and below 70% in error type detection for answers), underscoring MathClean's difficulty.
- Specific Model Performance: The paper details performance across numerous models, showing that while some models excel in certain aspects, none achieve consistently high scores across all tasks on MathClean. For instance, DeepSeek-R1's strong CoT reasoning didn't translate to top performance on MathClean's cleaning tasks.
Limitations and Future Work
- Limitations:
- The paper acknowledges that while the benchmark is comprehensive, there's always room for more diverse error types and more complex scenarios.
- The reliance on synthetic data, even with human annotation, inherently has limitations compared to real-world, naturally occurring errors.
- Future Work:
- The authors suggest that MathClean can serve as a valuable resource for future research in data-centric AI development, specifically for improving mathematical datasets and enhancing LLM robustness.
- The benchmark's detailed error type annotations are intended to guide future improvements in synthetic data generation and LLM training methodologies.
- Further research could focus on developing models specifically designed for mathematical data cleaning, leveraging the insights gained from evaluating current SOTA models on MathClean.
Summary updated