Evaluating and Deploying Large Language Models for Open-Ended Math Reasoning
This article explains why open-ended math problems have become a key benchmark for measuring the reasoning depth of large language models, and how to turn that capability into a reliable high-throughput service. It covers a three-tier view of reasoning ability, a three-dimensional evaluation framework that scores answer correctness, process validity, and efficiency, and observable proxy metrics for comparing models. It then outlines the layers of a high-throughput inference architecture, a simplified capacity-planning model, cost-control and elasticity strategies, and common pitfalls to avoid. Engineers will find a practical path from one-off model evaluation to a repeatable engineering loop.
1. Why Open-Ended Math Problems Are the Dividing Line
As general question answering and text generation become increasingly homogeneous, open-ended math problems are emerging as a key yardstick for measuring the depth of a model’s reasoning. “Open-ended” does not mean the problem has no answer. It means the solution path is not unique, intermediate steps must be constructed by the model itself, and the conclusion cannot be reached through pattern matching alone. These problems typically require the model to perform multiple rounds of self-verification: first identifying which structural class the problem belongs to, then selecting tools and transformations, and finally making trade-offs among several candidate paths.
This gives us three tiers of models:
- Tier 1: Models that can reproduce standard solutions and perform reliably on problems within the training distribution.
- Tier 2: Models that maintain accuracy when the phrasing changes or conditions are redundant or missing.
- Tier 3: Models that can autonomously construct new paths and backtrack to correct erroneous intermediate conclusions.
Most models stay at Tier 1: they score well on benchmarks but transfer poorly. What truly separates models is Tier 3 capability, and that cannot be captured by a single accuracy number.
2. Evaluation: From Checking Answers to Checking Process
Comparing only final answers hides two problems: lucky guesses, and cases where the process is wrong but the conclusion happens to be correct. A practical approach is a three-dimensional evaluation framework.
- Answer correctness: whether the answer is decidable and satisfies equivalent transformations.
- Process validity: whether key steps hold, and whether there is circular reasoning or skipped steps.
- Efficiency metrics: reasoning length, number of tool calls, and the number of retries needed to reach a correct solution.
A schematic main evaluation loop is shown below (pseudocode, expressing the flow only):
def evaluate(model, problem, rubric):trace = model.solve(problem, max_steps=64)answer_ok = judge_answer(trace.final, problem.gold)step_score = rubric.score_steps(trace.steps) # key-step coveragereturn {"correct": answer_ok,"process": step_score,"steps": len(trace.steps),"retries": trace.retries,}
It is worth stressing that evaluation compute is itself a cost. A layered sampling strategy is recommended: first run a small fixed problem set for regression, then manually review the samples that differ, so the budget is not consumed by repeated problems. In addition, problems should be rotated regularly to prevent the evaluation set from being contaminated by leaderboard chasing.
3. Capability Tiers: Observable Metrics Instead of Subjective Impressions
When comparing models side by side, subjective impressions are easily influenced by writing style. A more robust approach is to choose observable proxy metrics:
- Reasoning conciseness: the number of reasoning steps needed to reach a correct conclusion.
- Expression naturalness: whether the conclusion is stated in a way close to human writing habits.
- Long-chain stability: how much accuracy decays as the reasoning chain grows longer.
- Robustness on consistency problems: answer drift when conditions are phrased slightly differently.
A common finding in practice is that the model with the longest reasoning chain is not necessarily the strongest, but it often has a higher ceiling on extremely hard problems; the model with the shortest reasoning chain usually offers better cost-performance on routine problems. Engineering selection should be based on the task distribution, not on leaderboard rankings.
4. High-Throughput Inference Deployment: Turning Capability into Service Capacity
Model capability has business value only when it is translated into stable throughput and latency. A high-throughput inference service typically has the following layers:
- Access layer: authentication, rate limiting, canary release, and multi-tenant isolation.
- Scheduling layer: request queuing, priority queues, and batch-window aggregation.
- Inference layer: a combination of tensor parallelism and pipeline parallelism, KV cache reuse, and continuous batching.
- Storage layer: object storage for models and datasets, with a cache layer serving hot prefixes.
- Observability layer: a logging service that collects call traces, plus monitoring and alerting that track time to first token and throughput.
Capacity planning can be estimated with a simplified model:
Required instances ≈ peak QPS × average output length ÷ (per-instance throughput × target utilization)
A target utilization with more than 30% headroom is recommended to absorb traffic spikes and long-tail long-text requests. If the workload is mainly long-context, prioritize expanding cache capacity rather than simply adding compute.
5. Cost Control and Elasticity
High throughput does not have to mean high cost. Viable optimization directions include:
- Tiered routing: send simple requests to a smaller model and escalate only hard problems to a strong reasoning model.
- Result caching: semantic-level caching for frequently repeated questions.
- Batch aggregation: merging requests within the latency tolerance to improve compute utilization.
- Elastic scaling: combining scheduled scaling with metric-based scaling to avoid idle resources at night.
On Baidu AI Cloud, these capabilities are typically assembled from common product categories such as the container platform, object storage, logging service, and monitoring and alerting, so teams can flexibly compose them around their own traffic curves rather than being locked into a single form.
6. Common Pitfalls
- Looking only at leaderboards: conclusions become distorted when benchmark problems do not match the business distribution.
- Ignoring the process: without step validation, wrong conclusions flow back in as successful samples.
- Over-pursuing long chains: longer reasoning raises latency and cost at the same time.
- Missing regression: no fixed problem set to guard against changes to the model or inference parameters.
7. Conclusion
Evaluating open-ended math capability is essentially building a reproducible loop of “problem — process — efficiency,” while making that capability pay off depends on a high-throughput inference architecture, a clear capacity model, and tiered cost control. Combining the two is what turns a one-off model evaluation into a sustainable engineering capability.
