How to Evaluate Multimodal LLMs in Real Projects: A Practical Methodology

    This article presents a practical methodology for evaluating multimodal large language models and AI coding tools against real project tasks instead of public leaderboard scores. It explains how to build a task set from actual defect and refactoring history, apply a five-dimension weighted scoring model, and control variables such as temperature, context budget, and tool permissions. Drawing on comparisons across two in-house applications and three model configurations, it shares findings on cross-file refactoring, debugging with logs, interpreting vague requirements, and first-pass success rates, then outlines a reusable evaluation pipeline and common pitfalls to avoid.

    1. Why Real-Project Testing Beats Leaderboards

    When teams choose an AI coding tool, the most common mistake is treating public benchmark scores as the decision basis. Leaderboard tasks are usually isolated, self-contained, and precisely specified short problems. Real engineering tasks have three very different characteristics: context spans multiple files, requirements are expressed in colloquial natural language, and acceptance criteria come from real users rather than test cases. Evaluation therefore has to go back to your own codebase.

    The samples in this article are two in-house applications. One is a room-measurement tool already published in an app store; it is a mobile measurement app whose core flow involves sensor data reading, unit conversion, drawing generation, and export. The other is a WeChat mini-game, Arrow Tower Defense, currently in the review stage; it is a real-time rendering and state-synchronization-intensive scenario. One leans toward business logic and data precision, the other toward performance and state consistency, so their coverage is complementary.

    The comparison involves three everyday mainstream model configurations: a high-reasoning multimodal model, a long-context model, and the highest reasoning tier in a terminal-execution AI coding tool. To avoid brand pointing, they are referred to below as Model A/B/C.

    2. Evaluation Design: Turning Subjective Experience into Quantifiable Metrics

    2.1 Task Set Construction Principles

    The task set should come from real commit history. The recommended approach is to filter defect tickets and refactoring requests from the last three months in the version repository, sample them in layers by type, and form 30–50 tasks covering the following five categories:

    • Defect fixes: with clear reproduction steps and expected behavior;
    • Cross-file refactoring: requiring simultaneous changes to interfaces, implementations, and callers;
    • New feature work: colloquial requirements that require the model to fill in implicit constraints;
    • Performance optimization: with latency or memory as the acceptance metric;
    • Legacy code comprehension: asking the model to explain the intent of an uncommented piece of code.

    2.2 Scoring Dimensions and Weights

    A five-dimension weighted score is recommended, with weights adjustable to the team profile:

    Dimension Weight Description
    Requirement fidelity 25% Whether implicit constraints in the requirement are identified
    Context consistency 25% Whether cross-file changes are self-consistent with no missed call sites
    First-pass rate 20% Share of output that passes compilation and tests directly
    Debugging localization 15% Accuracy of root-cause identification from logs and stack traces
    Readability and maintainability 15% Consistency of naming, structure, and comments with the existing style

    2.2 Execution Details for Controlling Variables

    The same task runs under all three configurations, with fixed temperature parameters, a fixed context window quota, and fixed available tool permissions. Each configuration is executed three times and the median is taken to avoid single-sample bias. All generated output goes into a separate branch, where an automated pipeline runs compilation and tests; humans score only semantic correctness.

    3. Findings from Real Scenarios

    3.1 Cross-File Refactoring: Long-Context Configurations Have a Clear Edge

    In the room-measurement tool, the area calculation logic had to change from “direct floating-point accumulation” to “integer arithmetic in millimeters plus final-digit rounding.” The change looks local but actually touches four places: the data model, serialization, UI display, and the export template. The long-context configuration could list all call sites in one pass and produce a change checklist; the high-reasoning configuration was equally complete after being prompted to “search for call sites first”; the terminal-execution configuration completed the task by actually searching the codebase, but without search permission it tended to change only the main function.

    Engineering takeaway: the bottleneck in cross-file tasks is not generation capability but context acquisition capability. Evaluation should explicitly distinguish “what the model knows” from “what the model can look up.”

    3.2 Debugging Localization: Log Quality Sets the Ceiling

    The mini-game had an issue where “tower defense units occasionally penetrate.” With only a description of the symptom, all three configurations could offer only speculative fixes. After adding the frame-time curve and the state-update stack trace, the high-reasoning configuration accurately pointed to “interpolation out of bounds caused by a mismatch between the render frame and the logic frame step,” and gave an implementation idea based on a fixed-step accumulator.

    Illustrative fix skeleton:

    1. # Fixed step for the logic frame; interpolate on the render frame to avoid out-of-bounds from step jitter
    2. FIXED_DT = 1.0 / 60.0
    3. accumulator = 0.0
    4. def update(frame_dt, state):
    5. global accumulator
    6. accumulator += min(frame_dt, 0.25) # Cap per-frame compensation to prevent a catch-up explosion after a stall
    7. while accumulator >= FIXED_DT:
    8. step(state, FIXED_DT)
    9. accumulator -= FIXED_DT
    10. alpha = accumulator / FIXED_DT
    11. render(state, alpha) # Interpolate with alpha for smooth visuals and no penetration

    Engineering takeaway: observability investment should come first. Without structured logs and metrics, any model can only make probabilistic guesses.

    3.3 Restoring Colloquial Requirements: The Biggest Gap

    Before the review submission, the requirement was to “make the difficulty curve of the beginner level gentler, but don’t let people finish it in the first minute.” This kind of requirement has no numbers. The high-reasoning configuration proactively proposed a parameterized approach, mapping “gentler” to adjustable curve control points and keeping regression tests; the other two configurations tended to change constants directly, lacking a configurable design.

    Engineering takeaway: requirement fidelity measures whether the model has the engineering awareness to “turn vague wording into parameters and constraints.” This has nothing to do with code volume, yet it most affects long-term maintenance cost.

    3.4 The Real Distribution of First-Pass Rates

    Across 42 tasks, the first-pass rates of the three configurations were about 38%, 45%, and 52%, but the differences came mainly from task type: the terminal-execution configuration led when it had search permission, the high-reasoning configuration led on semantically complex tasks, and the long-context configuration led on tasks with a large change surface. The conclusion is that there is no universally best option, only scenario fit.

    4. A Reusable Evaluation Pipeline

    It is worth productizing the evaluation itself as a daily build job:

    1. Maintain the task library as structured files with fields for description, acceptance command, and expected file scope;
    2. Trigger a full regression on every model-side configuration change and produce a five-dimension radar chart;
    3. Automatically cluster failed samples to identify whether the cause is missing context, requirement ambiguity, or capability gaps;
    4. Feed high-frequency failure patterns back into prompt templates and retrieval strategies.

    If the team runs this pipeline on cloud resources, it can use a container platform to run isolated evaluation containers, object storage to hold the task library and artifacts, a message queue for peak-shaving and scheduling, and log and monitoring services to track pass-rate fluctuations. These are all general capability categories; specific choices should be evaluated against the cost model and compliance requirements, including data residency, audit trails, and key management.

    5. Common Pitfalls and Implementation Advice

    • Pitfall 1: drawing conclusions from a single task. Single-point samples have huge variance; at least 30 tasks are needed for statistical meaning.
    • Pitfall 2: looking only at generation speed. Fast generation with a low pass rate actually increases review cost.
    • Pitfall 3: ignoring the contribution of prompts and retrieval strategies. The same model can differ by several times under different context supplies.
    • Pitfall 4: treating evaluation as a one-off activity. Models keep iterating, so evaluation must be continuous.

    A three-step implementation path is recommended: first build a minimal 20-task set with automated acceptance; then introduce five-dimension scoring and failure clustering; finally connect continuous regression and a cost dashboard. After sticking with it for one iteration cycle, selection decisions shift from “whoever is loudest on the team” to “data showing which configuration best matches the current codebase characteristics.”