Large-Scale MoE Architecture Evolution and Million-Token Context Engineering
A new generation of mixture-of-experts models combines 770 billion total parameters with 49 billion active parameters per token and a one-million-token context window. This article examines its expert routing, multi-stream residual design, gated sparse attention, cross-layer index reuse, and multi-token prediction, alongside the evaluation and deployment trade-offs that matter for developers.
As large language models evolve, architectural efficiency and long-context processing are becoming as important as parameter count. A cloud provider recently introduced a new generation of large-scale mixture-of-experts (MoE) models with 770 billion total parameters and 49 billion active parameters per token, up from 295 billion and 21 billion, respectively, in the previous generation.
The upgrade is more than a change in scale. It represents a substantial architectural redesign aimed at supporting longer contexts while controlling inference costs. This article examines the design choices behind its expert routing, attention mechanisms, and inference engineering, and considers their practical implications.
1. Scaling MoE Parameters and Expert Routing
In an MoE architecture, the relationship between total and active parameters is central to the balance between model capacity and computational cost. The new model increases its total parameter count to 770B while keeping the active parameter count at 49B per token. It also expands the number of routed experts from 192 to 256.
The goal is to provide greater knowledge capacity without incurring the inference compute requirements of a similarly sized dense model.
Shared Experts and Top-8 Routing
The architecture introduces a shared expert alongside its routed experts. Whereas conventional MoE routing typically selects experts using a Top-K strategy, this design combines Top-8 routing with one additional shared expert.
The shared expert is intended to capture general-purpose features and reduce knowledge redundancy across routed experts. This allows the eight selected experts to focus more on specialized, domain-specific information.
Wider Layers and Four Residual Streams
The network becomes slightly shallower, moving from 80 layers to 78, while its hidden size increases from 4,096 to 6,144—approximately a 1.5× expansion. It also introduces four residual streams through an iHC multi-stream information-flow design.
Compared with a conventional single residual stream, this approach is intended to reduce information-flow bottlenecks and improve gradient propagation through deep networks, supporting more stable representation learning.
2. Redesigning Attention for Million-Token Contexts
Expanding the context window from 256K to 1M tokens creates substantial challenges for conventional attention mechanisms, including grouped-query attention (GQA). KV-cache memory requirements and attention computation become major constraints.
To address these issues, the new architecture replaces GQA with a design combining multi-head latent attention (MLA) and gated sparse attention.
Gated DSA and Token Indexing
The architecture uses Gated DeepSeek Sparse Attention, or Gated DSA. Rather than applying full attention over all historical tokens, it introduces a lightweight indexer that identifies which positions in the context are most relevant to the current query.
The main attention module then processes only the selected 2,048 positions. This “retrieve first, attend selectively” strategy substantially reduces the work associated with full attention, which has quadratic complexity, O(N²), in sequence length.
Reusing Indices Across Layers
Running an independent indexer at every layer would still introduce significant overhead in a 78-layer network. The architecture therefore runs the full indexer at only 21 designated layers, such as layers 0, 1, 5, 9, and 13. The remaining 57 layers reuse token indices selected by an earlier layer.
This approach reduces repeated indexing work while aiming to preserve the quality of attention selection.
# Pseudocode: cross-layer index reusedef forward_layer(layer_idx, hidden_states, kv_cache):if layer_idx in full_indexer_layers: # For example, [0, 1, 5, 9, ...]# Run the full indexer to identify relevant token positionstoken_indices = lightweight_indexer(hidden_states, kv_cache)cached_indices = token_indices # Cache indices for subsequent layerselse:# Reuse indices from the preceding layertoken_indices = cached_indices# Apply sparse attention only to the selected token_indicesattn_output = gated_sparse_attention(hidden_states, kv_cache, token_indices)return hidden_states + attn_output
The pseudocode illustrates the reuse logic: selected layers refresh the indices, and intervening layers use the cached selection rather than recomputing it.
3. Inference Optimization with a Native Draft Layer
To keep inference latency manageable at this scale, the architecture also upgrades its multi-token prediction (MTP) mechanism. MTP uses a draft layer to predict multiple upcoming tokens, which the main model then verifies in parallel to accelerate decoding.
The new native draft layer has 10B total parameters, with 0.7B active parameters. Compared with the smaller draft layer used previously, the larger draft network is described as improving prediction accuracy and, consequently, the acceptance rate in speculative decoding.
For 1M-token contexts, the larger draft layer is intended to better capture semantic continuity across long inputs. This can support a better balance between throughput and time to first token in tasks such as long-document summarization and repository-level code analysis.
4. Evaluation and Commercial Deployment Trade-Offs
The Limits of Public Benchmarks
The model reportedly performs at a level comparable to mainstream models on public benchmarks. However, benchmark results require careful interpretation because data contamination remains a serious concern.
Exposure to test data can inflate scores, making them less representative of a model’s ability to generalize to complex business workloads. Developers should therefore avoid relying on public benchmarks alone when selecting a model. Evaluation on private, task-specific business data remains essential.
Inference Costs and Pricing
Inference cost is a major consideration for enterprise deployment. With 49B active parameters per token, a 770B-total-parameter MoE model occupies a challenging position between lightweight and much larger alternatives.
Compared with lightweight “Flash”-style models, which typically have 10B–20B active parameters, it requires more inference compute and may have a weaker pricing advantage. Compared with larger “Max”-style models with hundreds of billions of active parameters, its capability ceiling may be lower.
The commercial challenge is to find a useful balance between model capability and compute cost. A larger total parameter count alone does not resolve that trade-off.
Enterprise deployments also depend on the underlying infrastructure. Cloud-native platforms, including Baidu AI Cloud, can provide compute scheduling, containerized deployment, and high-performance caching services that help improve resource utilization. These infrastructure capabilities can, to some extent, reduce per-token inference costs and ease the pressure created by model pricing.
Conclusion
This generation of large-scale MoE models reflects a shift toward deeper architectural and engineering changes rather than parameter scaling alone. The move from GQA to an MLA-based design with Gated DSA and reusable token indices addresses the demands of million-token contexts. Shared experts, wider layers, four residual streams, and a larger native draft layer tackle complementary challenges in capacity, information flow, and decoding efficiency.
Questions remain around benchmark reliability, inference economics, and commercial positioning. Nevertheless, these design choices offer useful lessons for building models that can handle the complex workloads associated with AI agents.
For developers, the priority should be understanding which architectural ideas transfer to their own workloads, then validating model selection and further development against real business requirements.
