Evaluating Large Language Models on Mathematical Reasoning: Methods and Engineering Practices

    This article explains why mathematical ability in large language models cannot be reduced to a single ranking, and breaks reasoning capability into four layers: computation and symbolic manipulation, multi-step deduction, open-ended problems, and formal presentation. It covers how to design stress-test tasks using propositions without readily available proofs, how to enforce process verifiability through structural, symbolic, and semantic checks with explicit gap marking, and how to measure cost efficiency using cost per unit of valid output. It also outlines deployment considerations for throughput and concurrency, a three-tier model selection framework, common evaluation pitfalls, and a practical engineering checklist for building reproducible and auditable reasoning benchmarks.

    1. The Problem: Why “Math Ability” Resists a One-Line Verdict

    When people discuss the mathematical level of large language models, the most common mistake is compressing it into a linear ranking. Real evaluation results usually show a clear layered structure: the same model may excel on standardized competition problems yet destabilize quickly on open-ended proof tasks; it may stay correct through long derivations yet loop repeatedly when it must choose its own proof path. In other words, evaluating whether a model “can solve problems” is a different order of magnitude from evaluating whether it “can do mathematics.”

    From an engineering perspective, mathematical reasoning ability can be split into at least four layers:

    1. Computation and symbolic manipulation: the accuracy of deterministic operations such as arithmetic, algebraic transformation, and equation solving;
    2. Multi-step deduction: completing medium-to-long derivations under given theorems and rules while maintaining consistency from start to finish;
    3. Open-ended problems: problems with no ready-made solution, requiring the model to construct auxiliary structures and select proof strategies on its own;
    4. Expression and delivery: writing the derivation into formal text that is clearly structured and ready for review.

    Most leaderboards cover only the first two layers, yet the third and fourth are what truly determine value in research and high-end engineering. This is also why a conclusion such as “model A is stronger than model B” must come with the task type and evaluation conditions attached; otherwise it is nearly impossible to reproduce.

    2. Task Design: Stress Testing with Propositions That Have No Ready-Made Proof

    A high-quality capability probe should satisfy three conditions: the answer is unique and verifiable, no ready-made solution can be retrieved directly, and the derivation chain is long enough to expose stability problems. Structural problems in fields such as algebraic geometry, algebraic number theory, and representation theory naturally fit these conditions—for example, the exactness of a certain class of functors, the vanishing of a certain cohomology, or a finiteness result for a certain class of modules.

    When selecting topics, follow these principles:

    • The conclusion must be a decidable proposition, not a prompt like “please introduce some theory”;
    • Prefer propositions where the literature states only the result and omits the proof, or gives only a very short hint;
    • Control the difficulty gradient by preparing three tiers of problems (solvable, barely solvable, beyond capability) to locate the capability boundary rather than only testing the ceiling.

    In prompt design, the key is to state the deliverable and the constraints clearly instead of piling on adjectives. An example:

    1. Task: Prove the proposition below and produce lecture notes in English.
    2. Constraints:
    3. 1. Use only established results from standard textbooks and general literature; citations must include names.
    4. 2. Provide the justification for every step; no skipping with phrases such as "obvious" or "easy to see."
    5. 3. If a step cannot be completed, explicitly mark [GAP] and explain where the gap is.
    6. 4. Output structured text containing the theorem statement, lemmas, proof, and remarks.

    Item 3 matters especially: allowing the model to expose gaps explicitly turns “seemingly fluent but substantively wrong” output into a locatable problem, greatly reducing the cost of manual review.

    3. Process Verifiability: Turning “Looks Right” into “Is Right”

    The difficulty of evaluating math tasks is that a correct final answer does not imply a correct process, and process errors are often amplified downstream. Three layers of checking are recommended:

    • Structural check: verify that every lemma is used correctly later and that there is no circular reasoning;
    • Symbolic check: run symbolic computation on the mechanizable parts, for example verifying identities or checking whether dimension counts match;
    • Semantic check: have reviewers with the relevant background sample-check key leaps, focusing on “where the construction comes from.”

    A practical scoring sheet (each item scored 0–5):

    Dimension Focus
    Conclusion correctness Whether the proposition is genuinely proved, or a counterexample is clearly given
    Chain completeness Whether there are undeclared gaps
    Justification legitimacy Whether cited results actually exist and their applicability conditions are met
    Construction soundness Whether the introduction of auxiliary structures comes with motivation
    Presentation quality Formatting, symbol consistency, and readiness for direct delivery

    It is worth stressing that the evaluation process itself should record resource consumption (input and output size, elapsed time, number of retries); otherwise cost-effectiveness cannot be compared across models.

    4. Cost and Throughput: From Single-Run Quality to Output per Unit of Compute

    A single run of a high-end reasoning task can consume a substantial share of a subscription or API quota, so cost must be part of the evaluation. A practical metric is cost per unit of valid output:

    1. Cost per unit of valid output = (input size × price_in + output size × price_out) × retries / pass rate

    The pass rate in the denominator is the key correction term: a cheap model that often needs three retries may cost more in practice than a more expensive single-shot option.

    On the deployment side, throughput and concurrency determine both user experience and marginal cost. Common industry techniques include continuous batching, paged attention caching, combinations of tensor parallelism and pipeline parallelism, and speculative decoding; combined with container platforms for elastic scaling, object storage for datasets and artifacts, and logging and monitoring with alerts for time to first token, per-user throughput, and failure rate, these form a complete inference service loop. Public discussions often mention claims such as “a single-rack cluster pushing a long chain-of-thought model to hundreds of tokens/s,” but such numbers depend heavily on model size, quantization, context length, and batching strategy; treat them only as an order-of-magnitude reference, not as a selection commitment.

    This leads to a frequently overlooked conclusion: when the unit inference cost of self-hosting is low enough, the returns from capability spillover far exceed subscription revenue from official APIs—which is the economic driver behind the long-term coexistence of self-hosting and external service models.

    5. Capability Tiers and Selection Guidance

    Drawing on publicly reproducible evaluation experience, current models can be roughly grouped into three tiers by fit for math tasks (without pointing to any specific product):

    • Open-problem tier: handles structural propositions with no ready-made solution; long chain of thought but convergent, suitable for research assistance;
    • Robust reasoning tier: stable on medium-to-long derivations and natural in writing, suitable for teaching notes, code, and engineering documentation;
    • Efficient general tier: fast responses at low cost, suitable for bulk extraction, formatting, and routine Q&A.

    For selection, combine tiers by scenario rather than picking one: route bulk tasks to the low-cost tier, critical derivations to the open-problem tier, and use the robust tier as a fallback in the middle. Also build an internal baseline set (30–50 graded problems plus verification scripts) and run a regression every time the model or inference configuration changes, instead of judging by feel.

    6. Common Pitfalls and an Engineering Checklist

    • Pitfall 1: inferring research capability from competition rankings. The two correlate weakly and must be evaluated separately.
    • Pitfall 2: looking only at the final answer. Process verification and gap marking must be introduced.
    • Pitfall 3: ignoring retry and manual review costs. Evaluation should count end-to-end total cost.
    • Pitfall 4: treating vendor throughput figures as commitments. Measure under your own data and concurrency pressure.

    Checklist: build a graded problem set and automated verification scripts; fix prompt templates and the scoring sheet; record resource consumption for every evaluation run; run inference services on a container platform with elastic scaling configured; cover latency, failure rate, and quota consumption with monitoring and alerts; regress the baseline once per quarter.

    Following this approach, a team can produce a reproducible, comparable, and auditable reasoning capability report within days, turning the argument over “which model is stronger” into an engineering decision about “what is more suitable under a given task, budget, and latency constraint.”