This paper, presented at COLM 2026, introduces a systematic framework for exposing the hidden brittleness of Large Language Models (LLMs) by finding the "hardest" versions of simple problems.
TL;DR
Current LLM evaluations often overestimate robustness by testing random variations of problems. The authors introduce Logic-Preserving Difficulty Scaling (LPDS), a framework that uses latent-space distance metrics and beam search to systematically find problem variations that cause models to fail, revealing performance drops up to 5x larger than random sampling.
What Problem Does This Paper Address?
LLMs are notoriously sensitive to "surface-level" changes. A model might solve a math problem about "Sofia" and "onions" but fail if you change the name to "Ingibjörg" and the item to "hiragana letters," even if the underlying math remains identical. These are called logic-preserving variations.
The authors argue that current benchmarks rely on random sampling from these variations, which creates a false sense of security. If a model fails on only 5% of possible variations, random sampling might miss those failures entirely. The challenge is finding a principled way to navigate the massive space of possible variations to find the specific "edge cases" that trigger model hallucinations or reasoning errors.
Methods
The core of LPDS is a two-part approach: quantifying difficulty and then optimizing for it.
- Quantifying Difficulty: The authors propose that a problem is "difficult" if the model's response deviates significantly from the "correct solution path." They measure this using two distance metrics:
- Levenshtein Distance ($LD_{min}$): A lexical metric measuring how many edits are needed to turn the model's response into a known correct reasoning trace.
- Mahalanobis Distance ($MD_H$): A more sophisticated metric that looks at the model's internal hidden states. It measures how "out-of-distribution" the model's latent representations are compared to a reference set of correct answers.
- Scaling Difficulty via Beam Search: To find the hardest variations without checking every possibility, the authors use a discrete prompt-optimization procedure. They start with a base problem and use beam search to swap out variables (names, numbers, etc.). To keep it efficient, they use a "cheap" input-based metric to filter candidates and the "expensive" output-based $MD_H$ to select the best (i.e., hardest) variations for the next iteration.
Datasets
The study utilizes symbolic templates, which are structured patterns that combine fixed logic with variable slots. They tested 100 templates from three distinct domains:
- GSM-Symbolic: Grade-school math word problems.
- FinChain: Multi-step financial reasoning (e.g., tax calculations, portfolio standard deviation).
- EngTrace: Complex engineering problems covering chemical, electrical, and mechanical engineering.
Key Insights and Ideas
- Internal "Confusion" is Predictable: The Mahalanobis distance in latent space ($MD_H$) is a remarkably strong predictor of whether a model will get an answer wrong. High $MD_H$ values correlate with severe reasoning failures, not just minor arithmetic slips.
- Random Sampling is a Blind Spot: Evaluating on random variations significantly underestimates how brittle these models are. LPDS finds failures that random search misses, showing that models are often "right for the wrong reasons" or rely on superficial patterns.
- Harder Training = Better Robustness: The authors found that fine-tuning a model on the most difficult variations (those with high $MD_H$) leads to much more consistent robustness gains across the board than training on easy or random samples.
Key Results
- Efficiency of Failure: In just six iterations of beam search, the authors could drive the average accuracy of models like Llama-3.1-8B down to 0% on specific templates.
- The Robustness Gap: LPDS revealed performance drops relative to base benchmarks that were up to 5x larger than those found by random sampling. For example, Llama-3.2-3B's accuracy dropped by 17.6% under LPDS vs. only 9.7% under random search.
- Model Rankings: While Llama-3.1-70B was the most robust overall, smaller models from the Qwen-2.5 family (like the 7B-Instruct) were surprisingly resilient to difficulty scaling compared to similarly sized Llama models.
Limitations and Future Work
The primary limitation is the reliance on symbolic templates. While these allow for rigorous logic-preserving variations, they are structured and synthetic. The authors note that extending LPDS to unstructured, "in-the-wild" prompt variations (like different ways of phrasing the same question) is a promising but currently open challenge. Additionally, the "exact scoring" phase of the beam search requires generating model outputs, which can be computationally expensive for very large models or massive search spaces.
Summary updated