Evaluating LLM Mathematical Reasoning: Metrics, Processes, and Selection Guide

    This article provides a practical framework for evaluating LLM mathematical reasoning capabilities. It explains why final answer accuracy alone is insufficient, details a multi-dimensional metric system covering reasoning correctness, readability, cost, and latency, and offers guidelines for test set construction and model selection.

    In the comparison of Large Language Model (LLM) capabilities, mathematical problems often serve as a benchmark for logical reasoning. Enterprises are primarily concerned with whether a model can maintain accuracy during multi-step derivations and remain reliable without human review. Relying solely on final answer accuracy cannot determine if a model is suitable for a specific business use case. Below is a practical framework that includes metrics, test sets, testing conditions, selection processes, and evaluation pipelines.

    Core Conclusion: The recommended core metrics fall into four categories: final answer accuracy, reasoning process correctness, output readability, and cost & latency. Chain-of-thought (CoT) length is recorded separately as explanatory data and does not contribute to the final score.

    1. Why Final Answer Accuracy Alone is Insufficient

    Final answer accuracy is a necessary metric, but it fails to answer three questions. First, is the model’s reasoning process reliable, or did it just guess correctly by chance? Second, how many tokens and how much time does the model consume to reach the answer? Third, is the output understandable and verifiable by the end-user?

    Take financial calculations as an example. Two models might produce the same correct final figure, but the first model has clear intermediate steps, while the second model’s derivation skips key conditions. The first model is more useful in audit scenarios, whereas the second model poses higher risks in unreviewed environments. Therefore, evaluation must capture both the result and the process.

    In audit or financial scenarios, you can use the following checklist to review each sample:

    • Are all conditions stated in the problem present in the derivation?
    • Can each intermediate result be traced back to the problem’s data or previous conclusions?
    • Are units, symbols, and value ranges consistent throughout the process?
    • Do the final numbers and intermediate steps corroborate each other?

    There are three main failure modes in mathematical reasoning. First, a minor error in one step of a multi-step derivation invalidates all subsequent conclusions. Second, errors occur in symbolic or numerical calculations. Third, when encountering problems without a fixed solution method, the model provides steps that appear reasonable but are actually invalid. Evaluation metrics should distinctly reflect these three types of issues.

    2. Evaluation Metric System

    The table below outlines a usable set of metrics. The weights are suggested values and should be adjusted based on business risk.

    Metric Definition Measurement Method Suggested Weight
    Final Answer Accuracy Proportion of questions where the answer is equivalent to the standard answer Numerical questions compared by margin of error, symbolic questions compared after simplification, stratified by difficulty 40%
    Reasoning Process Correctness Proportion of solutions without logical or calculation errors in intermediate steps Manual spot-checking, or scoring by an independent review model, reporting consistency between the two 25%
    Output Readability Clarity of steps, whether users can follow and verify Manual scoring on a 1 to 5 scale 10%
    Token Cost Average input and output tokens per question Accumulate usage fields returned by the API 10%
    Latency Time from sending request to fully receiving response Record P50 and P90 15%

    Chain-of-thought length is not included in the total score above. It is only used to explain cost and latency; recording its median and P90 is sufficient.

    A sensitivity analysis should be performed on the weights. For example, adjust the accuracy weight from 40% to 30% and observe if the ranking changes. If the ranking is highly sensitive to weight changes, it indicates that the difference between candidate models is marginal, requiring more samples or manual review.

    When recording results, API call failures should be counted separately and not directly counted as wrong answers. Otherwise, API instability could be misjudged as a lack of model capability.

    3. Test Set Construction and Scoring Criteria

    A test set typically consists of three parts: public competition problems, historical internal business problems, and manually created variations. Public competition problems allow for comparison with other results, but it is necessary to check if they might have appeared in the model’s training data. Business problems are closest to actual needs. Variations are used to verify whether the model truly understands the solution method rather than just memorizing the answer to the original problem.

    The test set should be stratified by difficulty, such as basic, medium, and hard. The volume of questions in each tier determines the credibility of the results regarding accuracy.