Preview of Next-Gen LLM Architecture: Evolution of Sparse Attention and Gated Residuals

    A recently announced preview of a next-generation Large Language Model (LLM) introduces significant architectural changes to address computing power and memory capacity challenges. Featuring 125B total parameters, 6B activated parameters, and an external 51B N-gram Embedding knowledge base, this architecture evolves its attention mechanism, residual network, and optimization strategy. This article delves into four core upgrades: Query Sparse Attention, a four-branch gated residual design, N-gram Embedding memory expansion, and a hybrid Muon and AdamW optimization strategy, while also discussing practical considerations for cloud deployment.

    Recently, the industry announced a preview of a next-generation Large Language Model (LLM) architecture. The model features a total of 125B parameters, 6B activated parameters, and an external 51B N-gram Embedding knowledge base. This preview marks the transition of LLM architectures into a new generation, introducing multiple breakthrough adjustments compared to its predecessors. This article provides an in-depth analysis of the four core architectural changes in this preview, exploring how these technical evolutions solve the current computing power bottlenecks and memory capacity challenges faced by LLMs.

    1. Attention Mechanism Evolution: From Global Gating to Sparse Attention

    In the next-generation architecture, the model retains its signature Gated Delta Network, a linear attention mechanism. Since pure linear attention is prone to information collapse when handling long-range tasks, a hybrid attention strategy is typically employed. The previous generation combined the Gated Delta Network with fully gated attention at a 3:1 ratio. The Gated Delta Network was responsible for quickly compressing and transmitting historical information with nearly linear computational complexity, while global attention, appearing once every three layers, looked back directly at original tokens to compensate for the limited state memory in precise retrieval.

    However, traditional global attention mechanisms suffer from quadratically increasing KV Cache computational costs as sequence length grows. To address this pain point, the new architecture replaces fully gated attention with Query Sparse Attention (QSA). This mechanism borrows from the industry’s advanced Dynamic Sparse Attention (DSA) route, with the core idea being the introduction of a lightweight indexer. This indexer allows each Query token to score historical tokens, selecting the most important 2,048 KV blocks. The subsequent main attention computation is performed only on these selected tokens. This reduces the complexity of core attention from O(L^2) to O(Lk); as long as k remains fixed, the computation increases approximately linearly with the context length.

    Building on this, the new architecture further optimizes the indexer. In the original DSA scheme, the indexer still required each Query to scan all historical tokens, easily becoming a new performance bottleneck in ultra-long context scenarios. The new architecture introduces a Micro Block mechanism within the indexer, average pooling every 4 consecutive index keys into a micro-block, which the Queries then score. This improvement reduces the number of keys the indexer needs to inspect to a quarter of the original, significantly lowering indexing overhead and ensuring inference efficiency in ultra-long sequence scenarios.

    2. Residual Network Upgrade: Four-Branch Gated Residual Design

    Residual connections are the cornerstone of deep learning model training, with traditional Transformer architectures universally adopting a single-path Pre-Norm Residual structure. While Pre-Norm effectively mitigates the vanishing gradient problem, a single information channel in extremely deep networks can still face limited feature expression or gradient degradation.

    The next-generation architecture upgrades the traditional single-path Pre-Norm Residual to a four-branch Gated Residual. This design expands the single information channel into a multi-branch cross-layer information channel. During each residual connection, the information is split and undergoes gated processing and feature transformation through four different branches before being fused. This multi-branch structure not only enhances the model’s feature extraction capabilities at different abstraction levels but also dynamically adjusts the information flow weights of each branch through the gating mechanism. This allows the model to balance memory and forgetting more flexibly during training, effectively improving the information transmission efficiency and representation capabilities of deep networks.

    3. Memory Capacity Expansion: External N-gram Embedding Design

    The parameter scale of an LLM directly determines its knowledge and memory capacity, but simply expanding the backbone network parameters incurs exponential computational overhead. The next-generation architecture provides an innovative decoupling approach for memory expansion: adding a single-layer N-gram Embedding at Layer 2 of the model network.

    This design introduces an additional 51B parameters, primarily used to store rich N-gram statistics and embedding knowledge, thereby significantly increasing the model’s memory capacity. Notably, because this layer is located in the shallow part of the network and functions solely as a lookup table, it adds almost no floating-point operations per token in the backbone network. This decoupling of “computation” and “memory” allows the model to possess a broader reserve of common sense and more fine-grained language detail capture capabilities without sacrificing inference speed.

    4. Training Optimizer: Hybrid Strategy of Muon and AdamW

    During the model training phase, the choice of optimizer is critical to convergence speed and final performance. For a long time, AdamW and its variants have been the absolute mainstream in LLM training. However, as model scales expand, traditional optimizers have certain limitations in matrix orthogonalization and gradient update directions.

    The next-generation architecture adopts a hybrid optimization strategy combining Muon and AdamW during training. The Muon optimizer, based on the concept of matrix orthogonalization, provides a more stable update direction for weight matrices, reducing oscillations during training. By applying Muon to parts of the backbone network suitable for matrix updates while retaining AdamW for other parts, this hybrid strategy leverages Muon’s advantages in deep network feature alignment while preserving AdamW’s stability when handling non-matrix parameters. This significantly enhances the convergence efficiency and final performance of LLM pre-training.

    5. Conclusion and Cloud Deployment Outlook

    From the deep integration of linear attention and sparse attention, to the structural innovation of the four-branch gated residual, and the introduction of the N-gram memory externalization and hybrid optimizer, the next-generation LLM architecture preview demonstrates a high level of engineering design and academic foresight. These improvements not only break through the computing power bottlenecks of long-context inference but also significantly improve the model’s parameter utilization.

    For enterprise applications, these architectural evolutions also impose new requirements on underlying computing power infrastructure. When deploying such novel LLMs in the cloud, developers need to focus on the allocation mechanism of GPU memory bandwidth, especially the optimization of the KV Cache and the memory footprint of the N-gram Embedding. By leveraging general cloud-native container platforms and efficient distributed inference frameworks, enterprises can better schedule heterogeneous computing power, fully exploiting the linear scaling advantages of the sparse attention mechanism. Furthermore, combining object storage services to achieve rapid loading and version management of the N-gram knowledge base will become an important practical direction for the engineering implementation of future LLMs.