A Practical Guide to Evaluating LLM Performance on Hard Mathematical Reasoning
This guide explains how to move from one-off impressions to a systematic evaluation of large language models on hard math tasks. It covers capability layers, scoring dimensions, prompt and protocol design, resource control, result interpretation, and selection advice aligned with teaching, research, and automation goals.
1. From one-off trials to systematic evaluation
A common mistake when judging large language models on hard mathematics is treating a single generation as a proxy for overall ability. A well-written proof or lecture note can overstate fitness for complex reasoning; a timeout, quota hit, or unstable output can understate it. Both judgments rest on chance samples.
Treat evaluation as an engineering problem: define the task, design samples, fix run parameters, scoring rules, repetition counts, and failure attribution, then produce a reproducible report. For hard math, separate “looks correct,” “steps are complete,” “the conclusion is checkable,” and “the writing is teachable.” Only then can you tell whether a model is better for research support, teaching notes, code generation, or simple Q&A.
The core question, independent of any one product, is how to measure real ability, resource cost, and fit when models are used for complex proofs, lecture writing, and long-form organization.
2. Layering hard math capabilities
Do not score hard math as a single skill. Layer tasks by cognitive load and verification cost.
Layer 1: Basic calculation and routine derivation. Algebraic manipulation, equation solving, elementary probability. Answers are relatively definite and cheap to grade—good for smoke tests.
Layer 2: Multi-step logical deduction. Inequality proofs, sequence limits, combinatorial counting. The model must keep intermediate conditions and hidden assumptions. Score step continuity and skipped reasoning.
Layer 3: Open-ended proof generation. Completing a proof and turning it into lecture notes sits here. There is no unique gold answer. The model must choose a path and organize definitions, lemmas, chains, and conclusions. Score self-consistency of structure, checkability of key steps, and teaching quality—not only the final line.
Layer 4: Long-context synthesis and verifiable output. Surveys from large corpora, comparing theorem conditions, structured formulas or derivations that can be auto-checked. Context management, format adherence, and consistency matter more.
Layering prevents easy-item scores from hiding hard-task gaps, and extreme failures from erasing value on routine work.
3. Designing the metric system
Use five families of metrics: correctness, verifiability, expression quality, stability, and cost efficiency.
Correctness is whether the conclusion holds. Computable items can be matched; proofs need humans or rule engines on key steps.
Verifiability is whether the process can be audited. Strong output states premises, definitions, lemmas, steps, and conclusion bounds. Vague wording is a poor fit for rigorous settings even if the answer happens to be right.
Expression quality is fitness for the audience. Teaching notes need hierarchy, consistent terms, and clean formulas; research support needs precise conditions and exceptions.
Stability is consistency across runs. Fix randomness, repeat the same task, and watch for drifting conclusions or contradictory steps.
Cost efficiency covers quota, latency, and resource use. Log input/output length, time, and retries. A slightly better single run that is too expensive may fail at batch scale.
An illustrative scoring frame:
Total = correctness × 0.35+ verifiability × 0.25+ expression quality × 0.15+ stability × 0.15+ cost efficiency × 0.10
Adjust weights by use case: raise expression quality for teaching; raise verifiability for automatic checking.
4. Prompts and evaluation protocol
Prompts for hard math should be constrained, role-clear, and checkable. Ask the model to list known conditions, then a proof strategy, then a formal proof. For lecture style, require sections, numbering, and unified terms.
Suggested structure:
You are a rigorous mathematics assistant.Complete the following:1. Restate the proposition and known conditions;2. List definitions or lemmas that may be used;3. Give a proof strategy;4. Output a complete proof;5. End with a short teaching note.If conditions are insufficient, state what is missing; do not invent them.
Fix inputs, output format, temperature, max length, and retry policy. For open proofs, sample at least three independent times and score with a shared rubric: accurate premises, complete key steps, circular reasoning, missed edge cases, clarity.
Where possible, add automatic checks: symbolic verification of algebra, format validation of structured output, consistency of key terms. Automation does not replace human review but cuts large-scale cost.
5. Resource control and production rollout
Hard math often costs more. Treat model calls as an observable, governed pipeline, not a one-shot chat.
Task-tier routing. Easy items go to cheaper paths; complex proofs to stronger ones, so not every request burns high-cost capacity.
Cache and reuse. Cache intermediate results for the same proposition, prompt template, or similar lecture structure.
Logs and monitoring. Record input/output summaries, latency, failure reasons, retries, and scores. Build an evaluation warehouse with logging, alerts, and object storage so you can track drift and alert on resource anomalies.
Quotas and fallbacks. When queues or resources are tight, degrade to a lighter model or ask users to split work. For lecture notes, split into outline, proof, and polish to limit the cost of a single failure.
6. Interpreting results: avoid a single ranking
A total-score ranking is less useful than a capability profile and a failure-type distribution.
One model may be stable on routine derivation but skip steps in open proofs; another may keep fuller paths but write at length; another may teach well but miss boundary conditions. That profile drives decisions better than a name order.
Open math problems have no unified answer and high variance. Score whether the model can propose a viable approach, find counterexamples, and fix bad steps—not whether the prose is polished.
Long reasoning traces are not automatically high quality. Extra chain length can raise error rates and cost. Production-ready output balances correctness, brevity, and verifiability.
7. Selection advice by business goal
For teaching assistants, prefer clear, structurally stable, template-following models plus human spot checks.
For research support, weight open proof, strict conditions, and multi-turn revision. Use a generate–check–revise loop, not a single shot.
For large-scale automation, put cost efficiency, concurrency, and recovery first. Cut overhead with task tiers, cache, batching, and alerts.
The point is not to find an absolute strongest model, but an evaluation system that matches the business goal. Combining task layers, quantified metrics, automated process, and cost governance yields a stable, reproducible, comparable, and extensible way to choose and iterate.
