Evaluating LLMs: Coding Capabilities and the Boundaries of Complex Problem Solving
Large Language Models (LLMs) often excel at structured programming tasks but struggle with open-ended problem solving. This article explores how to evaluate LLMs by distinguishing between simple instruction following and genuine problem solving. It introduces a layered evaluation framework and provides domain-specific validation strategies for coding, financial analysis, narrative creation, and mathematical reasoning. By understanding model boundaries, calculating the total cost of delivery, and implementing gradual enterprise deployment strategies, developers and organizations can achieve verifiable, net-positive returns from AI integration.
1. Distinguish Between “Instruction Following” and “Problem Solving”
In practical applications, a common experience is that when task requirements are explicit, an LLM can rapidly generate usable code and even implement core features in a single pass. However, when a user provides only a vague goal—expecting the model to proactively identify issues, fill in missing requirements, and continuously improve the solution—the results are often disappointing.
These two experiences are not contradictory; they test entirely different capabilities.
Instruction following requires the model to translate known inputs into outputs that meet specific constraints. For example, if a user explicitly specifies the input format, processing rules, exception behaviors, and acceptance criteria, the model primarily acts as an implementation engine.
Problem solving, on the other hand, requires the model to first assess whether the goal is reasonable, whether the information is sufficient, and whether constraints conflict. It must then identify the sub-problems to be solved, organize execution, and verify the results. This relies not only on generation capabilities but also on requirement analysis, knowledge retrieval, reasoning, planning, and feedback correction.
Therefore, evaluating an LLM should go beyond asking “does the answer look smart?” Instead, we should ask:
- What types of tasks can it deliver reliably?
- To what extent must the task be specified?
- Which errors can it discover automatically?
- Where is human intervention required?
- With verification and rework factored in, does it actually reduce the total effort?
These questions align much more closely with the practical needs of developers and enterprise users than a single impressive demo.
2. Why Good Coding Performance Doesn’t Guarantee Proactivity
1. Coding tasks typically have clearer acceptance criteria
Many programming tasks feature relatively clear input, output, and behavioral constraints. Whether a program runs, whether the results meet expectations, and whether exceptions are handled correctly can usually be verified through testing.
This makes coding scenarios prone to forming a closed feedback loop: Requirement specification → Code generation → Execution testing → Error localization → Implementation correction.
In open-ended tasks, however, acceptance criteria are often hidden within user experience. For instance, “design an effective analytics system” has no natural single answer. What constitutes “effective” may depend on business goals, data quality, organizational processes, and risk appetite.
Thus, strong performance in coding tasks does not directly prove that a model possesses an equivalent level of business insight. Conversely, poor performance in open tasks does not mean it lacks value in engineering tasks with clear boundaries.
2. Unstated requirements cannot always be reliably inferred
Users might expect a model to deduce all potential requirements from a single sentence, but this is not always realistic. A goal like “optimize the system” could point toward reducing latency, lowering resource consumption, enhancing maintainability, or improving availability. These directions may conflict. If a model selects a goal without asking, it may appear proactive, but it is actually making unauthorized decisions for the user.
More reliable proactivity is not about infinitely expanding a task, but about identifying key uncertainties:
- What missing information would alter the solution?
- What assumptions can be temporarily adopted?
- What decisions must be confirmed by the user?
- What risks can be verified in advance?
Asking a few high-value questions is usually more useful than generating a massive solution that misses the mark.
3. Mechanical execution may stem from interaction methods
If an instruction merely says “complete the following steps,” the model will often prioritize following those steps rather than proactively questioning them. If you want the model to take on analytical responsibilities, you must explicitly allow it to examine premises, point out conflicts, and pause execution when necessary.
However, improving prompting techniques can only unlock existing capabilities; it cannot make up for deficits in knowledge, reasoning, or verification. Blaming all issues on “poor prompting” is equally unfounded.
3. Establish a Layered Evaluation Framework Instead of a Single Ranking
Different tasks rely on different capabilities, and a single composite score can easily mask critical differences. A more practical approach is to break down capabilities into observable layers.
1. Instruction Following
Check whether the model accurately executes explicit constraints, including formats, ranges, prohibitions, and output requirements.
Testing should include easily overlooked details. For example, require handling empty inputs, maintaining record order, or prohibiting modification of specific fields. These constraints help differentiate between “generating a similar answer” and “truly completing the task.”
2. Requirement Understanding
Check whether the model can identify ambiguities, omissions, and conflicts, and propose necessary clarifications.
You can provide a deliberately incomplete requirement specification and observe whether the model immediately starts implementing or first identifies key issues affecting the design. Here, you should not reward the quantity of questions asked, but rather their decision-making value.
3. Solution Design
Check whether the model can decompose problems, compare alternative paths, and explain trade-offs.
A high-quality solution should explain applicable conditions, failure modes, and alternative routes, rather than just listing technical jargon. For development tasks, it should also consider data flow, error handling, permission boundaries, and maintenance costs.
4. Execution Delivery
Check whether the output can enter real workflows.
Code must not only run but also meet testing, readability, and integration requirements. Analytical reports must not only be fluent but also backed by traceable evidence. Proofs must not only be formally complete but also cover critical derivations.
5. Verification and Error Correction
Check whether the model can use external feedback to improve results.
Merely having the model re-read its own answer does not equate to independent verification. Test results, structural checks, credible references, and human review are far more valuable than repeated self-confirmation.
6. Cost and Stability
The same task should be evaluated multiple times, recording human intervention and rework.
A single success might be coincidental. If a model occasionally performs well but requires massive corrections in most cases, it should not bear the primary responsibility for critical workflows.
4. Coding Scenarios: Upgrade from “Code Generation” to “Engineering Delivery”
1. Use task contracts to constrain delivery scope
Before generating code, clearly write out a task contract:
- Goal: What business behavior needs to be implemented.
- Input: Data structures, value ranges, and exception cases.
- Output: Returned results, error representations, and side effects.
- Constraints: Resource limits, compatibility requirements, permission boundaries.
- Acceptance: Test conditions and completion standards.
For example, “count transaction records” is still too broad. A better task description should specify time boundaries, duplicate record handling, monetary precision, missing field strategies, and whether partial failures are allowed. A task contract is not meant to push all design work onto the user, but to form a mutual understanding of the delivery target.
2. Separate generation from verification
After code generation, at least three types of issues need checking:
The first is functional errors, including missing branches, incorrect calculations, and incomplete exception handling.
The second is engineering issues, including high module coupling, invalid dependency assumptions, insufficient logging, and poor maintainability.
The third is security issues, including sensitive information exposure, missing permission checks, and improper handling of external inputs.
Verification should rely on execution results rather than the model’s claim that “the code is correct.” Passing tests only means the behavior within the covered scope meets requirements; it does not mean other defects do not exist.
3. Observe performance after requirement changes
Generating successfully once only proves the model completed the current task. Real-world development includes modification and maintenance.
You can add new constraints after the first version is complete and observe whether the model:
- Retains original correct behavior;
- Modifies only necessary parts;
- Synchronously updates tests;
- Identifies conflicts between new and old requirements;
- Avoids introducing hidden regressions.
This reflects engineering applicability far better than simply comparing code length or generation speed.
5. Financial Analysis, Narrative Creation, and Math Reasoning Require Different Validation Mechanisms
1. Financial Analysis: Focus on basis and risk, not confident tone
Financial tasks often depend on data timeliness, statistical consistency, and assumption conditions. Even if a model can explain concepts, it may not reliably make specific decisions.
A sound analytical process should separate facts, assumptions, derivations, and recommendations, clearly stating data sources, applicable times, and uncertainties. For important conclusions, scenario analysis should be conducted to explain which variable changes would invalidate the conclusion.
When it involves trading, capital allocation, or risk-taking, human approval must be retained. Generating a logically smooth report is entirely different from forming an executable, verified financial judgment.
2. Narrative Creation: Evaluate structural consistency, not just prose
The difficulty in story scripting often lies not in sentence expression, but in character motivation, conflict progression, causality, and information release.
A script might be linguistically fluent but suffer from characters acting without motivation, twists relying on coincidence, or conflicting settings. When evaluating, check separately:
- Are character goals stable and understandable?
- Are conflicts driven by actions and choices?
- Are key twists properly foreshadowed?
- Do scenes serve necessary narrative functions?
- Does the ending address the core question?
Verify the story structure first before expanding dialogue and scene descriptions, avoiding wasting time on long texts with fundamentally flawed structures.
3. Mathematical Reasoning: Complete formatting does not equal a valid proof
Mathematical notes must satisfy both correctness and readability. A model might write a formally complete derivation but secretly switch conditions at a critical step, or treat the conclusion to be proven as a known fact.
During review, check:
- Are the proposition’s assumptions complete?
- Are the applied lemmas appropriate?
- Is every derivation step justified?
- Are special cases omitted?
- Is there circular reasoning?
The reconstruction of known proofs, teaching explanations, and open problem research should be evaluated separately. Generating a high-quality lecture note once does not directly imply the model can stably solve open mathematical problems.
6. What Model Scale, Post-Training, and Workflows Actually Solve
Blaming poor performance on complex tasks solely on insufficient parameter scale is an oversimplification.
Model capabilities are influenced by data quality, training objectives, model architecture, inference resources, context utilization, and post-training. Scaling up might improve capabilities, but it cannot be assumed that multiplying scale by a fixed factor will definitively cross a certain intelligence threshold.
Similarly, workflows and external tools are not万能 patches.
Task decomposition reduces single-step difficulty, information retrieval supplements knowledge, code execution verifies calculations, and structural checks constrain output. However, if a model consistently misunderstands the goal or cannot identify the relationship between evidence and conclusions, a more complex workflow might just package errors into a complete-looking report after passing through more steps.
Therefore, three types of gains should be observed separately:
- After changing the model, do basic understanding and reasoning improve?
- After adding verification methods, are errors more easily discovered?
- After adjusting the workflow, is the task easier to complete stably?
This helps determine whether the issue lies in the model, the information, the process, or the acceptance criteria.
7. Use Total Cost of Delivery to Decide Whether to Continue Investing
Model API costs are only part of the total cost. A more comprehensive accounting should include requirement consolidation, review, rework, integration, and error risk.
Use the following concept: Total Cost of Delivery = Model API Cost + Human Guidance Cost + Verification Cost + Rework Cost + Expected Risk Loss.
Risk loss can only be estimated based on business conditions; unquantifiable risks cannot be treated as zero. When comparing different solutions, the same quality threshold should be set. A lower-quality result generated faster is not necessarily more economical.
For tasks that frequently require “hand-holding corrections,” it is recommended to set stop conditions. For example, within a pre-agreed attempt budget, if critical acceptance items still fail, or if the same type of comprehension error recurs, stop adding complex workflows. Switch to human-led execution or narrow the model’s scope of responsibility.
This is not to deny the model’s value, but to prevent trial-and-error costs from continuously eroding returns.
8. Enterprise Deployment: Start with Limited Autonomy, Gradually Expand Responsibilities
Reliable applications usually do not have the model immediately take over an entire business. Instead, they start with tasks that have clear boundaries, verifiable results, and reversible errors.
Phase 1: The model handles drafts, classifications, explanations, or code stubs; humans decide whether to adopt them.
Phase 2: The model can execute certain steps, but outputs must pass automated checks, and critical operations still require approval.
Phase 3: After accumulating sufficient evaluation results, allow the model to handle low-risk, reversible actions while retaining logs, exception alerts, and rollback mechanisms.
When data access is involved, follow the principle of least privilege. When handling external content, treat instructions within the content as data to be analyzed, not as commands to execute automatically. When dealing with sensitive information, control the input scope and retention methods.
Every upgrade in responsibility should be based on task performance and risk assessment, not on whether the answer style feels more human.
Conclusion: The Core of Capability Evaluation is Verifiable Net Returns
The value of LLMs should neither be exaggerated by a single stunning output nor completely dismissed because of a failure on a complex task.
A more mature evaluation approach is to identify its capability boundaries across different tasks, separate requirements, execution, and verification, and track stability, human investment, and error costs.
For developers, the goal worth pursuing is not that the model “looks smart enough,” but that it consistently delivers compliant results under clear responsibilities and reliable verification. Lowering total costs, shortening effective delivery cycles, and keeping risks within acceptable limits are the true conditions for technology application to be viable.
