Native Multimodal Large Models: Technical Architecture and Engineering Practices

    This article breaks down the architecture of native multimodal large models and the engineering practices behind them. It contrasts native multimodal design with拼接-style bolt-on approaches, explains how sparse activation (MoE) and hybrid attention control compute and long-sequence costs, and covers practical concerns such as million-token context utilization, visual coding feedback loops, domestic chip deployment, and building a unified evaluation benchmark. Readers will find concrete guidance on cost control, deployment, and model selection.

    1. From “Bolt-On Multimodal” to “Native Multimodal”

    There are generally two paths to multimodal capability. The first is a bolt-on approach: a vision encoder, a text backbone, and projection layers are trained separately, then a small amount of alignment data maps visual representations into the language space. This approach ships quickly, but a “translation loss” exists between modalities, which limits performance on fine-grained tasks such as chart understanding, UI reconstruction, and document layout判断. The second is native multimodal: from the pre-training stage onward, text, images, video, and files are unified into the same set of parameters and the same attention mechanism. Visual information is not an add-on; it is part of the model’s internal representation.

    The native approach delivers three core benefits. First, cross-modal reasoning is more coherent: the model can reference code, rendered screenshots, and requirement text within a single forward pass. Second, it removes the memory and bandwidth overhead of a separate vision tower. Third, extending to new modalities is more natural, requiring only changes to the pre-training data mix rather than redoing the alignment stage. The cost is a significant increase in pre-training data engineering complexity: it requires multimodal corpora on the order of roughly a trillion tokens, along with higher demands on data deduplication, image-text alignment quality, and layout annotation consistency.

    2. Sparse Activation and Hybrid Attention: Two Levers to Bring Costs Down

    Inference cost for large-parameter models comes mainly from two places: the number of parameters involved in computation, and the quadratic overhead of attention as sequence length grows. The two widely adopted techniques in the industry map to these two sources respectively.

    Sparse activation (MoE) decouples total parameters from per-invocation activated parameters. Take a design with roughly 320 billion total parameters and about 18 billion activated per invocation as an example: model capacity approaches that of a dense large model, while the matrix-multiplication scale per token is comparable to a medium-sized dense model. Compressing the number of layers from over ninety to around forty-five further reduces kernel launch counts and cross-layer communication overhead, which is friendlier to inference latency. On the engineering side, watch out for load balancing and routing jitter: an uneven routing distribution can overload some experts and push up tail latency.

    Hybrid attention combines sparse attention with linear attention. Sparse attention preserves precise interaction among a small number of global tokens and handles long-range dependencies; linear attention processes local long sequences approximately, with complexity that is roughly linear in length. Alternating the two by layer or by block keeps million-token contexts manageable in terms of memory and compute. A simplified skeleton of the routing and attention is shown below:

    1. # Illustrative: forward skeleton of MoE routing + hybrid attention
    2. def forward(x, layer_idx):
    3. x = linear_attn(x) if layer_idx % 2 == 0 else sparse_attn(x, topk=64)
    4. gate, idx = topk_router(x, num_experts=64, top_k=6)
    5. y = moe_dispatch(x, idx, capacity_factor=1.25) # reserve capacity to suppress token dropping
    6. return norm(y + x)

    Practical advice: the capacity factor should not be set too small, otherwise dropped tokens will directly hurt long-document tasks; the attention top-k needs to be tuned in tandem with context length, and long-context scenarios should prioritize coverage of global tokens.

    3. Million-Level Context Is Not About “Fitting It In,” but About “Putting It to Use”

    A window of roughly 1,048,576 tokens means you can fit an entire code repository, a full set of financial reports with attachments, or a sequence of frames extracted from a long video all at once. But window length is only the upper bound; what really determines the experience is effective utilization. Three points matter on the engineering side:

    1. Position extrapolation and chunking strategy: very long inputs should be semantically chunked while preserving hierarchical structure (table of contents, headings, function boundaries), avoiding mechanical truncation that breaks semantic integrity.
    2. Mid-context information decay: placing key constraints at the beginning and end, or adopting a two-stage “summarize first, then locate” invocation, can significantly reduce errors caused by information loss in the middle.
    3. Cost control: long context should be enabled on demand, combined with cache reuse and persisting results to storage, to avoid repeatedly computing the same large document.

    4. Visual Coding in Practice: Let the Model “See Its Own Output”

    One of the most valuable directions for native multimodal is applying visual capability to the programming loop, known as visual coding. The logic is: after the model generates front-end code, it renders it and takes a screenshot to review; after completing the interaction logic, it checks for UI misalignment and state anomalies; after building a 3D scene, it verifies multi-view consistency. This is effectively adding a programmable “feedback loop” to the model.

    On the data side, a synthetic pipeline is usually needed: automatically generating four-tuples of “requirement—code—rendered image—issue annotation” to train the model’s self visual judgment and test-time improvement ability. A minimal loop is shown below:

    1. def visual_coding_loop(spec, max_iter=3):
    2. for i in range(max_iter):
    3. code = model.generate(spec)
    4. shot = render_and_capture(code) # render and capture screenshot
    5. issue = model.judge(spec, code, shot) # self visual judgment
    6. if not issue:
    7. return code
    8. spec = spec + "\nfix suggestion:" + issue # test-time improvement
    9. return code

    This pattern also applies to document and office tasks: for four formats—presentations, portable documents, word processing, and spreadsheets—visual understanding lets the model check the layout, alignment, and color scheme of its own output and provides basic aesthetic judgment, moving from “able to generate” to “deliverable.”

    5. Compute and Deployment: Engineering Points for Domestic Chip Adaptation

    During the anonymous testing phase, domestic chips carried all inference traffic, which demonstrates the feasibility of the sparse activation architecture on domestic accelerator cards. When deploying, it is recommended to focus on: operator coverage and fallback paths, custom kernel support for hybrid attention, the split ratio between expert parallelism and pipeline parallelism, and the impact of quantization schemes (weight quantization combined with activation quantization) on multimodal accuracy. For observability, bring first-token latency, cost per thousand tokens, expert load skew, and context hit rate into unified monitoring and alerting, and use logging services and monitoring/alerting systems to locate long-tail requests.

    6. Selection and Evaluation: Replace Subjective Feelings with a Unified Benchmark

    Faced with positioning claims like “intelligence index on par with flagship models at one-tenth the price,” developers should build their own evaluation set: code generation and repair, UI reconstruction fidelity, document layout compliance, long-document question answering, and video temporal understanding each carry a weight, while recording both effectiveness and unit cost. If using general cloud capabilities, you can combine object storage for assets, a container platform for inference services, a message queue for peak shaving, and monitoring/alerting for stability, forming a portable architecture without binding to a specific vendor.

    7. Conclusion

    The competitive focus of native multimodal has shifted from “parameter scale” to “unit cost of intelligence.” Sparse activation controls compute, hybrid attention controls long-sequence overhead, and visual coding plugs perception into the production loop—only when the three are combined do they form a scalable engineering solution. For developers, the right path to stable returns is to first clarify the scenario and cost boundaries, then continuously validate with a unified benchmark.