How to Evaluate and Choose LLMs for Mathematical Reasoning: Methods and Practices

    This article explains why comparing large language models on math tasks often produces unreliable conclusions, and how to fix the evaluation itself. It breaks mathematical reasoning into three layers (closed computation, semi-open reasoning, and open problems), shows why longer chains of thought do not necessarily mean stronger reasoning, and outlines a reproducible evaluation loop with multi-sample testing, separated answer extraction and judging, process spot-checks, and layered reporting. It also covers which metrics matter beyond accuracy (consistency, average reasoning length, formalization success rate), how to select models per scenario using a constrained scoring function, common pitfalls to avoid, and a four-step path to building a team baseline with regression testing.

    1. Where the Problem Starts: Why Model Comparisons Rarely Convince

    Public discussions often rank different models in a single table. Such comparisons fail to convince mainly because the evaluation objective is never defined: are we comparing whether a model reaches the correct final answer, or whether its reasoning process is reliable, reproducible, and auditable? These are entirely different things in engineering terms.

    Mathematical reasoning tasks can be roughly divided into three layers:

    1. Closed computation: conditions are complete and the solution path is fixed, such as routine algebraic manipulation, equation solving, and matrix operations. These tasks barely differentiate models, since most mainstream models pass them consistently.
    2. Semi-open reasoning: conditions are complete but the solution is not unique, so the model must choose its own strategy, such as combinatorial counting, constructive proofs, and constrained optimization. This is where gaps begin to appear.
    3. Open problems: the problem statement itself is ambiguous, so the model must first formalize the problem and fill in assumptions before solving. This layer is the current dividing line: only a few models can make steady progress, while most drift off course during formalization.

    The recurring question in the original discussion, “can it do open math problems,” essentially refers to this third layer. It is not simply about being “smarter”; it is about whether the model can transcribe a natural language problem into verifiable mathematical objects.

    2. A Sensible Breakdown of Capabilities: Long Chains of Thought Are Not Strong Reasoning

    A common misjudgment is treating a longer chain of thought as stronger reasoning. From an engineering perspective, chain length is a neutral metric that may come from three entirely different mechanisms:

    • Effective decomposition: the model splits a complex problem into verifiable subproblems, and the added length brings higher accuracy;
    • Redundant restatement: the model repeats conditions over and over, length grows but information gain is close to zero;
    • Error accumulation: the model goes off track early and spends more text defending itself, so length grows while accuracy drops.

    Evaluation should therefore track “length” and “information gain per unit length” separately. A practical approximation: sample multiple reasoning paths for the same item and plot accuracy against reasoning length. If the curve flattens after a moderate length, further lengthening is pure redundancy; if accuracy keeps rising with length and remains unstable even in the long range, the model lacks a reliable self-checking mechanism.

    By the same logic, “concise chains of thought, output closer to human writing” is an independent dimension concerning readability and stylistic naturalness, and should not be mixed with mathematical correctness. The engineering recommendation is to split them into two metric groups, score each separately, and then apply weights, rather than merging everything into one vague “total score.”

    3. Designing a Reproducible Evaluation Pipeline

    For conclusions to hold up, the pipeline must be reproducible. The recommended minimal loop:

    1. # Illustration: minimal loop for math reasoning evaluation (pseudocode)
    2. dataset = load_math_benchmark(split="open_problems")
    3. def evaluate(model, item, k=5, temperature=0.7):
    4. records = []
    5. for _ in range(k):
    6. ans = model.solve(item.prompt, temperature=temperature)
    7. records.append({
    8. "final": extract_final_answer(ans),
    9. "steps": split_reasoning_steps(ans),
    10. "tokens": count_tokens(ans),
    11. })
    12. return aggregate(records, item.gold)
    13. def aggregate(records, gold):
    14. acc = mean([r["final"] == gold for r in records])
    15. consistency = 1 - normalized_variance([r["final"] for r in records])
    16. avg_len = mean([r["tokens"] for r in records])
    17. return {"accuracy": acc, "consistency": consistency, "avg_len": avg_len}

    Four design points matter:

    • Multiple samples: a single run has huge variance, so sample at least three to five times and report both mean and variance;
    • Separate answer extraction from judging: first extract the final answer into a structured form, then compare it with independent judging logic, so the judge is not distracted by the reasoning text;
    • Process spot-checks: sample human review of items judged correct to confirm the model did not simply guess right;
    • Layered reporting: score each of the three task layers separately; a single total score is not allowed.

    4. Metric Trade-offs: What You Need Beyond Accuracy

    Looking at accuracy alone ignores the stability that matters most in production. At least four metric types should be included:

    Metric Meaning Engineering significance
    Accuracy Share of final answers matching the reference answer Capability ceiling
    Consistency Agreement across multiple samples of the same item Production readiness
    Average reasoning length Reasoning cost per item Cost and latency
    Formalization success rate Whether the natural language problem can be transcribed into a verifiable form Open problem capability

    Formalization success rate is the most easily overlooked, yet it best explains the gaps on open problems. A practical proxy metric: require the model to first output a structured problem definition (variables, constraints, objective) and then solve; measure the share of structured definitions that pass validation.

    5. Selection Advice: Match by Scenario, Not by Ranking

    Different business scenarios weight metrics completely differently:

    • Education and step-by-step explanation: prioritize process readability and consistency; meeting an accuracy threshold is enough, and overly long reasoning hurts the experience;
    • Research assistance and open problem exploration: prioritize formalization success rate and long-range accuracy, and accept higher latency;
    • High-concurrency online services: prioritize average reasoning length and consistency, with cost treated as a constraint.

    In engineering terms, selection can be written as a constrained scoring function:

    1. score = w1 * accuracy + w2 * consistency + w3 * formalization_rate
    2. - w4 * normalized_latency - w5 * normalized_cost
    3. subject to latency_p95 <= SLA, cost_per_request <= budget

    Weights and constraints come from the business side; the model side is only responsible for supplying trustworthy metric data. Conclusions produced this way are explainable and can be recomputed quickly as the business changes.

    6. Common Pitfalls and How to Avoid Them

    1. Replacing your own evaluation with a single public leaderboard: the task distribution of public leaderboards often differs from your business distribution, so a small, business-aligned evaluation set of your own is more valuable.
    2. Ignoring sampling variance: treating differences between single runs as capability differences is the most common source of error.
    3. Mistaking style for capability: natural expression and concise chains of thought belong to the experience dimension and should not affect judgments of mathematical correctness.
    4. No regression mechanism: models and inference configurations keep changing, so evaluation should be part of continuous integration, automatically running the layered evaluation on every change and retaining the results.
    5. No error attribution: failed samples should be filed into four categories (formalization error, computation error, missed constraint, expression deviation) so improvement directions can be identified.

    7. Implementation Advice

    To quickly establish a capability baseline within a team, proceed in four steps: first define the three task layers and the corresponding set sizes; then implement multiple sampling and structured judging; next add process spot-checks and error attribution; finally hand the scoring function and constraints to the business side for confirmation and connect it to continuous integration to form a regression loop.

    When elastic compute is needed to run batch evaluations, a common industry-agnostic combination is to schedule evaluation jobs on a container platform, store samples and results in object storage, use a message queue to smooth out traffic spikes, and track job status with logging, monitoring, and alerting services.

    Overall, mathematical capability differences between models are real, but comparison only becomes meaningful once three things are done properly: task layering, metric separation, and a reproducible pipeline. Rather than asking which rank a given model holds, build your own evaluation loop first and let the conclusions keep updating as the business evolves.