Numerical Sensitivity and Robustness: Exploring the Flaws of Mathematical Reasoning in Large Language Models

Zhishen Sun, Guang Dai, Ivor W. Tsang, Haishan Ye · DOI

Abstract

While Large Language Models (LLMs) achieve near-perfect scores on mathematical benchmarks like GSM8K, their underlying reasoning processes are often brittle. This paper investigates the "Numerical Sensitivity" of LLMs using a progressive perturbation framework. By injecting irrelevant numerical and non-numerical information into word problems, the authors demonstrate that even state-of-the-art models are easily distracted by irrelevant numbers, with performance dropping by up to 51%. Furthermore, models can still "solve" problems with significant accuracy when the core question is removed, indicating a strong reliance on memorized templates rather than genuine logical reasoning.

Introduction: Reasoning vs. Pattern Matching

A central debate in artificial intelligence is whether LLMs are truly reasoning or merely acting as "stochastic parrots." High scores on static benchmarks may be inflated by data leakage or the models' ability to recognize familiar problem templates. This study addresses this by testing model robustness against semantically irrelevant noise. Specifically, it explores whether mentioning an unrelated number (e.g., "the sun is 93 million miles away") in a simple math problem causes the model to incorrectly incorporate that number into its calculations.

Methodology

The researchers proposed a novel evaluation paradigm based on two primary techniques:

  1. Progressive Perturbation Framework: Irrelevant sentences were injected into GSM8K and AIME25 problems. These were split into non-numerical perturbations (factual statements) and numerical perturbations (sentences containing numbers). The intensity of this noise was scaled from a single baseline sentence to "excessive" levels.
  2. Core Questioning Instruction Missing: To test for template dependency, the final question of the problem (e.g., "How much profit did he make?") was removed. If a model still provides a correct numerical answer, it suggests it is retrieving a memorized solution pattern rather than reasoning from the prompt.

Results: The Impact of Irrelevant Noise

The study revealed a significant "Robustness Gap" between commercial and open-source models. While models like GPT-4o and Gemini 2.5 Pro showed greater resilience, smaller models experienced dramatic performance collapses under numerical noise.

Figure 3: Accuracy of various LLMs on GSM8K and AIME-25 benchmarks under original and perturbed conditions.

Key findings include:

  • Numerical Sensitivity: Performance remained stable with text-only distractions but dropped significantly when irrelevant numbers were introduced. Under "excessive" numerical perturbation, the maximum performance decrease reached 51.55%.
  • The "Numerical Magnet" Effect: LLMs exhibit a tendency to incorporate any available numerical token into their reasoning chain, regardless of its relevance to the problem logic.
Figure 1: Example of a model failing when an irrelevant numerical sentence is added (top) versus succeeding with a non-numerical distraction (bottom).

Discussion: Template Dependency

Perhaps the most striking result is the models' ability to solve "invisible" questions. GPT-4o achieved 36.61% accuracy on problems where the actual question was deleted. This "smoking gun" suggests that models often recognize the problem setup from their training data and output the expected answer without actually processing the specific instruction. This reliance on memory templates over logical deduction highlights a fundamental flaw in current LLM reasoning capabilities.

Conclusion and Future Directions

This research serves as a sobering reminder that benchmark performance does not always equate to intelligence. Current evaluation methods may be overestimating LLM capabilities due to data contamination and template matching. Future work should focus on developing training techniques that help models filter irrelevant information and creating dynamic benchmarks that are resistant to memorization. Understanding why models are specifically triggered by numerical tokens remains a critical area for improving AI robustness.

Summary updated

BibTeX
@misc{sun2025numerical,
  author = {Zhishen Sun and Guang Dai and Ivor W. Tsang and Haishan Ye},
  title = {{Numerical Sensitivity and Robustness: Exploring the Flaws of Mathematical Reasoning in Large Language Models}},
  year = {2025},
  eprint = {2511.08022},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.08022},
}
Figure