Evaluating Mathematical Reasoning in LLMs: A Practical Model Selection and Testing Guide

    This article presents a practical framework for evaluating the mathematical reasoning capabilities of large language models during model selection. It covers four assessment dimensions—standard problem solving, open-ended modeling, reasoning stability, and reasoning-process quality—and compares concise versus long-chain reasoning styles. It also explains how to interpret public model tiers, build a private benchmark, define reproducible metrics, estimate total cost of ownership and latency, and choose a deployment environment. Readers will gain an actionable checklist for comparing candidate models on accuracy, reasoning quality, cost, and operational fit.

    A large language model’s mathematical ability cannot be judged only by whether its final answer is correct. Two models may both answer the same question correctly, but one may have a clear reasoning chain while the other simply guesses correctly. During model selection, teams need to evaluate answer accuracy, reasoning-process quality, and usage cost together. This article provides an evaluation method that can be applied directly.

    1. Dimensions of Mathematical Reasoning Evaluation

    Evaluation can be divided into four dimensions, each with quantifiable metrics.

    Dimension Core question Quantitative metric Test method
    Standard problem solving Can the model correctly solve problems with clearly defined conditions? First-attempt accuracy Closed problem set, single attempt, record results
    Open-ended problem modeling Can the model translate vague requirements into mathematical expressions? Completeness rate of variables and constraints; modeling accuracy Provide a business description; manually check variable definitions and equations
    Reasoning stability Does the model produce consistent answers across multiple attempts on the same problem? Consistency rate; correction rate Run the same problem three times and calculate consistency; provide one round of feedback and calculate the correction success rate
    Reasoning-process quality Are there logical gaps between steps? Step-reasonableness score (1–5) Two reviewers score independently; calculate scoring consistency

    2. Two Common Chain-of-Thought Styles

    Models differ significantly in how they generate reasoning processes. They can be broadly divided into two categories.

    Concise reasoning style: The model reaches conclusions in fewer steps, and the text is close to human intuitive expression. These models respond quickly and cost less, making them suitable for interactive Q&A, data analysis assistants, and tutoring. Their weakness is that they tend to skip intermediate steps. In proof problems or multi-branch calculations, if a key step is omitted, the conclusion may lack support. Testing should focus on step completeness in long proof problems.

    Long-chain expansion style: The model breaks the problem down in detail and generates long reasoning text covering more branches. On high-difficulty problems, these models usually have a higher tolerance for errors. The tradeoff is increased time to first token, a significantly larger number of output tokens, and higher cost. The longer the output, the greater the chance that the model will introduce errors or contradictions along the way. When using these models, check whether intermediate conclusions remain consistent across long text.

    3. How to Interpret Model Capability Tiers

    In public materials, models are often grouped into different tiers. Tier judgments can serve as an initial screening reference, but they cannot replace hands-on testing.

    Tier-1 models score relatively high on some public mathematical benchmarks and are also relatively stable on open-ended problems. These models usually have higher invocation costs, and local deployment requires more compute. For high-risk tasks such as financial actuarial work and complex physics simulation, teams can prioritize testing within this tier.

    Tier-2 flagship reasoning models perform close to Tier 1 on routine mathematical problems, but their stability on open-ended problems is weaker. When selecting among them, first determine whether they use a concise reasoning style or a long-chain expansion style, because their applicable scenarios differ.

    Tier 3 consists of models from newer teams. Some advanced versions already approach the previous-generation flagship products of some vendors on medium-difficulty problems. These models are suitable candidates for routine business logic and basic code generation. Whether they reach a certain level should be determined by results on your own test set.

    Tier rankings change as model versions are updated. When citing any score, always record the benchmark name, evaluation methodology, and test date.

    4. How to Build a Private Evaluation Set

    Public datasets such as GSM8K and MATH have already been included by many teams in training or tuning, so scores may be inflated. A more reliable approach is to build a private evaluation set. Below is an actionable checklist.

    1. Sample composition

    • A total of 300 to 500 problems is recommended to support statistical significance.
    • Suggested mix: about 40% closed problems, about 30% open modeling problems, and about 30% business-specific calculation problems.
    • Each problem must have a standard answer and key solution points, and must be cross-reviewed by at least two people.
    • Problems must not appear in the public training corpora of candidate models. When the source cannot be confirmed, use newly generated internal business problems.

    2. Metric definitions

    • First-attempt accuracy: the proportion of single-attempt answers that match the standard answer.
    • Correction rate: the proportion of problems the model ultimately answers correctly after one round of feedback following an initial incorrect answer.
    • Step reasonableness: score from 1 to 5, with 3 or above regarded as passing. Two reviewers score independently and calculate Cohen’s kappa. If it is below 0.6, unify the scoring criteria before scoring again.

    3. Statistical methodology

    • Run each problem three times, take the average accuracy, and report the range of variation.
    • Fix the temperature parameter. If default sampling settings are used, record the sampling parameters in full.
    • Test all candidate models on the same batch of problems within the same time window.

    4. Reproducibility configuration
    Record the following information for every test: model name and version number, test date, system prompt, temperature, maximum output length, and evaluation script version. Without this information, results cannot be reproduced or compared with later tests.

    5. How to Estimate Cost and Latency

    A model with high accuracy is not necessarily the most cost-effective. Candidate models should be compared using a total cost of ownership (TCO) framework.

    Monthly cost can be estimated with the following formula:

    Monthly cost = [average daily requests × average input tokens × input unit price + average daily requests × average output tokens × output unit price] × 30 × (1 + failure retry rate)

    Example: assume 20,000 requests per day, an average of 800 input tokens, an average of 1,500 output tokens, an input unit price of CNY 2 per million tokens, an output unit price of CNY 8 per million tokens, and a failure retry rate of 5%. Daily input volume is 16 million tokens, with an input cost of CNY 32; daily output volume is 30 million tokens, with an output cost of CNY 240, for a daily total of CNY 272. Calculated over 30 days, the monthly cost is approximately 272 × 30 × 1.05, or CNY 8,568. The prices above are used only to demonstrate the calculation and do not represent any actual quote.

    For latency, measure time to first token (TTFT) and full response time, and report P50 and P95. If P95 exceeds the business-acceptable upper limit, the model should not go live even if the average meets the target. The P95 of long-chain expansion models is usually significantly higher than that of concise reasoning models. During stress testing, increase concurrency gradually and observe changes in error rate and latency.

    6. How to Choose a Deployment Environment

    For private deployment, inference latency and throughput are affected by GPU model, memory capacity, and scheduling method. Teams can choose among public cloud, private cloud, or self-hosted clusters that meet compliance requirements. The comparison can focus on the following dimensions:

    • GPU model and available inventory.
    • Billing method, such as pay-as-you-go, annual/monthly subscription, or spot instances.
    • Monitoring and logging capabilities, including whether GPU utilization, peak memory usage, and throughput data can be obtained.
    • Data residency requirements.