TL;DR
Large Language Models (LLMs) are surprisingly good at getting the right final answer on math problems—even when their step-by-step reasoning is completely broken. To expose this gap, the authors introduce CUMath, a benchmark of 2,100 real undergraduate math problems with expert step-by-step solutions, and a new evaluation pipeline that checks both the final answer and the logic used to get there. Even the strongest model tested, GPT-5.2, only achieves 29.3% accuracy, proving that undergraduate math remains a major hurdle for AI.
What Problem Does This Paper Address?
If you've ever graded a math exam, you know that a student can stumble into the right answer through sheer luck or flawed algebra. Modern LLMs do the exact same thing. Existing math benchmarks—like GSM8k (elementary/middle school) or MATH (high school/competition)—mostly grade only the final answer, or rely on high-level solution sketches that don't capture strict logical dependencies.
When users or students rely on an AI's step-by-step explanation to learn or verify work, a polished-looking but logically broken proof is worse than no answer at all. The authors set out to build a benchmark that tests undergraduate-level math and a grading framework that actually audits the reasoning chain, not just the bottom line.
Methods
The authors evaluate 15 LLMs (spanning closed-source giants like GPT-5.2, GPT-4.1, OpenAI o3, and Claude Sonnet 3.7; open-source models like LLaMA 3/4, Qwen2.5, and DeepSeek-R1-Distill; and math-specialized models like Qwen2.5-Math and Llemma-7B) across four prompting strategies: Zero-shot, Chain-of-Thought (CoT), Self-Consistency (SC), and Tree-of-Thoughts (ToT).
Instead of relying on a single accuracy number, they combine two evaluation approaches:
- Four Automatic Metrics:
- Accuracy: Checks symbolic equivalence of the final answer using SymPy.
- Semantic F1: Measures how closely the model's generated steps align with human reference steps using sentence embeddings.
- Stepwise Reasoning Score (SRS): Evaluates faithfulness, coherence, and informativeness.
- Validity–Redundancy (VR): Uses a Natural Language Inference (NLI) model to penalize invalid or redundant steps.
- A CAS-Verified LLM-as-a-Grader: The authors built an automated grading pipeline that segments a model's solution into individual steps, encodes equations using MathBERT, and asks an LLM (acting as a math professor) to score each step from 0 to 5. Crucially, whenever a step contains a mathematical expression, the pipeline sends it to Wolfram Alpha (a Computer Algebra System, or CAS). If the LLM grader misses an algebraic error or wrongly flags a valid step, Wolfram Alpha overrides it and forces the LLM to revise its score.
Datasets
The authors introduce CUMath, a dataset of 2,100 problems pulled from real university quizzes, exams, problem sets, and open-access textbooks recommended by the American Institute of Mathematics.
Unlike prior datasets that skew heavily toward arithmetic or competition-style puzzles, CUMath is evenly split across seven core undergraduate subjects (300 problems each): Calculus, Differential Equations, Discrete Mathematics, Linear Algebra, Multivariable Calculus, Precalculus, and Trigonometry. Roughly 75% of the problems are Free Response, with the rest split between Short Answer and True/False. Every single problem includes an educator-reviewed, step-by-step solution.
Key Insights and Ideas
- Right Answer $\neq$ Right Reasoning: Final-answer accuracy has only a weak, statistically non-significant correlation with step-level validity ($r = 0.28, p = 0.306$ for VR) and reasoning quality ($r = 0.46, p = 0.086$ for SRS). A model can easily ace the final number while hallucinating the steps in between. Pearson correlation heatmap among evaluation metrics
- Polished, Convincing, and Wrong: In a telling case study, models were asked to solve an indefinite integral and then its corresponding definite integral over $[-\pi/6, \pi/6]$. GPT-4.1 nailed the indefinite integral, but when asked for the definite version, it abandoned its own antiderivative and falsely claimed the integrand was an odd function—concluding the answer was $0$. Meanwhile, OpenAI o3 and Mistral 7B falsely claimed no closed-form antiderivative existed and fell back on numerical approximation.
- More Prompting Doesn't Fix Logic: While Chain-of-Thought (CoT) gave a slight boost over Zero-shot, more complex strategies like Tree-of-Thoughts (ToT) and Self-Consistency (SC) actually reduced Semantic F1, SRS, and VR scores. Encouraging models to explore multiple reasoning paths often led them away from standard, logically sound math.
- Advanced Topics Expose the Cracks: Models performed noticeably worse on sophomore- and junior-level subjects (like Differential Equations and Linear Algebra) than on introductory topics (like Trigonometry and Precalculus).
Key Results
- Overall Performance: GPT-5.2 led the pack across all automatic metrics, yet still only reached 0.293 Accuracy, 0.330 Semantic F1, 0.330 SRS, and -0.121 VR—far below what is expected of undergraduate students. Multi-metric summary of CUMath results across models
- LLM-as-a-Grader Scores: On a 0–5 scale (excluding GPT-5.2), Claude Sonnet 3.7 earned the highest average reasoning score (3.40/5), followed by OpenAI o3 (3.17/5). Math-specialized models struggled badly on these general undergraduate problems, with Llemma-7B scoring just 0.89/5.
- Human Alignment: Three human math annotators achieved strong inter-rater agreement (Krippendorff's $\alpha = 0.829$). When the CAS-verified LLM-as-a-grader was added as a fourth "annotator," agreement remained virtually identical ($\alpha = 0.832$), confirming that the automated grader aligns well with human experts.
Limitations and Future Work
The authors note three main limitations:
- Model Coverage: The evaluation does not include the very latest models released after the study's cutoff.
- Metric Imperfection: Automatic metrics like SRS and VR still cannot fully replace expert human judgment for complex undergraduate proofs.
- Heuristic Segmentation: Breaking free-form LLM outputs into steps relies on simple cues (like newlines or "Step $k$" markers), which may not always match the true logical structure of a proof. Developing smarter, principled step-segmentation methods is a key direction for future work.
Summary updated