Evaluating Large Language Models for Mathematical Reasoning: A Practical Guide

    This article reframes large language model evaluation from a "who is stronger" leaderboard contest into an engineering question of "who is more suitable under specific constraints." It explains why high benchmark scores do not guarantee that a model can complete end-to-end business tasks, then walks through three evaluation dimensions: high-difficulty mathematical and formal reasoning, chain-of-thought shape and writing naturalness, and throughput, latency, and unit cost. It also covers self-hosted inference deployment with tensor and pipeline parallelism, and closes with a recommended selection workflow based on an in-house evaluation set, dual-track scoring, cost regression, tiered routing, and continuous monitoring.

    1. The Problem: A High Benchmark Score Does Not Mean the Model Can Do the Job

    In real engineering selection, teams often run into an awkward situation: a model ranks near the top of public leaderboards, yet once it is wired into a business workflow, very few scenarios genuinely require it to complete a closed-loop task on its own. The remark from the original discussion that it is “hard to find a scenario where nothing else will do” points precisely at the core tension in LLM evaluation: capability ceiling and task fit are not the same thing.

    Three layers of root causes explain this gap:

    1. Differences in task shape. Brainstorming and creative ideation tasks are sensitive to a model’s breadth of association and tolerate errors well. Engineering execution tasks (code generation, data cleaning, API orchestration) demand stable output, controllable formatting, and automated verification, with an extremely low error tolerance.
    2. Differences in cost structure. A single high-quality inference can consume a noticeable share of a monthly quota. Put that into a high-frequency call path and the bill spirals quickly.
    3. Differences in speed. When an alternative approach is close in intelligence but nearly an order of magnitude faster in response time, most business scenarios naturally shift toward the latter, because end-to-end latency directly determines user experience and concurrency capacity.

    This article therefore argues for rewriting model evaluation from “who is stronger” to “who is more suitable under which constraints.”

    2. Evaluation Dimension 1: High-Difficulty Math and Formal Reasoning

    High-difficulty math problems are a touchstone for a model’s reasoning depth, because they cannot be solved by recall; they require multi-step logical construction. A typical practice is this: take a proposition from an open-source math repository, ask the model to complete the proof itself without a proof supplied by the repository, and require the output in academic lecture-note format.

    The value of such tasks lies in their natural verifiability: a proof either holds or it does not, intermediate steps can be checked one by one, and there is no fuzzy zone of “looks fine.” Evaluation should focus on three points:

    • Whether the derivation was actually carried out, rather than restating an existing conclusion;
    • Whether the use of intermediate lemmas is legitimate, and whether circular reasoning is present;
    • Whether the output format (formula typesetting, section structure, symbol consistency) reaches a level that can be delivered directly.

    From public community experience, the gap between models on “open-ended math problems” is far larger than on routine Q&A, and even top models can still open up a clear lead over one another. This dimension must therefore be evaluated separately and must not be masked by an aggregate capability score.

    3. Evaluation Dimension 2: Chain-of-Thought Shape and Writing Naturalness

    Many teams look only at the final answer and overlook the engineering value of the chain of thought itself. Chain-of-thought length, branch complexity, and self-correction frequency directly affect two things: reasoning latency and auditability.

    A common observation is that models with similar reasoning ability can have completely different chain-of-thought styles. Some are concise and convergent, close to how humans solve problems; others are extremely long and repeatedly backtrack, occasionally recovering the correct path but inflating token consumption and latency at the same time. For scenarios that need human review, the former is friendlier; for exploratory hard problems, the latter’s “cast a wide net” strategy is sometimes the better bet.

    It is worth adding the chain of thought to the evaluation sheet and recording indicative metrics such as these:

    1. metrics:
    2. answer_correctness: 0.0 ~ 1.0 # Answer correctness
    3. cot_token_count: int # Tokens consumed by the chain of thought
    4. self_correction_times: int # Number of self-corrections
    5. format_compliance: 0.0 ~ 1.0 # Format compliance
    6. p95_latency_ms: int # Tail latency

    4. Evaluation Dimension 3: Throughput, Latency, and Unit Cost

    The original discussion mentions that a certain class of high-performance solution is nearly nine times faster, a reminder that throughput is itself a capability. From an engineering perspective, cost can be broken into computable forms:

    1. cost per task ≈ (input tokens + output tokens) × unit price
    2. effective throughput ≈ concurrency × per-request token rate ÷ average output length
    3. output per unit of quota ≈ deliverable tasks ÷ quota consumed

    Output per unit of quota is the most easily overlooked term. A lecture-note generation task that consumes about two percent of a monthly quota may offer far better value than dozens of low-quality round trips if its output is directly usable. Evaluation should use deliverable output as the denominator, not the number of calls.

    5. Engineering Practice: Inference Deployment and Parallelism

    When a model is capable enough but the official channel is too expensive, self-hosting becomes a common option. The prevailing industry practice is to use a multi-card full rack with high-bandwidth memory, split the model via tensor parallelism and pipeline parallelism, and pair that with continuous batching to raise utilization. The claim in public discussion that a single rack pushes inference to hundreds of tokens per second is essentially the result of this kind of parallel optimization, not magic from some proprietary interface.

    Self-hosting requires balancing several factors at once:

    • Memory capacity: determines the model size and context length that can be hosted;
    • Inter-card interconnect bandwidth: determines communication overhead after parallel splitting;
    • Batch scheduling: determines throughput and tail latency under high concurrency;
    • Elastic scaling: use container platforms and message queues for queuing and scale-out to avoid peaks breaking through.
    1. Build your own evaluation set: sample real tasks from historical tickets, covering three categories: math derivation, code generation, and document writing.
    2. Dual-track scoring: automated metrics (correctness, format compliance, latency) plus human spot checks (readability, naturalness).
    3. Cost regression: convert quota consumption into cost per task and set a budget red line.
    4. Tiered routing: send hard tasks down the deep-reasoning channel and high-frequency tasks down the high-speed channel, using a rules engine to split traffic.
    5. Continuous observation: connect logging and monitoring with alerting, and track latency drift and cost anomalies.

    7. Conclusion

    LLM selection should not be brand allegiance; it should be a quantifiable, reproducible engineering method. Put proof capability, chain-of-thought shape, throughput, and unit cost in the same table, then layer on the parallel-optimization headroom of self-hosting, and a team can find the optimal point between capability ceiling and business fit. For most businesses, the solution that is fast, cost-controlled, and format-stable is the mainstay; deep reasoning capability should be reserved as a dedicated resource for hard-target scenarios.