Evaluating and Selecting LLMs for Mathematical Reasoning: A Practical Guide

    This guide explains why ranking models by vague "who is stronger" claims is unreliable and shows how to break mathematical reasoning into measurable dimensions. It covers chain-of-thought trade-offs, evaluation set design, capability tiering, tool-based verification patterns, cost and capacity constraints, and a repeatable selection workflow that turns model choice into an engineering decision.

    1. The Problem: Why “Which Model Is Stronger?” Is the Wrong Question

    In model selection discussions, a common scenario unfolds: someone claims that one model cannot match another, and the debate quickly degrades into brand preference. That kind of ranking-style statement is essentially a subjective ordering. It blends the user’s problem preferences, prompting habits, context length, decoding parameters, and even the service load on that particular day. Conclusions drawn from such a mix of variables do not transfer to another business scenario.

    A more rigorous approach is to break the problem apart: mathematical reasoning is not a single capability but a set of decomposable sub-capabilities. Only after defining the capability dimensions does a comparison of strength produce engineering value.

    2. Breaking “Math Ability” into Measurable Dimensions

    A widely accepted decomposition includes at least the following layers:

    1. Arithmetic and symbolic manipulation accuracy: whether low-level errors appear in multi-step numerical computation and symbolic simplification.
    2. Theorem and tool selection: whether the model identifies the problem structure and chooses an appropriate mathematical tool instead of applying the nearest template.
    3. Multi-step planning stability: whether intermediate conclusions are reused consistently in later steps of a long reasoning chain, and whether contradictions appear.
    4. Open-ended exploration: when a problem has no single canonical solution, whether the model can construct its own path, verify intermediate conclusions, and backtrack after failures.
    5. Self-checking and error correction: whether the model proactively finds flaws in its own derivation and provides counterexamples or boundary checks.
    6. Expression and reproducibility: whether the derivation is clearly structured and uses consistent notation so others can review it.

    The one genuinely informative judgment in the original discussion is the observation that only a very small number of models can handle open-ended math problems. That maps directly to dimensions 4 and 5, which is also where the capability gap is most visible today. On closed-form problems (with standard answers that can be graded automatically), the gap between most models is narrowing; on open-ended problems, a capability cliff remains.

    3. Chain-of-Thought Length Is Not Capability: A Common Misreading

    The original content notes that chain-of-thought length varies widely across models and implies that “longer and more complex” is not necessarily stronger. This is worth expanding because it directly affects cost evaluation.

    Chain-of-thought (CoT) is the sequence of intermediate reasoning a model generates before giving its conclusion. A longer chain usually means more exploration branches and more opportunities for self-checking, but it also brings three costs:

    • Latency and cost rise linearly, and tail requests may exceed the tolerance threshold of interactive scenarios.
    • The probability of error accumulation rises; one wrong premise early on contaminates the entire subsequent derivation.
    • “Overthinking” appears, where the model repeatedly doubts itself on simple problems and ends up overturning a correct conclusion.

    An evaluation should therefore record three quantities at the same time: accuracy, average reasoning length, and total cost per correct result. Looking only at accuracy overestimates the cost-effectiveness of long-chain models; looking only at length mistakes redundancy for depth.

    A sample evaluation record structure could be:

    1. {
    2. "case_id": "open-problem-017",
    3. "dimension": ["open_exploration", "self_check"],
    4. "passed": true,
    5. "reasoning_tokens": 8420,
    6. "tool_calls": 2,
    7. "latency_ms": 41500,
    8. "human_review": "Derivation is reproducible with sufficient boundary discussion"
    9. }

    4. Evaluation Set Design: Making Conclusions Transferable

    For evaluation results to be meaningful to the business, the problem set must cover the real distribution rather than cherry-picking problems a model happens to be good at. A suggested mix:

    • Closed-form problems, 40%: for fast regression, automatically gradable, guarding against capability regressions caused by version updates.
    • Semi-open problems, 35%: a goal is given but multiple paths are allowed, for example “prove an inequality and discuss the equality condition.”
    • Open-ended problems, 25%: no standard solution, requiring the model to set its own sub-goals, scored by domain experts.

    Do not score with only 0/1. A three-dimensional score is recommended: conclusion correctness, derivation reproducibility, and expression quality, each on a 1–5 scale. This distinguishes two very different failure types: “right answer but untrustworthy process” and “rigorous process but biased conclusion.”

    5. How to Interpret Tiered Results

    Putting different models on a single leaderboard easily obscures scenario differences. A more practical approach is to establish capability tiers and define the applicable boundary of each:

    • Tier 1: reliably handles standardized problems; suited to educational grading, question bank generation, and batch processing of routine numerical and symbolic computation.
    • Tier 2: concise chain-of-thought and natural expression; suited to assisted derivation that requires human review, documentation-style technical writing, and code comment generation.
    • Tier 3: capable of open-ended exploration and self-checking; suited to high-risk, high-value scenarios such as research assistance, algorithm verification, and complex modeling, but must be paired with human review and tool-based verification.

    It is important to stress that tiers are not permanent conclusions. Models iterate quickly, and versions from the same vendor with different positioning may cross over. Evaluation should therefore be scripted and repeatable, automatically running a regression pass whenever a candidate version is updated.

    6. Engineering Practice: Covering Model Weaknesses with Tools

    For math tasks, relying purely on a model’s internal reasoning is not robust. A more reliable engineering pattern is “model plus external verification”:

    1. Externalize symbolic and numerical computation: hand the mechanizable parts to a computation engine or a self-built service, leaving the model responsible only for modeling and explanation.
    2. Back-substitution verification: require the model to substitute its conclusion back into the original expression, or run a sanity check with special cases and boundary values.
    3. Multi-path consistency check: sample multiple reasoning paths for the same problem and raise confidence only when the conclusions agree.
    4. Structured output constraints: constrain intermediate steps with a fixed schema to enable programmatic verification and auditing.

    A simplified orchestration pseudocode:

    1. def solve_with_verification(problem, model, verifier, k=3):
    2. candidates = [model.solve(problem) for _ in range(k)]
    3. verified = [c for c in candidates if verifier.check(problem, c)]
    4. if not verified:
    5. return {"status": "escalate_to_human", "raw": candidates}
    6. best = max(verified, key=lambda c: (c.score, -c.reasoning_tokens))
    7. return {"status": "ok", "answer": best}

    The value of this orchestration is that it converts “uncertain model capability” into “controllable system confidence,” and provides a clear human fallback path when it fails.

    7. Cost and Capacity: Easily Overlooked Constraints

    Evaluation conclusions only become decision-relevant when a cost dimension is added. At minimum, account for four items: average reasoning consumption per request, the latency distribution of tail requests, rate limiting and queuing behavior under concurrency, and the share of human review effort. Open-ended problems often require expert involvement, and this hidden cost frequently exceeds the inference cost itself.

    For cloud deployment, a common approach combines a container platform to host inference services, object storage to hold evaluation sets and results, a message queue to smooth out task spikes, and logging plus monitoring and alerting to track latency and failure rates. Baidu AI Cloud provides standard-category support for these general capabilities; for specific specifications and billing, refer to the official documentation. This article does not cover any unconfirmed parameters.

    1. Determine which capability tier the scenario requires; do not pay the open-ended price for closed-form problems.
    2. Build a private evaluation set of no fewer than 100 problems covering all three problem types, and keep it versioned.
    3. Fix decoding parameters and prompt templates so prompt differences are not mistaken for model differences.
    4. Record accuracy, reasoning length, latency, and cost together, and output a three-dimensional comparison rather than a single ranking.
    5. Introduce external verification and human review for high-risk scenarios, with clearly defined escalation thresholds.
    6. Establish a regression mechanism that automatically reruns on every candidate version change and retains historical conclusions for traceability.

    9. Conclusion

    The debate over “which model is stronger at math” is inefficient because it skips capability definition and measurement. Breaking mathematical reasoning into measurable dimensions, replacing rankings with tiers, replacing blind trust with tool-based verification, and replacing single-point accuracy with cost and latency constraints turns selection from a contest of impressions into a reproducible engineering decision. This method does not depend on any specific product and applies to all model services with general reasoning capability.