Benchmarking Mathematical Reasoning in LLMs: A Verifiable Evaluation Method for Model Selection
Choosing a large language model for math-heavy workloads requires more than leaderboard scores. This article presents a verifiable evaluation methodology covering novel test question sourcing, structured result recording, chain-of-thought quality scoring, long-context degradation testing, per-task cost calculation, latency measurement, and deployment decisions—plus a practical acceptance checklist before adopting any model into production.
Benchmarking Mathematical Reasoning in LLMs: A Verifiable Evaluation Method for Model Selection
Why Test with Unseen Questions
The first problem in evaluating mathematical reasoning is where the test questions come from. If the questions come from public question banks, textbooks, or published papers, the model may simply recall answers from its training data. A high score in that case says little about whether the model can actually reason.
A more reliable approach is to use questions that almost certainly do not exist in the training data. You can source them in several ways:
- Write your own questions, each with a verified standard answer;
- Use propositions from a knowledge base that have no published proofs, and verify their correctness manually;
- Rewrite existing questions by changing conditions, swapping in new values, or reversing the direction of an argument, while keeping the original answer as a reference.
For every question, record its source, creation date, and verifier. If you suspect a question has already been published, rephrase it and test again to see whether the answer remains stable.
The prompts should be public too. A reproducible test should specify the full prompt, the required output format (for example, an English explanation in LaTeX), the sampling parameters, and whether multi-turn follow-ups are allowed. Unless you are deliberately testing how well the model performs with prompt-based hints, do not add clues or intermediate steps.
How to Record Results
Checking only whether the final answer is correct provides too little information. Record at least the following fields for each run:
- Model name and version number;
- Question ID and difficulty level;
- Whether the final conclusion is correct, graded as correct, partially correct, or incorrect;
- Chain-of-thought score;
- Failure type, such as skipped steps, citations of nonexistent lemmas, symbol confusion, or conclusions inconsistent with the premises;
- Test date and number of runs.
Run the same question at least three times. If the results disagree across runs, flag the question as unstable rather than keeping only the best attempt.
How to Score Chain-of-Thought Quality
Chain-of-thought quality can be evaluated on three dimensions, each scored from 1 to 5.
Coherence measures whether every step has a clear justification and whether the causal chain holds. Skipped steps, or conclusions appearing before the derivation, should cost points.
Self-checking measures whether the model verifies its own work at key points, such as checking boundary conditions or substituting special cases. Models that catch and fix their own errors should earn extra credit.
Readability measures whether a human reviewer can trace the justification for each step within a few minutes. Verbose, repetitive writing should cost points.
The total score is the sum of all three. Scoring should be done independently by two people, with a joint discussion when they diverge significantly. Without a shared rubric, chain-of-thought comparisons are nearly impossible for others to reproduce.
Common failure cases include: introducing undefined symbols mid-derivation; replacing a critical proof step with “obviously true”; or using in step two a conclusion that is only established in step four. Documenting these cases in your report is more useful than reporting scores alone.
How to Test Long-Context Capability
Maximum input length is the model’s technical ceiling. Effective context is the range within which the model still maintains reasoning quality at that length. The two must be measured separately.
Testing can proceed in three steps.
Step one: needle-in-a-haystack testing. Embed a specific fact in a long document and ask the model to retrieve it accurately. Increase the document length incrementally and record retrieval accuracy at each length.
Step two: multi-turn reference testing. Define a lemma in an early turn, then at turn ten, turn twenty, and so on, ask the model to cite it directly. Record whether it references the lemma correctly and whether the user needs to repeat the definition.
Step three: plot the degradation curve. Put context length on the horizontal axis and accuracy on the vertical axis. The point where accuracy begins to drop noticeably marks the effective context limit for that scenario.
The threshold should be set by your team based on business requirements. For example, if your application requires citation accuracy of at least 95%, use that as the decision criterion. Without a defined threshold, your conclusion can only describe the observed trend—not a definitive upper limit.
How to Calculate Cost
Cost should be calculated per task, not estimated by intuition.
Single-run cost equals the number of input tokens multiplied by the input price, plus the number of output tokens multiplied by the output price. If the platform bills in credits, convert using the platform’s published conversion rules.
Monthly cost equals average per-run cost multiplied by the average monthly number of tasks. You should also record the distribution of input and output lengths, since a small number of long tasks can account for most of the spending.
Platforms frequently change their billing units and subscription tiers. Your report should state the measurement date, subscription tier, and billing rule version so readers can verify the numbers.
Queuing and Response Latency
Queuing during peak hours affects the stability of your application. Record at least the following metrics:
- The definition of peak hours, e.g., 10 a.m. to 12 p.m. on weekdays;
- P50 and P95 first-token latency;
- Request failure rate and timeout rate;
- Retry policy, such as exponential backoff with an initial 1-second wait, doubling each time, capped at three retries.
Core business paths should have timeout and fallback mechanisms in place. If P95 latency exceeds what the business can tolerate, do not go live—even if average latency looks fine.
Self-Hosting vs. Calling an API
When choosing a service model, work through the following questions:
- Does the data involve information that must stay inside your network? If so, self-hosted or private deployment deserves priority.
- Is concurrency stable and high? Consistently high concurrency can lower per-run costs for self-hosting, provided hardware utilization is high enough.
- Does your team have the operational capacity? Self-hosting means owning hardware procurement, driver maintenance, incident handling, and model upgrades.
- How dependent is the business on model updates? If you need to keep up with the latest versions, a frequently updated API service may be simpler.
Different scenarios have different priorities. Education values readable and traceable chain-of-thought output, so prefer models that produce complete reasoning. Academic research demands verifiable question provenance. Production environments focus on latency and cost. Enterprise self-hosting additionally requires evaluation of security auditing and operational responsibility.
Acceptance Checklist
Before adopting a model into your formal workflow, confirm the following:
- At least three rounds of testing have been completed using unpublished or verifiably sourced questions;
- Every question’s results include model version, number of runs, and failure types;
- Chain-of-thought scoring was done independently by two people, with disagreements documented;
- Long-context testing produced a degradation curve with a clearly defined business threshold;
- Cost has been calculated on both a per-task and monthly basis, with billing rules noted;
- Latency metrics include P50 and P95, along with retry and fallback plans.
Only after these checks are complete is a model selection decision well-grounded. If any item is missing, state that explicitly in the report rather than papering over it with vague descriptions.
