How to Evaluate Flagship LLMs: A Practical Guide to Coding and Long-Horizon Tasks
This article explains how to evaluate a new generation of large language models by shifting the focus from rankings to reliable delivery. It covers why model size matters but is not sufficient, how to assess complex coding through closed-loop problem solving, why long-horizon agent tasks hinge on state management and error recovery, and why dynamic graphics tasks are useful diagnostic cases. It also outlines a reproducible evaluation workflow with layered acceptance criteria and cost-per-accepted-delivery, and describes a gradual path from experimental results to production integration.
1. Evaluating a New Generation of Models: Shift from “Ranking” to “Delivery”
When a new generation of large models is released, discussion usually centers on parameter count, aggregate scores, and demo results. This information is useful, but what developers and enterprise users really need to answer is: can the model reliably complete tasks with clear acceptance conditions within a given set of resources and permissions?
For intelligent coding and automated execution scenarios, this question has at least three layers.
First, can the model understand the requirement? It must not only identify the features the user explicitly requests, but also handle the relationships among constraints—for example, an animation must play continuously, a page must not depend on external resources, and a code change must not break existing interfaces.
Second, can the model organize its actions? Real development tasks often require reading files, locating the problem, forming a plan, modifying the implementation, running tests, and then adjusting based on the results. A single correct answer does not mean the whole execution process is reliable.
Third, can the result be verified? Code that looks complete and visuals that look polished do not mean the task is done. Genuine delivery should have runnability, requirement compliance, maintainability, and clear verification evidence.
Therefore, when evaluating a model upgrade, treat aggregate leaderboards as screening signals and real-task evaluation as the basis for decisions. A score without public test conditions, sample composition, and a runtime budget should not be directly inferred as an advantage in production.
2. Why Model Size Matters, and Why It Is Not Sufficient
Larger parameter counts generally increase a model’s capacity to express complex patterns, but the final result also depends on training data, compute investment, model architecture, training objectives, and inference strategy. “More parameters” should not be simply equated with “definitely stronger capability.”
In particular, distinguish total parameter count from the number of parameters actually involved in computation for a single inference. Some models use sparse activation architectures, invoking only part of the compute modules when processing each input. Therefore, total parameter count cannot be used directly to estimate response speed, memory requirements, or invocation cost.
From a development-practice standpoint, it is more worthwhile to see whether scaling brings the following changes:
- Whether understanding of large code contexts is more accurate;
- Whether the model misses less when multiple constraints must hold at once;
- Whether it can locate the cause and fix it when facing error messages returned by tools;
- Whether it still stays aligned with the goal during a long execution.
These changes need to be tested individually. A model may be better at knowledge Q&A yet show no significant improvement in code modification; it may also perform well on short tasks but degrade noticeably as the number of steps grows.
Post-training methods such as reinforcement learning can improve a model’s behavioral choices through feedback—for example, raising the quality of problem-solving strategies, tool calls, or error recovery. But training effectiveness depends heavily on the feedback signal. If the reward only cares about passing the final test, the model may tend to optimize locally against a limited set of tests rather than truly meeting the full requirement.
This means evaluation must observe both the result and constraint adherence during the process. Passing tests while deleting a key feature, or passing by modifying the tests to hide defects, should not be considered success.
3. Complex Coding: From Generating Code to Closed-Loop Problem Solving
Code generation is only part of coding ability. A more discriminating evaluation should require the model to make a context-aware, constraint-bound, verified change within an existing project.
Tasks can be divided into four categories.
1. Generating a Runnable Implementation from a Requirement
This type of task suits checking foundational ability, including requirement understanding, module organization, boundary handling, and run instructions. Acceptance should not look only at code length or visual effects; it should also check input validity, exception paths, and resource release.
For example, a dynamic graphics page should, beyond presenting the main figure, satisfy requirements such as continuous playback, correct layout after window resizing, and no significant resource accumulation across repeated runs.
2. Fixing Defects in Existing Code
Fixing tasks require the model to first build an understanding of the code, then determine where the problem occurs. Evaluation should focus on whether the change is sufficiently focused, whether it introduces unnecessary refactoring, and whether existing functionality remains compatible.
A more reliable verification approach is to appropriately separate the tests used to illustrate the problem from those used for final acceptance. This reduces the risk of the model making targeted changes only for the visible cases.
3. Implementing Cross-Module Features
Cross-module tasks require the model to understand how data flows between components. A common failure is not a syntax error in one segment of code, but inconsistent interface contracts, missed state updates, or breaks in exception handling across modules.
Such tasks should set integration-level acceptance conditions rather than checking each function separately.
4. Iterating Based on Failure Feedback
A model’s first failed implementation does not necessarily indicate insufficient ability. What matters more is whether it can read the error, propose a reasonable hypothesis, make a minimal change, and re-verify.
Evaluation should record the number of fixes, repeated errors, and ineffective operations. Completing the task after a few effective iterations usually has more engineering value than an accidental one-time success.
4. Long-Horizon Agent Tasks: State Management and Error Recovery Are Core
Long-horizon tasks are not simply about generating longer answers, but about continuously preserving the goal, constraints, facts, and execution state across multiple steps.
A typical flow is:
Requirement parsing → environment check → task decomposition → applying changes → running verification → handling failures → summarizing delivery.
The more steps there are, the more chances for errors to propagate. An early misjudgment can steer later operations off course; irrelevant content in tool output can interfere with judgment; and completed changes can be accidentally overwritten by later operations.
Therefore, long-horizon tasks should check at least three capabilities.
1. Goal Retention
When the model reaches the later part of execution, does it still remember the original functional requirements and prohibitions? For example, to fix a local error, does it arbitrarily reduce features, introduce external dependencies, or change the established input/output contract?
Key constraints should be written as independent acceptance items, avoiding checks that only verify whether the final program runs.
2. State Tracking
The model needs to distinguish “planned,” “already executed,” and “verified.” If it merely claims to have completed an operation without actual supporting results, it produces a false completion state.
Engineering systems can store a task list, file-change summaries, test results, and unresolved issues to help the model resume work after context compaction. Note that these records must also be verified; a model’s self-generated summary should not be treated as a source of truth.
3. Error Recovery
A reliable execution process should allow failures but not unlimited retries. You can set per-step timeouts, a total operation budget, a maximum retry count, and conditions for human intervention.
For high-risk operations such as deleting files, changing permissions, or accessing sensitive data, apply least privilege and explicit approval. The stronger the model’s capability, the more it needs clear execution boundaries rather than broader permissions by default.
5. Why Dynamic Graphics Tasks Have Evaluation Value
Dynamic scene generation can simultaneously assess coding ability, spatial relationships, timing control, and constraint coordination. Compared with static pages, it more easily exposes problems where “parts look correct but the overall relationships are wrong.”
Three difficulty levels can be constructed.
The basic level is single-character looping motion, such as a cyclist moving along a road. Check points include whether wheel rotation, body posture, road motion, and loop transitions are coordinated.
The intermediate level is multiple stacked characters, such as a bird riding a bicycle, with a back character maintaining balance and a top character performing a juggling action. The difficulty lies in establishing parent-child relationships: the upper character should follow the lower one’s motion while retaining its own local action.
The advanced level is a change of presentation form, such as switching from a voxel-style scene to a continuous-surface 3D scene. Here, scene structure, materials, lighting, camera, and transition logic should be checked separately; high-quality realism cannot be claimed from a screenshot alone.
The key to multi-character animation is not adding independent motion to each object, but establishing a shared time base and scene hierarchy. The logic is illustrated as follows:
Time = getUnifiedTime()BaseDisplacement = computeForwardPath(Time)BasePose = computePedalingMotion(Time)MidPosition = BaseTransform × MidLocalPositionMidPose = computeBalanceMotion(Time)TopPosition = MidTransform × TopLocalPositionJuggleState = computePeriodicMotion(Time)
In a concrete implementation, periodic functions can control swinging, and segmented trajectories can describe the juggling process. But periodic functions do not automatically produce reasonable motion: amplitude, phase, and the motion center still need to match the scene structure.
Such tasks are suitable as diagnostic cases but cannot alone represent overall coding skill. Visual demos are influenced by aesthetic preference and may hide structural disorder or poor performance, so they must be paired with code inspection and runtime tests.
6. Building a Reproducible Evaluation Workflow
Teams can conduct evaluation following the principle of “fixed tasks, fixed conditions, repeated runs, independent acceptance.”
1. Fix Requirements and Environment
Standardize the task description, initial files, dependencies, resource limits, and tool permissions. If the model is allowed to access external information, define the scope; if not, enforce the restriction in the execution environment.
The same prompt does not automatically mean a fair comparison. Available tools, context capacity, inference budget, and retry mechanisms can all affect results.
2. Set Layered Acceptance
At minimum, cover:
- Run correctness: whether it starts and whether there are obvious errors;
- Requirement compliance: whether required features and prohibitions are met;
- Engineering quality: whether the structure is clear and whether there are dangerous operations;
- Execution efficiency: completion time, number of calls, and resource consumption;
- Result stability: whether repeated runs consistently meet requirements.
For visual tasks, separate structural correctness from aesthetic scoring. The number of characters, action relationships, and loop transitions can form relatively clear standards, while “whether it is attractive” should use a unified scale and be judged independently by multiple reviewers as much as possible.
3. Repeat Tests and Report Distributions
A single success only shows that the model completed the task in one run. Repeat tests on representative tasks and report the success rate, failure types, and time distribution, rather than showing only the best result.
When the sample is small, do not judge model superiority based on slight differences. More importantly, analyze whether failures concentrate in areas unacceptable to enterprises, such as permission violations, data omissions, or unrecoverable erroneous changes.
4. Track the Cost of Each Accepted Delivery
A cheap single call does not necessarily mean cheap overall usage. If a model frequently fails, needs many rounds of fixes, or requires extensive human takeover, the actual cost may be higher.
You can use the following measure:
Average cost per accepted delivery = total investment during testing ÷ number of tasks that passed acceptance.
Total investment should include model calls, execution environment, retries, and human review. If no task passes acceptance, this metric should not be given a finite value; instead, state directly that the approach does not yet have effective delivery capability.
7. From Experimental Results to Production Integration
Production integration should proceed incrementally.
First, run low-risk tasks in an isolated environment, establish a baseline, and collect failure cases. Then open controlled code-modification and testing capabilities, while retaining change review, permission limits, and rollback mechanisms. Only after stability is verified should the task scope be expanded.
Run records should cover task inputs, tool operations, file changes, and verification results, while sensitive content is de-identified and a reasonable retention period is set. The system should also have timeout termination, anomaly alerting, and human-takeover capabilities to avoid an automated flow continuously consuming resources.
Final acceptance is best done by independent logic rather than relying only on the model’s self-assessment. A model can explain what it did, but whether it is acceptable should be decided jointly by tests, rules, or human review.
8. Conclusion: The Real Highlight Is Reliable Delivery
The change worth attention in a new generation of large models is not just more fluent answers or more complex demos, but whether it can more reliably understand constraints, execute plans, handle feedback, and complete verification.
Model size and training methods can explain part of the capability gains, and aggregate evaluations can provide initial signals, but selection should still return to your own tasks. Complex coding looks at the closed loop, long-horizon execution looks at state and recovery, dynamic graphics looks at relationships and consistency, and production applications look at cost and risk.
When a model can repeatedly complete acceptance-ready tasks within a controlled budget, and its failure process is observable and recoverable, its capability gains truly translate into value that developers and enterprises can use.
