Evaluating Large Language Models in Practice: From Code Generation to Multimodal Capabilities
This article presents a practical framework for evaluating large language models beyond headline labels and benchmark scores. It breaks model capability into functional correctness, reliability, engineering fit, and economic value, then examines code generation, reasoning, multimodal understanding and execution, reproducible test design, and deployment controls. Readers gain a risk-based method for determining what a model can complete, where it may fail, and whether its use delivers verifiable delivery benefits.
1. Evaluating LLMs: Turn “Strongest” into Verifiable Questions
Discussions of new-generation large language models often focus on a few prominent labels: generating more code, achieving higher reasoning scores, responding faster, and handling multiple media types. These descriptions indicate the direction of technical progress, but they do not directly answer the questions developers care about most: Is the model suitable for a specific task? Can it complete work consistently? Will integrating it actually reduce costs?
“Strongest” is not a rigorous technical metric. A model may excel at generating interface prototypes but make frequent errors under complex business constraints. It may perform well on math problems but be poor at maintaining existing code. It may produce output quickly, yet require so much rework that final delivery time does not decrease.
A reasonable starting point for evaluation is therefore not to search for a single score that covers every scenario, but to break capability into four categories:
- Functional capability: Can the model complete the specified task, and does its output comply with constraints?
- Reliability: Is performance stable under repeated tests, input variations, and abnormal conditions?
- Engineering fit: Can it be integrated into existing development, testing, approval, and operations processes?
- Economics: After accounting for inference, waiting time, review, and rework, do benefits exceed costs?
Leaked messages, internal codenames, and unexplained performance numbers do not support reproducible technical conclusions. Such information should be separated into “capability claims that still require verification” and “facts for which evidence exists,” so that rumors do not replace evaluation.
2. Code Generation: Lines of Code Are Not Quality, and a Successful Run Is Not Delivery
2.1 Why Large Code Output Can Create an Illusion of Capability
Generating thousands of lines of code at once first demonstrates long-output capability; it does not necessarily demonstrate complex software development capability. Large code volumes may contain repeated interface structures, static data, boilerplate configuration, hidden unimplemented logic, missing dependencies, or inconsistent data definitions.
For the same feature, a well-designed implementation may be much shorter than one produced by mechanical expansion. If lines of code become a primary metric, it may instead encourage redundancy and overengineering.
More valuable questions include:
- Is the core workflow in the requirements fully implemented?
- Can the code build and run in a clearly defined environment?
- Is data actually persisted rather than existing only in temporary state?
- Do permission checks cover every protected operation?
- Are exceptional conditions handled in a way that is understandable and recoverable?
- Will later feature additions require large-scale rewriting?
These questions determine whether the generated result is merely “an application that looks plausible” or “a maintainable software foundation.”
2.2 Four Acceptance Layers for “One-Click Application Generation”
The first layer is environment and build acceptance.
Confirm that runtime conditions, dependency declarations, configuration methods, and startup procedures are consistent. Do not rely only on the model’s statement of success; actually execute the build and startup process in an isolated environment.
The second layer is functional acceptance.
Translate requirements into observable inputs and outputs. For example, after an order is created successfully, it should be possible to query it again. A cancellation operation should comply with state constraints. Repeated submission should not create unexpected duplicate records.
The third layer is security and data acceptance.
Check unauthorized access, sensitive information leakage, input validation, concurrent updates, and data integrity. Hiding a button in the interface does not mean that server-side authorization control has been implemented.
The fourth layer is maintainability acceptance.
Examine whether module responsibilities are clear, whether business rules are centrally managed, whether tests cover critical paths, and whether changing one rule affects large amounts of unrelated code.
Passing the first two layers only shows that a prototype is basically usable. Passing the last two provides a basis for discussing production delivery.
2.3 A More Reliable Generation Process Is Staged
For complex requirements, having a model output the entire implementation in one pass can easily lead to inconsistent definitions, omitted details, and error propagation. A more reliable process is:
Requirements clarification → Acceptance criteria → Data and interface design → Minimal feature implementation → Automated testing → Defect fixing → Security review.
Each stage should leave behind inspectable artifacts. The requirements stage should output boundaries and exception cases. The design stage should clarify state changes and data constraints. The implementation stage should complete only the confirmed scope. The testing stage should feed back problems using actual execution results.
This approach may not reduce the number of model calls, but it usually helps control rework. Engineering efficiency should be measured by total time to meet acceptance criteria, not by the time needed to obtain the first version of the code.
3. Reasoning: Higher Scores Do Not Equal Higher Business Problem-Solving Rates
3.1 First Determine What a Score Measures
Reasoning tests may cover different tasks such as mathematical calculation, constraint satisfaction, logical judgment, and multi-step planning. Different test sets may differ significantly in difficulty, scoring methods, and input formats.
When discussing a particular score, it is necessary to understand at least:
- What task types are included, and are they close to real work?
- Are external tools or additional information allowed?
- How many attempts are allowed per question?
- Is the metric first-attempt success or the best result across multiple attempts?
- Has the output been manually filtered?
- Are sample size, variance, and failure cases described?
Without these conditions, even a number reported to several decimal places may not be useful for practical model selection.
3.2 Distinguish Percentage Points from Relative Improvement
Suppose a test score rises from 55% to 80%. The absolute difference is 25 percentage points, and the relative improvement is approximately 45.5%. These are not the same quantity.
More importantly, this type of test improvement cannot be directly converted into “the same percentage increase in development efficiency” or “the same percentage reduction in business errors.” Real work is also affected by context quality, tool availability, process constraints, and human review costs.
3.3 Business Reasoning Should Focus on Constraints, Not Explanation Length
A long analysis does not automatically mean the conclusion is correct. For business tasks, evaluation should check whether the model correctly identifies constraints, distinguishes facts from assumptions and unknowns, and produces conclusions that can be verified with external evidence.
For example, a resource allocation task must not only provide a plan but also satisfy budget, personnel skills, time windows, and dependencies. If a plan violates any hard constraint, it cannot be considered successful even if the explanation is fluent.
For problems that can be formalized, independent validation should be introduced wherever possible:计算结果由程序复算,计划由约束检查器验证,数据判断由实际查询结果确认。The model is responsible for proposing candidate solutions; the validation step is responsible for determining whether those candidates are valid.
4. Multimodal Capabilities: Understanding, Generation, and Execution Are Not the Same
4.1 Multiple Inputs Do Not Equal End-to-End Creation
A multimodal system may accept text, images, audio, or video, but these input forms do not directly prove that the system has all corresponding generation capabilities.
Recognizing a UI screenshot is not the same as producing an editable interface that meets design specifications. Understanding audio content is not the same as completing professional audio production. Describing a video clip is not the same as generating continuous, stable video that meets timing requirements.
During evaluation, the following should be confirmed separately:
- Perception: Can the system accurately extract visible or audible information?
- Association: Can it map information across multiple inputs?
- Generation: Can it output results in the required form and quality?
- Execution: Can it use controlled tools to modify, export, and validate results?
Only item-by-item testing can determine capability boundaries.
4.2 UI Tasks Should Be Checked by Behavior, Not Screenshots Alone
UI generation can easily create a favorable first impression through visual appearance, but actual quality also includes interaction states, keyboard operation, focus order, error messages, layouts at different screen sizes, and behavior after data changes.
A complete test should cover at least the normal state, empty data, loading, request failure, insufficient permissions, and extreme content length. If the system can only present a static page and cannot correctly handle these states, it remains only a visual prototype.
4.3 Multi-Model Collaboration May Improve Results and Also Increase Complexity
Using a fast model for simple classification, a model with stronger reasoning for complex planning, and a model suited to visual tasks for image analysis is a general task-routing approach. However, division of labor alone does not guarantee better overall results.
A collaboration chain may introduce lost context, inconsistent structures, duplicate calls, and propagated errors. Teams need to define unified input and output structures and retain key evidence, confidence limitations, and error information. Whether to adopt multi-model collaboration should be validated through overall task success rate and end-to-end cost, not by comparing the speed of a single stage alone.
5. Building a Reproducible Evaluation Plan
5.1 Build a Test Set from Real Tasks
The test set should come from actual work, including routine requirements, historical defects, complex constraints, ambiguous descriptions, and abnormal inputs. For tasks involving sensitive information, data should first be de-identified and usage permissions confirmed.
Each task needs clear acceptance criteria. For example, “generate an admin page” is too broad. “Support paginated queries, required-field validation, permission restrictions, and display a recoverable message when a request fails” is more suitable for objective evaluation.
It is advisable to divide the test set into a development/debugging portion and an independent acceptance portion. This avoids producing good results only on familiar questions after repeated prompt adjustments.
5.2 Keep Comparison Conditions Consistent
When comparing different models or configurations, requirements, context, tool permissions, output limits, retry budgets, and runtime environments should be kept as consistent as possible. If one approach receives more attempts, its results should be reported separately and not directly mixed with first-output results.
Each evaluation should record the input version, system settings, tool calls, output content, and execution results. For stochastic generation processes, runs should be repeated, and success rates and variance should be reported rather than only the best run.
5.3 Use Multidimensional Metrics to Avoid Risks Hidden Behind a Single Score
The following evaluation table can be used:
| Dimension | Suggested metric | Focus |
|---|---|---|
| Functional correctness | Acceptance test pass rate | Whether requirements are truly completed |
| Stability | Repeated-run success rate | Whether success depends on chance |
| Repair ability | Number of iterations needed to reach acceptance | Whether errors can converge effectively |
| Performance | First response and full-task time | Whether waiting time is acceptable |
| Security | Number and type of severe defects | Whether unacceptable risks exist |
| Maintainability | Change impact scope and review results | Whether future development is easy |
| Economics | Total cost per qualified task | Whether resources are truly saved |
For serious issues such as permission bypass or sensitive data exposure, independent blocking criteria should be set rather than allowing them to be offset by high scores in other categories.
6. Engineering Deployment: From “Can Generate” to “Can Control”
6.1 Tool Permissions Should Follow Least Privilege
Once a model gains access to files, databases, or external systems, risk expands from “providing a wrong answer” to “performing a wrong action.” Read-only, write, and destructive operations should be distinguished, with isolated environments, path restrictions, approval, and auditing mechanisms.
High-risk operations such as deleting data, modifying production configuration, or publishing applications should not be automatically executed solely based on generated content. Generated code should also be reviewed, must not contain real credentials, and should be restricted from accessing sensitive resources.
6.2 Preserve Observability and Rollback Paths
Use logging services, monitoring alerts, and task records to track failure causes, call latency, retry counts, and human takeover. For critical business processes, traditional processes or manual handling must be retained.
When output is incomplete, validation fails, or the cost budget is exceeded, the system should stop propagating errors and move to degradation or manual review rather than retrying indefinitely.
6.3 Roll Out by Risk Level
Start with low-risk tasks, such as generating test drafts, organizing technical documentation, analyzing de-identified logs, and building non-production prototypes. After evaluation results become stable, gradually expand to controlled code changes and process automation.
For tasks involving financial calculations, core permissions, or important data migration, strict validation and human approval should always be retained. Improved model capability does not mean that business controls can be removed.
7. Conclusion: What Matters Is Verifiable Delivery Value
Evaluating the actual performance of large language models cannot rely only on code volume, leaderboard rankings, or impressive demonstrations. More reliable judgment comes from clear tasks, consistent conditions, independent validation, and complete cost records.
For developers, the key question is whether they can obtain correct, maintainable implementations faster. For enterprises, the key question is whether they can deliver consistently under security and budget constraints. Only when a model reduces total work—rather than shifting implementation cost into review and rework cost—has it created real value.
Instead of asking whether a particular model is “the strongest,” it is more useful to continuously verify three questions: What can it complete? Under what conditions will it fail? And when failure occurs, can it be detected and controlled promptly?
