Evaluating Large Language Models: From Reasoning Capability to Programming Cost
A practical framework for evaluating large language models beyond benchmark rankings. It examines mathematical reasoning, software development, quota and resource consumption, multi-agent collaboration, and reproducible testing, with a focus on reliable task delivery under real-world time and budget constraints.
1. Evaluate Task Delivery, Not Just Capability Rankings
When discussing whether a large language model is useful, common questions include whether it can solve mathematical problems, write correct code, or produce concise reasoning. In practice, however, developers are usually less interested in a model’s best result in a single demonstration than in whether it can consistently complete real tasks within limited time and budget.
For example, a model may solve difficult reasoning problems but frequently hit resource limits during extended code reviews. Another model may generate responses quickly, yet require repeated revisions before passing tests. Its final delivery cost may therefore be higher.
A meaningful evaluation should cover at least four dimensions:
- Capability ceiling: Can the model form an effective analysis and solution path when facing difficult problems with incomplete information?
- Result reliability: Are its conclusions correct, does its code meet requirements, and can its output be independently verified?
- Resource efficiency: How many calls, how much context, and how much execution time are required to complete an acceptable task?
- Usage continuity: Are short-window limits, long-term budgets, and concurrency constraints compatible with the actual workflow?
These dimensions influence one another. More reasoning effort may improve the success rate while consuming more budget. Running more tasks in parallel may reduce waiting time but exhaust shared quotas sooner.
The purpose of professional evaluation is to identify these trade-offs, rather than produce an absolute ranking detached from usage conditions.
2. Evaluating Mathematical Capability: Correct Answers Versus Trustworthy Proofs
2.1 Different Problems Require Different Evaluation Standards
Mathematical tasks can be broadly divided into three levels.
The first consists of conventional problems with established answers. These mainly test conceptual understanding, calculation accuracy, and method selection.
The second consists of difficult problems with existing solutions. They may require long chains of reasoning, auxiliary constructions, or a combination of knowledge from multiple fields. Such tasks are useful for evaluating complex reasoning, but evaluators should consider whether the problem or a similar solution may have appeared in the model’s training data.
The third consists of open problems without generally accepted solutions. These cannot be judged successful simply because a model has produced what appears to be a proof. The output may be a plausible conjecture, a partial result, numerical evidence, or an argument containing subtle logical gaps.
A convincing explanation for an open problem does not establish that the model has solved it. A trustworthy conclusion requires explicit assumptions, a complete derivation, boundary checks, and independent expert review.
2.2 Reasoning Length Is Not Direct Evidence of Ability
A long explanation may conceal a critical flaw, while a short proof may omit necessary assumptions. Evaluation should focus on whether the argument is auditable:
- Are definitions, notation, and applicable conditions clear?
- Are intermediate conclusions adequately supported?
- Does the argument incorrectly generalize a local observation?
- Does it cover special and boundary cases?
- Does it present experimental observations as a formal proof?
In practical evaluations, ask the model to provide key lemmas, major derivation steps, and unresolved points instead of treating the length of its reasoning as a quality metric. When an argument is incomplete, the model should be allowed to state that it is uncertain or that a claim has not yet been proved.
2.3 Build Independent Verification
Mathematical evaluation should separate generation from verification whenever possible. Computational tasks can be checked with independent programs, while proof-based tasks require step-by-step logical review. For local claims that are suitable for formalization, machine-checkable verification can also be introduced.
The scope of verification must remain explicit. A finite number of numerical experiments cannot prove a universal proposition, and validating one lemma does not establish that an entire proof is correct. Evaluation reports should record both what has been verified and what remains unverified.
3. Evaluating Programming Ability Through Verifiable Changes
3.1 Convert Requirements into Acceptance Criteria
Tasks such as “find a bug,” “review the code,” or “add a small feature” may appear simple. Their actual difficulty depends on context, dependencies, and correctness requirements.
Before starting a model, define the following as clearly as possible:
- Reproduction steps and expected behavior;
- Modules that may be modified and areas that must not be touched;
- Interfaces and data formats that must remain compatible;
- Tests and checks that must pass;
- Security, performance, and regression constraints.
For example, “fix a pagination issue” can be refined into specific requirements: cover empty lists, the last page, and invalid page numbers; preserve the existing response structure; add a regression test; and avoid unrelated dependencies. Only then does the task become comparable and objectively acceptable.
3.2 Measure Rework, Not Just Success Rate
Looking only at the first output can significantly overestimate a model’s engineering value. A more complete set of metrics includes:
- First-pass acceptance rate: The percentage of tasks that satisfy all acceptance criteria in the first submission.
- Final task completion rate: The percentage completed within the defined time and budget.
- Average rework rounds: The number of revisions required from the first submission to acceptance.
- Human intervention time: Time spent by developers providing additional information, correcting errors, and reviewing results.
- Regression defects: Whether the change breaks existing functionality.
- Cost per acceptable task: The relationship between total investment and the number of successfully delivered tasks.
First-pass success and final completion should be reported separately. One approach may achieve a high completion rate after multiple retries, but still be unsuitable for daily use if it requires excessive human correction and resources.
3.3 Control Confounding Factors
When comparing different approaches, use the same code version, task description, test environment, and budget limit whenever possible. Also record whether tool calls, auxiliary agents, or different reasoning levels are enabled.
If one approach can read the entire repository while another receives only a few files, the results cannot be attributed to the model alone. The evaluation target must be explicit: are you comparing basic reasoning capability, or a complete system that includes retrieval, execution, and collaboration mechanisms?
4. Understanding Quotas: Usage Duration Is Not Resource Consumption
4.1 Short- and Long-Term Limits May Apply at the Same Time
AI coding services commonly use several forms of resource control, including request-rate limits, concurrency limits, short-window usage limits, and longer-term budgets.
These limits may take effect simultaneously. Exhausting neither the short-term budget nor the long-term budget does not mean the other remains available. Likewise, remaining long-term capacity does not guarantee that high-intensity calls can continue immediately.
As a result, two percentages shown in a user interface usually cannot be added together, and their denominators should not be assumed to be the same. Unless the service rules clearly explain the calculation, do not use these figures to infer how many hours the service can run per week.
4.2 Why a Short Session Can Still Consume Significant Quota
Resource consumption depends on more than elapsed time. Relevant factors may include:
- The length of the input context in each round;
- Output size and reasoning effort;
- The amount of information returned after tool execution;
- Failed retries and automatic repair attempts;
- The number of concurrently running sessions;
- Whether historical messages are repeatedly included in later calls;
- Whether different capability levels use different resource accounting methods.
These are common directions for analyzing consumption, not claims that every service uses the same rules. Accurate conclusions should be based on available usage details and official documentation.
4.3 Concurrency Improves Throughput, Not Necessarily Budget Efficiency
Running multiple sessions in parallel can reduce waiting time, but it does not necessarily reduce the total amount of work. If each session repeatedly interprets the same background, scans the same files, and produces its own review comments, parallel execution may create additional overhead.
Concurrency is therefore better suited to independent tasks with clear boundaries and limited dependencies. Running several sessions to modify the same module can lead to conflicts, duplicated work, and additional verification costs.
5. Multi-Agent Collaboration: Delegation Does Not Automatically Reduce Cost
5.1 Coordination Has Its Own Cost
Delegating simple tasks to lighter-weight execution roles can be a sensible way to organize work. However, comparing only the cost of an individual call is insufficient. A complete workflow may also include:
- Task decomposition by the controlling role;
- Transfer of background information to the execution role;
- Material retrieval and analysis by the execution role;
- Consolidation and review by the controlling role;
- Conflict resolution and failed retries.
A conceptual model for total cost is:
Total cost = planning cost + execution cost + coordination cost + verification cost + rework cost.
This is not a billing formula for any particular service. It is a way to analyze workflow efficiency. Delegation is beneficial only when the resources saved during execution exceed the additional coordination, verification, and rework costs.
5.2 Assign Tasks According to Risk and Verifiability
Tasks that are well suited for delegation usually have clear boundaries and easily checked results. Examples include locating references, organizing related files, generating candidate edge-case tests, and summarizing execution logs.
Tasks involving permission boundaries, shared state, concurrency consistency, or cross-module design require more rigorous system-level review. They can still be divided, but local results should not enter the final change without verification.
Effective collaboration is not about having more roles work simultaneously. It is about giving each role clearly defined inputs, a limited scope, and an output that can be checked.
5.3 Use a Structured Handoff Format
A task handoff should include at least:
- The task objective and completion criteria;
- The scope of files and resources that may be read or modified;
- Known facts and assumptions that still need verification;
- Required evidence;
- Conditions for stopping and escalating when the task cannot be completed.
Execution results should distinguish between confirmed issues, risks worth investigating, and guesses that lack sufficient evidence. This reduces the need for the controlling role to reread every source and helps prevent speculation from becoming the basis for a code change.
6. Reducing Consumption by Controlling Unproductive Exploration
6.1 Locate First, Then Expand the Context
Do not automatically ask a model to read an entire project from the beginning. A more effective approach is to provide an overview of the directory structure, error messages, relevant call paths, and necessary code snippets first. Expand the context gradually according to the analysis.
More context is not always better. Irrelevant information increases consumption and may distract the model from important constraints.
6.2 Adjust Investment to Task Uncertainty
Format checks, simple replacements, and local changes governed by clear rules generally do not require the highest reasoning level. Cross-module failures, complex state management, and difficult-to-reproduce problems may justify greater analytical investment.
A practical strategy is to begin with a lower level of investment for initial diagnosis, then escalate when cross-module dependencies, repeated failures, or conflicting evidence appear. The decision to continue should be based on the value of new information, not on the amount of quota already consumed.
6.3 Set Checkpoints and Stop Conditions for Long Tasks
Unattended execution is particularly prone to repeated attempts. Define the following in advance:
- Maximum execution time;
- Maximum number of retries;
- Acceptable modification scope;
- Operations that require human confirmation;
- Conditions that require the task to stop and report.
Checkpoint summaries should preserve verified facts, failed paths, and the next plan so that a task can resume without reanalyzing the entire process. Summaries cannot replace source code, test results, or original evidence. Important conclusions must remain traceable.
7. Build a Reproducible Evaluation Loop
A practical evaluation process can be organized into five steps.
First, create a representative task set. Include mathematical reasoning, bug fixing, code review, and small feature development, grouped by difficulty and risk.
Second, fix the input conditions. Record the code version, environment, context, available tools, concurrency level, and resource limits.
Third, define acceptance and stop conditions in advance. This prevents the scoring criteria from changing after the outputs are seen.
Fourth, preserve essential process records. These should include changes made, verification results, retry counts, human intervention time, and any available usage information.
Fifth, repeat tests when possible. Observe result variation instead of presenting only the best single outcome. When the sample size is small, state clearly that the conclusions apply only to the current task set.
Ultimately, model selection should serve the workload:
- Research and exploration place greater value on verifiable breakthroughs in reasoning.
- Daily development places greater value on stable delivery.
- Batch tasks place greater value on cost per acceptable result.
- Continuously running workflows place greater value on predictable resource consumption.
The most important question is not whether a single response is impressive. It is whether the system can repeatedly deliver verified results under clearly defined constraints.
By evaluating capability, reliability, resource efficiency, and usage continuity within one framework, organizations can move model selection away from subjective impressions and toward explainable, reproducible engineering decisions.
