Native Multimodal Large Models: Technical Architecture and Engineering Practices

    This article examines the architecture and engineering practices behind native multimodal large models, using a sparse model with roughly 320 billion total parameters and about 18 billion activated per inference as the technical background. It explains why the industry is moving from encoder-plus-projection pipelines to native multimodal pretraining, then breaks down three coupled design choices: hybrid attention that balances long context against compute cost, sparse MoE with compressed layer counts, and million-token context management with layered budgeting. It also details the visual coding loop, where rendered screenshots feed back into generation for self-correction, and how the same visual capability supports document and office layout validation. The article closes with cost-control levers, a three-category evaluation framework, and practical guidance for selection and rollout.

    1. From Bolted-On Multimodality to Native Multimodality

    Over the past two years, the mainstream approach to multimodality has been a bolted-on pipeline: an encoder, a projection layer, and a language model. The vision side trains its own encoder independently, and a mapping layer then aligns visual features to the language model’s embedding space. This approach is mature and fast to iterate, but it has two structural weaknesses.

    The first is semantic loss. Visual information is compressed into a handful of vectors before entering the language model, so spatial relationships, layout structure, and fine-grained text are often lost during projection. The second is fragmented training objectives. The vision side and the language side each optimize their own loss, and the model is never asked to “think by looking.”

    The native multimodal approach brings text, images, video, documents, and other signal types into a single parameter body during pretraining, sharing one attention mechanism and one optimization objective. The payoff is not simply support for more input types. It makes visual understanding part of the reasoning chain: the model can look at an image, make a judgment, and revise its own output accordingly.

    This article uses a class of sparse multimodal models with roughly 320 billion total parameters and about 18 billion activated per inference as its technical background, abstracting the architectural highlights and engineering practices for architects and developers.

    2. Key Architectural Choices and Their Engineering Implications

    2.1 Hybrid Attention: Balancing Long Context Against Compute Cost

    The compute and memory cost of standard global attention grows quadratically with sequence length, which makes million-token context nearly infeasible under that structure. The industry has two common responses: sparse attention, which computes interactions only among selected key tokens, and linear attention, which pushes complexity to roughly linear in sequence length. Each has weaknesses. Sparse patterns can miss critical segments when information is distributed very unevenly, and linear patterns are weaker in expressiveness when precise recall of distant details is required.

    A hybrid architecture makes sense because different layers take on different responsibilities: linear attention handles long-range information compression across most layers, while a small number of layers retain sparse global interaction windows for precise cross-segment retrieval.

    Three engineering points matter here. First, layer normalization and residual design between different attention types need to be retuned; reusing configurations from dense models directly tends to cause divergence. Second, inference-side caching strategies differ: linear attention maintains a state rather than a full KV cache, which yields a flatter memory curve but a more complex implementation. Third, batching under variable-length requests should bucket by sequence length so that long requests do not slow down the entire batch.

    An illustrative layer configuration (conveying the idea only, not specific product parameters):

    1. # Illustrative hybrid attention layer configuration
    2. layer_types = (
    3. ["linear"] * 4 + ["sparse_global"] * 1
    4. ) * 9 # 45 layers total, keeping 1 global sparse interaction layer every 5 layers
    5. def build_block(idx, cfg):
    6. attn = build_linear_attn(cfg) if layer_types[idx] == "linear" \
    7. else build_sparse_attn(cfg, window=cfg.global_window)
    8. return Block(attn=attn, ffn=build_moe_ffn(cfg))

    2.2 Sparse MoE and Layer Compression

    The combination of 320B total parameters and 18B activated parameters trades parameter capacity for knowledge capacity and sparse activation for inference cost. Notably, the layer count was compressed from more than 90 in the previous generation to around 45, which means each layer carries greater width and more experts.

    The engineering consequences: per-GPU memory pressure concentrates on weight loading rather than activations, so deployment leans toward a mix of multi-GPU tensor parallelism and expert parallelism. Routing load balance also becomes critical for stability, because hot experts can cause individual devices to queue.

    Practical recommendations include setting capacity factors and drop-rate monitoring for routing, aligning expert-parallel groups and data-parallel groups with intra-node interconnect bandwidth, and providing a fallback path for long-tail requests so that routing skew does not trigger timeouts on individual requests.

    2.3 Million-Token Context: Capability Limits and Cost Limits

    A context window of roughly 1 million tokens does not mean you can stuff in unlimited material. Effective context is usually significantly smaller than the nominal window, due to attention dilution, position-encoding extrapolation error, and degraded retrieval performance at middle positions.

    A more robust engineering approach is to layer the pipeline:

    • A recall layer uses vector retrieval to narrow the candidate set.
    • An orchestration layer compresses history with structured summaries.
    • A generation layer keeps only source fragments strongly relevant to the current subtask.

    It is also worth maintaining a context budget table that fixes upper limits for the system prompt, tool returns, conversation history, and current input, so that a single round of tool output cannot consume the entire budget.

    3. The Visual Encoding Loop: Where Multimodality Delivers Real Value

    The most valuable engineering application of native multimodality is bringing visual understanding into a generate-observe-correct loop rather than producing a one-off description. Take coding as an example:

    1. The model generates front-end page code.
    2. The rendered page is screenshotted and fed back, and the model reads layout, spacing, color scheme, and overflow issues.
    3. The model revises styles and structure accordingly, then renders again to verify.

    Games and 3D scenes work the same way: after implementing functionality, the model checks for logic defects, and after multi-view rendering, it checks spatial coherence across angles.

    Stabilizing this loop usually requires an in-house data synthesis pipeline on the training side: batch task generation, automated rendering, construction of error-correction paired samples, and training the model’s self-visual judgment and test-time improvement ability.

    A minimal viable loop skeleton:

    1. def visual_coding_loop(task, model, renderer, max_iter=3):
    2. code = model.generate(task)
    3. for i in range(max_iter):
    4. shot = renderer.screenshot(code) # render and feed the image back
    5. review = model.review(task, code, shot) # visual self-check
    6. if review.passed:
    7. return code, review.notes
    8. code = model.patch(code, review.notes) # correct based on visual feedback
    9. return code, review.notes

    Key design points for the loop: rendering must be deterministic (fixed viewport, fixed fonts, fixed random seed), otherwise the model will treat rendering noise as defects; each correction round should limit the scope of changes to avoid breaking three things while fixing one; and every round’s screenshots and diffs should be retained to make regression localization easier.

    4. Self-Check Capability for Documents and Office Scenarios

    The same visual understanding capability transfers to document tasks. Facing formats such as presentations, portable documents, and word-processing tables, the model can do more than generate content: it can inspect the rendered result for layout issues, such as text overflowing boundaries, charts overlapping body text, inconsistent heading font sizes, and color contrast that fails readability requirements. This moves output from “content is correct” to “presentation is usable,” with a degree of aesthetic judgment.

    The engineering recommendation is to make document validation a separate stage: generate content in a structured form first, render it to images, then have the visual channel produce a prioritized issue list, with deterministic fixes (such as automatic scaling and automatic line wrapping) executed by the program. Only the parts requiring semantic judgment go back to the model.

    5. Compute, Cost, and Launch Evaluation

    During the anonymous testing phase, domestic chips carried all inference traffic, showing that the engineering feasibility of this class of sparse multimodal models no longer depends on a single hardware ecosystem.

    For adopters, cost control comes down to four levers. First, exploit sparse activation to keep average per-request compute to a small fraction of what total parameters would imply. Second, tier context so short requests use a small-window configuration. Third, cache the system prompt and tool definitions for reuse. Fourth, use batching and bucketed scheduling to improve device utilization. For cloud deployment, container platforms can provide elastic scaling, object storage can hold rendering artifacts, and logging and monitoring with alerting can track routing skew and timeout rates.

    The evaluation system should cover three categories of metrics: capability metrics (multimodal understanding, long-context retrieval, code runnability), efficiency metrics (time to first token, cost per thousand tokens, cache hit rate), and stability metrics (routing balance, timeout rate, rendering failure rate). An evaluation that lacks efficiency and stability dimensions will very likely expose runaway costs during load testing.

    6. Selection and Rollout Recommendations

    • Determine whether the task actually needs a visual loop. For text-only reasoning, a small dense model may be more economical.
    • Run a small-scale controlled experiment first, comparing pass rates with and without visual feedback on the same batch of tasks to quantify the gain.
    • Containerize the rendering and validation environment to guarantee reproducibility.
    • Set hard budgets and fallback strategies for long context.
    • Enforce length constraints on prompts and tool returns so a single round of output cannot consume the budget.

    The significance of native multimodality lies not in parameter scale but in making “looking” part of reasoning and self-correction. Understanding how hybrid attention, sparse activation, and the visual loop couple together is what lets you capture the engineering benefits of multimodality at a controlled cost.