How to Systematically Evaluate LLM Reasoning and Agent Performance

    Evaluating large language models and agents based on subjective impressions is not sufficient for technical selection. This article presents a task-based, reproducible evaluation approach built on four layers: knowledge and understanding, reasoning, execution, and economics. It examines scientific reasoning evaluation, code and agent delivery quality, latency and cost measurement, and the design of reproducible evaluation pipelines. It also explains how enterprises can align model use with task value and risk through acceptance criteria, failure analysis, least-privilege execution, and regression testing.

    1. Shift from Experience-Based Judgment to Task Evidence

    When new large models are released, developers often form judgments based on firsthand experience: the model answers faster, explains more clearly, and seems able to handle more complex problems. These impressions are useful, but they are not enough to support technical selection.

    A single correct answer may occur because the question happens to fall inside the model’s familiar knowledge domain. A smooth code delivery may benefit from a clearly defined task boundary. Detecting an anomaly in one scientific calculation does not prove that the model is reliable across an entire discipline.

    A more reasonable question is therefore not “Is the new model comprehensively stronger?” but:

    • On which tasks can it reliably produce correct results?
    • When conditions are missing or premises are wrong, can it proactively identify the problem?
    • How much time, how many calls, and how much human intervention are required to obtain an acceptable result?
    • Under business constraints, do the benefits justify the costs and risks?

    This means evaluation should move from a single conversation to a complete task, from subjective impressions to reproducible evidence, and from single-capability rankings to business-fit analysis.

    2. Build a Four-Layer Evaluation Framework Instead of Reducing All Capabilities to One Score

    2.1 Knowledge and Understanding: Does the Model Truly Grasp the Problem Boundary?

    Basic knowledge capability is not only about explaining terminology. It also includes understanding applicable conditions, distinguishing similar concepts, and identifying ambiguity in a user’s question.

    For example, when discussing the electronic structure of a material, a model should distinguish among atomic-orbital descriptions, local bonding pictures, and band-level explanations. It should not mechanically apply a familiar conclusion merely because a technical term appears in the question.

    This layer can be evaluated through concept discrimination, condition completion, and counterexample construction. One especially important question is whether the model asks necessary clarifying questions when information is insufficient, rather than producing an answer that looks complete but rests on a weak foundation.

    2.2 Reasoning: Are Conclusions Supported by Valid Steps?

    Reasoning capability should be evaluated independently of expression capability. Fluent language and clear structure do not mean that formula transformations, causal judgments, or boundary analysis are correct.

    Evaluation should require the model to provide checkable key steps, including variable definitions, conditions of validity, necessary intermediate results, and the scope in which the conclusion applies. This does not mean demanding a lengthy thought process. It means requiring an argument sufficient for external verification.

    For mathematical tasks, evaluators can check algebraic transformations, special values, and limiting cases. For physics tasks, they can check dimensions, conservation relationships, and approximation conditions. For engineering tasks, they should check interface constraints, resource limits, and failure paths.

    2.3 Execution: Can the Model Turn a Plan into an Acceptance-Ready Artifact?

    An agent is a system that executes multi-step tasks around a goal. It usually includes a model, tools, state management, and feedback mechanisms. Its capability cannot be judged solely by the plan generated by the model.

    A well-written plan that cannot modify files, run checks, or handle failure feedback still lacks reliable delivery capability. Conversely, a less elegant plan that completes the task in a controlled environment and provides verification evidence often has greater engineering value.

    This layer should focus on task completion rate, correctness of tool operations, failure recovery capability, and the need for human takeover.

    2.4 Economics: The Total Cost of Obtaining a Reliable Result

    A low unit price does not necessarily mean a low total cost. If a task requires multiple retries, frequent manual correction, or many invalid tool calls, the final expenditure may be higher.

    A useful metric is cost per accepted delivery:

    Cost per accepted delivery = total investment during the evaluation period ÷ number of tasks that pass acceptance

    Total investment should include model calls, tool computation, necessary retrieval, human review, and incident handling. Different resources can first be recorded separately and then converted according to the enterprise’s internal cost basis. Avoid directly adding incompatible units.

    3. Scientific Reasoning Evaluation: Focus on Missing Factors and Explanatory Credibility

    The difficulty of complex mathematics and physics problems is often not the formula itself, but the conditions that determine whether the formula applies.

    In electronic structure analysis, orbital contributions, local environment, symmetry, electron correlation, and computational approximations can all affect interpretation of the results. If a model notices that a certain type of orbital contribution has been ignored, this can be a valuable diagnostic clue. However, that observation alone does not prove that the explanation is correct. It is also necessary to determine whether the factor matters in the specific system and whether the relevant data support that judgment.

    3.1 Split Tests into Different Information Conditions

    The same problem can be designed in three versions:

    1. Provide only the question and the calculation result, to observe whether the model proactively identifies key omissions.
    2. Add a review requirement without pointing out a specific defect, to observe whether the model can systematically inspect assumptions.
    3. Explicitly mention a potential factor, to observe whether the model can correctly verify the prompt instead of agreeing with it unconditionally.

    The three results reflect proactive diagnosis, guided inspection, and error-correction capability. They should not be combined into a single metric.

    3.2 Distinguish “Raising a Possibility” from “Confirming a Cause”

    A reliable answer should clearly mark which content is known fact, which is a reasonable hypothesis, and which still requires further verification.

    For example, a model may suggest checking projection results, comparing different computational conditions, or analyzing structural changes. But without corresponding evidence, it should not turn “a certain orbital contribution may exist” into “this factor necessarily caused the current result.”

    This grading of evidence is more important than a confident tone.

    3.3 Treat Comprehensibility as a Separate Metric

    Whether an explanation is easy to understand can be checked in three areas: whether notation is clearly defined, whether key steps are adequately explained, and whether the conclusion states its scope of application.

    A good explanation should neither skip critical steps nor pile up background unrelated to the question. In scientific applications especially, reliability should be ensured first, and expression optimized afterward. Readability must not be allowed to hide uncertainty.

    4. Code and Agent Evaluation: Focus on Delivery Quality, Not Generation Volume

    Code tasks should cover different difficulty levels and different stages of work, such as local bug fixes, feature implementation, multi-file changes, test additions, and recovery operations after failures.

    Evaluating only by lines of code, number of files, or first-generation speed encourages unnecessary changes and may even reward complex but hard-to-maintain implementations.

    4.1 Define Acceptance Criteria Before Execution

    Every task should have a clear initial environment, target behavior, and constraints. For example:

    • The specified functionality must pass the corresponding tests.
    • Existing behavior must not show known regressions.
    • Critical configuration outside the task scope must not be modified.
    • Invalid input must be handled explicitly.
    • The output should state the scope of changes and verification results.

    If acceptance criteria are unclear, evaluators can easily mistake “appears complete” for “is complete.”

    4.2 Evaluate Both Correctness and Change Restraint

    One common problem with agents is rewriting too much code to complete a local task. The larger the change, the broader the potential regression surface and the higher the review cost.

    Therefore, in addition to functional pass status, evaluators should record unrelated modifications, interface compatibility, duplicated code, exception handling, and maintainability. “Minimum change” does not need to be an absolute goal, but every additional modification should have a clear reason.

    4.3 Report Model Performance and System Performance Separately

    Tool permissions, context organization, execution environment, and failure feedback all affect task results. The same model can perform differently in different agent systems.

    To compare models themselves, tool configuration, prompt templates, execution budgets, and environment versions should be fixed as much as possible. To compare complete applications, different system configurations may be allowed, but the conclusion must clearly state that it applies to the whole system rather than the model alone.

    5. Latency and Cost: Fast Is More Than a Fast First Response

    For actual users, “time to start answering” and “time to complete a usable result” are not the same thing.

    At minimum, record three types of latency:

    • Time to first usable response: when the user receives meaningful information.
    • Task completion latency: when the system submits an acceptance-ready result.
    • Tail latency: how a small number of slow tasks affect the overall experience.

    At the same time, record timeouts, retries, and failures. Otherwise, a system could achieve a lower average latency by failing quickly while providing no better service.

    For agent tasks, also track how time is allocated within the execution chain. Tool waiting, repeated retrieval, invalid edits, and test rework may affect total duration more than text generation. The optimization goal should be to reduce ineffective steps before reaching the correct result, not merely to compress output.

    6. How to Build a Reproducible Evaluation Process

    6.1 Extract Tasks from Real Business Workflows

    The test set should cover high-frequency tasks, key risk tasks, and long-tail tasks. Stratified sampling can be used to include easy, moderate, and difficult tasks separately, preventing results from being diluted by a large number of simple questions.

    Before historical business samples are used, they should be de-identified and permission-checked. The task source, curation method, and scope of application should be retained.

    6.2 Control Variables and Record Complete Context

    Each test should record model configuration, input content, tool permissions, environment version, time limit, and resource budget. Without these records, it is difficult to determine later whether a difference in results comes from a model change or a change in test conditions.

    For tasks with randomness, tests should be repeated. The median can help show typical performance, but dispersion, failure ratio, and extreme cases should also be reported.

    6.3 Use Combined Acceptance Instead of a Single Automatic Score

    Code tasks can combine tests, static checks, and human review. Mathematical tasks can combine reference answers, key-step verification, and independent calculation. Open-ended tasks can use a predefined scoring rubric and blind review.

    Automatic scoring can also be wrong. For high-risk tasks, key conclusions should be reviewed by people with the relevant expertise. Final judgment should not rely solely on another model.

    6.4 Analyze Failure Types and Create an Improvement Loop

    Failures should be further classified: missing knowledge, omitted conditions, derivation errors, tool misuse, state confusion, insufficient verification, or resource limits.

    Different types correspond to different measures. Missing knowledge may require adding reliable materials. Tool misuse requires better permissions and call validation. State confusion requires improved task records. Insufficient verification requires explicit acceptance steps.

    Attributing every failure to “the model is not strong enough” usually does not guide engineering optimization.

    7. Enterprise Deployment: Align Usage with Risk and Task Value

    Enterprises should not choose models based only on a single composite score. They should establish a task-tiering mechanism.

    For low-risk tasks whose results are easy to verify, efficiency and cost can be prioritized. For moderately complex tasks, standardized context, tool feedback, and automatic verification should be provided. For high-risk tasks, such as important scientific conclusions, production configuration changes, or safety-related operations, human review and an explicit rollback mechanism should be required.

    Agent execution should also follow the principle of least privilege. File access, command execution, and external data interaction should all have boundaries. Necessary audit records should be retained through logging, and monitoring alerts should identify abnormal retries, rising costs, and declining success rates.

    After a model or execution environment changes, key regression tasks should be rerun. An upgrade should not automatically be treated as an improvement for every business scenario. Whether to deploy it should be based on actual acceptance results.

    Conclusion

    The core of evaluating large models is judging whether they can, under clear constraints and within acceptable time and cost, reliably deliver verifiable results.

    Scientific reasoning should be checked for assumptions, evidence, and applicable conditions. Code tasks should be checked for correctness, regression risk, and maintenance cost. Agent tasks should be checked for execution efficiency, failure recovery, and permission boundaries. Only by incorporating these factors into a reproducible process can “feels better to use” be turned into reliable technical conclusions and, further, into sustainable business value.