Why Large Language Models Underperform: From Capability Evaluation to Engineering Governance
Large language models can fail because of capability limits, missing context, weak application design, or inadequate validation. This article presents a practical framework for identifying failure causes, defining task-specific metrics, building reproducible evaluations, improving system reliability, and managing risk after deployment. The goal is to replace vague judgments with measurable boundaries, verification mechanisms, and safe fallback paths.
1. Turn “Poor Performance” into a Verifiable Technical Problem
When a large language model produces an incorrect answer, misses a critical constraint, or generates code that cannot run, user frustration is understandable. However, from a development and procurement perspective, simply declaring a model “unusable” does not help a team locate the problem or develop a reliable improvement plan.
Evaluating an LLM requires separating three layers:
- Whether the foundation model has the capability to complete the task.
- Whether the application provides the necessary information and tools.
- Whether the final output is properly validated.
Users see the result of the entire system, but the failure may originate at any of these layers.
For example, if a model gives an incorrect answer about an internal business process, the problem may be that it never received the latest policy, rather than that it lacks language understanding. If code generation fails, the cause may be an incomplete requirement or an unspecified dependency environment. It may also expose a genuine weakness in complex logical reasoning.
Only by separating these causes can a team determine whether to improve the input, redesign the application, or stop using the model for that task.
A professional critique does not minimize the problem. It describes the problem precisely: which tasks failed, how often they failed, what impact they caused, and whether the failure can be reproduced consistently under the same conditions.
2. Common Failure Patterns and Their Technical Causes
2.1 Fluent Language, Unreliable Facts
An LLM can produce a well-structured and confident response, but writing quality is not the same as factual accuracy. When reliable evidence is unavailable, the model may fill in plausible-looking details, including nonexistent policy clauses, incorrect numerical relationships, or unconfirmed technical capabilities.
This risk is particularly serious in professional question answering. Readers may mistake dense terminology and complete explanations for credibility. What actually needs to be verified is whether the conclusion has evidence, whether the evidence is relevant to the question, and whether the information is still valid.
In engineering workflows, factual support should be treated as an independent validation item. For internal knowledge, time-sensitive information, and important business rules, the system should provide traceable source material and be able to state that the evidence is insufficient. A model’s claim that it has verified something should not be treated as proof that the output is factual.
2.2 Effective on Simple Tasks, Unstable on Complex Ones
Complex tasks usually contain multiple dependent steps. A model may perform well on each individual step but gradually drift away from the original objective during a long workflow. It may correctly extract requirements, then omit boundary conditions, and finally produce an implementation that conflicts with the initial request.
The key issue is not only input length. It is also the relationship between constraints. The more a task involves conditional branches, state changes, and exception rules, the more important it becomes to represent intermediate states explicitly and check critical points.
Breaking a long task into stages is often useful, but more stages are not always better. Excessive decomposition increases invocation costs and the risk of information-transfer errors. A better approach is to organize the workflow around independently verifiable outputs, such as a requirements checklist, an implementation plan, test cases, and execution results. Each stage should be checked against the predefined conditions.
2.3 Code That Looks Reasonable but Cannot Be Delivered
Code-generation quality includes at least four dimensions:
- Syntactic correctness
- Behavioral correctness
- Security
- Maintainability
Code that passes a syntax check is merely parseable. It is not necessarily correct from a business perspective.
Common problems include missing boundary conditions, insufficient exception handling, unreleased resources, incomplete permission checks, and references to interfaces that do not exist in the current environment. In an existing codebase, generated code must also comply with project-specific constraints rather than merely working as an isolated snippet.
Code-related tasks should therefore enter a practical verification pipeline. Check syntax and type constraints, test both normal and exceptional paths, and conduct a security review. For operations involving data modification, account permissions, or financial calculations, human confirmation is required. “Generated successfully” must not be treated as “ready for production.”
3. Define the Business Objective Before Choosing Evaluation Metrics
Without a clear objective, model evaluation can degenerate into selecting a few examples and judging whether the answers look acceptable. This may be useful for initial exploration, but it is not sufficient for deciding whether a system is ready for production.
Start by defining the task scope. For example:
- Knowledge question answering requires accurate interpretation, valid supporting evidence, and a clear response.
- Information extraction requires correct field identification, format preservation, and appropriate handling of missing values.
- Coding assistance requires verifiable changes that do not break existing functionality.
These tasks should not share a vague overall score.
Quality and risk must also be evaluated separately. A minor error in ordinary text polishing can usually be corrected through editing. An error involving permission operations, however, may have serious consequences. Evaluation metrics must reflect this difference. A large number of successful low-risk tasks should not hide a small number of failures in high-risk tasks.
A basic metric set may include:
- Task success rate: Whether the output achieves the predefined business objective, rather than merely returning a response.
- Critical constraint satisfaction rate: Whether required conditions are preserved, prohibited content is avoided, and mandatory checks are completed.
- Factual error rate: The proportion of verifiable claims that are incorrect, measured using a clearly defined methodology.
- Human editing cost: The amount of review, correction, and supplementation still required before task completion.
- Response latency and variance: Not only average response time, but also behavior during peak periods and for slower requests.
- Cost per successful task: The cost of retries, retrieval, validation, and human intervention should all be included.
There is no universal pass threshold for these metrics. Teams should set acceptance criteria according to the consequences of errors, available alternatives, and service requirements rather than adopting an attractive-looking number.
4. Build Reproducible and Realistic Evaluation Sets
Evaluation data should primarily come from real tasks and cover normal inputs, ambiguous inputs, long contexts, boundary conditions, and questions that clearly cannot be answered. A dataset containing only easy examples will overestimate system capability. A dataset containing only extreme challenges may underestimate the value of the system within a constrained scenario.
Each test case should record at least:
- The input
- Required background information
- Expected behavior
- Evaluation criteria
For open-ended questions, it is not necessary to prescribe a single correct answer. However, the evaluation should identify which points must be included and which conclusions are unacceptable.
Testing conditions must also be controlled. If different evaluations use different instruction templates, knowledge sources, or tool permissions, the results cannot be attributed to the model alone. Basic capability testing and application-system testing should be conducted separately to avoid mixing the two.
For tasks with substantial output variability, repeat some test cases and observe whether success rates and failure types remain stable. The purpose of repeated testing is not to select the best result, but to understand reliability under real usage conditions.
Development examples and acceptance examples should be managed separately. If a team repeatedly adjusts prompts using the same questions, the system may simply be adapting to those questions rather than developing transferable capability. Before release, evaluate it with examples that were not used during tuning.
5. Improving Reliability: From Low-Cost Measures to Systematic Governance
5.1 Define Inputs, Outputs, and Failure Handling
Improving task instructions is often more cost-effective than immediately increasing system complexity. Inputs should clearly specify the task objective, available materials, output format, prohibited actions, and how missing information should be handled.
For example, an information-extraction task can require unconfirmed fields to remain empty rather than being guessed. A knowledge-answering task can require the system to state its limitations when evidence is insufficient instead of generating a complete but unsupported answer.
Prompt constraints are guidance mechanisms, not security boundaries. Important restrictions must also be enforced through application logic, format validation, and permission systems.
5.2 Use Retrieval-Augmented Generation to Supply Evidence, Not to Assume Errors Are Eliminated
For internal policies, business documents, and frequently updated information, retrieval-augmented generation can provide relevant source material to the model. Its value lies in adding evidence and making answers easier to trace.
Actual performance depends on document quality, chunking strategy, retrieval effectiveness, access permissions, and information freshness. Even when retrieved documents contain the correct answer, the model may omit an important qualifier. When retrieved materials conflict, it may incorrectly merge different versions.
The system should therefore check whether the source material genuinely supports the conclusion and distinguish direct evidence from model inference whenever possible. The presence of citations does not automatically make an answer correct.
5.3 Assign Deterministic Tasks to Verifiable Components
Precise calculations, format parsing, database queries, and rule-based decisions are generally better handled by deterministic software. The model can interpret natural-language intent and explain results, but it should not replace every execution component.
A more reliable workflow is:
User request → Input validation → Task interpretation → Permission check → Controlled execution → Result validation → User confirmation or result delivery
Permission checks and execution constraints should be handled by independent components. An operation proposed by the model should be treated as a candidate request, not as an instruction with direct execution authority. Operations involving writes, deletions, or external communications should include confirmation steps based on their risk.
5.4 Require Human Review for High-Risk Outputs
Human review is not simply the addition of an approval button. Reviewers need enough information to make an informed decision. The review interface should show the original request, key evidence, proposed operation, and potential impact.
At the same time, reviewers should not be overwhelmed by large volumes of low-quality outputs, which can lead to mechanical approval. Risk-based routing can focus human attention on tasks with high impact, insufficient evidence, or failed validation.
6. Continue Monitoring After Deployment
Passing offline tests does not guarantee stable online performance. Real users often provide more varied wording, longer inputs, and more complex task combinations than evaluation samples. Changes in knowledge materials, application configuration, or the invocation chain can also affect output quality.
Production systems should retain necessary observability data, such as task type, configuration version, validation results, retry count, and human-handling status. Logging must follow data-minimization principles. Sensitive information should be redacted, and access permissions and retention periods should be controlled.
When a problem is identified, classify the failure. It may result from missing facts, omitted instructions, formatting errors, permission blocking, or execution exceptions. Each category requires a different remedy. Increasing prompt length or retry counts is not a universal solution.
The system also needs a defined fallback path. When model output cannot pass validation, the application may display retrieved results, apply rule-based processing, or transfer the task to a human. High-risk functions without a reliable fallback should be expanded cautiously.
7. Replace Emotional Judgments with Verifiable Boundaries
Strict requirements for LLMs are necessary, especially when they become part of development workflows and enterprise operations. However, sound technical decisions should be based on tasks, evidence, and risk.
If a system frequently misses constraints, produces untraceable facts, or generates code without sufficient validation, it should not be assigned the corresponding responsibilities. If it can consistently reduce human effort within a limited task scope, its value should not be dismissed simply because it fails on more complex tasks.
The final question is not whether large language models are “good” or “bad.” It is:
- Which tasks can they complete?
- What external conditions do they require?
- How will failures be detected?
- How can the system exit safely after a failure?
Turning these questions into tests, constraints, and operational mechanisms is the path from subjective impressions to reliable engineering decisions.
