Evaluating LLM Mathematical Reasoning and Selecting Models by Use Case

    A practical evaluation of LLM mathematical reasoning should distinguish answer correctness from proof quality and compare models within specific task categories. This article explains how to build reproducible test sets, score reasoning reliability, measure cost and latency, and select models for exploratory work, proof assistance, and structured execution.

    1. Why Mathematical Reasoning Needs a Structured Evaluation

    Mathematical ability has become an important criterion for selecting large language models (LLMs). Yet many comparisons rely on impressions such as “this model is smarter” or “that model is faster.” These claims are difficult to reproduce and provide little support for procurement or architecture decisions.

    A useful evaluation should answer three questions:

    • Which types of mathematical tasks can the model handle reliably?
    • What kinds of errors does it typically make?
    • When quality is comparable, are its cost and latency acceptable?

    Mathematical tasks differ from general question answering because their answers are often verifiable, and their intermediate arguments must be rigorous. Evaluation should therefore separate answer correctness from reasoning validity. A correct conclusion supported by substantial gaps may still be unusable in a proof-oriented workflow.

    2. Define the Task Categories First

    A model’s performance can vary substantially across use cases. Before testing, divide tasks into distinct categories:

    1. Exploratory discussion: Generating conjectures, comparing approaches, or mapping the relevant literature. Some errors may be tolerable; the priorities are useful ideas and breadth of coverage.
    2. Theorem-proof assistance: Producing complete, checkable arguments. The priorities are a sound logical chain and valid assumptions or cited results.
    3. Structured execution: Performing calculations according to prescribed steps, organizing formulas, or applying transformations in batches. The priorities are accuracy, consistent formatting, and speed.

    Each category requires different scoring criteria. Combining all three into one overall score usually produces a result with little practical value.

    3. Build a Reproducible Evaluation Set

    The evaluation set is the foundation of the comparison. Use the following principles:

    • Stratified sampling: Include multiple problems at each difficulty level and cover major areas such as algebra, analysis, geometry, and combinatorics.
    • Verifiable answers: Retain a reference answer or an automated validation method for every problem. For proof tasks, prepare key proof steps reviewed by subject-matter experts.
    • Reduce data contamination: Prefer recently published problems that have not circulated widely, or manually modify the conditions and numerical values of existing problems to reduce the risk that the model encountered the exact problem during training.
    • Fix and record versions: Record the model version, inference settings, and test date. The same model may perform differently over time, so conclusions should state when they apply.

    4. Score More Than Final-Answer Accuracy

    A binary correct-or-incorrect judgment is not enough to distinguish model quality. Use at least the following dimensions, with a scale such as 0–2 or 0–5 for each:

    • Answer correctness: Does the final answer match the reference result?
    • Reasoning completeness: Are all essential steps present? Does the argument contain unsupported jumps or circular reasoning?
    • Validity of premises: Do the cited definitions, theorems, and conditions exist, and are they stated accurately? This is especially important for proofs, where models may invent plausible-sounding lemmas.
    • Clarity and notation: Are symbols defined consistently, and is the response structured for human review?
    • Self-consistency: Does the model reach stable conclusions across repeated samples of the same problem?

    Human review remains necessary. Automated grading can handle numerical answers, but assessing the logical quality of proofs still requires reviewers with the appropriate mathematical background. For critical tasks, use two independent reviewers and calculate an inter-rater agreement statistic to check whether the scoring criteria are clear.

    An illustrative aggregation procedure is:

    1. For each model m and problem t:
    2. Run n repeated requests and record answers a_1 ... a_n
    3. Accuracy = number of answers judged correct / n
    4. Completeness score = mean human-review score
    5. Stability = proportion of runs with consistent conclusions
    6. Aggregate these metrics separately by task category.
    7. Do not combine different task categories into a single overall score.

    5. Evaluate Cost and Speed Alongside Quality

    Quality is not the only selection criterion. If two models have similar accuracy on a task category but one takes several times longer to respond, its small quality advantage may matter less than the other model’s throughput advantage in a batch workflow.

    Measure the following:

    • Time to first token: The time between sending a request and receiving the first output token. This directly affects the interactive experience.
    • Generation speed: Output tokens generated per unit of time, which affects completion time for long responses.
    • Cost per task: Input and output token counts multiplied by their respective prices, plus additional costs from retries.
    • Cost per correct result: Cost per task divided by accuracy. This helps compare a cheap but error-prone model with a more expensive, reliable one.

    Illustrative calculations are:

    1. Cost per correct result =
    2. (average input tokens * input price per token
    3. + average output tokens * output price per token) / accuracy
    4. Total processing time =
    5. number of tasks * average generation duration / concurrency

    Concurrency, batching, and caching can all change actual processing time and cost. Test under conditions that resemble production and record these configurations; otherwise, results from separate tests may not be directly comparable.

    6. Follow a Task-Based Model Selection Process

    Use the following steps to turn evaluation results into a selection decision:

    1. List the mathematical tasks in the workflow, assign each to a task category, and identify the consequences of errors.
    2. Compare candidate models on the evaluation set using the quality metrics relevant to each category.
    3. Among models that meet the quality threshold, compare cost per correct result and speed.
    4. Retain human review for tasks with high error costs, even when using a lower-cost model.
    5. Rerun the evaluation periodically because model updates can change the results.

    A common outcome is a tiered approach: use a model with flexible expression and a broad range of ideas for exploration; assign core arguments to a more consistently reliable model, supported by human review; and use a fast, low-cost model for large volumes of standardized calculations.

    7. Common Evaluation Pitfalls

    • Treating a single interaction as evidence: Impressions from a few examples are easily influenced by problem difficulty and prompt wording.
    • Checking only the final answer: A correct answer does not establish that the reasoning is reliable, especially in proof tasks.
    • Overlooking hallucinated references: A model may cite nonexistent theorem numbers or incorrect conditions. Check these claims individually.
    • Using identical prompts for every model: Models differ in their sensitivity to prompt formats. Make reasonable model-specific adjustments and document them.
    • Ignoring hidden costs: Retries, human review, and debugging time should all be included in total cost.

    8. Conclusion

    Evaluating mathematical reasoning requires separating task requirements, quality criteria, and operational costs. Start by defining task categories, then use a reproducible evaluation set to measure correctness and reasoning quality. Finally, compare cost per correct result and speed among models that meet the required quality threshold.

    This produces selection decisions that are easier to explain, more relevant to actual workflows, and suitable for repeated validation as models evolve.