Next-Generation LLM Architecture: How Sparse Attention and Gated Residuals Reshape Efficiency Boundaries

    This article examines a preview of a next-generation large-model architecture: a Mixture-of-Experts (MoE) model with about 125B total parameters, about 6B activated per token, and an external N-gram embedding knowledge base of about 51B parameters. It explains the design logic behind replacing full global attention with Query Sparsity Attention while keeping a 3:1 linear-to-global layer mix, introducing four-branch gated residuals, adding a sparse N-gram memory layer, and switching to a hybrid Muon + AdamW optimizer. It also outlines implications for inference-side sparse operators, KV-cache management, and training frameworks that support heterogeneous optimizers.

    The open-source community has another significant model release: a team has introduced a preview of a next-generation architecture with about 125B total parameters and about 6B activated parameters per token, built as a Mixture-of-Experts (MoE) model. It also adds an external N-gram embedding knowledge base of about 51B parameters. The “Next” suffix indicates that this is not a routine iteration of an existing series, but a preview of the next-generation architecture. The model weights are available on an open-source model hosting platform. This article systematically breaks down its architectural changes, compares them with current industry approaches, and analyzes the technical logic behind these adjustments.

    1. Overall Architecture: What Changed and What Stayed the Same

    Compared with current mainstream hybrid-attention architectures, the overall adjustments in this generation can be summarized across the following areas:

    1. The linear attention route is unchanged: Gated DeltaNet (GDN) remains the core linear attention component.
    2. The global attention layer is slimmed down: the combination changes from “linear attention + full gated attention” to “linear attention + sparse attention (Query Sparsity Attention, QSA)”, while the 3:1 inter-layer mixing ratio remains unchanged. The main modification targets the global attention layer.
    3. The residual structure is upgraded: the traditional single-path Pre-Norm residual is upgraded to a four-branch Gated Residual, expanding a single information channel into multiple cross-layer information channels.
    4. An external memory layer is added: a single N-gram Embedding layer is added at a specific layer (layer 2), introducing about 51B additional parameters. This expands model memory capacity without significantly increasing per-token backbone computation.
    5. The training optimizer is changed: AdamW is replaced by a hybrid Muon + AdamW approach.

    Each item is discussed below.

    2. Mixing Linear Attention and Sparse Attention: Why 3:1 Is a Golden Ratio

    Pure linear attention offers near-linear computation and high inference efficiency, but it has a known weakness: state compression is lossy, and long-range tasks can suffer from information loss or even capability collapse. The industry consensus is to use a hybrid approach of “linear attention + global attention” so the two complement each other.

    In this generation:

    • GDN layers handle “compression and transfer”: they continuously compress historical context at near-linear computational cost and maintain a fixed-size hidden state, which naturally fits long-context and streaming inference.
    • Global attention layers handle “precise lookback”: they appear once every three layers (the 3:1 ratio) and directly access the original token sequence, supplementing the linear state memory with precise retrieval capabilities—for example, quoting specific numbers from the source text or copying long passages.

    The key change in this generation is replacing the global attention layer’s full gated attention with sparse attention (Query Sparsity Attention). The motivation is straightforward: the role of global layers in the overall network is “spot-checking and verification”, not carrying all information interaction. Letting each query perform attention computation only on a subset of keys/values can significantly reduce memory usage and computational overhead in attention layers with almost no loss in retrieval accuracy. This design follows the same logic as Mixture-of-Experts—spending expensive computation only where it is most needed.

    1. Forward flow (illustrative):
    2. Layer 1-3: GDN → GDN → GDN (linear state compression)
    3. Layer 4: Sparse Attention (sparse exact lookback)
    4. Layer 5-7: GDN → GDN → GDN
    5. Layer 8: Sparse Attention
    6. ...

    3. Four-Branch Gated Residual: From a Single Lane to a Multi-Level Interchange

    In a traditional Transformer, each layer output is “Pre-Norm + single-path residual addition”: x = x + f(Norm(x)). This structure is simple and stable, but information has only one channel between layers. In deep networks, it can lead to representation homogenization and reduced gradient propagation efficiency.

    The new architecture introduces a four-branch gated residual, which can be understood as upgrading a single-lane road into a multi-level interchange:

    • Multi-branch parallelism: different branches maintain their own information flows. For example, a direct branch preserves the original representation, while several transformation branches extract information at different granularities or abstraction levels.
    • Learnable gating: the fusion weights of each branch are dynamically determined by a gating network, allowing the model to learn which information should be strengthened or suppressed at which layers.
    • Cross-layer information channels: compared with simple layer-by-layer addition, the multi-branch structure provides more propagation paths for gradients and features, alleviating optimization bottlenecks in deep networks.

    From an engineering perspective, the parameter and computation overhead of this type of change is small (gating uses only low-rank linear layers), but the benefits for training stability and final accuracy in deep models are clear. It is a typical cost-effective modification.

    4. External 51B N-gram Embedding: Trading Parameters for Memory, Not Compute

    This is one of the most notable innovations in this generation. The model embeds a single-layer N-gram Embedding table at layer 2, with about 51B parameters—nearly one-third of the total parameter count. However, its working mechanism is completely different from the backbone network:

    • Lookup-based activation: N-gram embeddings directly look up local fragments of the token sequence (n-grams). Only the few rows that are hit participate in computation, an extremely sparse parameter access pattern.
    • Almost no increase in backbone FLOPs: similar to MoE expert routing, each token actually reads and writes only a very small fraction of parameters, so per-token computation is almost unchanged.
    • Mitigating the “parameters as knowledge” bottleneck: the 6B active parameters in the backbone have limited knowledge capacity. The external memory layer acts like an end-to-end trainable “external dictionary” for the model, improving the storage and recall of factual knowledge.

    This type of design is conceptually related to industry exploration of external retrieval/memory, but the difference is that it is a trainable end-to-end component rather than an external system assembled at inference time. Knowledge is optimized together with the backbone in parameter form.

    5. Optimizer: Hybrid Muon + AdamW Training

    Changes on the training side are equally important. Traditional AdamW has been thoroughly validated on very large-scale models, but in recent years Muon-style optimizers (momentum updates based on matrix orthogonalization) have shown better training efficiency. The new architecture adopts a hybrid strategy—selecting a more suitable optimizer for different parameter modules (for example, Muon for matrix-shaped weights and AdamW for embeddings and scalar parameters), balancing convergence speed and stability. For training tasks with hundreds of billions of total parameters, efficiency improvements at the optimizer level can translate directly into considerable compute savings.

    6. Summary and Outlook

    Overall, this preview architecture sends clear signals about next-generation model design:

    • Hybrid attention remains the main line, but global layers will become increasingly “lightweight”, and sparsification is a clear direction.
    • Residual structures are beginning to be redesigned, with multi-branch gating providing better information and gradient paths for very deep networks.
    • Parameters and computation are further decoupled, and external sparse memory layers make “large parameters, small computation” a new paradigm for expanding knowledge capacity.
    • Training infrastructure continues to evolve, and optimizer-level innovation is becoming an important lever for reducing cost and improving efficiency.

    For teams planning large-model training or inference infrastructure, these trends mean that the inference side needs more efficient sparse operators and KV-cache management capabilities, while the training side needs framework support for heterogeneous optimizers. Regardless of which route ultimately wins, the combined framework of “linear attention + sparse exact retrieval + external memory” deserves in-depth study by every developer following the evolution of large models.