MATH-Perturb: Benchmarking LLMs' Math Reasoning Abilities against Hard Perturbations

Kaixuan Huang, Jiacheng Guo, Zihao Li, Xiang Ji, Jiawei Ge, Wenzhe Li, Yingqing Guo, Tianle Cai, Hui Yuan, Runzhe Wang, Yue Wu, Ming Yin, Shange Tang, Yangsibo Huang, Chi Jin, Xinyun Chen, Chiyuan Zhang, Mengdi Wang

TL;DR

Researchers have introduced MATH-Perturb, a new benchmark designed to test whether Large Language Models (LLMs) truly understand mathematical principles or are simply memorizing solution patterns. By introducing "hard perturbations"—modifications that fundamentally change a problem's logic while keeping the text similar—the study reveals significant performance drops (up to 25%) in state-of-the-art models like o1-mini and Gemini 2.0. This exposes a tendency for models to blindly apply memorized techniques to contexts where they no longer work.

What Problem Does This Paper Address?

As LLMs achieve record-breaking scores on math benchmarks like MATH or GSM8K, a critical question looms: is this "true" reasoning or sophisticated memorization?

Previous attempts to answer this used "simple perturbations," such as changing numerical values (e.g., changing $x+2$ to $x+5$). However, if the underlying solution method remains identical, a model can still succeed by following a memorized template. The authors argue that to truly test reasoning, we must use hard perturbations. These are modifications where the problem looks almost the same as a known example, but a subtle change in the constraints or formulation makes the original solution path invalid. If a model is just "pattern matching" the problem statement to a solution in its training data, it will fail these hard perturbations.

Examples of original, simple, and hard perturbations

Methods

The authors recruited 12 graduate-level mathematics experts to manually curate two new datasets based on the hardest (Level-5) problems from the original MATH benchmark:

  1. MATH-P-Simple: Problems with non-essential changes (e.g., different numbers) that can be solved using the original method. This serves as a control group.
  2. MATH-P-Hard: Problems with small but fundamental changes that require entirely different reasoning steps or deeper mathematical theorems.

The team evaluated 18 different LLMs using zero-shot Chain-of-Thought (CoT) prompting. They also conducted a "failure mode analysis" to categorize why models failed and investigated the effects of In-Context Learning (ICL)—providing the original, unmodified problem as an example to see if it helped or hindered the model's performance on the perturbed version.

Datasets

Overview of the MATH-Perturb benchmark composition MATH-Perturb: Benchmarking LLMs' Math Reasoning Abilities against Hard Perturbations, page 2

Overview of the MATH-Perturb benchmark composition
  • MATH-P-Simple: 279 problems derived from the MATH dataset (Level-5).
  • MATH-P-Hard: 279 problems derived from the same seed problems but requiring different logic.
  • Seed Data: Problems were pulled from both the training and test splits of the original MATH dataset to investigate if "seen" problems during training led to more memorization.

Key Insights and Ideas

  • The "Blind Application" Trap: The most striking finding is a novel form of memorization. Models don't just memorize final answers; they memorize problem-solving techniques. When faced with a hard perturbation, models often "hallucinate" that the original constraints still apply and blindly force a learned "shortcut" onto a problem where it is mathematically illegal.
  • Semantic Similarity vs. Logical Divergence: The perturbed problems have very high semantic similarity (often >0.98 cosine similarity) to the originals. This suggests that LLMs rely heavily on semantic retrieval—treating math problems like a search-and-replace task rather than a logical derivation.
  • The Misleading Effect of Examples: Surprisingly, providing the original problem and solution as a prompt (ICL) often hurt performance on MATH-P-Hard. The models failed to recognize the subtle differences and were "misled" by the demonstration into using the wrong strategy.
  • Robustness Progress: While models still struggle with hard perturbations, they have become much more robust against simple perturbations compared to previous years, indicating that training data diversity is improving.

Key Results

The study observed significant performance degradation across all tested models when moving from original problems to hard perturbations:

  • o1-mini: Dropped from 94.27% on original problems to 78.49% on MATH-P-Hard (a 15.78% absolute drop).
  • Gemini-2.0-flash-thinking: Dropped from 92.47% to 78.14% (a 14.33% drop).
  • GPT-4o: Showed a massive drop from 67.03% to 39.43%.
  • Failure Analysis: For top-tier models like o1-mini, the authors estimate that 40% of errors on hard perturbations are directly caused by this "blind memorization" of techniques.

Limitations and Future Work

The authors acknowledge that their dataset, while high-quality, is relatively small (279 pairs) due to the intensive labor required for expert curation. Furthermore, the benchmark currently focuses only on the most difficult (Level-5) problems, leaving the behavior on easier problems less explored.

Future research directions suggested include:

  • Developing training objectives that penalize "shortcut" reasoning.
  • Creating automated pipelines to generate hard perturbations at scale.
  • Investigating how to make models more "self-aware" of when a learned technique is no longer applicable to a new context.

Summary updated

BibTeX
@inproceedings{huang2025math,
  author = {Kaixuan Huang and Jiacheng Guo and Zihao Li and Xiang Ji and Jiawei Ge and Wenzhe Li and Yingqing Guo and Tianle Cai and Hui Yuan and Runzhe Wang and Yue Wu and Ming Yin and Shange Tang and Yangsibo Huang and Chi Jin and Xinyun Chen and Chiyuan Zhang and Mengdi Wang},
  title = {{MATH-Perturb: Benchmarking LLMs' Math Reasoning Abilities against Hard Perturbations}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=OZy70UggXr},
}
Figure