Efficient Sparsely Activated Multimodal LLM Architecture and Deployment Practices
This article examines why large models are moving toward sparse activation and analyzes the architecture of a native multimodal model with roughly 320 billion total parameters and 18 billion activated parameters. It covers mixture-of-experts design, hybrid sparse and linear attention for ultra-long context, native multimodal pretraining, KV-cache and serving-system engineering, large-scale deployment on domestically produced chip clusters, and practical guidance for scenario selection.
1. Background: Why Large Models Are Moving Toward Sparsity
In recent years, the evolution of large models has followed a clear trajectory: total parameter counts continue to expand in exchange for stronger knowledge capacity and reasoning ability, while inference cost cannot grow at the same rate. This tension has driven the adoption of sparse activation, a paradigm in which a model may have hundreds of billions of total parameters but activates only a small fraction of them when processing each token.
The core value of this architecture can be summarized in three points:
- Decoupling capacity from compute: Knowledge is stored in a large parameter space, while the computation of a single forward pass depends only on the activated parameters.
- Significant cost-performance advantage: At comparable task quality, inference cost can be reduced well below that of traditional dense models.
- Greater deployment flexibility: A smaller activated parameter count means lower memory-bandwidth pressure and better batch throughput.
A recently open-sourced native multimodal model from a certain vendor is a typical example of this paradigm: it has about 320 billion total parameters, only 18 billion activated parameters, uses a permissive open-source license, and performs close to flagship closed-source models in coding, agent, and office automation scenarios, while its inference cost is roughly one-tenth of theirs. Using its public technical characteristics as a starting point, this article analyzes the general architecture principles and systems engineering practices of such models.
2. Core Architecture Analysis
2.1 Mixture of Experts: The Foundation of Sparse Activation
Mixture-of-experts (MoE) architecture replaces the single feed-forward network in a traditional Transformer with multiple parallel “expert” subnetworks, and a gating network dynamically selects a small number of experts for each token.
Its mathematical form can be simplified as:
y = Σ_{i∈TopK(g(x))} g_i(x) · Expert_i(x)
Here, the gating function g(x) outputs weights for each expert, and only the top K experts by score participate in computation. In this way, the model’s effective capacity grows with the number of experts, while FLOPs per token remain stable.
Three engineering issues require particular attention:
- Load balancing: If the gate consistently favors a small number of experts, compute is wasted and training becomes unstable. Common approaches include an auxiliary load-balancing loss or an auxiliary-loss-free dynamic bias adjustment mechanism.
- Communication overhead of expert parallelism: Experts are distributed across different compute nodes, and All-to-All communication often becomes a bottleneck. This requires careful orchestration with pipeline parallelism and tensor parallelism.
- Numerical stability of routing: Routing oscillates noticeably in early training, so a small dense warm-up phase or routing jitter suppression is usually needed.
2.2 Linear Attention: A Key Enabler for Ultra-Long Context
The computation and memory overhead of original softmax attention grow quadratically with sequence length, directly limiting the size of the context window. This model adopts a hybrid design of sparse attention and linear attention:
- Sparse attention layers: These retain precise attention over local windows and a small number of global anchor tokens, ensuring fine-grained modeling of key context.
- Linear attention layers: These use kernel approximation or state recursion to reduce attention complexity to linear, compressing historical information into a fixed-size hidden state.
The two mechanisms are interleaved by layer or combined by block, enabling the model to handle million-token contexts while maintaining needle-in-a-haystack long-range retrieval accuracy and keeping first-token latency during the prefill stage within a usable range. For context-sensitive applications such as whole-repository code understanding and long-document review, this hybrid design is currently regarded as one of the most cost-effective solutions.
2.3 Native Multimodal Design
“Native” multimodality means that vision, text, and other modalities share the same backbone and vocabulary space during pretraining, rather than attaching a visual adapter to a text model afterward. Its advantages include:
- More coherent cross-modal understanding; tasks such as chart understanding and document question answering do not require additional alignment training.
- A unified tokenization pipeline simplifies inference engine implementation, and multimodal inputs and pure text inputs can share the same KV-cache management and scheduling logic.
3. Systems Engineering for Ultra-Long Context
A million-token window is not only an architecture problem but also a complete systems engineering challenge:
- KV-cache management: Paged cache management maps non-contiguous logical blocks to physical memory blocks, greatly reducing fragmentation. For the linear attention portion, only a fixed state needs to be maintained, further reducing memory usage.
- Separation of prefill and decode: Long-text prefill is compute-intensive, while short-request decode is memory-access-intensive. Deploying the two stages on different instances with independent scaling is a standard practice for improving cluster utilization.
- Prefix cache reuse: For repeated system prompts or document contexts, cache the computed results so that subsequent requests can skip most of the prefill work.
- Context compression strategies: At the application layer, combine summarization and retrieval to avoid stuffing all history into the window, balancing cost and effectiveness.
4. Large-Scale Deployment on Domestically Produced Chip Clusters
A landmark achievement of this model is that it has completed large-scale distributed training and inference deployment on domestically produced compute clusters. The general technical points behind this include:
- Operator adaptation and compiler optimization: For non-mainstream hardware ecosystems, a mature compiler stack is needed to automatically partition and fuse the model computation graph and generate target hardware code, reducing the maintenance cost of hand-written operators.
- Mixed precision and quantization: A small activated parameter count means weight quantization, such as 8-bit or even lower precision, can further reduce memory usage and allow each card to host more concurrent requests.
- Fault tolerance and elastic scheduling: Failures in thousand-GPU clusters are normal. Fast checkpoint recovery, automatic eviction of faulty nodes, and job rescheduling are essential.
- Performance validation: After large-scale deployment, acceptance is typically based on metrics such as output tokens per second, first-token latency, and batch throughput to ensure that hardware adaptation does not sacrifice user experience.
5. Application Scenarios and Practical Recommendations
Based on the characteristics of this type of model, the following scenarios offer significant cost-performance advantages:
- Intelligent coding assistants: Long context can directly load an entire code repository, and combined with function-calling capabilities, enables cross-file code generation and bug fixing.
- Automated agents: Low activated parameters bring low latency and low cost, making these models suitable for multi-turn tool calls and long-chain task orchestration.
- Office and document processing: Native multimodal capabilities are naturally suited to high-frequency office tasks such as contract review, report parsing, and long-report summarization.
In practice, selection should be evaluated from three dimensions: first, whether per-token cost and throughput match business scale; second, whether long-context retrieval accuracy meets core pipeline requirements; third, whether the open-source license allows commercial closed-source deployment, so that private deployment and further fine-tuning are feasible.
6. Conclusion
“Large total parameters, small activated parameters, ultra-long context, native multimodality, and domestically produced hardware adaptation” together form the complete technical profile of a new generation of efficient large models. The combination of mixture of experts and linear attention resolves the tension between capacity and cost, while systems-level cache management, stage separation, and distributed scheduling determine whether these capabilities can truly become stable production services. For technical teams planning to build large-model applications, understanding this architectural paradigm is more valuable in the long term than memorizing the parameter table of any specific model.
