Evaluating Large Language Models by Task Outcomes: Long Context and Agent Practice
This article argues that large language models should be judged by whether they reliably complete real tasks, fit into engineering workflows, and deliver results at controlled cost, rather than by parameter counts, context length, or leaderboard scores. It introduces a three-layer evaluation framework, explains how post-training and long-context handling affect task performance, and outlines verifiable engineering loops for coding agents. It also covers domain-specific checks for 3D creation and financial research, end-to-end speed and cost metrics, benchmark design, and enterprise deployment with risk-based autonomy and security controls.
1. Evaluate Models by Task Outcomes, Not Release Metrics
Discussions of large language models often center on parameter scale, context length, and leaderboard results. These figures are useful references, but they do not directly answer the questions developers care about most: Can the model complete real tasks reliably? Can it fit into existing engineering workflows? And how much does it cost to finish the task?
For example, “supports ultra-long context” does not mean the model can accurately understand an entire codebase. “Has tool-calling ability” does not mean it can safely perform production operations. “Better code generation” does not mean the output is ready to ship. Between model capability and business value, there are several other layers: data organization, tool environments, testing systems, and permission governance.
Therefore, evaluating a new generation of models should distinguish three layers.
Layer one is foundational capability, including comprehension, reasoning, generation, information extraction, and code handling.
Layer two is system capability: whether the model, combined with tools, retrieval, execution environments, and task state management, can complete complex workflows.
Layer three is delivery capability: whether results pass acceptance, whether costs are controlled, whether the process is traceable, and whether the system can recover after failure.
Only when all three layers are met can gains in model capability turn into stable productivity.
2. The Core Value of Post-Training: Making Models Better at Completing Tasks
Pretraining gives a model broad knowledge and pattern recognition. Post-training then adjusts the model’s behavior so it better follows instructions, task goals, and usage constraints. Common methods include supervised fine-tuning, preference optimization, and reinforcement learning.
For programming and agent tasks, an important change in post-training is that the training object is no longer limited to a single response. It can extend to the full sequence of actions. For example, a model needs to understand the task first, then inspect files, modify code, run tests, and keep adjusting based on execution feedback.
The difficulty is that feedback is often delayed. Earlier steps may look reasonable, yet the final result can still fail because of a missing dependency, a misunderstood requirement, or a broken compatibility path. Training therefore needs to reward not only final outcomes but also whether the process follows the rules, whether resource use is reasonable, and whether results can be verified.
2.1 Keep reward signals as close to the real goal as possible
In programming scenarios, test results, build status, and static analysis feedback can evaluate task completion. But “tests pass” does not automatically mean the implementation is correct. If test coverage is insufficient, a model may solve only the visible examples without meeting the full requirement.
A more reliable approach combines several verification signals. Public tests check basic functionality, hidden tests check generalization, regression tests check existing behavior, and human review judges design quality and maintainability.
2.2 Environment quality affects training and evaluation results
Missing dependencies, network fluctuations, and file permission errors can all cause a task to fail. If environment failures cannot be separated from model errors, the feedback becomes distorted.
Large-scale training and evaluation therefore need stable execution environments, clear error classification, and replayable run records. Adding compute resources yields sustained gains only when it is combined with high-quality tasks, reliable feedback, and environment governance.
3. The Value of Long Context Lies in Building Correct Connections Across Materials
Long context gives complex tasks a larger working space. Developers can provide requirement documents, API specifications, multiple source files, and historical incident records together. Researchers can include several reports in a single analysis.
However, it is necessary to distinguish between how much content a model can receive and how much it can use effectively.
A model may find a specific fact but fail to correctly connect conditions scattered across different locations. It may also overlook a revision note that appears later in a long document and keep relying on outdated information. The nominal capacity of a context window is therefore only part of the capability boundary.
When evaluating long context, at least the following tasks should be covered.
First, locating ability: whether the model can find the target fact in a large body of material and accurately identify its source.
Second, association ability: whether the model can combine information from multiple places to reason, rather than citing only isolated fragments.
Third, conflict handling: when facing different versions, different times, or different statistical bases, whether the model can identify the differences and keep the necessary uncertainty.
Fourth, constraint retention: after several rounds of tool calls, whether the model still follows the originally stated permissions, formats, and business requirements.
In engineering practice, “putting all materials in” should not be assumed to be the best option. More information increases processing latency, cost, and distraction. A safer approach is to organize materials by task: retrieve relevant passages first, add necessary context, and maintain structured task state and an evidence index.
For long-running agents, state records can include the goal, completed steps, key evidence, open questions, and next actions. Summaries can reduce repeated processing costs, but important facts should keep their sources so that compression does not cause information loss.
4. The Key to Coding Agents Is a Verifiable Engineering Loop
The difference between a coding agent and ordinary code generation lies not in how much code is produced in one output, but in whether the system can complete a loop of understanding, modifying, executing, and verifying.
A sound workflow includes the following steps.
4.1 Define acceptance criteria
Before changing code, confirm the expected behavior, compatibility requirements, and the scope that must not be changed. The vaguer the requirement, the more likely an agent is to produce an implementation that looks complete but drifts from the goal.
4.2 Locate the minimum necessary scope
Read the relevant entry points, call chains, and tests before deciding where to make changes. For bug fixes, prefer local changes that explain the root cause, and avoid unrelated refactoring that expands risk.
4.3 Run layered verification
Run checks directly related to the change first, then expand to regression tests and the full build. When data processing is involved, also check null values, abnormal inputs, boundary conditions, and repeated execution.
4.4 Deliver a clear handoff note
The delivery should state what was changed, how it was verified, what remains unverified, and the potential risks. A check that was not run must not be described as passed.
When evaluating coding agents, recording only the final success rate is not enough. Also record average attempts, tool call volume, manual intervention count, regression defects, and total time. A system that needs frequent manual fixes to complete tasks differs significantly in production value from one that completes tasks reliably on its own.
5. 3D Creation and Financial Research Need Different Verification Mechanisms
Model performance in different domains cannot be measured with the same standard.
5.1 3D creation: beyond visual quality, check asset usability
3D creation may involve scene description, geometry construction, material setup, lighting adjustment, and interaction logic. Models can help generate plans, scripts, and revision suggestions, but whether the final asset is usable must be checked in a professional execution environment.
For example, a good-looking image does not mean the geometry is sound. A normal single-frame render does not mean interaction is stable across a session. Actual acceptance should also check resource completeness, consistency of coordinates and units, runtime performance, and behavior on the target device.
A staged workflow works well. Confirm style and composition first, then verify structure and materials, and
