Large Language Model Architecture Evolution for Million-Token Context: A Technical Breakdown
This article analyzes a new generation of large language model architecture designed for million-token context windows. Compared with the previous Preview version, total parameters grow from 295B to 770B, activated parameters per token rise from 21B to 49B, and the context window expands from 256K to 1M. The upgrade prioritizes width and expert capacity over depth, combining gated sparse attention, multi-head latent attention, index reuse, multi-path residuals, a native draft layer, and BF16/MXFP8 precision options. It also explains how to evaluate quality and real cost using private benchmarks and per-task cost rather than public leaderboards or per-token price alone.
1. Introduction: A Generational Leap, Not an Incremental Update
As large language models move into the Agent and long-document processing stage, the focus of architecture upgrades has shifted from “making the parameter count larger” to “extending context length under controllable inference cost.” The new model generation discussed in this article represents a typical generational change rather than routine minor tuning. Compared with the previous Preview version, total backbone parameters increase from 295B to 770B, activated parameters per token increase from 21B to 49B, and the context window expands from 256K to 1M.
One notable detail is that the number of layers does not keep increasing. It slightly decreases from 80 to 78, while the hidden dimension rises from 4096 to 6144 (about 1.5x), routed experts increase from 192 to 256, and the activation strategy changes from Top-8 to “Top-8 plus 1 shared expert.” These numbers show that the expansion mainly happens in “width” and “expert capacity” rather than “depth,” which is a mainstream direction in current sparse architectures.
2. Parameters and Capacity: The Case for Width-First Scaling
Width-first scaling has practical benefits: memory access is more contiguous and parallel partitioning is more friendly. Not increasing depth helps control latency accumulation caused by serial dependencies. Total parameters grow by 2.61x and activated parameters grow by 2.33x, meaning model capacity increases while per-token computation does not inflate proportionally. This is the key to maintaining cost efficiency on the sparse expert route.
The newly added “shared expert” is an easily overlooked but practical design. It separates high-frequency general knowledge from the selection competition among routed experts, reduces repeated learning across experts, and makes the routing distribution more stable. In engineering terms, it can be understood as a “common feed-forward path plus several optional specialized paths.”
Illustrative routing logic (pseudocode):
logits = router(hidden) # Shape: [num_experts]topk_idx = topk(logits, k=8) # Select 8 only from 256 routed expertsy = sum(expert_i(hidden) for i in topk_idx)y = y + shared_expert(hidden) # Shared expert always participates
3. Attention Redesign: From Standard GQA to Gated Sparse Attention
The previous generation used standard grouped-query attention (GQA). This generation switches to a combination of “gated sparse attention + multi-head latent attention + index cache.” The core idea has two layers: first, a low-rank latent representation compresses the key-value cache to reduce memory usage; then, a lightweight indexer selects a small number of relevant tokens for each query, turning attention from full computation into sparse computation.
More importantly, the index reuse strategy is worth attention: all 78 layers enable sparse attention, but only 21 layers run the full indexer, while the remaining 57 layers directly reuse token indices selected by earlier layers. Full-indexer layers are roughly distributed at layers 0, 1, 5, 9, 13… 77, forming a “sparse sampling” index refresh rhythm.
The benefit of this design is a substantial reduction in indexing overhead. The risk is that index errors can propagate across layers. In practice, two points need attention: first, shallow-layer index quality must be high enough; second, the gating mechanism must be able to suppress the weights of noisy tokens.
# Full-indexer layer: recompute candidate token indicesif layer_id in full_indexer_layers:idx = indexer(q, k_cache) # Example: select top-k from 1Mindex_cache[layer_id] = idxelse:idx = index_cache[nearest_prev_full_layer] # Reuse upstream indicesattn = gated_sparse_attention(q, k_cache, v_cache, idx)
4. Multi-Path Residuals and Draft Layer: Training Stability and Inference Acceleration
The 4-path residual stream (iHC multi-path information flow) replaces the standard single-path residual. Essentially, it lets information from different semantic levels propagate in parallel and fuse at the end, mitigating gradient conflicts and representation collapse in deep networks. When layers decrease and width increases, multi-path residuals are especially important for training stability.
The MTP draft layer increases from 3.8B to 10B (about 0.7B activated), meaning the natively built-in speculative decoding draft model is stronger and the acceptance rate is usually higher. From an engineering perspective, a larger draft layer increases memory usage and scheduling complexity. The benefits are more likely to cover the cost only in high-concurrency or long-output scenarios.
5. Precision and Deployment: BF16 and MXFP8 Dual Track
The open precision expands from BF16 only to both BF16 and MXFP8. MXFP8 is a block-level scaled low-precision format that can reduce bandwidth and memory pressure while maintaining relatively stable numerical behavior. The deployment recommendation is to prioritize evaluating a hybrid scheme of FP8 weights with BF16 activations on the inference side, and to run quality regression with real business samples rather than relying only on general leaderboards.
6. Evaluation and Pricing: Avoiding Misleading Leaderboards and Unit Prices
Given current data contamination and question leakage, public leaderboards have limited reference value and are better suited for “coarse screening” than “final selection.” A reliable approach is to use a self-built private evaluation set covering four task types: long-document retrieval, multi-hop reasoning, tool calling, and structured output, and to measure first-token latency, throughput, and cost per task.
Price evaluation also cannot rely only on the price per million tokens. The comparison range given in the original text shows that the Preview model’s unit price is in the mid-to-high range: lower than some flagship tiers but clearly higher than the lightweight tiers from various providers, creating a “neither high-end nor low-end” positioning. Real cost should be calculated as follows:
Cost per task = (input tokens × input price + output tokens × output price) / successful tasks
In long-context scenarios, the actual token consumption differences brought by index reuse and sparse attention often determine the bill more than the unit price itself.
7. Conclusion
The technical focus of this model generation is clear: expanding width and expert capacity, using sparse attention plus index reuse to support million-token context, ensuring training stability with multi-path residuals, and serving inference efficiency with a native draft layer and low-precision formats. The recommendation for developers is to treat it as a candidate “long-context Agent main model,” validate quality with a private evaluation set, make decisions based on cost per task rather than unit price, and keep watching how the official version fills gaps in multimodal capabilities and stability. For quick validation, you can build an elastic evaluation pipeline on general capabilities from Baidu AI Cloud, such as container platforms, object storage, logging services, and monitoring alerts, to enable reproducible comparison experiments.
