Abstract
Large language models have demonstrated impressive performance on challenging mathematical reasoning tasks, triggering discussion on whether this performance is achieved by true reasoning capability or memorization. To investigate this, we construct MATH-P-Simple and MATH-P-Hard via simple and hard perturbations, respectively. Each consists of 279 perturbed math problems derived from Level-5 problems in the MATH dataset. We observe significant performance drops on MATH-P-Hard across various models, including o1-mini (-16.49%) and Gemini-2.0-flash-thinking (-12.9%). We also identify a novel form of "procedural memorization" where models blindly apply learned problem-solving skills without assessing their applicability to modified contexts. This issue is amplified when using original problems for in-context learning, highlighting the need for more robust and reliable reasoning models.
Introduction: Reasoning vs. Memorization
As LLMs achieve record-breaking scores on math benchmarks like MATH and GSM8K, a critical question remains: are they truly reasoning, or are they just very good at pattern matching? Previous research into model robustness focused on "simple perturbations," such as changing numerical values or names. While useful, these tests do not change the underlying "reasoning path" required to solve the problem. If a model has seen a specific problem template thousands of times during training, it might simply be reciting a memorized procedure.
The authors of MATH-Perturb argue that true reasoning requires the ability to recognize when a small change in a problem's constraints makes a previously successful method obsolete. They aim to bridge the gap between "solving a known template" and "genuine mathematical understanding."
The MATH-Perturb Benchmark
The researchers curated a set of 279 "seed" problems from the hardest level (Level-5) of the MATH dataset. For each problem, they created two variants: MATH-P-Simple (non-essential modifications) and MATH-P-Hard (fundamental changes that invalidate the original solution path).
The problems span seven subjects, including Algebra, Number Theory, Geometry, and Precalculus. To ensure high quality, 12 graduate-level math experts manually rewrote these problems, enforcing strict rules of minimal edits and changed answers to prevent models from relying on memorized final results.
Methodology: Exposing Procedural Memorization
The study identifies a novel failure mode called procedural memorization, where models memorize problem-solving skills rather than just text. In many cases, a model correctly identifies a change in the problem but proceeds to use the original, now incorrect, logic anyway.
This effect is particularly pronounced during In-Context Learning (ICL). Providing the model with an example of the original problem before asking it to solve a perturbed version actually hurt performance on MATH-P-Hard. The models were "misled" by the demonstration, following the example's logic too closely and ignoring the subtle differences in the new problem.
Key Results and Failure Analysis
Benchmarking 18 different LLMs revealed significant performance declines across the board on MATH-P-Hard:
- o1-mini accuracy dropped by 16.49%.
- Gemini-2.0-flash-thinking accuracy dropped by 12.9%.
- Open-source models like Llama-3.1-8B and Qwen2.5-Math saw declines often exceeding 20%.
Manual inspection revealed that for models like o1-mini, roughly 40% of errors on hard problems were directly attributable to memorization issues, such as ignoring new assumptions or blindly applying old techniques. Conversely, most top-tier models maintained high accuracy on MATH-P-Simple, proving they aren't failing due to superficial changes, but because the underlying logic shifted.
Conclusion
The findings from MATH-Perturb suggest that current LLM "reasoning" is heavily biased toward the specific distributions of problems found in their training data. The authors call for the research community to move beyond simple data augmentation. Developing models that can explicitly verify their own reasoning steps and judge the applicability of their "skills" to new contexts will be critical for achieving more robust and reliable artificial general intelligence.
Summary updated