# How to Evaluate General-Purpose LLMs: Engineering Capability and Real-World Value

    General-purpose large language models are now expected to handle code, documents, images, and video simultaneously—but benchmarks and demos alone don't tell you whether a model can deliver in production. This article provides a practical framework for evaluating LLMs across three layers: core capabilities, task execution, and production operations. It covers how to interpret parameter counts and sparse architectures, test long-context reliability, assess coding ability through closed-loop delivery, verify multimodal understanding, build reproducible evaluation pipelines, design secure integration architectures, and calculate cost per successfully completed task—so you can choose models based on verified business outcomes rather than impressive demos.

    1. Evaluating LLMs: From “Capability Demonstrations” to “Engineering Acceptance”

    When a large model can process code, documents, images, and video at the same time, the focus of evaluation should no longer be “is the answer fluent?” or “was that single generation impressive?” For developers and enterprise users, the more important questions are: Can it complete tasks under real-world constraints? Can it stay on track over the course of a task? And is the final deliverable verifiable, maintainable, and reusable?

    For example, generating a demo page and shipping a production-ready frontend feature are two fundamentally different tasks. The latter involves not just layout and styling, but also interaction states, invalid input handling, permission boundaries, API failure paths, accessibility, and regression testing. Similarly, being able to read a research document doesn’t mean being able to produce reliable research conclusions—the model must separate facts from inferences and assumptions, and retain traceable evidence.

    Therefore, evaluating a general-purpose LLM should cover three layers:

    • Core capability layer: understanding, generation, reasoning, and cross-modal information extraction.
    • Task execution layer: planning, tool calling, state management, error recovery, and result verification.
    • Production operation layer: cost, latency, security, observability, and long-term maintenance.

    None of these layers can substitute for another. Strong core capabilities don’t guarantee stable tool execution, and a great demo doesn’t mean the model can meet an enterprise’s security and delivery requirements.

    2. Understanding Parameter Scale, Sparse Computation, and Long Context Correctly

    1. Parameter Count Is Not a Direct Guarantee of Business Results

    Parameter count reflects part of a model’s capacity, but it doesn’t determine real-world performance on its own. Training data quality, training objectives, inference strategies, tooling environments, and task fit all affect the final outcome.

    Mixture-of-experts (MoE) architectures typically use a routing mechanism to select a subset of experts for each input. This means total parameters no longer correspond directly to the parameters involved in any single computation—but actual resource consumption still depends on model structure, routing implementation, hardware configuration, and deployment approach.

    So don’t simply interpret “more total parameters” as “inference is necessarily slower,” or “fewer activated parameters” as “operating cost is necessarily lower.” When evaluating, observe these separately:

    • Deployment resource requirements for the full model;
    • Actual compute cost per request;
    • Response time across different input lengths;
    • Throughput and stability under concurrent requests;
    • Success rate on your target tasks.

    Architecture details can help explain behavior, but they can’t replace business-level test results.

    2. Long Context Means More Input Capacity, Not Reliable Use of All of It

    A longer context window helps when working with large codebases, lengthy reports, or multi-round execution logs. But there’s a real gap between “can ingest it” and “can use it accurately.”

    In practice, models may miss important conditions buried in the middle of the material, or confuse similar function definitions, configuration keys, or time-stamped versions. The longer the input, the more repeated and irrelevant content it contains, and the more susceptible the model becomes to distraction.

    When testing long-context capability, at minimum check whether the model can:

    • Locate key facts and return accurate references;
    • Consolidate constraints scattered across different locations;
    • Identify conflicts between documents;
    • Retain the latest state after multiple rounds of operations;
    • Avoid treating outdated information as current fact.

    For large projects, retrieval on demand usually remains valuable. The right approach isn’t to submit every file indiscriminately, but to first build an index of the directory structure, dependencies, and task-relevant content, then select the necessary material per question. Only expand the context when a task genuinely requires global comparison.

    3. Coding Ability Is About Closed-Loop Delivery, Not Code Volume

    1. From One-Shot Code Generation to a Verifiable Execution Loop

    A dependable AI coding workflow should form an explicit closed loop:

    Requirement clarification → Project inspection → Plan formulation → Code modification → Test execution → Failure analysis → Bug fixing → Final delivery summary.

    Every step should produce a checkable output. During requirement clarification, the model should list functional scope and acceptance criteria; during code modification, it should limit the scope of changes; during testing, it should record actual execution results rather than merely claiming “it should work.”

    If the model cannot access an execution environment, you must clearly distinguish between “static judgment” and “actual verification.” Unexecuted code can be treated as a candidate solution—but it should never be presented as a validated deliverable.

    2. Evaluate First-Pass Success and Repair Capability Separately

    Passing acceptance on the first attempt shows that the model understands the task accurately. Whether it can diagnose and fix a failure after the first attempt fails reflects its ability to collaborate in an engineering workflow.

    Both capabilities matter, but they shouldn’t be conflated. One model might produce good first drafts yet repeatedly modify irrelevant files when facing complex errors; another might have minor issues in the first draft but converge quickly based on test feedback.

    We recommend tracking these metrics:

    • Percentage of tasks passed on the first attempt;
    • Final completion rate within a fixed time and operation budget;
    • Average number of repair rounds;
    • Number of irrelevant files modified;
    • Newly introduced defects and regressions in existing functionality;
    • Number of human interventions and time required.

    Note that “passed acceptance” must be confirmed by tests or human review—not by the model’s own claim of completion.

    3. Long-Horizon Tasks Require Stable State Management

    Complex development tasks may involve many files and numerous tool calls. The longer the execution, the more likely goal drift, repeated operations, and forgotten constraints become.

    A safer approach is to maintain structured task state, including objectives, current progress, verified facts, open issues, and next actions. State records should be updated based on execution results, not inferred from implicit memory in natural-language conversation.

    You should also define stop conditions. When the model performs invalid actions repeatedly, repeats the same error, or exceeds the time and cost budget, pause the task and hand it to a human. Long-running autonomous execution isn’t an infinite loop—it’s controlled automation.

    4. Evaluating Multimodal Ability by Information Extraction and Task Conversion

    1. Test Image Understanding and UI Implementation Separately

    A model’s ability to recognize layouts in a design mockup doesn’t guarantee the generated page faithfully reproduces it. In between lie scale inference, component decomposition, asset handling, font selection, responsive layout, and interaction logic.

    When evaluating “image-to-page” capability, break it into three steps:

    First, check whether the model accurately understands the design—including element hierarchy, relative positioning, visual emphasis, and interactive entry points. Second, check whether the implementation meets structural and functional requirements. Finally, verify the result via page screenshots, human review, and interaction testing.

    Visual similarity only measures part of the outcome. A page can look close to the design while having unclickable buttons, missing form validation, or broken layouts on small screens. So visual acceptance and functional acceptance should run in parallel.

    2. Video Understanding Should Focus on Temporal Order, Localization, and Evidence

    Video tasks involve more than visual recognition—action changes, event sequences, subtitles, and audio may all be in scope. Which input types a system actually supports should be confirmed against its real capabilities; don’t infer all related abilities from a generic “supports video” claim.

    In testing, ask the model to locate the time range of a specific event and justify its conclusion. For cross-segment summaries, also check whether it incorrectly stitches events from different time periods into false causal relationships.

    Also, video understanding is not video editing. If you want automated editing, you still need media processing tools, asset management, timeline operations, and export verification. The model can participate in planning and decision-making, but the final files must be produced and inspected by a complete toolchain.

    5. Research and Analysis: Traceability Matters MoreThan Confident Conclusions

    Research-type tasks tend to involve large amounts of material, conflicting viewpoints, and time-sensitive information. The more fluent a model’s output, the more carefully you should verify whether its claims actually exist in the source.

    A sound research output should at minimum distinguish:

    • Direct facts: backed by explicit evidence found in the source material;
    • Synthesized inferences: formed from multiple facts but not stated verbatim in the material;
    • Unverified hypotheses: requiring additional data or experiments to confirm.

    In practice, require every key conclusion to carry a reference to its evidence location, then check whether the original text truly supports it. If the model lacks external retrieval capability, it should explicitly state that the analysis is based solely on the provided material—not imply it has verified the latest public information.

    For computation, statistics, and performance analysis, prefer reproducible methods. Having the model generate analysis steps and computation code, then running them in an execution environment, is more reliable than accepting numeric conclusions expressed in natural language.

    6. Building a Fair, Repeatable Evaluation Process

    1. Test Sets Should Come from Real Business Work

    Public leaderboards are useful for spotting capability trends, but they don’t necessarily reflect your specific business needs. Enterprises should extract tasks from real workloads, covering normal cases, edge cases, and failure cases.

    For example, code tasks can include new feature development, bug fixes, cross-file refactoring, and filling test gaps; document tasks can cover information extraction, conflict identification, and evidence aggregation; multimodal tasks can cover design interpretation, chart analysis, and video event localization.

    Test materials should retain necessary business characteristics while being properly anonymized. Avoid relying solely on public examples—the model may look better at handling unseen tasks than it actually is.

    2. Align Tools, Budgets, and Acceptance Criteria

    When comparing solutions, keep system prompts, tool permissions, available material, execution time, and operation budgets as consistent as possible. If one solution has richer retrieval or execution tooling, you can’t attribute all of the improvement to the model itself.

    We recommend distinguishing two kinds of testing:

    • Model capability testing: fix external conditions as much as possible to observe differences between models.
    • End-to-end solution testing: evaluate the business results of the combined model, tools, retrieval, and workflow.

    Both are worth doing, but the results must be interpreted separately.

    3. Run Repeated Tests and Review Failure Cases

    Model outputs vary between runs; a single success doesn’t prove stability. Important tasks should be tested multiple times independently, recording the range of success rates, latency, and cost.

    Failure cases are often more valuable than average scores. Analyze whether failures stem from requirement misunderstanding, information retrieval, reasoning, tool invocation, or insufficient verification—then decide whether to address them through prompt optimization, workflow adjustments, or human review.

    7. Design Integration Architecture and Security Controls Together

    When integrating LLMs, enterprises can adopt a layered structure: “task entry → orchestration layer → model service → controlled tools → verification and audit.”

    The task entry handles authentication and input validation; the orchestration layer manages context, task state, and budgets; the model service handles inference; controlled tools execute file reads, code runs, or data queries; and the verification and audit module records results and checks for risks.

    Security measures should at minimum include:

    • Granting tool access based on the principle of least privilege;
    • Detecting and handling private information and credentials in input;
    • Isolating code execution from the production environment;
    • Adding confirmation steps for high-risk operations such as deletion, publishing, and permission changes;
    • Retaining necessary audit logs while limiting the storage of sensitive data;
    • Treating instructions found in documents and web pages as untrusted content, preventing them from altering system permissions or task objectives.

    Pay particular attention to this: external content the model reads may contain injection-style instructions. Protection can’t rely on prompts alone—it needs multiple layers of constraints through tool permissions, execution policies, and output validation.

    8. Measure Cost per “Effectively Completed Task”

    Comparing only per-token input/output prices ignores the overhead of long context, repeated inference, tool execution, and human review.

    A more meaningful metric is:

    Effective cost per task = total investment across a batch of tasks ÷ number of tasks that passed acceptance.

    Total investment can include model API costs, retrieval and storage costs, execution environment costs, and the cost of human review and failure remediation. If a task doesn’t pass acceptance, even low-per-request pricing doesn’t count as effective output.

    Cost optimization should focus on the workflow: reduce redundant context, cache stable background information, route simple tasks to lighter-weight processing, set budgets for complex tasks, and avoid pointless retry loops. Whether to adopt a stronger model should be judged by its impact on final completion rates and human effort—not by per-request price alone.

    9. The Final Selection Criterion: Does It Form a Reliable Business Closed Loop?

    Evaluating general-purpose LLMs shouldn’t chase a context-free “best model” verdict. A more rational approach: define task boundaries clearly, establish acceptance criteria, then validate capability, stability, security, and cost against real workloads.

    For individual developers, focus on code quality, bug fixing, and interaction efficiency. For teams, watch collaboration practices, test coverage, and maintainability. For enterprises, you must also examine permission controls, data governance, audit mechanisms, and long-term operating costs.

    A truly valuable model isn’t one that merely outputs plausible answers—it’s one that can convert complex requirements into evidence-backed, verifiable, maintainable deliverables within a controlled workflow. Only when this closed loop is complete does model capability translate into real productivity.