The Technical Evolution and Engineering Deployment of Native Multimodal Large Models

    This article explains why native multimodal architecture has become a key milestone in model design, contrasting it with bolt-on vision encoders and projection layers. It covers sparse Mixture-of-Experts (MoE) routing, how total parameters define capacity while active parameters define compute, the shift from staged alignment to unified sequence modeling, four practical deployment constraints, layered evaluation practices, and guidance for running these models reliably on the cloud.

    1. Why “Native Multimodal” Is a Key Milestone

    Over the past two years, most multimodal capabilities were added as bolt-ons: train a vision encoder first, then map visual features into the language model’s representation space through a projection layer. This stitched-together approach is workable, but it has three structural weaknesses.

    First, the representation spaces are not aligned. The vision encoder and the language model optimize different objectives, so the mapping layer can only approximate alignment. Fine-grained tasks—small object recognition, chart reading, document layout understanding—tend to lose accuracy.

    Second, the modality ratio is hard to control. In a stitched design, updates to the vision branch are often constrained by the language branch, which makes training unstable.

    Third, the inference pipeline is fragmented. Vision encoding, feature projection, and language decoding are usually split into separate stages, which makes end-to-end operator fusion and memory reuse difficult.

    The core idea of native multimodal is to have multiple modalities share the same parameters and attention mechanism from the pretraining stage onward, unifying “looking at images” and “reading text” as a single sequence modeling problem. The payoff is not only quality. More importantly, it brings engineering predictability: with a unified model structure, one set of batching and scheduling logic can serve requests across different modalities.

    2. Sparse Activation: What 320B Total Parameters and 18B Active Parameters Mean

    The “large total parameter count, low active parameter ratio” described in the source points to the sparse Mixture-of-Experts (MoE) approach common in the industry. One common misunderstanding needs clearing up: total parameters determine the upper bound of the model’s knowledge capacity, while active parameters determine the compute for a single forward pass. Decoupling the two is exactly where the value of a sparse architecture lies.

    The routing process can be expressed with the following illustrative pseudocode:

    1. # Illustrative: core logic of sparse routing (not a real API)
    2. logits = router(hidden_states) # shape: [tokens, num_experts]
    3. topk_idx, topk_w = topk_softmax(logits, k=2)
    4. expert_out = zeros_like(hidden_states)
    5. for i, expert in enumerate(experts):
    6. mask = (topk_idx == i).any(dim=-1)
    7. expert_out[mask] += topk_w[mask, i] * expert(hidden_states[mask])
    8. output = expert_out + shared_expert(hidden_states)

    This snippet highlights three engineering points:

    1. Compute scales with the number of activated experts, not with total parameters. This is why “large total parameters plus small active parameters” can achieve throughput close to a small model.
    2. Memory usage is tied to total parameters. All expert weights must stay resident, so memory planning has to be estimated from total parameters, not active ones.
    3. Load balancing is critical for stability. Routing skew overloads a few experts while leaving the rest idle, so auxiliary losses or capacity factors are needed to constrain it.

    The direct implication for enterprises: cost per request is closer to a small model, but the deployment bar (memory, parallelism strategy) is closer to a large model. These two budgets need to be calculated separately during capacity planning.

    3. Training Paradigm: From Staged Alignment to Unified Sequence Modeling

    Native multimodal training typically involves several stages, which can be abstracted as:

    • Stage one: mixed single-modality and multimodal pretraining, establishing a unified vocabulary and position encoding so different modalities share one sequence space.
    • Stage two: instruction tuning, introducing interleaved image-text task samples to strengthen cross-modal reference and reasoning.
    • Stage three: preference alignment, using human or rule-based feedback to adjust output style and safety.

    The most noteworthy engineering concerns are data ratios and packing strategy. If interleaved image-text samples are simply concatenated “text first, then image,” positional bias is introduced. In practice, block packing and modality-aware attention masks are common, preventing unrelated modalities from interfering with each other. Illustrative example:

    1. # Illustrative: modality-aware mask to prevent cross-sample/cross-modality leakage
    2. mask = build_block_causal_mask(seq_len, block_boundaries)
    3. mask |= build_modality_mask(modality_ids) # bidirectional within a vision block, causal across blocks

    4. Four Engineering Constraints in Deployment

    1. The tradeoff between context length and resolution. Visual input is encoded into a large number of visual tokens, and combining high resolution with long context quickly drives up memory and latency. Adaptive image tiling, plus downsampling of low-information regions, is recommended.
    2. Batching strategy for inference serving. Multimodal request lengths vary widely, so static batching causes noticeable queuing. Continuous batching combined with per-modality queues is usually more stable than a single queue.
    3. Caching and reuse. In document Q&A scenarios, the same document is queried repeatedly, so visual encoding results can be cached, turning repeated computation into a one-time cost.
    4. Observability. Beyond standard latency and error rates, routing distribution, visual token ratio, and truncation rate should be monitored separately; these metrics surface quality degradation early.

    5. Evaluation: Don’t Look at the Aggregate Score Only

    Multimodal capability must be evaluated in layers. Beyond overall Q&A accuracy, coverage should include fine-grained recognition, layout and table understanding, multi-image comparison, and “refusal correctness” (whether the model honestly says it does not know when there is no answer). A fixed regression set is recommended, rerun after every model or prompt change, to avoid being misled by individual cases.

    6. Using It Reliably on the Cloud

    When accessing this kind of capability through Baidu AI Cloud’s model services, three practices are recommended: use object storage for raw assets, use a message queue to smooth traffic peaks and fill troughs, and use a container platform to host inference services with monitoring and alerting for elastic scaling. Prompt templates, evaluation sets, and call logs should also be placed under version control, forming a closed loop for continuous iteration.

    In summary, the real value of native multimodal lies in the engineering predictability brought by a unified architecture, while sparse parameter design makes the cost structure closer to a small model. Understanding the main thread—“total parameters set capacity, active parameters set compute”—and combining it with context governance and layered evaluation is enough to land this capability reliably in production.