Native Multimodal Large Models: Technical Architecture and Engineering Practices
Abstract: This article examines the technical architecture and engineering practices of native multimodal large models, using a sparse model with roughly 320B total parameters and about 18B activated parameters per inference as the technical background. It explains how native multimodal models unify text, images, video, and documents within a single parameter set and attention mechanism during pretraining, and analyzes key design choices including sparse mixture-of-experts routing, hybrid attention that combines sparse and linear attention, reduced layer depth, and million-token context windows paired with multimodal pretraining data. It also covers how visual feedback enables a generate-and-self-check loop for coding and document tasks, along with practical guidance on deployment, cost control, context management, observability, quality evaluation, and model selection.
1. Introduction: From Bolted-On Multimodality to Native Multimodality
Over the past two years, most multimodal systems have followed a “vision encoder plus language model” pipeline: images are encoded independently into vectors and then projected into the language model’s embedding space. This approach is easy to implement, but it has two structural weaknesses. First, a semantic gap exists between visual and text representations, so fine-grained details—such as UI pixel alignment or chart tick marks—can be lost during projection. Second, the training pipeline is split into multiple stages with inconsistent optimization objectives on the vision and language sides, making it difficult for the model to form a unified reasoning chain.
Native multimodal models change this premise. They unify text, images, video, and documents into the same parameters and the same attention mechanism during pretraining. Visual information is not an external add-on input; it is a first-class citizen on par with tokens. This article uses a class of native multimodal sparse models with roughly 320B total parameters and about 18B activated parameters per inference as its technical background to discuss architectural trade-offs, capability boundaries, and engineering implementation. It does not refer to any specific vendor product, and all capability descriptions are limited to general technical practices that have been widely validated across the industry.
2. Core Architecture
2.1 Sparse Mixture of Experts: Capacity from Parameter Scale, Cost Control from Activation Scale
This class of models uses a Mixture of Experts (MoE) structure with roughly 320B total parameters, while each token activates only about 18B parameters during the forward pass. The key value of this design is decoupling model capacity from inference cost: capacity determines the breadth of knowledge and the richness of multimodal semantics, while the activation size determines the compute cost and latency of each request.
Three engineering constraints are important to understand:
- Memory usage is determined by total parameters, not activated parameters. During inference deployment, all expert weights must either stay resident or be swapped in quickly, so the memory budget should be estimated at the 320B scale.
- Throughput and latency are determined by activated parameters. The 18B activation scale makes the per-request compute close to that of a mid-sized dense model, making it suitable for high-concurrency online serving.
- Load balancing is critical to stability. If expert routing stays skewed over time, some experts become overloaded while others sit idle, causing tail-latency jitter. A common practice is to add an auxiliary balancing loss and to handle request queuing and priority isolation at the gateway layer.
The routing logic can be abstracted schematically as:
# Pseudocode: expresses routing and balancing ideas only, not any real APIdef moe_forward(x, experts, router, top_k=2):logits = router(x) # [batch, num_experts]weights, idx = topk_softmax(logits, top_k)out = 0for slot in range(top_k):e = experts[idx[:, slot]]out += weights[:, slot] * e(x)return out, compute_load_balance_loss(idx)
2.2 Hybrid Attention: Dividing Work Between Sparse and Linear Attention
In long-context scenarios, the complexity of standard global attention grows quadratically with sequence length, making million-token contexts computationally infeasible. The general idea of a hybrid architecture is to let two types of attention do what they do best:
- Sparse attention handles precise retrieval. Through local windows, block sparsity, or learnable sparse patterns, it preserves fine-grained modeling of key regions, making it suitable for tasks that require precise localization, such as code navigation and reading values from charts.
- Linear attention handles global compression. Using kernel approximations or state-space recurrence, it compresses historical information into a fixed-size state with complexity that grows linearly with length, carrying long-range semantic continuity.
Stacking the two alternately by layer can keep long-range consistency while reducing complexity to an acceptable range. In practice, tuning focuses on the block size of the sparse pattern and the dimension of the linear state: blocks that are too small weaken global awareness, while blocks that are too large degrade into approximate global attention; insufficient state dimension causes forgetting over long text, while excessive dimension cancels out the gains from linear complexity.
2.3 Rebalancing Layers and Depth
One notable design choice is reduced depth: the number of layers drops from 92 in the previous generation to 45, while more of the parameter budget goes to expert width and feed-forward capacity. The rationale is that, given sufficient receptive field from hybrid attention, stacking more layers yields diminishing marginal returns and instead adds latency from serial computation and training instability. For developers, this means a shallower network places higher demands on the representational quality of each layer, so fine-tuning should not freeze the lower layers too aggressively; small-sample adaptation is usually more stable when starting with “freeze attention, tune only experts and feed-forward.”
2.4 Million-Level Context and Multimodal Pretraining Data
A context window of roughly 1,048,576 tokens, combined with multimodal pretraining data on the order of 30T tokens, forms the foundation for long-document and long-video understanding. It is important to emphasize that a long window is a capability ceiling, not a default operating point: attention’s effective utilization drops over extremely long ranges. A more robust engineering practice is to combine retrieval with long context—first use keyword or vector retrieval to locate candidate segments, then place those segments along with a structured summary into the context, rather than stuffing an entire document in indiscriminately.
3. Capability Shape: How Visual Encoding Feeds Back into Programming
One of the most valuable directions for native multimodality is letting the model “see” its own output after generating code, forming a closed loop:
- Front-end development: after generating UI code, render the page and review it to catch layout misalignment, insufficient contrast, or broken responsive breakpoints.
- Games and interaction logic: run the result and observe state changes to locate collision, timing, and boundary-condition defects.
- 3D scenes: inspect composition and proportion from multiple viewpoints, and fix clipping and occlusion issues.
Supporting this loop is a data synthesis pipeline oriented toward visual judgment: constructing samples of “artifact—rendered result—defect annotation—corrective action” to train the model’s self visual evaluation and test-time improvement capabilities. In engineering terms, this requires turning rendering, screenshots, and diff comparison into an orchestrable toolchain: the model emits structured call intents, an external executor returns observations, and the next round of generation begins.
generate code -> render/run -> capture screenshots and logs -> joint visual and text diagnosis -> targeted patch -> regression verification
In document tasks, the same capability appears as checking and aesthetic judgment of the model’s own output: checking layout hierarchy and whitespace in slide decks, verifying totals and formatting consistency in tables, and checking table-of-contents and numbering continuity in long text. This upgrades the model from a “generator” to a dual role of “generate plus self-check.”
4. Engineering Implementation
- Deployment shape: estimate memory by total parameters, use a hybrid split of tensor parallelism and expert parallelism, keep high-frequency experts in resident cache, and swap in low-frequency experts on demand.
- Cost control: the core metric for a Flash-type positioning is cost per unit of intelligence. Establish dual-dimension metering by token and by request, and combine semantic caching, result reuse, and tiered model routing (simple requests go to a smaller model) to reduce overhead.
- Context management: build segmented summaries and retrieval indexes for long documents, and prioritize the window budget for evidence segments rather than redundant source text.
- Observability: monitor expert load distribution, routing entropy, time to first token, and truncation rate for extremely long requests; for multimodal pipelines, additionally collect rendering success rate and screenshot quality.
- Quality evaluation: build four evaluation sets covering text, images, video, and documents, measuring factuality, instruction following, visual localization accuracy, and layout reasonableness respectively, avoiding replacing scenario validation with a single leaderboard score.
- Compute autonomy: when running inference on domestic chips, verify in advance the support for hybrid attention operators, sparse routing, and multimodal preprocessing operators, and prepare fallback implementations for missing operators.
5. Selection and Evaluation Recommendations
When facing a native multimodal model with “large parameters, low activation,” evaluation should not look only at parameter count or a single leaderboard. A four-step approach is recommended: first run a small-scale blind test with real business samples to confirm capability boundaries; then stress-test tail latency and expert balance under concurrency; then calculate cost per task rather than unit price; and finally verify the stability of long-context and multimodal pipelines under extreme inputs. If the business is mainly code and documents, the gains from a visual self-check loop usually far exceed simply scaling parameters; if the business is mainly ultra-long text retrieval, engineering focus should go to retrieval and context orchestration.
