An Investigation of Robustness of LLMs in Mathematical Reasoning: Benchmarking with Mathematically-Equivalent Transformation of Advanced Mathematical Problems

Yuren Hao, Xiang Wan, Chengxiang Zhai · DOI

Abstract

Recent advancements in Large Language Models (LLMs) have led to high scores on standard mathematical benchmarks. However, it remains unclear whether these models exhibit genuine reasoning or rely on memorized patterns. We introduce PutnamGAP, a benchmark derived from the William Lowell Putnam Mathematical Competition, featuring mathematically equivalent variations of complex problems. Using our Generalization-and-Perturbation (GAP) framework, we evaluate 18 frontier models. Our results show significant performance degradation across all models when subjected to surface-level lexical changes or structural numerical perturbations, suggesting a heavy reliance on "semantic anchors" rather than abstract logical reasoning.

Introduction

State-of-the-art LLMs frequently achieve over 90% accuracy on benchmarks like GSM8K and MATH. These results have fueled claims of human-level mathematical reasoning. Nevertheless, these benchmarks are susceptible to data leakage and lack rigorous robustness testing. If a model truly understands a mathematical concept, its performance should remain stable regardless of variable naming conventions or specific numerical constants. This study addresses the lack of systematic robustness testing for competition-level, proof-style mathematics by introducing the GAP framework and the PutnamGAP dataset.

Methodology: The GAP Framework

The Generalization-and-Perturbation (GAP) framework generates mathematically equivalent versions of complex problems to stress-test model robustness. We define two primary categories of transformations:

Surface Variants (Lexical)

These variants modify variable names while preserving the underlying mathematical structure. We employ four strategies:

  1. Descriptive Long: Replacing single-letter variables with descriptive terms (e.g., $r \to \text{radius}$).
  2. Confusing: Using unrelated, complex strings (e.g., $r \to \text{walnutVioletTerrace}$).
  3. Misleading: Using incorrect mathematical jargon (e.g., a real variable renamed to $\text{primeFieldOrder}$).
  4. Garbled String: Using random alphanumeric characters (e.g., $r \to \text{xcQ7h2ZfRw9v}$).

Kernel Variants (Structural)

Kernel variants involve resampling numerical constants while maintaining the logical "skeleton" of the proof. This process utilizes a four-stage LLM-driven pipeline with rigorous self-verification by an ensemble of judges to ensure the validity and solvability of the perturbed problems.

The PutnamGAP Dataset

We digitized the complete set of 1,051 original William Lowell Putnam Mathematical Competition problems spanning 1938 to 2024. By applying the five GAP variations to each problem, we created PutnamGAP, a comprehensive stress-test corpus consisting of 6,306 items. This dataset serves as a robust evaluation tool that mitigates the effects of training data memorization.

Experimental Results

We evaluated 18 leading models, including OpenAI's o-series, GPT-4o, Claude 3, and Gemini 2.5 Pro. A consistent trend emerged: every model experienced a performance drop when facing problem variants.

As shown in Figure 1, the degradation is most pronounced in Kernel variants. For instance, OpenAI’s o3 saw its accuracy drop from 51.5% on original problems to 38.6% on Kernel variants—a 12.9 percentage point decrease. Similarly, Gemini-2.5-Pro suffered a 14.9 point drop on Kernel variants and a 5.4 point drop on garbled string variants.

Analysis and Discussion

Our analysis reveals that models often rely on "semantic anchors"—lexical clues within variable names—to navigate proofs. When these anchors are removed or replaced with misleading terms, the models' logical consistency often collapses. Approximately 60% of failures on variants were categorized as "Logic Hallucinations," where models invented non-existent mathematical rules or skipped essential steps.

The severe failure rate on Kernel variants indicates that models frequently memorize proof templates without successfully binding new parameters to the underlying logic. Instead of adapting the reasoning, they attempt to force-fit the original memorized solution onto the new numerical context.

Conclusion

The PutnamGAP benchmark highlights a significant gap between the perceived and actual reasoning capabilities of frontier LLMs. By providing a dynamic stream of mathematically equivalent problems, the GAP framework offers a more accurate measure of true mathematical understanding. Future work should focus on integrating symbolic provers for absolute verification and utilizing GAP-style mutations during the training phase to foster more robust, symbol-invariant reasoning.

Summary updated

BibTeX
@misc{hao2025investigation,
  author = {Yuren Hao and Xiang Wan and Chengxiang Zhai},
  title = {{An Investigation of Robustness of LLMs in Mathematical Reasoning: Benchmarking with Mathematically-Equivalent Transformation of Advanced Mathematical Problems}},
  year = {2025},
  eprint = {2508.08833},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.08833},
}
Figure