Evaluating the Mathematical Reasoning of Large Language Models: Dimensions and Practices
This article explains why the mathematical ability of large language models is hard to measure with a single score, and how to design evaluations that produce meaningful results. It breaks mathematical capability into four layers, shows how non-retrievable tasks remove the advantage of memorization, and recommends a scoring method that combines veto rules with weighting. It also covers the resource dimensions that belong in any evaluation report—quota consumption, end-to-end latency, and consistency—along with a layered leaderboard that separates capability from writing style. Finally, it outlines an evaluation pipeline built on message queues, container platforms, object storage, and monitoring, and lists common pitfalls to avoid.
1. Why “Math Ability” Resists a One-Line Answer
Discussions about the mathematical level of large language models often produce contradictory conclusions. Some believe a given model can already handle open-ended problems; others point out that it still fails at basic arithmetic. The root cause is not who is right, but that the evaluation criteria differ. Mathematical ability can be split into at least four layers:
- Arithmetic and symbolic manipulation: stability of numerical computation, algebraic transformation, and equation solving;
- Standard problem solving: competition problems and textbook exercises that are heavily duplicated in training corpora;
- Long-chain formal proofs: dozens of logically connected steps with no breaks allowed in between;
- Open-ended exploration: no known answer, requiring the construction of new approaches.
The first two layers are close to saturation, and the gaps between models have been compressed to a very small margin. The real differentiation comes from the third and fourth layers. As a result, if an evaluation set consists entirely of retrievable problems, the resulting ranking carries almost no information.
2. Evaluation Design: Removing the Memory Bonus with Non-Retrievable Tasks
One key practice in the original discussion was to select propositions from public mathematical material for which no proof chain has been published, ask the model to complete the proof itself, and require the output in the format of academic lecture notes. This idea can be generalized into a reusable method:
- Non-retrievable task: no ready-made derivation of the target conclusion exists online, so the model cannot copy an answer from memory;
- Constrained output format: structured academic writing is required, testing organization and symbolic conventions;
- Verifiable process: every step of the proof can be checked one by one by a human or a formal tool, so errors can be localized.
A schematic structure of the evaluation prompt (pseudocode, structure only):
Task: Prove proposition P (source: a public mathematical resource, no proof given in the original)Constraints:1. Use only results established before P;2. State the justification for each step;3. Output structured lecture notes with definitions, lemmas, theorems, and proofs;4. Language and formatting follow academic writing conventions.Scoring: step correctness / legitimacy of citations / structural completeness / clarity of expression
Scoring should use a hybrid of “veto plus weighting”: a single logical break drops the overall score by one tier, and weighting for structure and expression is applied on top of that. This prevents samples that look like proofs but do not hold up from receiving high scores.
3. Cost, Latency, and Quotas: Folding Resource Constraints into Evaluation
In real usage, capability is never the only variable. A single long proof task may consume a considerable share of a monthly quota, and queuing during peak hours can push actual waiting time far beyond the inference time itself. An evaluation report should therefore include at least three dimensions:
- Consumption per task: the share of quota used to complete one standard proof task;
- End-to-end latency: queue time plus inference time, not inference time alone;
- Stability: the agreement rate of conclusions across repeated runs of the same task.
In engineering terms, these metrics can be collected uniformly into a single comparable table:
| Metric | Meaning | Collection method |
|---|---|---|
| Quota share | Cost per task | Difference in quota before and after the task |
| Queue time | Resource availability | Time from request submission to start of inference |
| Inference time | Model throughput | Time from first token to completion |
| Agreement rate | Result reliability | Comparison of conclusions across multiple samples |
Note that specific quota rules and billing methods vary by platform and should be taken from the official documentation of the platform in use rather than filled in by guesswork.
4. Layered Leaderboards: From a Single Score to a Capability Profile
A single aggregate score hides differences. A more reasonable approach is to layer and split by dimension:
- Layer 1: open-ended mathematical exploration;
- Layer 2: long-chain formal proofs, also accounting for conciseness of the chain of thought and naturalness of the writing;
- Layer 3: mixed standard problems and engineering code tasks;
- Reference layer: relative positions across model generations and model types.
Differences also exist within the same model generation: some produce very long chains of thought that cover many branches and suit exploration; others produce short chains with expression close to human writing and suit producing readable documents. Recording capability and style separately is what makes it possible to choose models for different scenarios.
5. Engineering Implementation: Evaluation Pipelines and Batch Inference
In a general cloud environment such as Baidu AI Cloud, the method above can be solidified into a pipeline:
- Task management: use a message queue to decouple task submission from execution and smooth out peaks;
- Inference service: run a stateless inference gateway on a container platform, scaling elastically with queue length;
- Result retention: write raw outputs and scores to object storage for traceability;
- Observability: track latency, failure rate, and quota consumption with logging and monitoring alerts;
- Cost control: define fallback policies and priority queues for non-critical tasks.
Schematic scheduling logic:
def submit(task, priority="normal"):# High-priority tasks use a separate queue to avoid being blocked by batch jobsqueue = "high" if priority == "high" else "batch"mq.send(queue, task)return task.iddef worker_loop():while True:task = mq.receive()result = inference(task.prompt)storage.put(task.id, result)metrics.observe(task.id, latency=task.elapsed, quota=task.cost)
For special cases such as a quota about to expire where the goal is to use it up quickly, the same pipeline can submit low-value tasks in batches, turning idle quota into archivable evaluation samples instead of simply wasting it.
6. Common Pitfalls and Conclusion
- Pitfall 1: ranking by retrievable problems. The conclusions have almost no discriminative power.
- Pitfall 2: looking only at inference speed. Queuing and quotas are often the real bottleneck.
- Pitfall 3: treating writing style as capability. Natural expression and logical correctness must be evaluated separately.
- Pitfall 4: ignoring verifiability. Outputs that cannot be checked step by step are unsuitable as evaluation samples.
Overall conclusion: assessing the mathematical level of a large language model should rest on three constraints—non-retrievable tasks, verifiable scoring, and resource cost—and should replace a single aggregate score with a layered profile. On the engineering side, general capabilities such as message queues, container platforms, object storage, and monitoring alerts can upgrade evaluation from personal impression to a reproducible, comparable, and auditable routine process.
