How to Scientifically Evaluate the Reasoning and Execution Capabilities of Large Language Models

    This article presents a reproducible evaluation workflow for selecting large language models, covering math reasoning benchmarks, chain-of-thought quality assessment, latency and cost measurement, load testing, deployment environment documentation, and a step-by-step model selection process.

    Model selection decisions should be built on reproducible test results. A single demo or one or two example problems only shows that a model might be able to complete a task — it says nothing about whether it can do so reliably. This article lays out an evaluation process covering mathematical reasoning, chain-of-thought quality, speed and cost, and the documentation requirements for the deployment environment.

    1. Why a Single Test Is Unreliable

    A single successful proof output can come from three very different situations: the model saw similar material during training, the model actually performed the deduction, or the result is merely correct by chance. One result alone cannot distinguish between these three cases.

    Therefore, evaluation requires three things:

    1. Use isomorphic variants. Keep the problem structure but change variable names, values, or objects, and watch whether accuracy drops noticeably. A sharp drop suggests the model relies on memorization rather than deduction.
    2. Sample the same problem repeatedly. Fix sampling parameters such as temperature and run each problem at least 5 times, recording whether the conclusions agree.
    3. Record all test conditions completely, including model version, system prompt, temperature, max output length, and test date. Providers may update a model without changing its name, and results without version information cannot be reproduced.

    2. Building a Reproducible Math Reasoning Benchmark

    The benchmark should be stratified by difficulty — for example, basic algebra, combinatorial counting, and number theory proofs. Each tier needs enough problems to support statistics, generally no fewer than 30 per tier. Problems can come from textbook exercises, public competition questions, or an internal question bank maintained by the team. Every problem must have a human-verified standard answer or reference proof.

    Scoring falls into two categories. Problems with a unique answer are compared directly against the result. Proof problems are scored step by step, checking whether the premises are correct, whether each reasoning step holds, and whether the conclusion is consistent with the premises. Proof problems should be scored independently by two reviewers; large disagreements are discussed afterward, and the degree of agreement between the two reviewers is recorded.

    The table below lists the recommended core metrics:

    Metric Definition How to Measure
    Answer accuracy Proportion of correct answers out of all problems Compare against standard answers
    Proof completeness Proportion of proofs with no missing steps and every step valid Independent double review
    Perturbation stability Proportion of problems answered correctly on both the original and its isomorphic variant Isomorphic problem comparison
    Sampling consistency Proportion of repeated samples of the same problem reaching the same conclusion 5 repeated runs per problem

    3. Evaluating Chain-of-Thought with Three Checks

    Chain-of-thought length by itself says nothing about reasoning quality. Lengthy reasoning may contain many useless steps, while brief reasoning may skip critical conditions. Evaluation should look at the following three items together:

    1. Chain-of-thought length: Count the output tokens used for reasoning on each problem and analyze them alongside accuracy. If longer chains do not improve accuracy, the extra length brings no benefit.
    2. Error accumulation position: Locate the first erroneous step in the reasoning. If errors cluster in the latter half, the model tends to drift in long chains, and breaking the problem into sub-problems handled step by step may help.
    3. Perturbation consistency: Add conditions irrelevant to the conclusion and observe whether the conclusion changes. If the conclusion fluctuates with irrelevant information, the model’s ability to filter out ineffective conditions is insufficient.

    4. Comparing Speed and Quality on the Same Basis

    Speed differences are only worth comparing when quality is close. Before comparing, first confirm that both models achieve acceptable accuracy on the same batch of tasks, then compare speed and cost.

    Three commonly used speed and cost metrics:

    • Time to first token (TTFT): The time from sending a request to receiving the first output token. Interactive scenarios are sensitive to it.
    • Throughput (TPS): Tokens output per second. Batch processing scenarios are sensitive to it.
    • Unit cost: The price per thousand tokens multiplied by the average token usage per task, then multiplied by the number of tasks.

    Measurements must fix the input length distribution, output length cap, concurrency, and hardware environment. TPS varies significantly with these conditions, and numbers measured under different conditions are not directly comparable.

    Use the following template to summarize results, filling in the blanks with measured values:

    Model Accuracy TTFT (ms) TPS Cost per 1K tokens Correct tasks per unit cost Suitable scenarios
    Model A
    Model B

    If two models have similar accuracy but clearly different speeds, the faster, cheaper model should generally be preferred for routine batch tasks. If the accuracy gap is significant, you need to calculate whether the benefit of higher accuracy covers the extra cost.

    5. Load Testing and Deployment Environment Documentation

    The goal of load testing is to find how the model performs under the target load, not to produce an impressive peak number. The recommended approach:

    1. Use a container orchestration platform to launch inference instances for different models, with uniform CPU, memory, and GPU resource limits on each instance, so resource contention does not skew results.
    2. Apply pressure following the concurrency curve of real traffic rather than testing a single concurrency level. Record cold-start time during scaling, as it affects time-to-first-token under traffic bursts.
    3. Monitor GPU memory usage, timeout rate, and error rate. When memory approaches its limit, long-input requests fail easily — a problem that average metrics often fail to reveal.
    4. All performance numbers must be accompanied by hardware model, inference framework version, batch size, and input/output length distribution.

    Private deployment also requires evaluating the cost of hardware procurement, facility power, operations staff, and model upgrades. If hardware utilization stays low over the long term, the total cost of a public API may be lower.

    6. Data Security and Rollback Plan

    • De-identify test data first, removing customer names, account numbers, contact information, and internal business details.
    • Review the provider’s data usage terms and clarify whether input content will be used for model training.
    • Set budget caps and alerts for API calls to prevent batch jobs from generating unexpected charges due to programming errors.
    • Before launching a new model, keep the old model version and prepare rollback steps. A recommended practice is to validate with a small proportion of traffic for one to two weeks before switching over completely.

    7. Model Selection Steps

    1. Define the target tasks and list quality requirements for each task type.
    2. Build a stratified benchmark that includes isomorphic variants and perturbation problems.
    3. Fix test conditions, repeat sampling, and record all version information.
    4. Measure accuracy, chain-of-thought metrics, TTFT, TPS, and unit cost together.
    5. Run a gray release under real traffic to confirm that conclusions match the offline tests.