Evaluating Large Language Models: From Code Generation to Complex Reasoning
Assessing the capabilities of large language models (LLMs) goes far beyond fluent text generation or one-off impressive outputs. This article explores a structured approach to LLM evaluation, differentiating between task execution, requirement discovery, and self-correction. By examining domains such as software engineering, financial analysis, content creation, and mathematical reasoning, it highlights the importance of distinguishing facts from assumptions, validating narrative structures, and verifying logic. Ultimately, the true value of an LLM is determined by its total delivery cost—balancing automation with human verification to ensure stable, reliable results in real-world scenarios.
1. Why “Strong Execution” Does Not Equal “Truly Usable”
When evaluating large language models (LLMs), a common phenomenon occurs: the model can generate well-structured code based on explicit requirements and quickly organize materials, yet requires users to constantly provide context, correct direction, and check for omissions when faced with a vague business request.
This is not contradictory. Task execution under explicit instructions and problem-solving in an open environment are two different types of capabilities.
The former typically has clear inputs, outputs, and acceptance criteria—for example, reading data according to specified fields, performing calculations, and outputting a summary. The latter requires the model to first determine “what exactly needs to be solved,” and then decide what information is needed, what methods to adopt, and when to stop inferring and ask the user for confirmation.
Therefore, professional evaluation cannot draw conclusions based solely on “fluent answers,” “generating a lot of content at once,” or “an impressive one-off performance.” Instead, the problem should be broken down:
- Can the model correctly understand the given requirements?
- Can it identify key conditions not yet provided that would affect the conclusion?
- Can it choose a reasonable execution path?
- Can it verify its own results?
- Can it accurately express uncertainty when information is insufficient?
What truly impacts the user experience is often not the output speed, but the labor users expend to fill these gaps.
2. Establishing Capability Layers: Avoiding Single-Metric Evaluation
2.1 Task Execution: Converting Explicit Requirements into Results
Task execution capability is mainly reflected in instruction following, knowledge retrieval, code generation, and format control.
In development scenarios, if a task already specifies data structures, business rules, exception handling, and acceptance criteria, it is easier for the model to deliver usable results. At this point, the user has already completed a significant part of the requirement analysis, and the model is responsible for implementation and expression.
Therefore, “usable on first generation” is a valuable metric, but it must be accompanied by an explanation of task complexity, context completeness, and acceptance methods. Being effective for a simple script does not mean it is equally reliable for refactoring a complex system.
2.2 Requirement Discovery: Identifying Unknown Conditions That Affect Results
Users often describe only the goal without listing all constraints. For example, “analyze the reasons for declining sales” might involve changes in statistical metrics, refund accounting, channel structure, seasonality, price adjustments, and inventory shortages.
Valuable requirement discovery is not about endlessly adding questions, but prioritizing the identification of conditions that could change the analysis conclusion.
A reasonable processing sequence is:
- Extract the goals explicitly expressed by the user.
- Annotate facts and assumptions in existing materials.
- Identify unknown conditions that have the greatest impact on the conclusion.
- Clarify high-impact issues.
- Adopt reversible default solutions for low-risk details and state the assumptions.
“Automatically guessing all the user’s potential needs” should not be treated as a standard for reliability. Completing goals for the user without confirmation can cause directional deviation and even introduce risks.
2.3 Self-Correction: Finding Errors, Not Just Rephrasing
A model generating a paragraph of self-reflection does not mean it has actually found a problem. Effective checking must rely on observable evidence, such as test results, calculation audits, raw materials, or independent derivations.
Having the model repeatedly read its own answers may improve structure and expression, but it cannot guarantee the correction of factual errors. Especially when errors stem from the same knowledge blind spot, multiple rounds of self-checking may just reinforce the initial judgment.
Therefore, it is necessary to distinguish between:
- Expression-level checking: Format, grammar, and terminology consistency.
- Logic-level checking: Whether premises, derivations, and conclusions are consistent.
- Fact-level checking: Whether arguments have sources and data is accurate.
- Execution-level checking: Whether code, calculations, or operations actually pass verification.
These layers cannot replace one another.
3. Coding Evaluation: From “Runnable Code” to “Deliverable Engineering”
Coding tasks easily yield positive experiences largely because they usually offer clear feedback: whether the program runs, whether tests pass, and whether the output meets expectations.
However, running successfully is only the most basic threshold. Engineering quality also includes boundary conditions, compatibility, security, maintainability, and fault recovery.
For example, asking the model to implement a transaction amount aggregation function requires checking not just the main flow, but also:
- Whether amount precision meets business requirements.
- Whether duplicate records cause double counting.
- How missing fields and illegal values are handled.
- How the start and end boundaries of the time range are defined.
- Whether memory consumption is acceptable as input scale increases.
- Whether logs leak sensitive information.
- Whether modifications break existing API calls.
A more reliable evaluation process is to define acceptance criteria first, then observe the implementation:
Requirement Description -> Acceptance Cases -> Implementation -> Automated Checks -> Manual Review -> Regression Validation
Here, acceptance cases should include independently designed edge cases. If tests are entirely generated by the same process that generated the code, the implementation and tests might share the same misunderstandings.
During evaluation, the nature of manual intervention should also be recorded. Fixing variable names versus fixing data processing logic involves different costs and risks. Counting only conversation rounds masks the true delivery difficulty.
4. Financial Analysis: Separating Facts, Assumptions, and Judgments
Financial tasks demand more from models. They require not only calculation but also involve time-sensitive information, statistical metrics, risk exposure, and decision constraints.
A professionally written, structurally complete analysis report can still have severe flaws. For example, directly comparing data from different dates, ignoring transaction costs, or interpreting correlation as causation.
To mitigate these risks, the analysis process should be divided into at least four layers:
Layer 1: Facts. Clarify data sources, statistical timeframes, units, metrics, and whether adjustments were made. Numbers without reliable evidence should not be written into conclusions as established facts.
Layer 2: Assumptions. List assumptions such as growth rates, discount rates, transaction conditions, and liquidity separately to prevent them from silently blending into factual descriptions.
Layer 3: Methods. Explain what comparison, valuation, or risk analysis method is used and the conditions under which the method applies.
Layer 4: Judgments. Bind conclusions to premises and explain which condition changes would invalidate the judgment.
For historical strategy analysis, you should also check whether information unavailable at the time was used, whether out-of-sample data was ignored, or whether rules were repeatedly adjusted on the same dataset. Otherwise, even excellent-looking results may lack practical explanatory power.
In such scenarios, models are better suited as material organizers, analytical assistants, and review aids, rather than taking on unverified high-risk decisions based solely on natural language outputs.
5. Content Creation: Checking Narrative Mechanisms Beyond Fluency
Content creation is evaluated differently than code generation. Text without obvious grammatical errors does not mean the story works; complete paragraphs do not mean the content will engage the target audience.
The quality of long-form narratives or scripts usually depends on the following factors:
- Do characters have clear, stable, yet changeable motivations?
- Does conflict stem from character choices and realistic constraints?
- Does plot progression rely on causality?
- Does information revelation serve suspense and understanding?
- Does the climax fulfill the expectations built earlier?
- Does the language style match the characters and distribution context?
Models easily generate “formally story-like” text: introducing the background at the beginning, adding conflict in the middle, and completing a twist at the end. But if characters act only to drive the plot, and transitions lack build-up, readers will still find it stiff.
A more effective collaboration approach is to clarify creative goals first, then perform structural validation:
Audience & Theme -> Character Goals -> Core Conflict -> Key Choices -> Emotional Changes -> Scene Expression
Each revision round should focus on specific issues, such as “strengthen the protagonist’s motivation for refusing to cooperate,” rather than a vague request to “make it better.” However, this process itself carries costs. If the author must continuously bear all core creative and structural design, the final output quality cannot be entirely attributed to the model.
6. Mathematical Reasoning: Proof Length Does Not Equal Reliability
Mathematical tasks are great for exposing the gap between language fluency and logical reliability. A proof might use standard notation and be lengthy, yet misuse a theorem in a certain step or assume a condition not provided by the problem.
When checking mathematical outputs, focus on:
- Whether the objects, quantifiers, and assumptions in the proposition are accurate.
- Whether the applicable conditions for cited conclusions are met item by item.
- Whether necessary conditions are mistaken for sufficient conditions.
- Whether circular reasoning or implicit assumptions exist.
- Whether special and boundary cases are omitted.
- Whether the proof relies on a key assertion that is equally unproven.
For propositions without proofs in reference materials, the model generating a derivation does not automatically mean it has conducted new research, nor should stable independent research capability be assumed simply because the prompt was brief. Whether the task truly exceeds existing knowledge, whether the derivation is correct, and whether the result is novel all need separate verification.
For open-ended problems, independent review by experts with relevant domain knowledge is even more crucial. The length of the reasoning text, the confidence of the explanation, and formal complexity should not replace correctness verification.
7. Capability Bottlenecks: Not Just About Parameter Scale
When models perform poorly on complex tasks, attributing the cause entirely to insufficient scale leads to oversimplified conclusions.
Scale may influence model capability, but final performance is also affected by training data quality and coverage, training methods, inference resources, context organization, information retrieval methods, tool execution reliability, and task design.
Similarly, assuming that adding more workflow steps will definitely solve the problem is flawed.
Retrieval can supplement external information but cannot guarantee correct understanding; execution environments can provide computational feedback but cannot replace problem modeling; multi-step planning can divide tasks but may propagate errors between steps.
A more prudent principle is:
Use engineering methods to bridge verifiable, decomposable gaps, while acknowledging that the model itself still has capability boundaries.
If a certain type of task can be significantly improved through clear rules, reliable data, and automated verification, process building is usually valuable. If a task relies heavily on humans to reconstruct core reasoning, adding more steps may not yield ideal returns.
8. Building Reproducible Real-World Task Evaluations
Professional evaluation should not rely on a few cherry-picked cases, but should establish a set of tasks close to actual work.
8.1 Select Samples Based on Real Needs
Samples should cover high-frequency tasks, edge cases, and high-risk tasks, including both successful and failed cases. Questions repeatedly used for prompt tuning should not continue to serve as independent evaluation samples.
8.2 Fix Comparison Conditions
Try to keep input materials, task instructions, allowed information, time budget, and verification methods consistent. Comparing “direct output” with “output after extensive human guidance” easily leads to distorted conclusions.
8.3 Record Quality and Cost Simultaneously
It is recommended to record at least:
- First-pass success rate.
- Final completion rate within the specified budget.
- Manual review and revision time.
- Number and types of critical errors.
- Consumption of external information and execution resources.
- Stability when repeating similar tasks.
The first-pass rate reflects immediate usability, the final completion rate reflects collaborative capability, and manual revision time is closer to the real usage burden.
8.4 Attribute by Failure Mechanism
Categorizing failures into requirement misunderstanding, factual errors, reasoning errors, implementation errors, insufficient information, and missing verification is more valuable than simply marking “poor answer.”
Different issues correspond to different improvement methods. Insufficient information may require supplementary materials, requirement misunderstanding may need a clarification process, program boundary errors may require better tests, and persistent core reasoning errors may mean the task exceeds the applicable scope.
9. Using Total Delivery Cost to Judge Usability
The actual cost of a model is not just API fees; it also includes requirement organization, information verification, result review, manual rework, and the risk of missed errors.
This can be understood using a simplified framework:
Total Delivery Cost = Model Usage Cost + Manual Preparation Cost + Verification Cost + Rework Cost + Residual Error Risk Cost
This framework does not require all factors to be immediately converted into monetary amounts, but it demands that evaluators look beyond time saved in the generation phase.
For developers and enterprises, a more sustainable approach is to use models based on risk tiers: low-risk, reversible, and easily verifiable tasks can have higher automation; tasks involving funds, permissions, production changes, and critical conclusions should retain explicit review and approval steps.
The core of evaluating large models is not to find a single capability ranking covering all scenarios, but to confirm: under specific tasks, given constraints, and acceptable risk, whether it can stably reduce human labor and deliver independently verifiable results. Understanding this is the key to truly grasping the model’s value and boundaries.
