Evaluating Mathematical Reasoning in Large Language Models: Methods and Best Practices

    Assessing the mathematical capabilities of large language models requires more than reading a leaderboard. This article explains how to build a layered, reproducible, scenario-oriented evaluation framework: it breaks down math task types, defines core evaluation dimensions such as correctness, reasoning quality, chain-of-thought efficiency, stability and cost, proposes phased scoring methods for open-ended math problems, and provides a practical evaluation pipeline design with guidance on experiment setup, result interpretation, and engineering observability. The goal is to turn model evaluation into a repeatable engineering process that supports reliable model selection decisions.

    Evaluating the mathematical capability of a large language model (LLM) is far more complex than simply reading a leaderboard. When people discuss math ability, a common approach is to rank several models on a single table, or even declare outright “who is stronger.” From an engineering perspective, this approach is often too crude: math tasks themselves vary widely, and closed-form problems versus open-ended ones, computation versus proofs, single-turn Q&A versus tool-assisted reasoning all demand different capabilities. The same model can also behave significantly differently under different prompts, sampling parameters, and scoring methods. Therefore, a more professional approach is to build a layered, reproducible, scenario-oriented evaluation system, rather than relying on one-off experiences or informal comparisons.

    1. Define the Evaluation Target First: Math Is Not a Single Capability

    The first step in evaluating a model’s math ability is to break tasks down by type. At minimum, four categories should be distinguished: basic computation and algebraic manipulation, competition-style closed-form problems, applied modeling problems, and open mathematical problems with proof generation. Basic computation emphasizes accuracy and stability; competition problems emphasize multi-step reasoning and knowledge transfer; applied modeling emphasizes problem comprehension and reasonable assumptions; open mathematical problems often have no single correct answer and instead emphasize the exploration process, proof ideas, and verifiability.

    Mixing these task types into one overall score easily hides a model’s weaknesses in specific scenarios. For example, a high score on closed-form problems does not mean a model can propose valuable research questions or produce rigorous proofs. When selecting a model for enterprise use, first list the task types the business actually needs, then design the corresponding evaluation set.

    2. Core Evaluation Dimensions: Process Quality Matters Beyond Correctness

    Math capability evaluation should cover at least the following dimensions: correctness, reasoning quality, chain-of-thought efficiency, expression readability, stability, reproducibility, and cost. Correctness is the baseline, but the final answer alone is not enough. Reasoning quality requires checking whether steps are complete, whether assumptions are explicit, and whether there are skipped steps or circular arguments. Chain-of-thought efficiency refers to the reasoning length and complexity consumed to reach a correct result—overly long chains increase latency and cost, and make it easier for errors to accumulate in intermediate steps. Readability affects human review and usability in teaching scenarios; concise, clear derivations are usually more valuable than verbose ones.

    Stability and reproducibility require sampling multiple times on the same input and observing the variance of results. Cost includes inference latency, token consumption, and the cost of human review. Even if a model performs brilliantly in a single run, large variance makes it unsuitable for production.

    3. Challenges and Approaches for Open-Ended Math Problems

    Open-ended math problems have no ready-made standard answers, making this the stage where “impression” most easily replaces “measurement.” A phased scoring approach is recommended: the first phase checks whether problem understanding and modeling are reasonable; the second phase checks key lemmas, proof structure, and awareness of counterexamples; the third phase checks whether conclusions are verifiable and can be converted into checkable forms. For formalizable parts, formal verification or symbolic computation checks can be introduced; for non-formalizable parts, use double-blind human review with an arbitration mechanism. Judge models can also produce structured scores, but this must be paired with manual spot checks to avoid judge bias.

    Open-ended evaluation should not output just one total score; it should produce a dimensional profile, such as “strong exploration ability, medium proof rigor, good readability.” This is far more meaningful for model selection.

    4. Building a Layered Evaluation Set and Scorers

    The evaluation set should be layered by difficulty and task type, with a small number of “stress samples” retained to observe boundary behavior. Scorers can combine rule checks, reference answer comparison, process scoring, and human review. For numeric problems, normalize first, then compare final results; for proof problems, check coverage of key steps and logical jumps; for open-ended problems, record scoring rationales. The following generic pseudocode illustrates the basic structure of an evaluation pipeline:

    1. Define evaluation_dataset = load_layered_problems()
    2. Define model_list = read_model_configs()
    3. Define result_table = empty_table
    4. For each model in model_list:
    5. For each sample in evaluation_dataset:
    6. multi_sample_results = []
    7. For run in 1..N:
    8. output = call_model(sample.prompt, temperature=configured_value)
    9. multi_sample_results.append(output)
    10. auto_score = rule_and_reference_check(multi_sample_results)
    11. process_score = structured_process_check(multi_sample_results)
    12. human_review = sampled_manual_review(multi_sample_results)
    13. record(result_table, model, sample, auto_score, process_score, human_review)
    14. compute_stability_metrics(result_table, model)
    15. Output layered report and dimensional profile

    This pipeline emphasizes multiple sampling and the combination of automated scoring with human spot checks, avoiding conclusions drawn from a single call.

    5. Experiment Design and Result Interpretation

    Experiment design should fix the prompt template, sampling temperature, and maximum output length, and record version information. Each sample should be sampled multiple times, and reports should include the mean, variance, and confidence intervals. For leaderboards, layered presentation is recommended instead of a single total score: rank separately by task type, difficulty, and reasoning length, while annotating cost and stability.

    When interpreting results, avoid direct cross-task comparisons. A model that excels at open-ended problems may not be equally suitable for high-concurrency short Q&A; a model with concise chains of thought may omit key steps in complex proofs. Selection should come back to business constraints: latency, cost, reviewability, output style, and failure modes.

    6. Engineering Implementation and Observability

    When building an evaluation platform, you need to store problem versions, prompt versions, model configurations, sampling results, and scoring records to keep results traceable. Task scheduling, logging, and monitoring alerts are general cloud product categories; general compute, logging, and monitoring capabilities from cloud providers such as Baidu AI Cloud can support the observability of evaluation workloads, though the specific architecture should be designed around the team’s existing infrastructure. For large-scale evaluation, caching, batch processing, and asynchronous tasks can reduce waiting time; for human review, design sampling strategies and arbitration workflows. The final output should not be just a “ranking,” but should include scenario-fit recommendations, risk notes, and entry points for reproducing the experiments.

    Conclusion

    To evaluate the mathematical capability of an LLM, open-problem ability, chain-of-thought efficiency, expression quality, stability, and cost should all be incorporated into a unified framework, using layered evaluation sets and multiple scorers to reduce bias. Only by turning evaluation into a reproducible engineering process can it provide a reliable basis for model selection and technical decisions.