NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models

Seyed Iman Mirzadeh, Keivan Alizadeh, Hooman Shahrokhi, Oncel Tuzel, Samy Bengio, Mehrdad Farajtabar

TL;DR

Large Language Models (LLMs) may be "pattern matching" their way through math problems rather than performing genuine logical reasoning. By introducing GSM-Symbolic, a benchmark that generates thousands of variations of standard math problems, researchers found that state-of-the-art models—including OpenAI’s o1 series—suffer significant performance hits when numerical values change or irrelevant information is added to a prompt.

What Problem Does This Paper Address?

For years, the GSM8K (Grade School Math 8K) benchmark has been the gold standard for measuring the mathematical prowess of LLMs. As scores on this benchmark climbed toward 90%+, many assumed models were becoming expert reasoners. However, the authors of this paper suspected a "mirage."

Static benchmarks like GSM8K are susceptible to data contamination (where models inadvertently see test questions during training) and token bias. Furthermore, a single accuracy score on a fixed set of questions doesn't reveal if a model truly understands the underlying logic or is simply replicating a sequence of steps it has seen before. The researchers set out to determine if LLMs are capable of formal reasoning or if they are merely sophisticated probabilistic pattern matchers.

Methods

The researchers developed a pipeline to convert GSM8K questions into symbolic templates. Instead of a static question about "Sophie" and "31 blocks," they created a template with variables: {name} has {x} blocks.

GSM-Symbolic Template Example

This allowed them to create:

  1. GSM-Symbolic: A dataset of 5,000 questions (50 variations for each of 100 templates) to measure performance distribution rather than a single data point.
  2. Difficulty Scaling: Variants like GSM-M1 (removing one clause) and GSM-P1/P2 (adding one or two necessary reasoning steps) to see how models handle increased complexity.
  3. GSM-NoOp: A particularly clever test where they added a "No-Op" (no operation) clause—information that looks relevant but is mathematically irrelevant (e.g., mentioning that some kiwis were "smaller than average" in a problem asking for the total count).

They evaluated over 20 models, including open-weights models (Llama, Gemma, Mistral, Phi) and closed-weights models (GPT-4o, o1-mini).

Datasets

  • GSM8K: The original baseline.
  • GSM-Symbolic (New): Diverse instantiations of GSM8K problems.
  • GSM-NoOp (New): Problems containing irrelevant "distractor" clauses.
  • GSM-P1 & GSM-P2: Higher-difficulty versions of the symbolic templates.

Key Insights and Ideas

  • Reasoning is Fragile: Models showed high variance across different versions of the exact same problem. If a model truly understood the logic, changing "Sophie" to "Chloe" or "31" to "42" shouldn't change the accuracy. In reality, performance often dropped when only the numbers were altered.
  • The "No-Op" Trap: This was the "aha moment." When irrelevant information was added, models didn't ignore it. Instead, they blindly converted the text into a math operation. For example, if a prompt mentioned "5 kiwis were smaller," the model would often subtract 5 from the total, even if the question didn't require it.
  • Pattern Matching vs. Formal Logic: The authors hypothesize that LLMs attempt to replicate reasoning chains from their training data. They aren't "solving" the problem; they are finding the most likely next token based on similar patterns they've seen.
  • Arithmetic is Not the Bottleneck: The researchers conducted an ablation study on arithmetic accuracy and found that models are actually quite good at 3-4 digit math. The failure isn't in the calculation; it's in the logic of deciding which numbers to calculate.

Key Results

  • Performance Drops: All models performed worse on GSM-Symbolic than on the original GSM8K. For instance, Gemma2-9b dropped by 12% between its best and worst performance on variations of the same templates.
Accuracy Drop Across Models
  • Catastrophic Failure on GSM-NoOp: Adding a single irrelevant clause caused performance to plummet across the board. Phi-3-mini saw a staggering 65% drop. Even the reasoning-optimized o1-preview showed a 17.5% decline, proving that even the most advanced models are easily distracted by irrelevant context.
  • Complexity Penalty: As the number of clauses (reasoning steps) increased, performance didn't just decline—it deteriorated at a rate faster than the linear increase in steps, suggesting models struggle with long-range logical consistency.

Limitations and Future Work

The study is primarily focused on grade-school-level word problems. While this is a foundational metric, it remains to be seen if higher-level mathematics (calculus, linear algebra) exhibits the same type of pattern-matching fragility, though the authors suspect it does.

The authors conclude that current LLMs lack "genuine logical reasoning." Future work should move away from probabilistic next-token prediction toward architectures capable of formal symbolic manipulation. They also call for the research community to adopt more "nuanced" evaluation metrics that look at performance distributions rather than single-point accuracy scores.

Summary updated

BibTeX
@inproceedings{mirzadeh2025gsm,
  author = {Seyed Iman Mirzadeh and Keivan Alizadeh and Hooman Shahrokhi and Oncel Tuzel and Samy Bengio and Mehrdad Farajtabar},
  title = {{GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=AjXkRZIvjB},
}
Figure