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

Yuren Hao, Xiang Wan, ChengXiang Zhai · Submission to ICLR 2026 · Rejected

TL;DR

Large language models (LLMs) may appear to master advanced mathematics, but much of that performance collapses under superficial cosmetic changes or simple parameter tweaks. The authors introduce GAP (Generalization-and-Perturbation) and PutnamGAP—a 6,306-problem benchmark based on 85 years of Putnam competition problems transformed via variable renamings and structural parameter shifts. Even frontier reasoning models such as OpenAI’s o3 and Gemini-2.5-Pro suffer sharp, statistically significant performance drops under mathematically equivalent variations.

What Problem Does This Paper Address?

Current math reasoning benchmarks suffer from two major flaws:

  1. Contamination and Leakage: Popular datasets like GSM8K and MATH frequently leak into web-scale pre-training corpora, inflating benchmark leaderboards via verbatim memorization rather than actual deductive reasoning.
  2. Narrow Robustness Coverage: Existing perturbation datasets mostly test elementary or high-school arithmetic (e.g., GSM-Symbolic), while college-level competition datasets remain small, fixed, and vulnerable to contamination.

The authors explore whether state-of-the-art LLMs possess genuine, abstract mathematical reasoning or whether they over-rely on familiar token anchors and canonical problem templates.

Methods

The authors propose the Generalization–and–Perturbation (GAP) framework:

  • Surface Perturbations ($T_{\text{surf}}$): Non-mathematical variable renamings that leave scientific constants intact:
  • Descriptive-Long (DL): Meaningful English descriptors (e.g., radius $\to$ populationDensity).
  • Descriptive-Long-Confusing (DLC): Unrelated concatenated nouns (e.g., walnutVioletTerrace).
  • Descriptive-Long-Misleading (DLM): Misleading domain jargon (e.g., labeling a real number as primeFieldOrder).
  • Garbled-String (GS): Random alphanumeric strings/hashes (e.g., xcQ7h2ZfRw9v).
  • Parametric / Kernel Variants ($T_{\text{para}}$): Resamples mutable numerical parameters while strictly preserving the underlying proof skeleton through a multi-stage pipeline: slot discovery, back-synthesis, question reverse-engineering, and a multi-round "two-in-a-row" dual-verifier loop.
  • Robustness Metric ($R$): A continuous, SD-normalized robustness metric with Jeffreys smoothing and softplus penalty clamping ($R \in (0, 1]$), ensuring catastrophic drops on individual problems are heavily penalized rather than washed out by simple average accuracy.

Datasets

  • PutnamGAP (Introduced): Digitizes every official William Lowell Putnam Mathematical Competition problem from 1938 to 2024 (1,051 originals; 76.4% proofs, 23.6% calculations across Algebra, Analysis, Number Theory, Combinatorics, and Geometry). With 5 variations per problem (4 surface + 1 kernel), the benchmark totals 6,306 questions.
  • ALG514 (External validation): Used as an external cross-check; applying the surface-renaming pipeline (DLC and GS) verified that performance drops also generalize to standard algebra word problems.

Key Insights and Ideas

  • Models depend on "lexical semantic anchors": Merely replacing variable names with nonsense hashes or misleading math terms (e.g., calling volume "surfacearea") severely degrades accuracy, proving that models rely heavily on familiar variable names to guide their derivations.
  • Structural transfer is far harder than lexical abstraction: Kernel variants cause even steeper drops than surface renaming. When constants change, models frequently attempt to force-fit the original problem's solution template onto the new parameters, hallucinate unverified theorems, or switch quantities mid-proof (e.g., computing a chord distance instead of an arc length).
  • Failure modes are logical, not arithmetic: An error taxonomy reveals that roughly three-fifths of all incorrect model solutions across variants stem from logic hallucinations and omitted steps rather than routine arithmetic slips.

Key Results

Evaluating 18 frontier commercial and open-source models revealed consistent brittleness across all model families:

  • OpenAI o3: Achieved 51.5% on the original canonical problems, but fell by 4.7 percentage points on garbled string variants (to 46.8%) and collapsed by 12.9 pp on kernel variants (to 38.6%).
  • Gemini-2.5-Pro: Scored the highest original accuracy at 78.3%, but dropped to 72.9% on garbled strings ($-5.4\text{ pp}$) and tumbled to 63.5% on kernel variants ($-14.9\text{ pp}$).
  • Grok-4: Dropped from original accuracy by 4.8 pp on garbled strings and 14.6 pp on kernel variants (falling to 45.5%).
  • Prompt Canonicalization: Explicitly prompting models to rename garbled variables back into standard single-letter symbols partially restored performance (e.g., o3 recovered from 48% to 58%), though adding heavy meta-summaries reduced the benefit.

Limitations and Future Work

  • Verifier Generalization: Variant verification relies on stochastic LLM judging (o3 in a consensus loop), which—while theoretically bounded—could share systematic blind spots with LLM solvers. Future work includes integrating formal symbolic provers (Lean/Isabelle).
  • Evaluation Breadth: The benchmark currently focuses on Putnam mathematics; extending GAP to physics, engineering, and multimodal STEM problems remains open.
  • Mitigation & Training: Future systems could use GAP-style transformations on-the-fly during fine-tuning (e.g., symbol-invariant training or separate internal symbol-binding tables) to build models resilient to superficial phrasing.

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