Native Multimodal Large Models: Technical Architecture and Visual Encoding in Practice
This article examines the technical architecture of native multimodal large models, using a sparse model with roughly 320B total parameters and about 18B activated per inference as a reference sample. It covers why sparse Mixture-of-Experts designs control inference cost, how hybrid attention enables million-token context, how visual feedback loops let models inspect and revise their own output, and what matters in multimodal data mixing and staged rollouts. It closes with practical guidance on cost estimation, visual self-checking pipelines, long-context retrieval, and inference-side optimization.
1. Introduction: Moving from Text-Centric to Native Multimodal
Over the past two years, the capability frontier of large models has expanded mainly along the text dimension: longer contexts, stronger reasoning chains, more complex tool calls. But once models enter real production workflows, the shape of the input becomes far messier. Users rarely hand over a clean prompt. They drop in screenshots, screen recordings, scanned contracts, or spreadsheet files with embedded charts.
The conventional workaround is to bolt on a separate visual recognition module that converts images into text before feeding them to the language model. This “stitched-together multimodality” introduces irreversible information loss in the pipeline: layout structure, spatial relationships, and color hierarchy are all flattened into a one-dimensional sequence.
Native multimodal models start from a different premise: unify text, images, video, and files into a single representation space during pretraining, so the model understands raw input directly instead of reducing dimensions first. This article uses a class of native multimodal sparse models with roughly 320B total parameters and about 18B activated per inference as a technical sample, abstracts its architectural choices and engineering implementation points, and outlines a practical path for adoption. Note that no specific vendor product is discussed here; all capability descriptions stay within general industry practice.
2. Sparsity: Large Total Capacity, Small Per-Call Cost
Multimodality comes with a direct cost: compute. Visual input consumes far more tokens than text, so a dense architecture pushes inference cost up linearly or even superlinearly as modality complexity grows. The Mixture-of-Experts (MoE) architecture offers a mainstream solution by decoupling total parameter count from per-call activation.
With 320B total parameters and 18B activated, the model’s knowledge capacity is carried by all experts, while each token passes through only the few experts selected by the router. This yields three engineering benefits:
- Controllable unit inference cost: activation volume determines actual compute spend, so expanding capacity does not raise the bill proportionally.
- Memory and bandwidth become the main bottleneck: all expert weights still need to stay resident or be swapped in on demand, shifting the engineering focus from “compute fast” to “move data efficiently.”
- Noticeably higher batch throughput: different requests route to different experts, producing more balanced hardware utilization.
The routing logic can be abstracted as:
# Illustrative only: general idea of MoE routing, not any specific implementationdef moe_forward(x, experts, router, top_k=2):logits = router(x) # [batch, num_experts]weights, idx = topk_softmax(logits, top_k)out = 0for w, i in zip(weights, idx):out += w * experts[i](x) # compute only the selected expertsreturn out
Depth is worth noting as well. Compressing network depth from more than ninety layers to around forty-five while maintaining or even improving quality typically relies on wider hidden dimensions, more thorough expert parallelism, and higher-quality pretraining data. A shallow-and-wide structure is friendlier to distributed training communication patterns and reduces the bubble ratio in pipeline parallelism.
3. Hybrid Attention: Complexity Trade-offs for Long Context
Million-token context (roughly 1,048,576 tokens) is a hard requirement for native multimodality. A single screen recording or a hundred-page document easily blows past a conventional window. But standard self-attention scales in time and memory complexity quadratically with sequence length, so direct extrapolation is not viable.
The common industry approach mixes sparse attention with linear attention: local windows and sparse global tokens handle precise modeling of short-range dependencies and key anchors, while linear attention carries long-range information compression and state passing, bringing overall complexity back to near-linear. A few engineering points must come with it:
- Positional encoding extrapolation: suitable interpolation or chunking strategies are needed to keep positional semantics from breaking down beyond the trained length.
- KV cache management: in long-context inference the cache can far exceed the model weights, requiring paged management and on-demand eviction.
- Retrieval and compression working together: for very long documents, first use lightweight retrieval to locate candidate passages, then hand them to the long-window model for close reading. This usually beats running the full long window end to end on cost-effectiveness.
4. The Visual Encoding Loop: Letting the Model See Its Own Output
The most valuable capability of native multimodality is not recognizing images but feeding visual feedback back into the generation process to form a self-verification loop. Take code generation as an example:
Requirement description + design mockup↓Generate frontend code↓Render page screenshot (headless browser)↓Visual understanding: misaligned layout / overflow / insufficient contrast↓Locate the specific component and style → auto-revise → re-render
The same loop transfers to game logic (screenshot after a run to check character clipping and UI occlusion) and 3D scenes (multi-view rendering to check scale and orientation consistency). Compared with a text-only model that can only “write blind,” the loop moves visual defects from manual acceptance testing forward into the generation stage and significantly cuts rework rounds.
For document tasks, this capability takes the form of “self-checking with taste.” After generating a slide deck, report, or explanatory document, the model can read the rendered result and judge whether the font hierarchy is muddled, whether charts are cropped, and whether table column widths are reasonable, then iterate accordingly. In practice, keep a human final review and split visual checks into two layers: quantifiable rule items (overflow, overlap, missing placeholders) that are automated, and subjective items (aesthetics, style consistency) that are sampled for review.
5. Training and Data: The Art of Multimodal Data Mixing
Native multimodality starts with data. A common industry practice is a trillion-token-scale mixed multimodal corpus, where the key lies in mixing ratios and cleaning: image-text pairs must be semantically aligned rather than crudely scraped and paired; document data must preserve layout and reading order; video data needs keyframe extraction and timestamp alignment. In addition, high-quality text-only data such as code and math must still hold a substantial share, otherwise multimodal capability will erode foundational reasoning ability.
6. Anonymous Staged Rollout: A Deployment Methodology Worth Borrowing
One mature approach is to first serve real traffic on an open platform with an anonymous model, collect invocation samples with a realistic distribution, and then officially release and open source it. The engineering value is clear: real traffic exposes long-tail defects better than offline evaluation sets; large-scale invocation stress-tests the stability and cost model of the inference cluster; and community feedback completes a round of quality calibration before release. Note that the staged period requires proper compliance and data isolation, with clear boundaries on how input data is retained and used.
7. Implementation Recommendations
- Estimate cost by activated parameters, not total parameters, and plan capacity against the real request distribution.
- Make visual self-checking a separate stage in the pipeline that outputs a structured defect list rather than natural-language commentary.
- Prefer a “retrieval + close reading” combination for long context instead of blindly stacking window size.
- Focus on memory and bandwidth on the inference side: expert parallelism, cache paging, and batch scheduling are the main optimization levers.
- Build a layered evaluation system: automate rule-verifiable items and sample subjective items for human review.
8. Conclusion
Native multimodality, sparse architecture, and hybrid attention are pushing large models from “text assistant” toward “an executor that can see, revise, and self-check.” For developers, the real payoff lies not in any single metric but in bringing visual feedback into the generation loop so the model gains verifiable iteration ability. On cloud platforms such as Baidu AI Cloud, this class of models can be deployed and operated with general capabilities like container platforms, object storage, logging services, and monitoring and alerting, turning architectural advantages into stable business output.
