Evaluating and Selecting LLMs for Mathematical Reasoning: A Practical Guide

    This article reframes the question of which LLM is "best at math" into a measurable engineering problem: which model delivers the highest accuracy per unit cost under a given task distribution and budget. It explains a four-layer task taxonomy, how to fix evaluation variables for reproducible results, why chain-of-thought length is a cost signal rather than a capability signal, how to interpret capability tiers, and how to build a total cost model. Readers will find a layered routing strategy, an anchor problem set approach, and a deployment checklist.

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

    In real engineering work, teams constantly argue about whether a given model is good at math. Most of these discussions end with claims like “model A is worse than model B” or “model C sits somewhere between two versions.” The issue with such conclusions is not whether they are right or wrong, but that they lack a verifiable basis: Are the problems equally difficult? Are tools allowed? Is grading manual or automated? How many samples were drawn? Were the prompts identical? Once these variables are left unfixed, rankings drift as the evaluation setup changes.

    A more professional approach is to restate the question: under a given task distribution and cost constraint, which model has the highest accuracy per unit cost? This is a measurable, regression-testable, reusable engineering problem.

    2. Task Layering: Open-Ended Math Is Not One Thing

    The phrase “can handle open-ended math problems” needs to be unpacked. The industry usually divides mathematical capability into four layers, and each layer requires a completely different evaluation method:

    1. Computation and symbolic manipulation: arithmetic, algebraic transformation, equation solving. Answers are unique and can be graded automatically.
    2. Standard problem types: competition problems, textbook exercises. Answers are unique but the derivations are long, so “right answer, wrong process” happens often.
    3. Proof and construction: requires a proof, a counterexample, or a constructive example. Answers are not unique and must be reviewed by humans or with model assistance.
    4. Open research level: the problem statement itself is vague, must first be formalized, then approached along multiple paths, and may have no known answer.

    The “only model that can do open-ended math” mentioned in the original discussion actually refers to layer 4. Yet the vast majority of production business needs sit in layers 1 and 2. Treating layer 4 capability as a selection requirement usually means paying a very high inference cost for an extremely low-frequency scenario.

    3. Designing the Evaluation Setup: Making Conclusions Reproducible

    Fix the following variables, and re-run the baseline whenever any one of them changes:

    • Problem set: stratified sampling, recording the sample size and difficulty distribution of each layer;
    • Prompts: one unified template, no per-model tuning;
    • Sampling: fixed temperature and sample count, reporting both pass@1 and pass@k;
    • Tools: state clearly whether code execution and web retrieval are allowed;
    • Grading: scripts for unique answers, dual review plus arbitration for proofs.

    A minimal working skeleton for automated grading is shown below (illustrative, conveying the flow only):

    1. def evaluate(model_call, problems, k=1):
    2. results = []
    3. for p in problems:
    4. samples = [model_call(p.prompt) for _ in range(k)]
    5. extracted = [extract_final_answer(s) for s in samples]
    6. ok = any(grade(extracted_i, p.gold) for extracted_i in extracted)
    7. results.append({
    8. "id": p.id,
    9. "layer": p.layer, # 1..4
    10. "tokens": avg_tokens(samples),
    11. "latency_ms": avg_latency(samples),
    12. "pass": ok,
    13. })
    14. return summarize_by_layer(results) # Report per layer, not a single overall score

    The key point is layered aggregation. A single overall score lets high accuracy in layer 1 mask failures in layer 4, which distorts model selection.

    4. Chain-of-Thought Length and Conciseness: An Undervalued Metric

    The original discussion raised two interesting observations: one model produces more concise reasoning and writes more like a human; another has the longest and most complex reasoning, but is not necessarily more capable. This suggests that chain-of-thought length is not a capability indicator but a cost structure indicator.

    In practice, record three quantities at the same time:

    • Effective reasoning length: the number of tokens from the start of reasoning to the first correct key step;
    • Redundancy rate: the proportion of repeated self-verification and restated conditions;
    • Conciseness score: with equal accuracy, the shorter output scores higher.

    The empirical rule is that on standard problem types, overly long reasoning often yields diminishing returns or even causes errors through “overthinking” that flips a correct answer; on proof and open-ended layers, longer reasoning has a positive effect on exploring paths. So in engineering, layered routing is common: easy problems take a short-reasoning configuration, hard problems take a long-reasoning configuration.

    1. if estimated_difficulty(q) <= threshold:
    2. route = short_reasoning_profile
    3. else:
    4. route = long_reasoning_profile

    5. How to Interpret Capability Tiers Reasonably

    Descriptions like “model X sits between two versions” or “this version reaches the previous flagship level” should be read by professional readers as a relative position on a specific problem set, not an absolute capability scale. There are three reasons:

    1. Version iterations often change reasoning length, system prompts, and safety policies at the same time, mixing capability changes with behavior changes;
    2. Different vendors use different naming systems for flagship and lightweight tiers, so cross-system comparison lacks a common anchor;
    3. The same model may have different reasoning budgets across access modes (chat, engineering, batch).

    The recommendation is to build your own scale with an anchor problem set: pick 30 to 50 problems whose standard answers you already know and which cover all four layers. Run the anchor first whenever a new model becomes available, then decide whether to include it in the formal evaluation.

    6. Cost and Engineering Constraints: Selection Requires the Full Picture

    The cost of mathematical reasoning is more than unit price. It also includes:

    • Reasoning token consumption: long chains of thought can multiply the cost of a single call several times over;
    • Latency distribution: watch P95 rather than the average, since interactive scenarios are sensitive to tail latency;
    • Concurrency and quotas: batch evaluation easily triggers rate limits, so backoff and queues are needed;
    • Observability: a logging service should record tokens, elapsed time, and routing decisions for each request, with monitoring and alerting plus dashboards for accuracy and latency;
    • Data and model hosting: training and evaluation data can live in object storage, tasks can be scheduled on a container platform, and a message queue can smooth out peaks.

    A practical cost model:

    1. Total cost ≈ Σ(samples × avg tokens × unit price) + retry cost + manual review cost
    2. Cost per correct answer = Total cost / number of correct samples

    When layer 4 samples account for less than 5% of the total, choosing the most expensive configuration for them is usually not worthwhile. A more reasonable structure is a two-tier setup: a main model plus a hard-problem fallback.

    7. Deployment Checklist

    1. Define the business problem set and layer proportions first, then discuss model rankings;
    2. Fix the evaluation scripts and prompts, put them into continuous integration, and run automatic regression on every model change;
    3. Report three things together: accuracy, average and P95 latency, and cost per correct answer;
    4. Keep a manual review channel for proof-type tasks; do not rely entirely on automated grading;
    5. Use layered routing to control reasoning length instead of forcing long chains of thought on everything;
    6. Maintain an anchor problem set as an internal scale to reduce noise in cross-version and cross-system comparisons;
    7. Reserve a multi-model adapter layer in the architecture so replacement costs stay manageable.

    8. Conclusion

    For the debate over which model is best at math, the more valuable engineering output is not a ranking but a set of reproducible evaluation criteria + a layered routing strategy + a cost model. When you can measure every model’s performance across the four layers with the same ruler and state the cost per correct answer, selection turns from subjective impression into an auditable technical decision. The same method applies to model evaluation in adjacent scenarios such as AI coding tools, code generation, and document understanding.