Evaluating LLM Math Capabilities: From Proof Verification to Evaluation Design

    Evaluating the mathematical reasoning capabilities of Large Language Models (LLMs) goes far beyond simply checking the final answer. This article explores a structured approach to assessing LLM math performance, covering multi-dimensional evaluation metrics, dataset construction, proof verification workflows, resource management, and common pitfalls in interpreting results. By adopting this comprehensive framework, developers can gain accurate insights into their models' true reasoning capabilities.

    1. Why a Single Score Cannot Summarize Math Capabilities

    Math task outputs typically consist of a reasoning process followed by a conclusion. While the correctness of a conclusion is easy to verify, the validity of the reasoning requires step-by-step inspection. A model might arrive at the correct answer while skipping a crucial lemma or assuming unproven results. Therefore, relying solely on answer accuracy masks significant underlying issues.

    Furthermore, a model’s performance can vary drastically across different types of math problems. Calculation-based problems rely on accurate symbolic manipulation, while proof-based problems require structural planning, conceptual understanding, and the ability to cite established results. Blending these into a single score leaves developers unable to determine what types of tasks the model is actually suited for.

    2. Deconstructing Evaluation Dimensions

    It is recommended to record results across at least the following five dimensions:

    1. Conclusion correctness: Is the final proposition proven, or is the calculation result accurate?
    2. Logical completeness: Is each step justified, and are there any unjustified leaps in logic?
    3. Citation accuracy: Do the cited definitions, theorems, and lemmas exist, and are they stated without error?
    4. Expression standardization: Are symbols, notations, and terminology used consistently throughout?
    5. Self-consistency: Are assumptions and variable domains consistent across the entire context?

    Scoring each dimension individually paints a clearer picture of the model’s true capabilities than a simple “right or wrong” binary. For instance, one model might reach a correct conclusion but cite incorrect theorems, while another reaches a wrong conclusion but maintains a largely sound reasoning framework. The improvement directions for these two models are entirely different.

    3. Building a Reliable Evaluation Dataset

    The quality of the evaluation dataset determines the credibility of the conclusions. Three key points must be considered:

    • Traceable problem sources: Prioritize materials with publicly available standard answers or those that have undergone peer review, and record their sources and versions.
    • Difficulty tiering: Categorize problems into basic, intermediate, and advanced based on prerequisite knowledge depth. Retain a sufficient number of samples in each tier to avoid drawing conclusions from just one or two problems.
    • Preventing data leakage: If problems and their proofs appear extensively in the training corpus, the model’s performance may stem from memorization rather than reasoning. You can equivalently rewrite problems or use new problems published after the model’s training cutoff date.

    4. Verification Process for Proof-Based Tasks

    Proof verification typically involves three steps:

    1. Automated inspection: Extract propositions, assumptions, and conclusions. Check if the output contains a complete argument structure and whether referenced numbers or names can be found in reference materials.
    2. Manual review: Personnel with relevant backgrounds verify the reasoning step-by-step. This step is indispensable because automated checks cannot determine whether a specific reasoning step is actually valid.
    3. Recording and re-evaluation: Save the raw output, review comments, and basis for judgment to facilitate re-evaluating the same problem in the future.

    Below is a simplified evaluation record structure to illustrate data organization:

    1. from dataclasses import dataclass, field
    2. @dataclass
    3. class ProofRecord:
    4. problem_id: str
    5. statement: str
    6. model_output: str
    7. conclusion_correct: bool
    8. logic_score: int # 1-5, manual scoring
    9. citation_correct: bool
    10. notes: list[str] = field(default_factory=list)
    11. def run_eval(problems, call_model, reviewer):
    12. records = []
    13. for p in problems:
    14. output = call_model(p["statement"])
    15. verdict = reviewer(p, output) # Manual or semi-automated review
    16. records.append(ProofRecord(
    17. problem_id=p["id"],
    18. statement=p["statement"],
    19. model_output=output,
    20. conclusion_correct=verdict["conclusion"],
    21. logic_score=verdict["logic"],
    22. citation_correct=verdict["citation"],
    23. notes=verdict.get("notes", []),
    24. ))
    25. return records

    Once structured, you can generate statistics across dimensions or trace back specific failure cases to pinpoint exactly which stage the problem occurred in.

    5. Resource and Cost Management

    Long reasoning tasks consume significantly more tokens than standard Q&A, making budget planning essential before evaluation.

    • Estimate the average token consumption per problem and multiply by the number of problems to project overall usage.
    • Fix inference parameters and prompt templates. Otherwise, results across different batches lack comparability.
    • Prioritize re-running failed samples to determine if they represent sporadic failures or systematic defects.

    For services billed by quota or credits, confirm the expiration date of remaining quotas before evaluation. Credits expiring before use is a common source of resource waste.

    6. Common Pitfalls in Interpreting Results

    1. Drawing conclusions from small samples: Results from a dozen or so problems are highly volatile; a single good performance does not indicate stability.
    2. Equating “providing an answer” with “proof established”: A correct answer with flawed reasoning remains unusable in research or engineering contexts.
    3. Ignoring the impact of prompts: The same model may yield markedly different results under different prompts. Reports should include the complete prompts and parameter settings.
    4. Replacing records with subjective impressions: “Feels stronger” is difficult to reproduce and should be translated into quantifiable metrics.

    7. Implementation Recommendations

    Teams needing to assess reasoning capabilities over the long term can proceed in the following order: first define scoring dimensions and standards, then build a small-scale seed evaluation dataset, run through the complete process using the record structure above, and finally scale up the sample size incrementally. Re-running the same evaluation dataset after every model or version update is the only way to determine if actual capability changes have occurred.

    This methodology is equally applicable to tasks requiring process verification, such as code-based reasoning and logical deduction.