How to Evaluate the Mathematical Reasoning of Large Language Models: A Framework

    This article breaks down a practical framework for evaluating the mathematical reasoning of large language models. It explains why leaderboard comparisons are often unreliable, then introduces four evaluation dimensions—tiered problem sets, chain-of-thought quality, stability and consistency, and cost constraints—along with a weighted scoring table and sample evaluation code. Readers will learn how to make model differences visible and turn evaluation results into task routing and resource scheduling decisions.

    1. Why “Which Model Is Better” Is Hard to Answer

    In comment-section debates, the most common argument is to line up several models on a single leaderboard and rank them. But developers who have actually run evaluations know that such comparisons usually miss three prerequisites: whether the problem difficulty is comparable, whether the scoring criteria are unified, and whether the reasoning process is observed at all. One useful point from the original discussion is that not every model can handle open-ended math problems. Some models clearly struggle with tasks that require long-chain construction and multi-step verification, while others mainly excel at concise reasoning chains and natural expression. This article strips away specific product attributes and abstracts that experience into a general evaluation method.

    Open-ended math problems differ from routine calculation tasks in that the answer space is not predefined, the solution path must be constructed by the model itself, and the correctness of intermediate steps cannot be obtained through pattern matching. The evaluation focus should therefore shift from “is the final answer correct” to “is the process verifiable and reproducible.”

    2. Four Dimensions of the Evaluation Framework

    2.1 Problem Tiering

    It is recommended to split the question bank into four layers, increasing pressure layer by layer:

    • L1 Basic arithmetic and definition checks: tests format compliance and basic accuracy;
    • L2 Standard solutions for routine problem types: tests step completeness;
    • L3 Problems requiring constructive thinking: tests whether a solution framework can be built without a template;
    • L4 Open-ended, research-style mini problems: tests long-chain reasoning and self-verification.

    Only L3 and L4 provide real discriminative power. If L1 and L2 make up too large a share of the evaluation set, the final score will be dominated by “answer formatting” rather than “reasoning ability.”

    2.2 Chain-of-Thought Quality

    A longer chain of thought is not necessarily better. In practice, three signals can be observed: first, conciseness—whether the model reaches a conclusion without redundant backtracking; second, auditability—whether each step has a clear basis; third, self-correction—whether the model actively retreats when it detects a contradiction instead of forcing its way forward. The original text notes that models differ significantly in “chain-of-thought length and complexity,” which suggests that evaluations should record both length and the proportion of effective steps, rather than length alone.

    2.3 Stability and Consistency

    Sample the same problem multiple times and observe the answer agreement rate and solution diversity. A high agreement rate usually means the internal reasoning is relatively stable; diverse solutions that reach the same conclusion indicate the model can verify along multiple paths. It is recommended to fix the randomness parameters and run at least three repetitions.

    2.4 Cost and Engineering Constraints

    Queue time, credit or quota consumption, context length limits, and concurrency all affect real-world usability. A common practical scenario is this: when the remaining quota in an account is about to expire, rather than leaving it idle and wasted, it makes sense to concentrate several high-consumption tasks and “burn” the quota on valuable work through real business tasks. This is a resource scheduling problem, not a model capability problem, and should be listed separately in the evaluation report.

    3. A Practical Scoring Table

    Dimension Weight Observed Metric
    L3/L4 accuracy 40% Proportion of final answers verified as correct
    Process auditability 25% Whether key steps are sufficiently justified
    Stability 20% Agreement rate across repeated samples
    Cost efficiency 15% Quota consumption and wait time per task

    4. Sample Evaluation Code

    1. # Pseudocode: tiered evaluation and multi-sample consistency statistics
    2. def evaluate(model_client, tasks, repeats=3, temperature=0.0):
    3. report = []
    4. for task in tasks:
    5. results = [model_client.solve(task.prompt, temperature=temperature)
    6. for _ in range(repeats)]
    7. answers = [r.final_answer for r in results]
    8. consistency = max(answers.count(a) for a in set(answers)) / repeats
    9. auditable = sum(1 for r in results if r.steps_verifiable) / repeats
    10. report.append({
    11. "level": task.level, # L1 ~ L4
    12. "correct": verify(task, answers[0]),
    13. "consistency": round(consistency, 3),
    14. "audit_ratio": round(auditable, 3),
    15. "avg_steps": sum(r.step_count for r in results) / repeats,
    16. "cost": sum(r.unit_cost for r in results),
    17. })
    18. return report

    Key usage points: verify should rely on symbolic computation or manual review, avoiding self-assessment by another model; unit_cost only needs to record relative consumption and does not have to be tied to any specific billing rule.

    5. Common Pitfalls

    1. Drawing conclusions from a single leaderboard: the question distribution on leaderboards often does not match real business scenarios.
    2. Looking only at the final answer: samples where the process is wrong but the answer happens to be correct will contaminate the conclusions.
    3. Counting wait time as a capability defect: queuing is a service-side constraint and should be listed separately.
    4. Ignoring prompt influence: the same model can vary more across different prompt structures than across models, so evaluations must fix the prompt template.

    6. Conclusion

    Evaluating open-ended math ability should rest on four things: a tiered question bank, process auditability, multi-sample consistency, and cost constraints. Under this framework, differences between models are presented more truthfully: some are strong at long-chain construction, some at concise expression and clear steps, and others only hold an advantage within a specific difficulty range. For developers, the most practical approach is to script the evaluation, fix the metrics, and let the results directly serve task routing and quota scheduling decisions.