Evaluating Mathematical Reasoning in LLMs: A Practical Selection Guide

    Mathematical reasoning is one of the hardest capabilities to evaluate in large language models. This guide covers what to measure, how to audit chain-of-thought quality, how to use models to generate proof-based lecture notes with human verification, how to build a reproducible scoring matrix, and how to interpret throughput benchmarks. It closes with common pitfalls and a pre-deployment checklist for selecting a model for mathematical work.

    Key Takeaways

    Evaluating a model’s mathematical ability comes down to three things: whether the conclusion of a proof is correct, whether the derivation can be reviewed step by step by a human, and whether the compute cost is acceptable. A model’s own “proof” cannot be taken at face value—it must be verified by a domain expert. For model selection, run tests on your own task set rather than relying on marketing materials or a single leaderboard.

    1. Evaluation Dimensions and Measurement Criteria

    Before evaluating, decide what to measure, how to measure it, and who judges correctness. The table below outlines an actionable evaluation framework.

    Dimension Example Task Core Metric Measurement Human Review Scope Limitations
    Standard problem solving Competition or undergraduate problems with known answers Accuracy Sample the same problem multiple times and compute the pass rate Spot-check incorrect samples to identify error causes Only reflects problem types with definitive answers
    Proof completeness Rewriting proofs of published theorems Step completeness rate, citation accuracy Score each proof on four items: theorem statement, lemmas, derivation, and conclusion Reviewed step by step by mathematics professionals Results are not comparable when proofs exceed the context window
    Open-ended problems Small-scale propositions without known answers but whose truth can be determined Proportion of verifiable conclusions Only count conclusions that can be independently proven or refuted by counterexample Independently reviewed by domain experts Conclusions that cannot be verified are excluded from success rates
    Chain-of-thought quality Multiple reasoning traces for the same problem Average output token count, redundant step ratio Measure output length with a unified tokenizer Two reviewers independently label redundant steps Shorter output does not mean higher quality
    Lecture note readability Model-generated LaTeX lecture notes Compile success rate, structural completeness Whether the document compiles and contains theorem, proof, and conclusion Scored by teachers or authors against a rubric Formatting and content correctness must be evaluated separately

    For open-ended propositions, ground truth is often unknown, so test sets should prioritize propositions whose truth can be independently determined. Conclusions that cannot be verified should be logged as “pending verification” and excluded from success rates.

    2. Chain-of-Thought: Length Is Not Quality

    When different models work on the same problem, chain-of-thought lengths can vary dramatically. Longer reasoning may reduce skipped steps, but it increases token consumption and is more likely to exhaust the context window. Shorter reasoning is cheaper but may omit key assumptions.

    When evaluating chain-of-thought, ask two questions: Can each step be derived from the previous step or from a known theorem? And if the conclusion is wrong, can a reviewer quickly locate the faulty step? If only the final answer is visible and the error location cannot be identified, the reasoning has low verifiability.

    3. Using Models to Generate Proof-Based Lecture Notes

    Asking a model to prove unpublished propositions directly makes it impossible to judge whether the output is correct. A more reliable approach is to first test the model on propositions with known results to confirm its reliability on that problem type, then apply it to new propositions while keeping human review in the loop.

    Use a prompt template like the following:

    1. Task: Prove the following proposition and produce an English LaTeX lecture note.
    2. Proposition: [insert the proposition, including all assumptions and definitions]
    3. Requirements:
    4. 1. First list the definitions and known theorems used, along with their sources.
    5. 2. Organize the note into four sections: theorem statement, lemmas, derivation, and conclusion.
    6. 3. Justify every step. Mark any step you cannot establish as "pending verification"—do not omit it.
    7. 4. If the proposition is false, provide a counterexample and explain why.
    8. 5. Output compilable LaTeX code using only standard packages.

    After the model produces output, check it against this list:

    • Whether every assumption of the proposition is actually used.
    • Whether each cited theorem is stated accurately and its source exists.
    • Whether boundary conditions or counterexamples were tested.
    • Whether the LaTeX compiles, with the compilation log saved.
    • Whether a domain expert completed an independent review and recorded their findings.
    • Whether the model version, prompt, and raw output were logged for traceability.

    Until review is complete, the model’s output should be treated as a draft or a lead—not as a publishable conclusion.

    4. Comparison: Build a Verifiable Scoring Matrix

    Qualitative labels like “top tier” or “second tier” are hard to reproduce and reveal nothing about the reasoning behind them. A more reliable approach is to build a numeric scoring matrix and test all candidate models with the same test set and the same sampling parameters.

    Model Version Number of Test Problems Pass Rate Avg. Output Tokens Readability Score (1–5) Notes
    To be filled To be filled To be filled To be filled To be filled Record test date and sampling parameters
    To be filled To be filled To be filled To be filled To be filled Record test date and sampling parameters

    When filling in the matrix, keep the following in mind:

    • Use the same test set across all models, covering both standard problems and open-ended ones.
    • Fix and record sampling parameters (e.g., temperature, maximum output length).
    • Sample each problem at least multiple times to avoid bias from single runs.
    • If you need to group models by performance, define the grouping criteria explicitly—for example, pass rate bands or average token thresholds.

    5. Inference Performance: Reading Throughput Numbers Correctly

    Tokens/s figures circulating online are only meaningful when test conditions are disclosed. The same model can show several-fold differences in throughput depending on the setup.

    When reporting performance data, state at minimum:

    • Model name, version, and quantization precision (e.g., FP16, INT8).
    • Number of concurrent requests and batch size.
    • Average input and output lengths, and the share of long-context scenarios.
    • Hardware model, and whether deployment is single-node or multi-node.
    • Network conditions and the inference framework used.

    Beyond throughput, also record time to first token (TTFT) and p50/p95 response times. For long-output tasks like mathematical proofs, first-token latency and tail latency often reflect user experience better than average throughput.

    On the infrastructure side, multi-GPU inference typically requires low-latency, high-bandwidth node interconnects such as RDMA networks, while long-context inference depends on ample GPU memory and efficient KV cache management. These are general factors—the actual impact should be confirmed through your own benchmarks.

    When choosing between cloud services and self-hosted clusters, weigh compliance requirements, cost, service level agreements, and operational capacity. Run the same benchmark suite across multiple platforms before deciding.

    6. Common Mistakes

    • Treating the model’s self-explanation as a proof.
    • Judging model capability from a single sample.
    • Ignoring output truncation caused by context overflow.
    • Looking only at accuracy without computing cost per correct conclusion.
    • Producing well-formatted notes that omit the theorem’s assumptions.
    • Publishing conclusions that cannot be verified.

    7. Selection Checklist

    Before committing to a model, confirm each of the following:

    • Task type is clear: standard problem solving, proof rewriting, open-ended exploration, or lecture note generation.
    • A test set exists and includes problems with known answers.
    • The scoring matrix is filled in, and test conditions are reproducible.
    • Performance data includes full measurement conditions and latency metrics.
    • Cost per inference fits the budget.
    • Context length covers the longest proofs you need.
    • Compliance requirements for data and outputs have been confirmed.
    • Each conclusion has a designated human reviewer.

    Once the checklist is complete, the model can be put into use as a mathematical assistant—but its conclusions still require expert verification.