Natively Multimodal Large Models: Technical Breakthroughs and Engineering Practices
This article explains how natively multimodal large models differ from bolt-on multimodal stacks, why sparse activation enables flagship-level capability at a fraction of the cost, and how to evaluate, integrate, and cost-control such models in production. It covers the distinction between total and activated parameters, expert-routing load balancing, unified multimodal token inputs, a four-dimension evaluation matrix, a minimal working integration loop, a cost-control checklist, and common pitfalls.
1. Introduction: From Bolt-On Multimodality to Native Multimodality
Over the past two years, multimodal capability has mostly been added as an add-on: a language model plus a vision encoder, with a projection layer mapping visual features into the text space. Such designs are workable in engineering terms, but they carry three built-in problems: visual information is compressed during the mapping, cross-modal alignment depends on an extra training stage, and the inference chain is lengthened, which drives up latency.
The natively multimodal approach lets text, image, audio, and other tokens enter the same backbone network during pretraining, sharing one attention and positional-encoding scheme. A recently released Chinese model, the first natively multimodal model of its kind, follows this route: roughly 320B total parameters with about 18B activated per inference pass. It scores 57 on a public aggregate capability leaderboard, on par with international flagship models of the same period, and comes close to or exceeds them on several coding benchmarks, at roughly one-fortieth of the calling cost. This article does not focus on any specific product; instead, it abstracts the phenomenon into reusable technical judgments and engineering methods.
2. Technical Foundation: Sparse Activation and Parameter Efficiency
2.1 Total Parameters vs. Activated Parameters
A large model’s capability and cost are not determined by total parameters alone. Sparse architectures such as mixture-of-experts split parameters into multiple expert subnetworks, and each token is routed to only a few experts. So “320B total, 18B activated” means memory footprint and knowledge capacity scale with 320B, while the compute cost of a single forward pass is close to that of a dense 18B model. This explains how capability can match a flagship while unit price is an order of magnitude lower.
2.2 Routing Load Balance Is the Engineering Hard Part
The main risk of sparse architectures is routing collapse: a few experts are over-selected while the rest sit idle for long periods, wasting effective parameters. The common industry practice is to add a load-balancing auxiliary loss together with a capacity-factor constraint, as sketched below:
# Pseudocode: load-balancing constraint for expert routinglogits = router(hidden_states) # [tokens, num_experts]probs = softmax(logits, dim=-1)topk_idx = topk(probs, k=2).indices# Fraction of tokens each expert actually receivesload = bincount(topk_idx.flatten(), minlength=num_experts) / tokens# Mean routing probability, used to prevent betting on only a few expertsmean_prob = probs.mean(dim=0)aux_loss = num_experts * (load * mean_prob).sum()loss = task_loss + alpha * aux_loss # alpha is typically around 1e-2
2.3 Unified Input for Native Multimodality
The key to native multimodality is encoding different modalities into homogeneous discrete or continuous token sequences and feeding them into the backbone uniformly. Three things need handling in practice: modality identifiers (telling the model which modality a token belongs to), positional encoding (mapping the 2D position of an image patch to a 1D sequence position), and resolution adaptivity (a high-resolution image is split into more patches, which directly inflates context length).
3. Where the Cost Efficiency Comes From Structurally
The low price is not simply a subsidy; it usually comes from four stacked layers:
- Architecture: sparse activation lowers compute per token;
- Inference: continuous batching, paged attention caching, and quantization (for example, quantizing weights to fewer bits) raise throughput;
- Compute: all traffic runs on 100,000 domestically produced accelerator cards, and hardware self-sufficiency reduces the cost uncertainty caused by external supply fluctuations;
- Ecosystem: weights are released under a permissive open-source license, so users can host inference themselves and push marginal cost down to their own resource cost.
One caveat: the price advantage shifts as vendor strategies change; the efficiency at the architecture layer is the sustainable part.
4. Selection and Evaluation: Don’t Look at a Single Leaderboard Score
An aggregate leaderboard score is a necessary reference, not a sufficient condition. A four-dimension evaluation matrix is recommended:
- Capability: language understanding, code generation and repair, multimodal question answering, long-context retrieval;
- Engineering: time to first token, output tokens per second, stability under concurrency;
- Cost: input and output priced separately, with long-document scenarios calculated on their own;
- Compliance: data residency, audit logs, and what the open-source license requires for commercial use and redistribution.
Permissive licenses (MIT-style, for example) generally allow commercial use, modification, and redistribution, requiring only that copyright and license notices be retained; some “open weight” licenses attach user-scale or usage restrictions, so every clause must be checked line by line before deployment.
5. Integration in Practice: A Minimal Working Loop
# Illustration: unified multimodal request body (interface and field names are# generic expressions, not specific to any vendor)payload = {"model": "<your-deployed-model-name>","messages": [{"role": "user","content": [{"type": "text", "text": "Describe the key paths in this architecture diagram"},{"type": "image", "image": "<base64-or-object-storage-uri>"}]}],"temperature": 0.2,"max_tokens": 1024}# Production tip: put large images in object storage first and reference them by# signed URI to avoid inflating the request body
Supporting engineering points:
- Put large images and audio/video in object storage and send only references in the message body, reducing gateway pressure;
- Decouple long-running asynchronous tasks through a message queue, write results back, and trigger callbacks;
- Instrument the full chain into logging and monitoring with alerting, setting thresholds on time to first token and failure rate;
- Run elastic scaling on a container platform, deploying multiple replicas sharded by concurrency.
6. Cost-Control Checklist
- Slim the context: retrieval augmentation returns only the top-K fragments, and conversation history is compressed into summaries;
- Tiered routing: simple requests go to a smaller-parameter or lower-tier configuration, and only complex reasoning is escalated;
- Cache reuse: enable prefix caching for frequent identical prefixes; the hit portion is not billed or billed at a lower rate;
- Output constraints: use structured output to cap max_tokens and avoid verbose generation;
- Batching: merge offline tasks into batch submissions, which usually cost less per unit.
7. Common Pitfalls
First, treating a leaderboard score as business results; public benchmarks differ greatly from private data distributions. Second, overlooking the memory threshold of sparse models; small activated parameters do not mean a small card can host it. Third, ignoring multimodal context inflation, where one high-resolution image can consume thousands of tokens. Fourth, understanding an open-source license only superficially and missing redistribution and trademark clauses.
8. Conclusion
Native multimodality combined with sparse activation is turning “flagship capability” and “affordable cost” from opposing goals into an engineering target that can be met at the same time. The practical advice for developers: start with a small-scale comparative evaluation using the four-dimension matrix, then integrate through a unified request body, control cost with caching, tiered routing, and batching, and finally build elasticity and observability on a container platform. Carrying this chain on general-purpose capabilities such as object storage, message queues, container platforms, and monitoring with alerting from Baidu AI Cloud can further reduce the burden of self-built operations.
