Evaluating Coding and Multimodal Capabilities in General-Purpose Large Language Models

    This article explores practical frameworks for evaluating the coding and multimodal capabilities of general-purpose large language models (LLMs). Moving beyond superficial benchmarks, it delves into task completion, long-horizon programming, multimodal understanding, and enterprise readiness. It offers actionable metrics for assessing true engineering value in real-world scenarios, covering everything from parameter scale and context management to security, cost accounting, and reproducible evaluation methods.

    I. Evaluation Should Shift from “Model Rankings” to “Task Completion Capability”

    When dealing with general-purpose large language models capable of coding, document processing, image understanding, and tool invocation, the most common pitfall is assuming that a larger scale, longer context, or more complex demos directly translate to better performance in production environments.

    While these metrics have reference value, they cannot independently answer the question engineering teams care about most: Can the model deliver verifiable results within defined time, budget, and permission boundaries?

    A single code generation might only involve one function, whereas a real engineering task often includes requirement clarification, repository retrieval, dependency analysis, code modification, test execution, and result explanation. A failure in any of these links can invalidate the final delivery. Therefore, the evaluation of general-purpose LLMs should be divided into three levels:

    • Basic Capability: Can the model understand the input, perform reasoning, and generate content that meets constraints?
    • Task Capability: Can the model complete multi-step work around a specific goal, rather than just offering suggestions?
    • System Capability: After integrating tools, knowledge bases, and permission mechanisms, can the model operate stably and controllably?

    These three levels cannot be conflated. A model being able to explain an error log does not mean it can safely fix an online fault; being able to generate a UI from an image does not mean the generated result meets accessibility, performance, and compatibility requirements.

    Truly valuable evaluation should be built on real tasks, clear acceptance criteria, and traceable execution records.

    II. Understanding Parameter Scale, Sparse Architecture, and Long Context

    1. Parameter Scale is Technical Background, Not a Quality Guarantee

    The number of parameters reflects part of a model’s capacity, but its performance is also influenced by training data, training methods, inference strategies, and task adaptation. You cannot infer code quality, factual accuracy, or deployment cost solely based on the parameter count.

    For models using a Mixture of Experts (MoE) architecture, it is necessary to distinguish between total parameters and the parameters activated in a single computation. The basic idea is to use a routing mechanism to let different inputs call specific expert modules, thereby expanding model capacity while controlling computational overhead.

    However, sparse activation does not necessarily mean deployment costs will be low. Weight storage, cross-device communication, expert load balancing, and actual batch processing efficiency will still impact hardware requirements and response times. When evaluating, you should observe throughput, latency, and resource utilization under real operating conditions, rather than drawing conclusions based on architectural labels.

    2. Long Context Solves “Fitting it in”, Not Automatically “Using it well”

    A larger context window can accommodate more code, documents, and conversation history, but input capacity and information utilization capability are two different problems.

    For large code repositories, the model needs to find the truly relevant files, understand cross-module invocation relationships, and maintain interface constraints during modifications. Simply stuffing the entire repository into the context at once might increase costs and noise without improving localization accuracy.

    A more reasonable working approach usually involves:

    1. Establishing a summary of directories, modules, interfaces, and dependencies.
    2. Retrieving relevant files and documents based on the task.
    3. Retaining key constraints, verified facts, and recent modification records.
    4. Maintaining traceable access to complete materials, reading the original text when needed.

    When evaluating long-context capabilities, you should not only test whether the model can find a specific sentence. More discriminating tasks include: synthesizing conclusions from multiple documents, identifying conflicting regulations, tracking cross-file dependencies, and keeping requirements from drifting during long execution processes.

    Long inputs can also increase the wait time for the first response and the resource overhead for context caching. Therefore, the maximum window is best viewed as a capability boundary, not the input size that every request should aim for.

    III. Long-Horizon Programming: The Key is the Modify-Verify-Correct Loop

    1. Shift from “Generating Code” to “Delivering Changes”

    The deliverable of a real development task is usually not an isolated piece of code, but a set of verified changes. A reliable programming process should include:

    Requirement clarification -> Code localization -> Modification plan -> Implement changes -> Test verification -> Diff review -> Delivery notes.

    Here, requirement clarification determines if the direction is correct; code localization determines if the modification scope is reasonable; testing and diff review determine if the result is trustworthy.

    For example, if the task is to “fix the issue of duplicate data after pagination,” the model should not immediately rewrite the entire data layer. Instead, it should first confirm the pagination strategy, sorting rules, data change conditions, and reproduction path. Only by understanding the conditions under which the problem occurs can the correct fix be chosen.

    2. Tool Execution Results Must Influence the Next Decision

    The value of long-horizon programming lies in the model’s ability to use feedback to advance the task. Common feedback includes compilation errors, test failures, runtime logs, UI screenshots, and performance measurement results.

    The key observation point is: Does the model actually correct its assumptions based on this feedback, or does it merely repeat modifications and claim the problem is solved?

    A robust task constraint can be written as:

    1. Objective: Fix the specified issue without altering existing public interfaces.
    2. Execution requirements:
    3. 1. Provide the reproduction method and impact scope first.
    4. 2. Prioritize localized modifications.
    5. 3. Add regression tests for the fix.
    6. 4. Record the actual verification steps executed.
    7. 5. Clearly annotate checks that cannot be executed.
    8. 6. Must not use deleting assertions or skipping tests as a fix method.

    These constraints are not tool-specific commands, but engineering acceptance rules. They help distinguish between “looks like it’s done” and “there is evidence it is done.”

    3. A Single Success Does Not Represent Stable Reliability

    A single success might depend on favorable task conditions or an accidental reasoning path. During evaluation, the task should be repeated under the same resource budget, recording:

    • Functional acceptance pass rate;
    • Number of regression issues;
    • Number of manual interventions;
    • Scope of irrelevant modifications;
    • Task duration and resource consumption;
    • Ability to locate the cause and recover after a failure.

    In particular, failure cases should be retained. A system that can accurately report “currently unable to confirm the fix is effective” is usually more suitable for production workflows than one that baselessly declares success.

    IV. Multimodal Capabilities: Understanding the Screen is Not Understanding the Business

    1. Images Can Supplement Requirements, But Cannot Replace Requirement Specifications

    Design drafts, sketches, and interface screenshots can express layout, visual hierarchy, and interaction clues, making them suitable for assisting UI development, problem localization, and document understanding.

    However, images usually cannot fully explain business rules. For example, a button’s appearance cannot explain its permission requirements, submission conditions, exception prompts, or duplicate click behavior. The model might also misread small text, occluded content, and complex charts.

    Therefore, image inputs should be accompanied by structured specifications, including:

    • Page objectives and user roles;
    • Data fields and state changes;
    • Interaction flows and exception branches;
    • Adaptation scope and accessibility requirements;
    • Business rules that must be preserved.

    2. Interface Acceptance Requires Multi-Dimensional Metrics

    “Similar to the design” is only part of UI acceptance. A complete evaluation should also cover:

    Visual level: Spacing, typography, alignment, color, and layout across different sizes.

    Interaction level: Input validation, loading states, error feedback, focus management, and keyboard operations.

    Engineering level: Component boundaries, data flow, resource loading, maintenance cost, and performance.

    Security level: Whether sensitive data is placed in inappropriate locations, whether server-side validation is missing, and whether the UI incorrectly relies on hiding to implement permission control.

    Screenshot comparisons can reveal visual discrepancies but cannot prove business logic correctness. Both should be verified separately.

    3. Video Analysis Must Handle Temporal Information

    Video tasks involve not only frame-by-frame recognition but also event sequencing, action duration, scene transitions, and cross-scene object association.

    If frame extraction is used, the sampling strategy should be explicit. Sparse sampling might miss brief events, while dense sampling increases processing costs. For key judgments, the output should ideally include the time range, relevant visual evidence, and any remaining uncertainty.

    Additionally, being able to understand a video and output text analysis does not automatically mean the model can produce a video. Editing delivery also relies on execution phases such as asset management, timeline operations, audio-video synchronization, rendering, and export.

    V. Research and Office Tasks: Evidence Chain is More Important than Fluency

    General-purpose LLMs are suitable for assisting with material organization, cross-document comparison, report drafting, and information extraction, but linguistic fluency can easily mask a lack of evidence.

    Research tasks should distinguish three types of content:

    • Source facts: Can be traced back to original materials.
    • Analytical inferences: Derived from materials, requiring an explanation of the reasoning basis.
    • Hypotheses to be verified: Temporarily lacking sufficient evidence, should not be written as definitive conclusions.

    A reliable process should retain sources, material timestamps, and necessary context for key conclusions. When encountering conflicting materials, the discrepancy should be explained rather than ignored to form a neat conclusion.

    For office workflow automation, it is also necessary to distinguish between “generating content” and “executing externally.” Drafting emails, organizing spreadsheets, and generating reports can run in a draft state; when it involves sending, overwriting files, submitting approvals, or modifying business records, confirmation steps should be set based on risk.

    It is especially necessary to guard against prompt injection in documents: external materials are data to be analyzed, and should not be treated as operation instructions with higher privileges just because they contain imperative text.

    VI. Establishing Reproducible Evaluation Methods

    1. Build Task Sets from Business Samples

    Evaluation tasks should come from actual work, rather than just selecting scenarios that are easy to showcase. A task set for a development team might include:

    • Localizing cross-module defects;
    • Adding features while maintaining old interface compatibility;
    • Supplementing tests for legacy code;
    • Implementing interactive pages based on design drafts;
    • Analyzing long logs and explaining fault chains;
    • Summarizing multiple specifications and discovering conflicts.

    Each task should provide the same input materials, environmental conditions, permission boundaries, and resource limits.

    2. Write Clear Acceptance Criteria in Advance

    Evaluation criteria should be determined before execution, avoiding adjusting the rules after seeing the results.

    Taking a coding task as an example, rather than just asking “is the code reasonable,” you should clarify whether functional tests pass, whether regressions were introduced, whether interfaces prohibited from modification were altered, whether unnecessary dependencies were added, and whether the delivery notes support manual review.

    For research tasks, focus on factual accuracy, source coverage, omissions, and whether the conclusion strength matches the evidence.

    Automated checks can improve consistency, but architectural quality, business reasonableness, and interactive experience still require manual review. The two should complement, not replace, each other.

    3. Distinguish Model Capability from System Configuration

    Model performance can be affected by retrieval methods, context organization, tool permissions, and validation processes. These conditions should be specified during evaluation.

    If one system can execute tests while another can only output text, directly comparing final completion rates makes it difficult to isolate the difference in the model itself. A fair evaluation requires controlling tools, budgets, and task conditions, or clearly defining the comparison object as a complete system.

    VII. Cost Accounting: Focus on Effective Delivery, Not Single Calls

    A low call price does not necessarily mean low project cost. Long inputs, repeated retries, tool execution, and manual rework can all expand actual expenditures.

    The following accounting method can be adopted:

    Cost per effective delivery = (Total call cost + Tool execution cost + Runtime environment cost + Manual rework cost) ÷ Number of accepted deliveries.

    Completion time and quality risk should also be recorded. A cheap solution that frequently requires manual rewriting might not be as economical as a solution with higher call costs but more stable delivery.

    Resource optimization should not simply aim for minimal input. Reducing irrelevant context, reusing stable task materials, phased verification, and setting budgets and termination conditions for tasks are usually more effective than blindly compressing input.

    For batch document processing, priority can be given to throughput and queuing efficiency; for interactive development, emphasis should be placed on response latency and error correction speed. Different scenarios require different cost objectives.

    VIII. Enterprise Adoption: Permissions, Security, and Observability are Indispensable

    Allowing models into engineering workflows means they may come into contact with code, documents, credentials, and business data. The following principles should be implemented before integration.

    Least privilege. Only open directories, network targets, and operational capabilities required by the task, avoiding providing full environment permissions by default.

    Isolated execution. Run code and commands in a controlled environment, limit resource usage, and retain recovery mechanisms.

    Sensitive data management. Identify and handle sensitive information in inputs, logs, and outputs, clearly defining storage, access, and retention rules.

    Tiered confirmation. High-risk operations such as deleting data, modifying permissions, external publishing, and accessing production environments should require approval or manual confirmation.

    Execution logging. Preserve task inputs, model outputs, tool calls, file diffs, verification results, and exception information to make problems locatable and accountability traceable.

    Only by combining these mechanisms with task workflows can model capabilities be transformed into sustainable engineering capabilities.

    IX. Final Judgment: The Upper Limit of Capability and the Lower Limit of Usability are Equally Important

    Evaluating general-purpose LLMs should simultaneously answer two questions: How complex a task can it complete under ideal conditions, and can it stably deliver basic results under daily conditions?

    The former reflects the capability ceiling, while the latter determines actual value.

    Developers should prioritize code correctness, tool feedback utilization, and maintenance cost; researchers should focus on evidence chains, long-document synthesis, and uncertainty expression; enterprises need to further examine unit effective cost, permission control, and audit capabilities.

    Parameter scale, context length, and multimodal support can serve as a starting point for understanding technical routes, but the final conclusion must come from reproducible task results. Rather than asking whether a model is “strong enough,” it is better to ask: Under defined data, tool, budget, and security boundaries, with what level of stability can it complete verifiable work?