Native Multimodal Large Models: Technical Evolution and Engineering Practices

    This article explains the shift from拼接式 multimodal pipelines to native multimodal models, and what it means for engineering teams. It covers how joint token-level modeling enables visual feedback loops, why hybrid attention and sparse activation are the main levers for cost control, how to build a four-layer evaluation system instead of relying on a single benchmark score, and the practical requirements for generating documents and office deliverables. It closes with a layered deployment architecture, common risks such as hallucination and runaway context costs, and mitigation strategies. Readers will gain a practical framework for turning model capability into reliable business output.

    1. From Bolted-Together Multimodality to Native Multimodality

    Over the past two years, the mainstream way to add multimodal capability has been a bolted-together structure: a vision encoder, a projection layer, and a language model. Images are first encoded independently into visual tokens, then mapped into the language model’s embedding space. This approach is simple to engineer, but it has three inherent problems: visual information is compressed and degraded during the mapping; cross-modal alignment depends on an extra pre-training stage; and at inference time the vision branch and the language branch cannot truly share the same attention computation.

    The core idea of native multimodality is that from the very first day of pre-training, images, video, and text are jointly modeled within a single token sequence and a single attention mechanism. The direct benefit is that visual information is no longer a bolt-on input but an observation channel the model can invoke on its own. The model can decide during generation that it needs to look at the rendered result, then feed that observation back as context and continue reasoning, forming a closed loop.

    The interaction flow can be abstracted schematically as:

    1. # Pseudocode: a generic abstraction of the visual feedback loop
    2. def build_with_visual_feedback(task, renderer, model, max_iter=8):
    3. ctx = task.spec
    4. for i in range(max_iter):
    5. artifact = model.generate(ctx) # produce code/scene/document
    6. observation = renderer.capture(artifact) # render and "observe"
    7. score, issues = model.self_review(ctx, artifact, observation)
    8. if score >= THRESHOLD:
    9. return artifact, i
    10. ctx = ctx.append(observation, issues) # write visual feedback back to context
    11. return artifact, max_iter

    2. Where Efficiency Comes From: Hybrid Attention and Active-Parameter Reduction

    The real engineering barrier for frontier models is not whether something can be done, but how many calls a given unit of cost can support. There are currently three widely accepted paths to lower cost, and they can be stacked.

    The first is a hybrid of sparse and linear attention. The compute cost of standard global attention grows quadratically with sequence length, and the KV cache expands linearly as context grows, making a single request extremely expensive for long documents and long video. A hybrid architecture lets most layers use linear or local-window attention, while only a few layers keep global attention to aggregate long-range information, which substantially reduces both compute and cache usage under long context.

    The second is decoupling active parameters from total parameters. Total parameters determine knowledge capacity; active parameters determine the actual compute cost of a single forward pass. With sparse activation, a model can retain a large knowledge capacity while keeping per-token compute at a level comparable to a small model.

    The third is depth compression. Fewer layers reduce serial latency at inference time, which pays off clearly for interactive coding and real-time conversation, but it also demands more information utilization from each layer, and usually needs to be paired with more thorough training and distillation.

    One engineering caveat: these optimizations are not free. Hybrid attention changes how long-range dependencies are modeled, sparse activation introduces load imbalance, and depth compression can weaken complex reasoning. So evaluation must be done per scenario before launch, rather than looking only at an aggregate leaderboard score.

    3. Evaluation: Don’t Fixate on a Single Score

    A composite intelligence index that aggregates multi-discipline, multi-task results into one number is convenient for getting a rough sense of where a model sits, but it cannot guide selection. A reliable evaluation should cover at least four layers:

    • Capability layer: public benchmarks for language understanding, code generation, math, and logical reasoning.
    • Experience layer: human preference evaluation on real tasks, especially code runnability rate and first-pass rate.
    • Scenario layer: offline evaluation on your own business datasets, such as contract clause extraction accuracy or report field alignment rate.
    • Cost layer: cost per task, time to first token, throughput, and cache overhead under long context.

    A common mistake is treating leaderboard scores as equivalent to business results. The right approach is to first build an evaluation set of 100–300 items that closely match your own business, then compare candidate models horizontally using the same set of metrics, and finally validate with a small-traffic canary release.

    4. Engineering Notes for Document and Office Scenarios

    For generating presentations, PDFs, spreadsheets, and word-processing documents, the difficulty is not the text but structure, layout, and deliverability. Practices that work in production include:

    1. A structured intermediate representation. Generate a vendor-neutral intermediate structure first (such as a section tree, a table model, and style tokens), then render it to the target format, avoiding the unmaintainability of directly assembling binary formats.
    2. Self-checking and loop validation. After generation, automatically check for overflow, overlap, inconsistent font hierarchy, and blank pages, and read back the rendered result for visual review.
    3. Making aesthetic constraints explicit. Write rules for alignment, whitespace, and hierarchy contrast as verifiable constraints instead of relying on the model’s “feel.”
    4. Numerical consistency checks. Tabular output must be recomputed a second time to prevent figures from disagreeing with totals.
    1. {
    2. "doc": {
    3. "sections": [{"level": 1, "title": "Conclusion", "blocks": ["text", "chart"]}],
    4. "style": {"font_scale": [1.0, 0.8, 0.66], "margin": 24},
    5. "checks": ["overflow", "overlap", "number_consistency"]
    6. }
    7. }

    5. Deployment Architecture Recommendations

    A robust deployment shape layers model capability over platform capability: the model layer handles understanding and generation; the platform layer runs inference services on a container platform, uses a message queue for peak shaving and asynchronous task orchestration, uses object storage to hold artifacts and intermediate state, and uses logging plus monitoring and alerting to track latency, failure rate, and cost. In these scenarios Baidu AI Cloud typically supports the work through combinations of the general capability categories above; refer to the official documentation for specific specifications.

    Given tight resource constraints, three things are worth doing. First, tiered routing: send simple requests to a lightweight model and complex requests to a frontier model. Second, result caching and semantic caching to cut repeated calls. Third, make quotas and queueing policies transparent, so waiting time becomes part of user expectation management.

    6. Common Risks and How to Avoid Them

    • Hallucination and undeliverable output: three gates of enforced structured output, automated validation, and human spot checks.
    • Runaway long-context cost: set a context budget and a summarization/compression strategy.
    • Visual feedback oscillation: cap the number of iterations and keep a fallback version.
    • Compliance and data security: desensitize sensitive data before it enters the inference pipeline, and make artifact retention policies auditable.

    7. Conclusion

    Three technical threads, native multimodality, hybrid attention, and sparse activation, are pushing frontier models from capability demos toward deliverable scale. For developers, the real competitive edge is not chasing a single leaderboard score but building your own evaluation set, cost model, and validation loop, so that model capability converts reliably into business output.