Multimodal LLM Selection in Practice: From Evaluation to Engineering Deployment

    This article explains why teams should treat multimodal models as replaceable capability components rather than binding workflows to a single model. It breaks down multimodal task requirements across perception, reasoning, and generation, outlines four selection dimensions—input scale, accuracy and stability, cost structure, and deployment and compliance—and describes a reproducible evaluation workflow with a front-end UI replication example.

    1. Background: Why Multimodal Models Need to Be Reevaluated

    When a business starts handling screenshots, scanned documents, long videos, and technical documents with hundreds of pages, the limits of text-only models become clear. A common team practice is to adopt a model that performs well for a period of time and then bind the entire workflow to it. Once call quotas are tightened, free policies change, or the service is rate-limited, every process that depends on it is interrupted.

    Selection should therefore not rely only on a one-off demo. The model should be managed as a replaceable capability component. Teams need to answer three questions: Can the model complete the specific task in the business workflow? Is the quality stable? If something goes wrong, is there an alternative?

    2. Breaking Down the Capability Requirements of Multimodal Tasks

    Multimodal tasks usually involve three layers of capability.

    1. Perception layer: Correctly read text, tables, charts, and UI elements in images, or recognize frames and timestamps in videos.
    2. Reasoning layer: Perform structure reconstruction, causal judgment, or cross-page and cross-frame information association based on perception results.
    3. Generation layer: Output code, structured data, or long-form text in the specified format.

    An error in any of these layers distorts the final result. For example, in a UI replication task, if the perception layer misses a margin or color, the generated code may be syntactically correct, but the page will not match the screenshot. Evaluation should score each layer separately rather than only checking whether the final output is basically usable.

    3. Four Dimensions of Model Selection

    1. Input scale: Supported image resolution, number of pages processable per call, and video duration and frame limits. Long-document tasks require particular attention to whether the context window is sufficient and whether the chunking strategy after exceeding the limit is reasonable.
    2. Accuracy and stability: Consistency of results across multiple calls with the same input, and recognition capability for small text, dense tables, and rapidly changing frames.
    3. Cost structure: Most services bill by input and output billing units, and visual input usually consumes more billing units than plain text. Evaluation should calculate the average cost per task rather than comparing unit prices alone.
    4. Deployment and compliance: Whether private deployment is required, whether data can be sent externally, and whether log and cache retention policies comply with internal regulations.

    There are trade-offs among these four dimensions. The most accurate model is usually also the most expensive, so teams need to set an acceptable combination based on task value.

    4. Building a Reproducible Evaluation Process

    The key to evaluation is fixing variables. Prompts, input preprocessing, sampling temperature, and scoring rules should all be version-controlled; otherwise, two runs cannot be compared.

    A recommended process is as follows:

    1. Collect samples from real business scenarios, covering normal cases and edge cases such as blurry screenshots, skewed scans, and videos without subtitles.
    2. Write a reference answer or scoring rubric for each sample.
    3. Run the same pipeline for candidate models and record outputs, latency, and consumed billing units.
    4. Combine automated metrics with manual spot checks. Automated metrics are used for large-scale screening, while manual spot checks are used to judge whether the semantics are correct.

    Example code:

    1. for task in task_set:
    2. media = preprocess(task.media) # image compression, video frame extraction, document chunking
    3. prompt = load_prompt(task.type, version="v3")
    4. output = call_model(
    5. model=candidate,
    6. prompt=prompt,
    7. media=media,
    8. temperature=0,
    9. )
    10. score = evaluate(output, task.reference)
    11. record(candidate, task.id, score, output.latency, output.usage)

    Setting temperature to 0 reduces randomness but does not guarantee completely identical results. For critical tasks, multiple samples should still be taken and averaged.

    5. Typical Task Practice

    5.1 Front-End UI Replication

    The goal is to convert a UI screenshot into runnable page code. Directly asking the model to “generate the complete code” is often unstable. A more reliable approach is to split the work into three steps: first ask the model to describe the page structure and hierarchy, then list key styles such as spacing, colors, font sizes, and border radius, and finally generate the code.

    Evaluation should focus on three points: whether the layout matches the screenshot, whether key interactions are present, and whether the code can run directly in the target environment. Screenshot pixel differences can be used as an auxiliary metric, but dynamic content and font rendering introduce noise, so the results still require manual review.

    Prompt example:

    1. Please process this UI screenshot in the following steps:
    2. 1. List the page's block structure and annotate the parent-child relationship of each block;
    3. 2. Estimate the size, spacing, and main colors of each block, and mark uncertain values as "estimated";
    4. 3. Based on the above results, output single-file page code without external dependencies.