Ultra-High Cost-Effective Sparse MoE Architecture: How Mixed Attention Cuts LLM Inference Costs
This article analyzes the architecture of a new lightweight flagship LLM that achieves high performance at one-tenth of the inference cost of previous models. It explores the technical foundations behind this cost efficiency, including an ultra-sparse Mixture-of-Experts (MoE) design, a shallow network with residual mixing, and a 3:1 interleaving of linear and sparse attention mechanisms. The analysis also covers the necessity of retraining the base model for native multimodal and long-context capabilities, alongside the broader implications for future low-cost LLM design paradigms.
1. Background: When “Flash” Becomes the New Narrative for LLMs
Over the past year, the competitive focus in the LLM industry has shifted from “who has the largest parameters” to “who offers higher intelligence per unit cost.” Recently, a team released a new lightweight flagship model featuring a Mixture-of-Experts (MoE) architecture with 320B total parameters and only about 18B activated per token. It approaches top-tier closed-source models on multiple coding and agent benchmarks while offering inference at roughly one-tenth the price of their previous main model. This phenomenon is worth studying for anyone in AI engineering—it is not a simple compression technique, but a complete architectural redesign.
2. Parameter Structure: Ultra-Sparse MoE + Shallow Network
1. Ultra-Sparse Routing Design
The model has 45 layers, equipped with 288 routed experts, activating 8 per token. The first three layers use a Dense structure to ensure stable foundational representations. Roughly estimated, the sparsity is about 2.8% of experts activated per layer. The core benefit of ultra-sparse MoE is that total capacity supports a vast knowledge base while the activation amount keeps compute costs low. However, higher sparsity makes routing convergence more difficult, which highlights the necessity of a “retrained base model”—incremental modifications on existing models can rarely sustain such sparsity.
2. Shallow Network and Residual Information Mixing
45 layers is notably shallow for a 300B-scale model. To compensate for the loss in representational capacity due to insufficient depth, the architecture introduces an approach similar to manifold-constrained hyper-connection (mHC). Instead of simple layer-by-layer addition for residual streams, it performs more complex weighted mixing across multiple residual channels, allowing information to interact fully even in a shallow network. This suggests a general design principle: when depth is limited, horizontally widening the information pathway is more cost-effective than simply stacking layers.
3. Attention Layers: 3:1 Interleaving of Linear and Sparse Attention
This is the most cost-effective part of the entire architecture and the technical foundation of the “Flash” positioning.
1. Layering Strategy
Among the 45 layers, about 34 use Linear Attention and 11 use Sparse Attention (DSA), interleaved periodically at approximately a 3:1 ratio. The design logic is clear:
- Linear Attention handles continuous context with fixed compute, responsible for “reading fast”;
- Sparse Attention is inserted every few layers, responsible for accurate long-distance retrieval to ensure “finding precisely.”
2. Index Compression
The sparse attention layers introduce an IndexPool mechanism, compressing the index Key by about 4:1 before retrieval matching. Overall, official figures state that attention compute is reduced by about 3x, and KV Cache is reduced by about 4.4x. For long-context inference (the model natively supports 1M context), KV Cache is the largest memory consumer. A 4x+ compression directly dictates the concurrency a single GPU can serve and the cost per token.
The schematic layer structure can be understood as follows:
for i in range(45):if i < 3: # Bottom Dense layer for stable representationlayer = DenseFFN(...)else:layer = MoE(num_experts=288, top_k=8)if i % 4 == 3: # 1 out of every 4 layers for precise sparse retrievalattn = SparseAttention(index_pool=4:1)else:attn = LinearAttention()
4. Multimodal and Long Context: The Necessity of Retraining
The model natively supports 1M context and image/video inputs. The team explicitly stated that this is based on a newly trained base model, utilizing 30T-scale multimodal pre-training data. This is critical: long-context capabilities, multimodal alignment, and sparse attention retrieval habits must be “baked into” the model during the pre-training phase; post-hoc fine-tuning is rarely sufficient. This explains why the team was willing to pay the cost of retraining—the architectural dividends must be realized from pre-training onward.
5. Effect Verification: Balancing Cost and Capability
From public evaluations, the model scores about 57 on a comprehensive intelligence index, with a single-task cost of only about $0.05. It fully surpasses the previous generation main model on six coding and agent benchmarks, with significant advantages in some areas (e.g., nearly doubling on an agent automation benchmark), overall approaching one of the industry’s strongest closed-source models. Although it only activates about 18B parameters per token, its foundational capabilities approach those of the previous generation model with 40B activation, and it is even stronger in coding scenarios.
6. General Implications for the Industry
- Cost-effectiveness stems from architecture, not pruning: Simple quantization or distillation rarely achieves a 10x price reduction alongside capability improvements. The real leverage lies in the inference structure design of “ultra-sparse MoE + mixed attention.”
- Mixed attention will become standard for long context: The division of labor where linear attention manages throughput and sparse attention manages precision retrieval has been repeatedly proven effective.
- KV Cache optimization equals real money: The bulk of inference costs often lies not in the FFN but in the attention cache. Technologies like index compression are worth the attention of every inference service team.
- Cloud infrastructure support is crucial: For such models to deliver value in production, they require comprehensive cloud infrastructure support, including elastic computing, object storage, monitoring, and logging. The general capabilities of cloud providers (such as Baidu AI Cloud) in model serving and inference acceleration are a key link in bringing such architectures to application.
Overall, this release is more like a validation experiment for a “next-generation architecture.” If this combination—ultra-sparse MoE, shallow Transformer, linear/sparse mixed attention, residual hyper-connection, index pooling, and native multimodality—is proven reusable, it will profoundly influence the design paradigm of low-cost LLMs over the next two years.
