How to Evaluate and Choose LLMs for Mathematical Reasoning

    This article presents a practical framework for evaluating large language models on open-ended mathematical reasoning and making selection decisions. It breaks mathematical ability into four measurable layers, explains how to build a reproducible evaluation set with problem metadata, reference answers, and scoring scripts, and shows how to control prompts and reasoning budgets for fair comparisons. It also covers interpreting results through the trade-off among accuracy, conciseness, and stability, calculating expected cost per success, and running evaluation as a versioned pipeline with release guardrails. A checklist of common pitfalls is included.

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

    In real engineering selection work, teams often run into the same argument: the same model performs very differently depending on who uses it, which problems it is given, and how much reasoning budget it has. Observations such as “one model is clearly ahead,” “another produces more concise chains of thought,” or “another produces the longest and most complex chains of thought” all point to one fact: the ability to solve open-ended math problems is not a single-dimension metric, but a composite of several capabilities.

    Open-ended math problems differ from routine word problems in that they:

    • Have no single templated solution, so intermediate lemmas must be constructed;
    • Require long chains of symbolic derivation and case analysis;
    • Require self-verification to catch cases that are “wrong but internally consistent”;
    • Are sensitive to context length and reasoning budget.

    So any ranking discussed without evaluation conditions is almost guaranteed to be non-reproducible. The goal of this article is to turn this kind of vague discussion into a practical evaluation and selection method.

    2. Capability Layers: Breaking “Math Ability” into Measurable Sub-Items

    It is best to split evaluation into four progressive layers:

    1. Arithmetic and algebra execution: multi-step numerical computation, equation solving, and simplification, measuring accuracy and error propagation.
    2. Standard problem types: routine competition and textbook problems, measuring stability and format compliance.
    3. Open-ended construction: problems that require constructing counterexamples, auxiliary functions, or case analysis, measuring creativity.
    4. Long-chain proof: problems that require dozens of steps of derivation with self-correction, measuring long-range consistency and budget efficiency.

    A common engineering mistake is to select models using only layer 2 problems, then find they fail in layer 3 and 4 scenarios after launch. The right approach is to mix problems according to the real business distribution, for example 2:3:3:2.

    3. Building the Evaluation Set: Problems, Answers, and Scoring

    A reproducible evaluation set contains at least three parts:

    • Problem metadata: difficulty, sub-item, whether tools are needed, and the expected reasoning budget range;
    • Reference answers and key steps: not just the conclusion, but also the “key lemmas / key inequalities that must appear”;
    • Scoring script: first judge answer equivalence, then judge coverage of key step points.

    An illustrative data structure (pseudocode):

    1. {
    2. "id": "open-0421",
    3. "layer": "open_construction",
    4. "prompt": "Prove or give a counterexample...",
    5. "key_points": ["construct an auxiliary function", "case analysis on the parity of n"],
    6. "budget": {"max_tokens": 8000},
    7. "scoring": {"answer_weight": 0.5, "keypoint_weight": 0.5}
    8. }

    Scoring should use a weighted combination of three items: “correct answer + key step coverage + process consistency.” This avoids the false positive of “guess right and pass” that comes from looking only at the final answer.

    4. Prompts and Reasoning Budget: The Key Variables for a Fair Comparison

    The same model can vary greatly under different budgets. To keep comparisons fair, fix the following variables during evaluation:

    • Keep the system prompt and output format requirements identical;
    • Record separate tiers of thinking/reasoning budget (for example low, medium, and high);
    • Keep whether calculation tools may be called consistent;
    • Keep the number of samples and temperature setting consistent, and take the pass rate over multiple samples when necessary.

    A reusable prompt skeleton:

    1. First list a solution outline (no more than 5 items),
    2. then derive step by step, and finish with two sections: "Conclusion" and "Verification".
    3. If you find a contradiction midway, explicitly flag it and backtrack to correct it.

    Explicitly requiring “backtracking and correction” can significantly improve the pass rate on long-chain problems, because it makes self-verification part of the process rather than an option.

    5. Interpreting Results: The Triangle of Accuracy, Conciseness, and Stability

    Evaluation results usually show a three-way trade-off:

    • High accuracy but verbose reasoning: suitable for offline batch processing, not for high-concurrency online scenarios, where cost and latency pressure are high;
    • Concise reasoning but fluctuating accuracy: suitable for latency-sensitive scenarios that can tolerate retries;
    • A balance of both: usually the first choice for engineering deployment.

    So selection should not chase the “single strongest point,” but should calculate the expected cost on the business side:

    1. Expected cost per successful attempt ≈ (cost per call × average number of attempts) / pass rate

    Putting latency, retries, and manual review costs into the same formula often yields conclusions that differ from “leaderboard rankings” but are closer to real returns.

    6. Engineering Implementation: Evaluation Pipeline and Launch Guardrails

    It is best to make evaluation a pipeline rather than a one-off activity:

    1. Put the dataset and scoring scripts under version control;
    2. Trigger a regression evaluation on every model or prompt change;
    3. Set guardrail metrics (for example, the open-ended construction layer pass rate must not fall below the baseline);
    4. Write results into logging services and monitoring alerts to form a trend dashboard;
    5. Use canary releases and roll out gradually by business tier.

    For cloud implementation, container platforms can host evaluation jobs, object storage can hold datasets and results, message queues can decouple tasks, and monitoring alerts can track metric drift. These are all general capability categories and do not depend on a specific vendor’s implementation.

    7. Common Pitfalls Checklist

    • Using only public leaderboard problems, which leads to overfitting;
    • Not fixing the reasoning budget, so conclusions are non-reproducible;
    • Looking only at the final answer and ignoring process consistency;
    • Ignoring prompt sensitivity and mistaking a prompt problem for a model capability problem;
    • Lacking a regression mechanism, so any model or prompt change causes degradation.

    8. Conclusion

    Evaluating open-ended mathematical ability should shift from “ranking-style judgment” to “conditional measurement”: clarify problem layers, fix the budget and prompt, use three-dimensional scoring, and make decisions based on expected cost. Conclusions reached this way are reproducible, regression-testable, and able to support launch decisions, while avoiding being misled by a single case or a single leaderboard.