Model Selection for LLMs: Evaluating Reasoning and Mathematical Capabilities
This article provides a practical framework for evaluating large language models, focusing on reasoning speed and mathematical capabilities. It covers how to define your evaluation scope, establish consistent benchmarks for speed testing, design reproducible math reasoning tests, and build a cost-effective multi-model architecture tailored to your specific business needs.
When evaluating large language models (LLMs), a high benchmark score does not automatically translate to suitability for your specific use case. Before starting any evaluation, you need to clarify three things: whether your tasks require real-time responses, the cost of an error, and your budget ceiling. These three conditions determine whether you should prioritize speed, quality, or cost.
During the evaluation process, it is essential to record the specific model version, the invocation method (official API, cloud platform, or on-premises deployment), and the test date. Different versions of the same model can vary significantly in performance. Logging only the brand name produces results that cannot be reproduced.
Defining Consistent Speed Benchmarks
Many articles describe a model’s speed as “several times faster,” but these figures often lack the measurement conditions required for a fair comparison. To reliably compare speed, you must control the following parameters:
- Model name and version
- Input and output token lengths
- Concurrency level and batch size
- Hardware specifications or the cloud provider’s deployment environment
- Statistical methods, e.g., median and P95 latency across multiple runs
The throughput of an LLM is typically measured in Tokens per second (Tokens/s) . A token is the basic unit into which a model splits text. Since Chinese and English tokenize differently, you cannot substitute token counts with word counts directly. Note that TPS in a database or business system usually refers to transactions per second, a different meaning. If you use the abbreviation in a report, clarify the definition.
Beyond throughput, pay attention to Time to First Token (TTFT) —the interval between sending a request and receiving the first token. For chat-based applications, TTFT directly affects user experience. For batch processing tasks, total throughput over a period of time is more important.
| Metric | Definition | Best Used For |
|---|---|---|
| Time to First Token (TTFT) | Time from request sent to first token received | Conversational interfaces, interactive apps |
| Generation Speed (Tokens/s) | Number of tokens output per second | Long-form generation, batch workloads |
| P95 Latency | 95% of requests finish within this time | Online services with SLAs |
| Cost per Task | Total cost of one full request | Budget-sensitive applications at scale |
Brainstorming and Routine Coding: Lightweight Models Are Often Sufficient
In ideation and concept development, the model’s job is to produce as many options as possible; strict correctness of any single answer is less critical. In these scenarios, models with fewer parameters and faster response times are usually sufficient, and the time saved on waiting is noticeable.
Routine coding assistance, document organization, and format conversion largely fall into this category. If a lightweight model produces results comparable to a larger model on your test set while responding significantly faster, setting it as your default is the sensible choice.
“Lightweight” does not mean “replaceable for everything.” For tasks involving complex constraints, long contexts, or multi-step reasoning, the error rate of lightweight models can rise sharply. Verify performance with your own real-world tasks and sampled checks rather than relying on general-purpose benchmark results.
Designing a Reliable Math Reasoning Test
Mathematical reasoning is a common metric for assessing a model’s logical abilities. However, “producing a proof” and “deriving a novel conclusion” are entirely different challenges. The former may rely on patterns seen in the training data, while the latter requires the model to perform strict deductive reasoning under given conditions.
A reproducible math reasoning test can be structured as follows:
- Select problems: Draw questions from a public question bank and record the bank’s name, question IDs, and difficulty distribution. If a question may have appeared in the model’s training data, explicitly note this risk in your report.
- Define scoring criteria: Specify what counts as correct—e.g., correct final conclusion, valid reasoning in every step, and no skipped steps or circular arguments. Ideally, two evaluators should grade independently, and you should calculate inter-rater agreement.
- Fix the prompt: Use the same prompt template, temperature, and maximum output length for all models. Record whether the model’s reasoning mode was enabled.
- Collect results: Track accuracy, average processing time, output length, and per-question cost. Chain-of-thought (CoT) length should also be recorded, as it directly impacts cost and latency. A longer CoT does not necessarily indicate a more reliable conclusion—evaluate it alongside the accuracy rate.
- Ensure sufficient sample size: With too few questions, results may fluctuate significantly. Report the sample count to avoid drawing conclusions from one or two examples.
In a small internal test, we asked a model to provide a proof for a statement without a provided proof and requested the output be formatted as a LaTeX handout in English. The model returned a structurally complete proof, and the typesetting syntax was largely correct in that particular example. But a single case does not represent the model’s general capability across mathematics. To compare different models, you need to run the same question set multiple times, repeat the tests, and publish the aggregate statistics.
Models currently on the market can be broadly grouped by mathematical performance: one cluster performs relatively consistently on open-ended, frontier-level problems; another cluster performs well on competition questions and theorem proofs, with each model having its own strengths; and another group, after iterative updates, approaches the capability of the previous flagship generation while maintaining cost efficiency. These classifications change quickly with new releases, so base your decisions on your own test results rather than relying on fixed rankings.
Hardware and Deployment: The Underlying Drivers of Cost
Inference performance is heavily influenced by hardware. Newer accelerator chips and heterogeneous compute clusters can increase throughput per rack, which affects two types of decisions.
First is the cost of private deployment. As per-unit compute costs drop, running models internally to process sensitive data becomes more feasible. However, procurement, operations, and energy consumption must be accounted for separately; per-GPU performance alone is not sufficient for a full cost assessment.
Second is the pricing of cloud APIs. If the provider’s per-unit inference cost declines, prices may be adjusted accordingly. But pricing direction depends on the provider’s strategy, so you should not assume future price reductions.
In a cloud deployment, common foundational capabilities include container platforms, object storage, and GPU scheduling. These support model service deployment, logging, monitoring, and API exposure. Choose a cloud provider based on your compliance requirements, available regions, pricing, and your team’s existing technical stack.
Selection Checklist
Before making a final decision, confirm each of the following:
- Task type: Dialogue, batch generation, code assistance, or complex reasoning?
- Latency target: What is an acceptable TTFT and total completion time?
- Cost ceiling: What is the budget per 1,000 calls or per task?
- Privacy requirements: Can data leave your internal network? Are there compliance restrictions?
- Quality threshold: What accuracy on your test set is acceptable?
- Fallback strategy: Which model takes over if the primary model times out or fails?
Recommended Architecture: Multi-Model Division of Labor
Most teams do not need to select a single model. A layered routing approach is often more effective:
- Route high-frequency, low-latency tasks to lightweight models.
- Route low-frequency, high-value, or strict reasoning tasks to flagship models.
- Base routing rules on test results—e.g., by task tag, input length, or historical failure rate.
- Set up fallback paths to avoid service disruption if a single model fails.
This architecture balances latency and cost. The trade-off is increased system complexity, requiring maintenance of routing logic and multiple evaluation baselines.
Conclusion
A robust evaluation of large language models requires a multi-dimensional assessment framework that considers speed, quality, cost, and privacy together. Benchmarks serve as a reference; the real decision driver is your own tasks and data. Fix your test conditions first, then run comparisons—only then will your conclusions be reproducible and genuinely useful.
