Native Multimodal Large Models: Technical Evolution and Engineering Practices

    This article explains how multimodal large models are moving from bolt-on vision encoders to native multimodal modeling, and what that shift means for engineering teams. It covers efficiency-oriented attention designs such as sparse and linear attention, mixture-of-experts capacity, and how to estimate KV cache cost; a three-layer approach to model evaluation that combines public benchmarks, scenario-based internal test sets, and hands-on scoring; reliability mechanisms for long-running autonomous tasks; generation quality for office documents and vertical domains like finance and legal; and a minimal cloud architecture with cost and access control considerations. Readers will find practical evaluation metrics, capacity formulas, and pseudocode illustrating visual feedback loops and the separation of computation from narrative.

    1. From Stitched Multimodal to Native Multimodal

    Early multimodal systems mostly used a stitched architecture: a vision encoder plus a language model. Images were encoded independently into a sequence of vectors, then mapped into the language model’s embedding space through a projection layer. The problem with this design is that the vision branch and the language branch are not trained toward the same objective, and cross-modal alignment depends on extra alignment data and extra stages. Fine-grained spatial relationships, chart readings, and the hierarchy of UI elements are easily lost during that mapping.

    The core idea of native multimodality is to fold visual understanding directly into a unified modeling objective: the model sees text, images, and structured interface data from the pretraining stage onward. Visual information is not a bolt-on input but a first-class citizen on par with tokens. The immediate engineering consequence is that the model can “look back” at the interface, scene, or chart it just produced during generation, and keep refining based on that visual feedback, forming a closed loop.

    The pseudocode below is illustrative. The point is the generate-observe-refine cycle, not any specific API:

    1. # Pseudocode: iterative generation loop with visual feedback
    2. state = init_task(requirement)
    3. for step in range(max_steps):
    4. artifact = model.generate(state) # produce code/scene/document
    5. observation = render(artifact) # render to image or screenshot
    6. critique = model.observe(observation) # native vision lists the issues
    7. if critique.is_acceptable():
    8. break
    9. state = state.with_feedback(critique) # write visual feedback back to context

    2. Efficiency-First Attention Architecture Design

    Frontier model sizes keep growing, but what actually determines the cost per request is the number of activated parameters and the context cache overhead, not the total parameter count. Two optimization directions are common in the industry:

    • Sparse attention: only a subset of query-key interactions are computed, reducing complexity from quadratic in sequence length to roughly linear. The cost is that blocking and routing strategies must be designed carefully so long-range dependencies are not cut off.
    • Linear attention: kernel approximations or state compression squeeze the history of a long sequence into a fixed-size state, decoupling memory footprint from sequence length.

    Mixing the two is the common engineering compromise today for serving both long context and inference throughput: local windows use the sparse pattern to preserve precision, while global dependencies are carried by the linear state. The companion piece is the mixture-of-experts (MoE) structure — total parameters are very large, but each token activates only a few experts, which is why total and activated parameters diverge significantly. Reducing the number of layers and the activated width further compresses the compute and KV cache size of a single forward pass.

    The practical implication for adopters is clear: when evaluating a model, look at total parameters, activated parameters, context length, the cache growth curve, and cost per token together, rather than leaderboard scores alone. A reusable capacity estimation approach:

    1. KV cache ≈ 2 × layers × KV heads × head dim × sequence length × bytes per value × concurrency

    Halving the number of layers and the head dimension reduces the cache by roughly the same proportion, which also explains why layer count, activated width, and attention compute tend to be optimized together.

    3. Capability Evaluation: Reading Scores and Hands-On Experience

    Composite intelligence index leaderboards are useful for horizontal comparison, but they compress reasoning, coding, math, and multilingual ability into a single number, which tends to hide scenario differences. A more reliable approach is three-layer validation:

    1. Public benchmarks: quick screening of candidate models to confirm the baseline capability range.
    2. Scenario-based internal test sets: tasks drawn from real business, covering typical and edge cases, forming a regression test library.
    3. Hands-on assessment: engineers subjectively score generated results, focusing on first-pass rate and number of rework rounds.

    In intelligent coding scenarios, hands-on experience is often more explanatory than scores, because real tasks carry many implicit constraints: existing code style, dependency versions, directory conventions, error handling habits. It helps to reduce evaluation to quantifiable items:

    Metric Meaning Target direction
    First-pass rate Share of output that runs without manual modification Higher is better
    Average rework rounds Number of interactions needed to reach a deliverable state Lower is better
    Visual consistency Degree to which the rendered result matches the design description Higher is better
    Cost per task Token consumption × unit price + retry overhead Lower is better

    4. Reliability Engineering for Long-Running Tasks

    Running a model unattended for a dozen-plus hours to build a three-dimensional scene spanning hundreds of square meters exposes a core problem that is not “can it generate” but “can it converge.” Reliable implementations usually include four mechanisms:

    • Externalized state: task progress, the list of generated assets, and failure records are written to external storage, with only a summary kept in context to avoid overflowing the window.
    • Checkpoint rollback: each stage produces a snapshot, so a regression falls back to the most recent usable version instead of starting over.
    • Resource and quota guards: timeouts and concurrency limits on heavy operations such as rendering, compilation, and testing, so a single task cannot take down shared resources.
    • Observability: structured logs plus metrics plus alerting, turning “which step it is stuck on, how much it consumed, why it failed” into queryable data.
    1. {
    2. "task_id": "scene-build-001",
    3. "stage": "geometry_refine",
    4. "checkpoint": "ckpt-07",
    5. "assets": 128,
    6. "elapsed_minutes": 412,
    7. "budget": {"tokens": 3000000, "gpu_minutes": 600},
    8. "health": "degraded_retrying"
    9. }

    5. Generation Quality for Office Documents and Vertical Scenarios

    Document tasks are hard because format fidelity and content self-consistency must hold at the same time. A workable strategy splits generation into four steps — content planning, structure filling, layout rendering, self-check and revision — and adds two kinds of validators in the self-check stage: one for structural and syntactic checks (consistent table column counts, continuous numbering, complete citations), and one for visual and aesthetic checks (alignment, whitespace, font size hierarchy, chart readability).

    In finance, this can be abstracted as a pipeline of document parsing → metric computation → report generation → review. The key is separating computation from narrative generation, so every number comes from a re-computable script output rather than being written directly by the model. In legal scenarios, the emphasis is on traceability of clause location, risk annotation, and document drafting: every suggested change should be bound to a position in the source text and its basis.

    1. # Pseudocode: separating computation from narrative
    2. metrics = compute_metrics(dataset) # numbers come from a script and are re-computable
    3. report = model.write(narrative=outline, facts=metrics)
    4. report = self_check(report, rules=["number_consistency", "citation_ok"])

    6. Adoption Advice and Cloud Support

    To adopt this kind of capability in your own business, a minimal viable architecture can be assembled from general cloud components: object storage for models and assets, a container platform to host inference services and elastic scaling, a message queue to decouple and smooth long-running tasks, and logging plus monitoring and alerting to track quality and cost. Baidu AI Cloud can provide standardized resource and operations support for these general capabilities, letting teams focus on building test sets and polishing scenarios.

    Finally, there are real constraints around cost and access. When frontier model capacity is tight, a common practice is tiered rollout — opening capacity to higher-priority subscribers first, queuing requests at peak times, and opening fully once capacity expands. Engineering should reserve a degradation path for this: define fallback models and timeout retry policies, and treat queuing and rate limiting as observable metrics rather than exceptions, so the business stays stable and available through capacity fluctuations.