The Evolution of Sparse Mixture-of-Experts LLMs: Architecture, Attention, and Cost

    This article breaks down how a new generation of sparse Mixture-of-Experts (MoE) large models is structured and why "large total parameters, small activated parameters" has become the mainstream design. It covers the extreme sparse routing setup (320B total, ~18B activated per token, 45 layers, 288 routed experts with top-8 selection), the 3:1 interleaving of linear attention and sparse retrieval attention with a compressed index pool, and the constrained residual mixing (manifold-constrained hyper-connections) used to compensate for a shallow backbone. It also explains how to read benchmark and cost claims correctly, what native multimodal input and a 1M context window change on the engineering side, and how to validate adaptation and per-task cost on Baidu AI Cloud through a unified access layer, elastic compute, caching and storage, observability, and staged evaluation.

    1. What Happened First: From an Anonymous Stress Test to an Official Launch

    The technical community recently saw an interesting pattern: a model under an anonymous codename appeared in the public model lists of several platforms as a “mystery model,” accumulated a very large volume of calls, and was only later confirmed by its developer as a next-generation sparse Mixture-of-Experts model. That sequence itself is more worth analyzing than any parameter table.

    It shows two things. First, traffic distribution on public inference platforms has become a leading indicator for observing where model capability is moving; real developer call behavior reflects capability boundaries earlier than marketing material does. Second, ultra-large-scale pretraining (the source mentions on the order of 30T tokens of multimodal data) is no longer a one-off breakthrough but something that requires long-term, stable compute reserves and a data engineering system. For users, the real payoff is this: once an architecture is proven reproducible, a decline in the cost per unit of intelligence is an expected trend.

    2. Architecture Breakdown: Why “Large Total, Small Activated” Went Mainstream

    The new generation uses an extremely sparse expert-mixture structure with 320B total parameters and roughly 18B activated per token. The backbone is only 45 layers deep: the first three are dense, and the remaining layers each contain 288 routed experts, of which 8 are selected per token.

    The design intent behind this combination can be understood on three levels:

    • Extreme sparse routing: total capacity sets the ceiling on knowledge, while the activated volume sets inference cost. Once the two are decoupled, the model can grow its knowledge without significantly raising the cost of a single inference call.
    • Shallow backbone: fewer layers weaken inter-layer residual information mixing, so an additional connection mechanism is needed to compensate. This is also why the hyper-connection technique discussed later appears.
    • Dense leading layers: the shallow layers handle general representation convergence and prevent routing from differentiating too early, before representations have formed. This is a common engineering trade-off for stability.

    A schematic description of the structure follows (topology only, not any specific implementation interface):

    1. Input token
    2. ├─ Layer 0..2 : Dense FFN (representation convergence)
    3. └─ Layer 3..44 : Sparse MoE (288 experts, top-8)
    4. └─ Attention layers interleaved on a 3:1 cycle
    5. ├─ 3 × Linear Attention (continuous context)
    6. └─ 1 × Sparse Retrieval Attention (precise long-range retrieval)

    3. Attention Design: Periodic Interleaving of Linear Attention and Sparse Retrieval

    About 34 of the 45 layers use linear attention and 11 use sparse retrieval attention with an index pool, arranged in a 3:1 interleave. This division follows a simple principle: most dependencies between tokens are local and continuous, and only a few are long-range and need precise localization.

    Linear attention reduces attention complexity from quadratic in sequence length to roughly linear, at the cost of limited long-range exact recall. Sparse retrieval attention performs exact computation only on a small number of selected historical positions, covering that gap. Interleaving the two on a fixed cycle is equivalent to using a few “high-precision layers” to contain the information loss of the many “lower-precision layers.”

    The index pool further compresses index keys by about 4:1. The stated effect from the developer is roughly a 3x reduction in attention computation and about a 4.4x reduction in key-value cache. The direct engineering implication: in long-context scenarios, both memory footprint and time-to-first-token benefit at the same time, and a higher cache compression ratio means a single card can carry noticeably more concurrent sessions.

    4. Residual Compensation: Manifold-Constrained Hyper-Connections Under a Shallow Structure

    Compressing the depth from the usual several dozen layers down to 45 shortens the inter-layer information mixing path, which makes representation collapse and training instability more likely. The current general practice in the field is to introduce a more complex residual information mixing mechanism: constrained extra connections are established between multiple layers, and the constraints keep the connection weights from diverging. The value of such a mechanism is not higher per-step compute, but letting a shallow-and-wide sparse structure reach an effective expressive capacity comparable to a deeper one under the same training budget. According to the source, the final base model’s capability can approach that of the previous generation in the same family, which activated about 40B, and is stronger on coding tasks. That is the payoff of structural efficiency rather than parameter stacking.

    5. How to Read Capability Claims: Benchmarks, Gatekeepers, and Cost

    Among the six coding and agent benchmarks reported, the new model shows a clear improvement over the previous generation: on a software engineering benchmark it moves from 46.2 to 63.4, and on an automated task benchmark from 26.2 to 48.8, putting it overall close to the currently recognized top tier of closed-source models. It scores 57 on a general intelligence index, with a per-task cost of about $0.05.

    Three points matter when reading numbers like these:

    1. Look at relative gains, not absolute scores. The size of the generational jump says more about architectural payoff than “beating a given gatekeeper.”
    2. Look at cost per task. The point of a Flash-class positioning is not topping the leaderboard, but pushing capability into a low-cost range so that large-scale agent calls make economic sense.
    3. Look at the task distribution. Coding and agent tasks place high demands on long context, tool calling, and multi-step consistency, so gains there are the most useful reference for real business use.

    6. What Native Multimodality and Million-Level Context Change

    Native 1M context plus image and video input means the input side expands from plain text to mixed-modality sequences. Three things need to be reassessed on the engineering side. First, chunking and retrieval strategy: a long context window does not mean an entire document can be dumped in, so layered summarization and key-segment recall are still required. Second, caching and batching strategy: the output of modality encoders changes cache structure significantly. Third, evaluation: dedicated test cases for cross-modal consistency and long-range recall must be added.

    7. Deployment Advice: Adaptation and Cost Validation on Baidu AI Cloud

    • Unified access layer: use the model service category on Baidu AI Cloud for unified routing and fallback, so business code is not bound to a single model.
    • Elastic compute: run inference and fine-tuning workloads on the container platform and elastic compute, scaling automatically with peaks and troughs.
    • Cache and storage: put long-context session state and vector indexes into object storage and managed cache services respectively to control time-to-first-token.
    • Observability: use the log service and monitoring alerts to build three dashboards — token consumption, cache hit rate, and task success rate — turning “cost per task” into a metric that can be tracked continuously.
    • Staged evaluation: start with an offline benchmark set for regression, then run a small-percentage canary on real traffic, and use a unified evaluation framework to compare the cost-performance of different activation sizes.

    8. Conclusion

    The real signal from this generation is not a particular score but the validation of a combined route: extremely sparse expert mixture + shallow backbone + interleaved linear and sparse attention + constrained residual mixing + native multimodality. For developers, the shift should be from chasing new models to building a replaceable model access and evaluation system. On Baidu AI Cloud, assembling an elastic, observable, cost-controlled inference pipeline from general product categories is what allows you to keep capturing the benefit of falling cost per unit of intelligence in an environment of rapid architectural iteration.