Technical Breakdown of Sparse Mixture-of-Experts LLMs: Architecture, Attention, and Cost Efficiency

    This article analyzes a natively multimodal sparse Mixture-of-Experts (MoE) model with roughly 320B total parameters and 18B activated per token. It explains the three-layer parameter design, the 3:1 interleaving of linear and deep sparse attention, index compression for KV Cache reduction, manifold-constrained residual mixing for shallow stacks, and native multimodality with 1M context, then offers practical guidance on capacity planning, routing observability, and cost governance.

    1. The Technical Shift: From Parameter Scale Races to Cost per Unit of Intelligence

    A notable recent development is a team’s release of a natively multimodal sparse Mixture-of-Experts (MoE) large model. It has roughly 320B total parameters, yet only about 18B parameters are activated per token, an activation ratio close to 5.6%. Positioned officially as a “lightweight, high-speed version,” it is priced at about one tenth of the previous flagship generation, surpasses that previous flagship on several coding and agent benchmarks, and approaches the current high-water mark set by well-regarded closed-source models.

    Setting the hype aside, what deserves developers’ attention is the technical direction this model validates: capability growth no longer depends only on stacking parameters, but on fully decoupling the parameters that are stored from the parameters that are computed, then using attention and residual structures to recover the loss caused by fewer activated parameters. The direct implication for users is that per-token inference cost, memory footprint, and throughput are decoupling from total parameter count.

    2. Parameter Structure: Three Design Layers of a High-Sparsity MoE

    The key structural parameters can be summarized as:

    • About 320B total parameters, about 18B activated;
    • 45 layers in total, with the first three being dense feed-forward layers and the rest MoE layers;
    • 288 routed experts per layer, with each token selecting 8 experts.

    These three choices solve different problems. The first three dense layers are a stability design: the shallowest layers of the network handle general-purpose feature extraction, and introducing sparse routing too early tends to make representation distributions diverge too much across tokens, causing noticeable loss jitter early in training. 288 choose 8 pushes sparsity to 36x: more experts mean each expert can be more specialized, while touching only 8 experts per token keeps compute from growing linearly with the total expert count. What must accompany this in engineering is load-balancing loss and capacity factor control; otherwise a few popular experts get selected repeatedly while the rest go untrained, the well-known dead expert problem.

    It is worth stressing that activating 18B does not mean “capability equivalent to an 18B dense model.” A common industry understanding is that MoE knowledge capacity is determined mainly by total parameters, while inference compute is determined mainly by activated parameters, so a high-sparsity architecture aims to “store knowledge in total parameters and control cost with activated parameters.”

    3. Attention Structure: Periodic Interleaving of Linear and Sparse Attention

    This is the part of the architecture most worth reading closely. Of the 45 layers, about 34 use linear attention and about 11 use deep sparse attention (DSA), interleaved periodically at roughly a 3:1 ratio.

    The two attention types address different tensions:

    • Linear attention reduces attention complexity from quadratic in sequence length to linear, making it suitable for continuous, local dependencies in long contexts and the main lever for lowering long-text cost;
    • Sparse attention performs exact computation only on a small number of selected historical positions, preserving the ability to do precise long-distance retrieval and compensating for linear attention’s inherent weakness in long-range exact recall.

    Interleaving at 3:1 is essentially using a few high-precision layers to backstop the representational loss of the majority of lower-precision layers. In addition, sparse attention introduces an IndexPool mechanism that compresses index keys by about 4:1, with the official figures being roughly a 3x reduction in attention computation and about a 4.4x reduction in KV Cache.

    For those deploying the model, a 4x-plus KV Cache reduction is a more tangible gain than compute metrics, because it directly determines how many sessions a single card can serve concurrently. A convenient way to estimate it:

    1. # Illustrative only: estimating cache size for long-context inference
    2. bytes_per_token = 2 * num_layers * num_kv_heads * head_dim * dtype_bytes
    3. cache_gb = bytes_per_token * seq_len * batch_size / (1024 ** 3)
    4. # Cutting the cache to 1/4.4 means roughly 4x more concurrency or context length on the same memory

    4. Shallow Stacking and Manifold-Constrained Residual Mixing

    45 layers counts as a “shallow” design among current flagship models. With fewer layers, capacity depends more on each layer’s internal representation-mixing ability. The model adopts a manifold-constrained hyper-connection (mHC) approach, replacing simple identity residuals with richer residual information mixing so that information flows along more varied paths across and within layers, supporting the shallow structure.

    The intuition: a traditional residual is a single “main road,” and in a shallow network too few main roads cause congestion; mHC is like widening the main road into multiple lanes with controlled connection constraints, increasing information bandwidth while avoiding the training instability of unconstrained connection growth. Structures like this are at the industry’s frontier, and engineering typically requires extra adaptation for numerical stability, operator fusion, and parallel partitioning.

    5. Native Multimodality and Million-Level Context

    The official statement is that the base is a newly pretrained model, trained on roughly 30T-scale multimodal pretraining data, natively supporting 1M context and image and video input. The difference between “native” and “bolted-on” is that visual signals participate in representation learning during pretraining rather than being stitched in later with adapters, which yields better consistency in cross-modal reasoning and document understanding.

    6. Practical Guidance for Developers

    1. Redo capacity planning: estimate memory from activated parameters and cache footprint rather than total parameters; high-sparsity models typically deliver markedly better concurrency on the same hardware.
    2. Prioritize routing observability: after launch, monitor expert load distribution, routing entropy, and retry rate; load skew is the most common hidden failure source in sparse models.
    3. Validate long context in layers: with linear and sparse layers interleaved, regression-test separately with “long-distance exact retrieval” and “long-document summarization” cases instead of relying on a single aggregate score.
    4. Unify cost metrics: put cost per task, time to first token, and cache hit rate on one dashboard before deciding whether to switch model versions.
    5. Choose a deployment shape: if fine-tuning and elastic scaling are involved, evaluate building a unified model-serving and observability pipeline on general capabilities such as container platforms, object storage, and monitoring and alerting offered by Baidu AI Cloud.

    7. Conclusion

    The real value of this class of models lies not in a leaderboard score but in systematically validating a next-generation architectural combination: extremely sparse MoE + shallow stacking + mixed linear and sparse attention + index compression + manifold-constrained residuals + native multimodality. For engineering teams, the next step is not chasing release cadence but bringing cache, routing, and cost observability into routine governance, which is what keeps cost-performance stable through a period of rapid architectural iteration.