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

MathTrap300: A Benchmark for Recognizing Mathematical Insolvability in LLMs

Huaibo Chen, Yixiao Lin, Pengcheng Chen, Zihan Zhao, Nuohao Liu, Yue Hu, Qian Xie, Qinbo Bai, Masood S. Mortazavi, Ning Yan, Kamal Youcef-toumiDAI @ AAAI 2025

TL;DR

Large Language Models (LLMs) are great at solving math problems, but they often fail to recognize when a problem is impossible to solve. This paper introduces MathTrap300, a new benchmark of 300 carefully crafted and verified insolvable math problems, and a novel evaluation framework to better assess LLMs' ability to detect these "traps."

What Problem Does This Paper Address?

Modern LLMs have become remarkably adept at solving complex mathematical problems, often achieving high accuracy on standard benchmarks. However, a critical blind spot remains: their inability to reliably identify and acknowledge when a problem is ill-posed, contradictory, or lacks sufficient information to yield a valid solution. Existing benchmarks for such "insolvable" problems are often simplistic, derived from elementary math, or lack rigorous verification, making them insufficient for evaluating advanced LLMs. This gap is problematic because a truly intelligent system should not only solve problems but also understand their limitations.

Methods

To address this, the authors introduce MathTrap300, a dataset of 300 insolvable math problems. These problems are derived from well-posed, challenging mathematical questions and are meticulously modified to introduce fundamental contradictions or missing conditions that require deep domain knowledge to detect. Crucially, each problem has been rigorously verified for its insolvability by PhD-level experts.

To evaluate LLMs on this new benchmark, they developed a three-stage LLM judge framework. This framework goes beyond simple answer checking by analyzing:

  1. Final Answer: Does the LLM explicitly state insolvability?
  2. Problem Modification: Does the LLM attempt to fix the problem by adding constraints or reinterpreting it to make it solvable?
  3. Midway Identification: Does the LLM recognize the insolvability during its intermediate reasoning steps?

This multi-faceted approach provides a more nuanced understanding of how LLMs handle insolvable problems, capturing signals from both their reasoning process and their final output.

Datasets

  • MathTrap300: A newly introduced benchmark consisting of 300 manually constructed and double-verified insolvable math problems. These problems are designed to require deep mathematical knowledge to identify their insolvability, stemming from contradictions or missing conditions.
  • Existing Benchmarks: Problems were adapted from sources like MATH, AIME, AMC, and Chinese college entrance exams.
  • MathTrap (Zhao et al., 2024): 37 problems from this existing dataset were retained for their discriminative power.

Key Insights and Ideas

  • The "Identification-Declaration Gap": LLMs are much better at noticing an issue during their reasoning process (identification) than they are at explicitly stating that the problem is unsolvable in their final answer (declaration). This gap is significant, suggesting LLMs often "guess" or force an answer even when they detect an anomaly.
  • Reasoning Matters: Models with stronger, explicit reasoning capabilities (e.g., "reasoning LLMs") tend to perform better at identifying insolvability than general-purpose chat models. This highlights the importance of encouraging detailed, step-by-step thinking.
  • Common Failure Modes: When LLMs fail to recognize insolvability, they often resort to:
  • Guessing: Picking a plausible answer despite detecting inconsistencies.
  • Hallucination: Fabricating steps or conditions to force a solution.
  • Condition Neglect: Overlooking crucial constraints or information.
  • The Need for Nuanced Evaluation: Simple accuracy metrics are insufficient for insolvable problems. The proposed three-stage judge framework is crucial for understanding LLM behavior, distinguishing between true recognition and mere guessing.

Key Results

  • Significant Accuracy Drop: State-of-the-art LLMs showed a substantial drop in accuracy when transitioning from well-posed problems to the insolvable problems in MathTrap300.
  • Identification vs. Declaration: Average identification accuracy (recognizing insolvability during reasoning) was around 74%, while final answer accuracy (explicitly stating insolvability) was only about 15%.
  • Model Performance: Reasoning-oriented LLMs generally outperformed chat-oriented models in identifying insolvability. For instance, some proprietary reasoning models achieved overall accuracies in the high 70s-80s, while many chat models lagged significantly.
  • Failure Patterns: The evaluation revealed common failure patterns like guessing, hallucination, and condition neglect, explaining why LLMs often produce incorrect answers rather than admitting insolvability.

Limitations and Future Work

  • LLM Judge Limitations: While the authors developed a sophisticated judge, they acknowledge that it might have a tendency to produce false positives (overly flagging insolvability) rather than false negatives.
  • Future Work: The authors hope MathTrap300 will spur the development of LLMs that can not only solve problems but also reliably acknowledge when a problem is unsolvable. This includes encouraging explicit solvability checks in prompting, enabling abstention mechanisms, and favoring reasoning modes that reveal and report inconsistencies.

Summary updated

BibTeX
@inproceedings{chen2025mathtrap,
  author = {Huaibo Chen and Yixiao Lin and Pengcheng Chen and Zihan Zhao and Nuohao Liu and Yue Hu and Qian Xie and Qinbo Bai and Masood S. Mortazavi and Ning Yan and KAMAL YOUCEF-TOUMI},
  title = {{MathTrap300: A Benchmark for Recognizing Mathematical Insolvability in LLMs}},
  booktitle = {DAI @ AAAI},
  year = {2025},
  url = {https://openreview.net/forum?id=ejnuMVWevz},
}

Loading related content...

Figure