Abstract
Current evaluation paradigms for Large Language Models (LLMs) in mathematics primarily focus on final-answer accuracy, a metric that often fails to distinguish between genuine reasoning and superficial pattern matching. We present CogMath, a novel framework inspired by human cognitive psychology that evaluates LLMs across nine rigorous dimensions spanning three stages: problem comprehension, problem solving, and solution summarization. Our evaluation of seven mainstream LLMs reveals that their authentic mathematical abilities are overestimated by 30-40%. Models frequently struggle with flexible knowledge application and backward reasoning, highlighting a significant gap between benchmark performance and true mathematical understanding.
Introduction
Large Language Models (LLMs) like GPT-4 and DeepSeek-V2.5 have achieved remarkable scores on complex mathematical benchmarks. However, these high scores raise a critical question: do these models truly understand the underlying mathematical concepts, or are they simply regurgitating memorized patterns from their training data? Current evaluation methods typically check only the correctness of the final answer, which is a coarse metric that can be easily gamed by statistical heuristics. To address this, we introduce CogMath, a framework designed to probe the depth of a model's mathematical reasoning through the lens of human cognitive processes.
The CogMath Framework
CogMath decomposes the mathematical problem-solving process into three distinct cognitive stages, further subdivided into nine fine-grained dimensions:
- Problem Comprehension: Evaluates the model's ability to understand the problem statement through sentence paraphrasing, handling sentence disruption, identifying missing conditions, and recognizing redundant conditions.
- Problem Solving: Tests the flexibility of the model's reasoning via analogical reasoning, numerical transformation, and knowledge redefinition (e.g., solving problems under altered mathematical rules).
- Solution Summarization: Assesses the model's ability to reflect on its solution through intermediate step questioning and backward reasoning.
To automate this evaluation, we developed an Inquiry-Judge-Reference multi-agent system. An Inquiry Agent generates dimension-specific variants of original problems, a Judge Agent ensures logical soundness, and a Reference Agent provides ground-truth answers for the new variants. A model is only considered to have "mastered" a problem if it passes the original question and all nine dimensional checks.
Experimental Setup
We evaluated seven mainstream LLMs, including GPT-4, Gemini-1.5-Flash, and DeepSeek-V2.5, across three datasets:
- MATH: High school competition-level problems.
- GSM8K: Elementary-level word problems.
- MExam: A new dataset of 6,353 questions from real Chinese K-12 exams, designed to minimize the risk of data contamination.
Key Results and Insights
Our findings indicate a dramatic discrepancy between standard benchmark scores and authentic mathematical ability. Across all models, CogMath reveals an overestimation of 30% to 40% in pass rates. For instance, GPT-4's pass rate on the MATH dataset dropped from 75.8% to 39.3% under the CogMath framework. Even the state-of-the-art reasoning model DeepSeek-R1 saw its MATH pass rate drop from 98.2% to 44.8%.
The "Over-Correction" Trap
A significant finding is the tendency of LLMs to "over-correct." When presented with unsolvable problems (e.g., those with missing conditions), models often hallucinate missing information to force a solution rather than identifying the problem as unsolvable. This suggests a lack of critical thinking and a bias toward the solvable problem structures prevalent in training data.
Rigid Knowledge Application
Models struggle significantly with "Knowledge Redefinition." When asked to solve a problem where a standard formula is redefined, models often revert to the original, memorized formula. This indicates that LLMs treat mathematical knowledge as rigid strings rather than abstract, adaptable concepts.
Forward vs. Backward Reasoning
While models are relatively proficient at forward reasoning (explaining steps to a solution), they fail significantly at backward reasoning (inferring initial conditions from a final answer). This asymmetry explains the known difficulty LLMs have with self-verification and error correction.
Conclusion
CogMath provides a more nuanced and accurate assessment of LLMs' mathematical capabilities by moving beyond final-answer accuracy. The substantial performance drops observed under this framework suggest that current LLMs rely heavily on pattern matching. Future research should focus on developing models with genuine critical thinking skills and the ability to apply mathematical knowledge flexibly across diverse and counterfactual scenarios.
Summary updated