Large Language Models Are Unconscious of Unreasonability in Math Problems

Jingyuan Ma, Damai Dai, Zhifang Sui · OpenReview

Abstract

Large language models (LLMs) demonstrate substantial capabilities in solving math problems. However, they tend to produce hallucinations when given questions containing unreasonable errors. In this paper, we study the behavior of LLMs when faced with unreasonable math problems and further explore their potential to address these problems. We construct the Unreasonable Math Problem (UMP) benchmark to examine the error detection ability of LLMs. Experiments show that LLMs are able to detect unreasonable errors, but still fail in generating non-hallucinatory content. In order to improve their ability of error detection and correction, we further design a strategic prompt template called Critical Calculation and Conclusion (CCC). With CCC, LLMs can better self-evaluate and detect unreasonable errors in math questions, making them more reliable and safe in practical application scenarios.

Introduction: The Compliance Bias Problem

While Large Language Models (LLMs) are increasingly proficient at solving complex mathematical equations, they often exhibit a startling lack of "common sense" when faced with logically or physically impossible premises. For instance, if asked to calculate the remaining kittens after some run away from a hamster, a model might provide a numerical answer without questioning the premise that hamsters do not have kittens.

This phenomenon stems from a "compliance bias"—a tendency for models to act as helpful assistants by assuming every user-provided problem is well-posed. When faced with a flaw, models typically either ignore the error and hallucinate a fix or enter an infinite loop of self-correction. This paper introduces the Unreasonable Math Problems (UMP) benchmark to systematically measure this "unconsciousness of unreasonability."

Comparison of model responses to reasonable vs. unreasonable math problems, illustrating hallucination and overthinking.

The Unreasonable Math Problem (UMP) Benchmark

To evaluate how models handle flawed inputs, researchers developed the UMP benchmark, consisting of 1,129 paired problems (original vs. unreasonable) derived from standard datasets like GSM8K, MATH, AMC23, and AIME24. The flaws introduced into these problems fall into five distinct categories:

  1. Undefined Variables: Critical information required for the solution is missing.
  2. Illogical Scenarios: Premises that violate common sense or physical laws.
  3. Incorrect Assumptions: Mathematical impossibilities, such as division by zero.
  4. Misinterpretation of Units: Nonsensical mixing of incompatible units (e.g., measuring thickness in grams).
  5. Inconsistent Conditions: Self-contradictory premises within the same problem statement.

Methodology: Constructing the Dataset

The construction of the UMP benchmark followed a rigorous three-step pipeline to ensure the problems remained challenging and natural-sounding:

  1. Initial Generation: Successful problems from standard datasets were transformed using an LLM (DeepSeek-R1) guided by specific rules to introduce subtle flaws.
  2. Similarity Check: To prevent models from detecting flaws based purely on linguistic shifts, sentence embeddings (SimCSE) were used to ensure the "unreasonable" variant remained semantically close to the original.
  3. Manual Verification: Human annotators reviewed each pair to confirm that the flaws were mathematically sound but linguistically natural.
The similarity check process ensures unreasonable variants remain linguistically close to original questions using cosine similarity.

Analysis of Model Behaviors

The study revealed two primary failure modes among current LLMs:

The "Unconscious" Generalist

General-purpose models like GPT-4o and Claude 3.5 often fail to notice flaws entirely. They achieve high accuracy on standard math but "plow through" unreasonable problems, providing confident but nonsensical answers. Even top-tier models like GPT-4o achieved an Absolute Score of only 0.6 on the UMP benchmark, indicating a significant gap in error detection.

The "Overthinking" Reasoner

In contrast, reasoning-heavy models like DeepSeek-R1 are more sensitive to flaws but often fail to reach a conclusion. When these models detect a contradiction, they frequently enter a repetitive loop of self-correction, generating thousands of tokens without ever explicitly rejecting the question. This "lexical collapse" results in highly repetitive output and a drop in linguistic diversity.

Improving Reliability with CCC

To mitigate these issues, the researchers proposed the Critical Calculation and Conclusion (CCC) prompt strategy. By explicitly instructing models to evaluate the premises of a problem before attempting a solution, the researchers found that models could better self-evaluate and detect unreasonable errors. However, this "skepticism" presents a trade-off: while it improves flaw detection, it can sometimes decrease accuracy on standard, well-posed problems by causing the model to over-refuse valid questions.

Conclusion

The UMP benchmark highlights a fundamental reliability gap in current AI reasoning. While models are becoming better calculators, they remain largely "unconscious" of the logical validity of their inputs. Future work must focus on developing principled detection mechanisms that allow models to remain helpful without sacrificing the critical thinking necessary to identify and reject unreasonable scenarios.

Summary updated

BibTeX
@misc{ma2024large,
  author = {Jingyuan Ma and Damai Dai and Zhifang Sui},
  title = {{Large Language Models Are Unconscious of Unreasonability in Math Problems}},
  year = {2024},
  eprint = {2403.19346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.19346},
}
Figure