Next-Generation LLM Architectures: From Sparse Experts to Hybrid Attention

    An engineering-focused look at next-generation large language model architectures, covering fine-grained mixture-of-experts routing, manifold-constrained hyper-connections, and compressed hybrid attention. The article explains how these designs interact with low-precision training, distributed optimization, heterogeneous KV caches, and post-training infrastructure—and why architectural improvements require full-stack coordination to deliver practical benefits.

    Next-Generation LLM Architectures: From Sparse Experts to Hybrid Attention

    Technical reports on next-generation open-source large language models typically address four areas: model architecture, training systems, inference systems, and post-training infrastructure. This article uses that framework to examine the key design choices, focusing on why they matter, which bottlenecks they address, and how they translate into engineering practice.

    1. Model Architecture: Rebalancing Sparsity and Expressive Capacity

    1.1 Fine-Grained Mixture of Experts

    The architecture follows a sparse mixture-of-experts (MoE) design that combines fine-grained routed experts with shared experts. Shared experts handle general knowledge needed by every token, while routed experts are selected dynamically for individual tokens. This decouples total parameter count from the amount of computation performed per token.

    Compared with the previous generation, four changes stand out:

    1. Replacing Sigmoid with Softplus for expert affinity scores. Sigmoid is bounded and saturates at both extremes, which can weaken gradients and reduce the separation between expert scores. Softplus is smooth and unbounded above, allowing relative expert affinities to be optimized more effectively and supporting more stable routing decisions.

    2. Load balancing primarily without an auxiliary loss. Conventional auxiliary balancing losses can distort the main training objective, creating tension between balanced utilization and model quality. This design relies primarily on an auxiliary-loss-free balancing mechanism driven by routing statistics. A lightweight sequence-level balancing loss remains to prevent extreme imbalance within an individual sequence.

    3. Removing the routing target-node limit. The architecture removes a hard restriction on routing destinations, giving the router greater freedom to choose where tokens are sent according to affinity scores. The intent is to reduce imposed constraints on how model capacity is used.

    4. Using hash-routed MoE in the initial layers. Dense feed-forward networks in the shallow layers are replaced with sparse layers whose routing is determined by predefined hash functions and token IDs. Early-layer representations are not yet stable, so learned routing can collapse or fluctuate. Deterministic hash routing retains the benefits of sparsity while avoiding this source of training instability.

    1.2 Multi-Token Prediction

    The multi-token prediction (MTP) module retains a design validated in the previous generation: predicting multiple future tokens at each position.

    During training, MTP provides denser supervision and helps the model learn longer-range planning. During inference, it can serve as a draft module for speculative decoding, reducing decoding latency while preserving the output distribution through verification.

    Keeping this component unchanged reflects a practical engineering principle: proven components do not need to be redesigned simply because other parts of the architecture are evolving.

    1.3 Manifold-Constrained Hyper-Connections

    A conventional Transformer residual connection provides an identity path. In deep networks, maintaining stable signal scale and propagation across layers becomes increasingly important.

    Standard hyper-connections expand the residual stream width by a factor of n and use learnable connection matrices to mix information across multiple residual paths. Manifold-constrained hyper-connections (mHC) go further by constraining the residual mapping to a specific manifold.

    The design addresses three concerns:

    • Stability: Constraints limit the freedom of residual components, helping prevent signals from exploding or fading across layers.
    • Expressive capacity: The manifold-based parameterization still allows dynamic combinations of residual paths rather than reducing them to simple identity additions.
    • Efficiency: The reported implementation keeps memory and computational overhead manageable enough for very large models.

    The underlying change is to make residual connectivity learnable but constrained, rather than treating it as a fixed structural element.

    1.4 Hybrid Attention for Extremely Long Contexts

    Long-context processing faces two related bottlenecks: KV cache memory grows linearly with sequence length, while full attention computation grows quadratically.

    The architecture addresses these costs with a two-stage compression approach:

    • Compressed Sparse Attention (CSA): Keys and values are first compressed along the channel dimension. Sparse block selection then operates on the compressed representations, retaining only highly relevant KV blocks for exact attention.
    • Heavily Compressed Attention (HCA): The selected keys and values undergo another compression stage, further reducing the cost of exact attention.

    Together, the two stages form a funnel: coarse selection followed by focused computation. This allows extremely long inputs to be processed at substantially lower cost.

    The trade-off is a heterogeneous KV cache structure, which requires the dual-region inference design discussed later.

    2. Training Systems: Balancing Throughput, Memory, and Precision

    2.1 Overlapping Expert-Parallel Communication and Computation

    Expert parallelism (EP) introduces substantial all-to-all communication in MoE models. A central throughput optimization is to divide communication by expert or microbatch and overlap it with forward and backward computation.

    While dispatch or combine communication for one microbatch is in progress, the GPU can compute another microbatch. The communication–computation overlap approach described in the report, similar in spirit to Comet, uses fine-grained partitioning and scheduling to hide communication behind computation. This improves effective GPU utilization in MoE layers.

    2.2 MXFP4 Quantization-Aware Training

    MXFP4 is a 4-bit floating-point representation based on a microscaling block format, with small groups of values sharing a scale factor.

    Introducing MXFP4 quantization-aware training (QAT) serves several purposes:

    • Lower weight storage and communication costs: MoE expert weights are large, and 4-bit representations can substantially reduce their memory footprint and associated data-transfer costs.
    • Preserve accuracy: Block-level scaling accommodates weights with different dynamic ranges. The reported analysis of dequantized weights indicates that quantization can approximate higher-precision behavior closely enough to leave training loss largely unaffected.
    • Limit quantization to suitable components: Precision-sensitive modules, including attention and normalization, remain in higher precision. QAT is applied selectively to suitable projection and feed-forward weights.

    The goal is not uniform low precision across the entire model, but targeted compression where the memory and bandwidth benefits justify it.

    2.3 Combining Muon with Zero-Redundancy Optimization

    Muon uses orthogonalization of matrix updates to provide an approximation to second-order optimization behavior and is described as converging faster than conventional first-order methods.

    Integrating Muon with parameter sharding requires careful treatment of the different ownership patterns of dense and MoE parameters:

    • Dense parameters: When sharded along the data-parallel dimension, replicas have matching gradients, allowing conventional aggregation and sharding of optimizer state.
    • MoE expert parameters: Experts belong to specific devices and must be organized along the expert-parallel dimension. Optimizer states, gradients, and parameter shards must preserve the same mapping; otherwise, updates can be applied to mismatched state.

    The report illustrates the correct implementation under mixed sharding. This alignment is one of the most error-prone—and consequential—details in large-scale training with heterogeneous parallelism.

    2.4 Context Parallelism and Flexible Activation Checkpointing

    Two additional techniques address the memory demands of long-context training.

    Context parallelism (CP) partitions a long sequence across multiple devices along the sequence dimension. Each query partition must access the keys and values within its permitted attention range, requiring inter-device KV exchange through ring communication or synchronization.

    CSA and HCA make this access pattern more complicated. Selected KV blocks may reside on other devices, so dedicated scheduling is needed to preserve both correctness and efficiency.

    Flexible activation checkpointing replaces a single global recomputation policy with layer-specific decisions. Dense layers, MoE layers, and attention layers can selectively save or recompute activations according to their different memory costs. This allows a more targeted trade-off between memory consumption and additional computation.

    3. Inference Systems: Managing Heterogeneous KV Caches

    3.1 Dual-Region KV Cache Design

    Hybrid attention creates two kinds of cached state within the same sequence: a compressed state cache produced by CSA and a conventional KV cache used for exact attention.

    These caches differ in size, lifetime, and access pattern. The inference system manages them in separate regions, preventing interference between their allocation and access requirements. The separation also gives sparse attention kernels a predictable data layout.

    3.2 Co-Designing Sparse Attention Kernels and Scheduling

    CSA and HCA produce irregular sparsity patterns. General-purpose kernels that assume regular block layouts can therefore suffer from inefficient memory access.

    Sparse attention kernels need to be designed together with the upper-level scheduler. With advance knowledge of each layer’s selected blocks, kernels can organize data access and computation around those blocks.

    The objective is to turn irregular global memory access into more regular block-level operations wherever possible, improving throughput without sacrificing latency.

    3.3 Disk-Backed KV Caches and Sliding-Window Storage

    For sufficiently long contexts, the KV cache may exceed available memory, requiring some state to be offloaded to disk. Three common storage strategies offer different trade-offs:

    1. Store the full cache on disk and read on demand. This offers ample capacity and a relatively simple implementation, but the first access to a long context can incur high latency.

    2. Use a hot memory tier and a cold disk tier. Recent context remains in memory while older segments are stored on disk. Performance is strong when the memory tier has a high hit rate, but the system must maintain tiering metadata and prefetch logic.

    3. Use paged or segmented caching with shared storage. Cache pages move between memory and disk as needed. This supports prefix sharing across requests, but introduces the highest implementation complexity and metadata overhead.

    The appropriate choice depends on context-length distribution, request concurrency, and hardware bandwidth.

    4. Post-Training Infrastructure

    4.1 On-Policy Distillation

    On-policy distillation (OPD) asks a teacher model to evaluate sequences generated by the student’s current policy, rather than distilling only from a fixed dataset.

    Student-generated rollouts are passed to the teacher, which returns token-level distributions as soft targets. Supervision therefore remains aligned with the student’s own output distribution, reducing the distribution mismatch that can arise when high-quality teacher data is difficult for the student to use effectively.

    The workflow has four stages:

    1. Generate student rollouts.
    2. Run teacher forward passes.
    3. Align the teacher and student distributions.
    4. Backpropagate the training signal.

    This workflow can be deployed separately from the reinforcement learning loop.

    4.2 FP4 Integration and Full-Vocabulary Teacher Scheduling

    FP4 quantization integration incorporates low-precision inference requirements into training and post-training. The aim is to preserve capabilities after quantized deployment rather than applying quantization only after training and risking a sharp quality drop.

    Full-vocabulary teacher scheduling addresses the memory cost of producing teacher distributions over the entire vocabulary. The scheduler dynamically arranges teacher forward-pass tasks according to peak memory requirements, avoiding concurrent workloads that would cause out-of-memory errors while maintaining GPU utilization.

    4.3 Preemptible, Fault-Tolerant Rollouts and Million-Token RL

    Post-training infrastructure must also support resource sharing, recovery, and extremely long sequences.

    • Preemptible, fault-tolerant rollout services: Rollout generation shares resources with training computation. Higher-priority training jobs can preempt rollout tasks, which can resume from checkpoints after failures. This improves flexibility and resource utilization.
    • Scaling reinforcement learning to million-token sequences: Both rollout generation and reward computation must handle extremely long samples. The infrastructure therefore needs sample sharding, asynchronous collection, and scheduling across heterogeneous compute resources.
    • Sandbox infrastructure: Code-oriented tasks require isolated execution environments with controls over network access, filesystem access, and resource quotas. These controls support safe and reproducible execution.

    5. Conclusion

    The architecture follows a consistent progression. Fine-grained experts, manifold-constrained hyper-connections, and two-stage compressed attention seek a better balance among expressive capacity, stability, and long-context cost.

    The training system addresses throughput and memory bottlenecks through communication overlap, FP4 quantization-aware training, and coordinated optimizer and sharding designs. The inference system adapts cache management and attention kernels to heterogeneous state and sparse access patterns. Post-training infrastructure uses on-policy distillation and fault-tolerant rollout services to support high-quality alignment.

    For engineering teams, the central lesson is that architectural innovation must be co-designed with training, inference, and post-training systems. Improvements to a single component rarely translate into end-to-end gains without coordinated changes across the stack.