TL;DR
GSM-SEM introduces a stochastic, reusable framework that generates semantically diverse variants of grade-school math problems while keeping the underlying mathematical structure and answers exactly the same. By evaluating 14 state-of-the-art LLMs, the authors show that changing the narrative context—rather than just swapping numbers or paraphrasing—causes significant performance drops, exposing how heavily models rely on surface-level memorization over robust reasoning.
What Problem Does This Paper Address?
Standard benchmarks like GSM8K are the gold standard for evaluating the mathematical reasoning of Large Language Models (LLMs). However, high leaderboard scores can be deceptive. Due to data contamination and repeated exposure during training, LLMs often memorize these static test sets rather than learning how to reason.
To combat this, researchers have created robustness variants using paraphrasing, entity renaming, or number swapping. But the authors argue these surface-level tweaks don't go far enough; they preserve the original factual backbone and relational structure of the problem. Furthermore, once these variant datasets are publicly released, they also become static targets prone to memorization.
GSM-SEM addresses this by altering the core entities, attributes, and relationships of a problem (e.g., changing a story about a spreading plague to one about a spreading rumor or a wildfire) to force the model to recompute solutions under entirely new semantic conditions.
Methods
The GSM-SEM pipeline generates fresh, semantically distinct problem variants on every run without requiring manual re-annotation. It achieves this through a four-stage pipeline:
- Semantic Variant Generation: Uses two complementary strategies. First, inverse generation prompts an LLM to "reverse engineer" a new question from the ground-truth answer, allowing the context to change drastically. Second, direct fact alteration keeps the original numbers fixed but completely changes the narrative theme.
- Automated Quality Validation: A prompt-engineered LLM judge filters out logically incoherent questions or variants where the math no longer aligns with the original answer.
- Similarity-Based Redundancy Pruning: Uses a count-based cosine similarity threshold ($\le 0.85$) to discard variants that are too close to the original question or to each other.
- Strictness Filter: Evaluates variants against a held-out set of reference models. Variants that all reference models answer correctly are flagged as potentially too easy. A tunable strictness window ($[\alpha, \beta]$) then filters these out based on semantic similarity to ensure the remaining dataset is sufficiently challenging.
Datasets
The authors applied their framework to GSM8K and two prominent robustness extensions, creating three newly released, fully human-validated datasets:
- GSM8K-SEM (685 samples)
- GSM-Symbolic-SEM (2,525 samples)
- GSM-Plus-SEM (1,436 samples)
To demonstrate the framework's generalizability beyond grade-school math, they also successfully extended GSM-SEM to out-of-domain datasets: BigBenchHard (temporal sequences), LogicBench (first-order logic), and NLR-BIRD (linguistic reasoning over tabular data).
Key Insights and Ideas
- The Semantic Gap is Real: LLM accuracy drops significantly as the semantic distance from the original problem increases. This implies that models are overly sensitive to narrative framing, even when the underlying math equations remain identical.
- Compounded Perturbations Amplify Failure: The most dramatic performance drops occurred when semantic shifts were combined with symbolic changes (from GSM-Symbolic) or adversarial distractors (from GSM-Plus). This reveals that current LLMs lack compositional robustness.
- Reasoning Models Aren't Immune: Even advanced, reasoning-optimized models (like OpenAI's $o3$, GPT-5, and Gemini 2.5 Pro) experienced noticeable performance degradation on SEM variants, proving that advanced search and chain-of-thought capabilities do not fully solve semantic fragility.
Key Results
The authors evaluated 14 state-of-the-art LLMs (including members of the GPT, Llama, Gemini, and Grok families) and found consistent performance drops across the board:
- Strictness Matters: In the maximum strictness configuration of the filter, the average Performance Drop Rate (PDR) across all 14 LLMs reached 28.33% relative to the GSM8K baseline.
- Average Accuracy Drops: In the moderate strictness configuration, the average accuracy drop was 4.02% for GSM8K-SEM, 8.28% for GSM-Symbolic-SEM, and 13.53% for GSM-Plus-SEM.
- Reasoning vs. Non-Reasoning: While reasoning-optimized models generally handled the perturbations better than standard models, they still suffered an average accuracy drop of up to 12.21% on the most difficult compounded variants (GSM-Plus-SEM).
Limitations and Future Work
While powerful, the GSM-SEM framework relies on datasets that already include structured questions, ground-truth answers, and supporting reasoning traces. For benchmarks with highly complex reasoning paths or missing step-by-step solutions, the pipeline can only be partially applied unless first augmented with LLM-generated reasoning traces. Additionally, the framework relies on automated LLM judging during validation, which can introduce subtle systematic biases.
For future work, the authors suggest using GSM-SEM dynamically during model training and Reinforcement Learning (RL) loops to foster genuine, context-invariant reasoning skills rather than surface-level pattern matching.
Summary updated