Abstract

How 2026 frontier models break the symmetric Decoder-only and Pre-RMSNorm mold: DeepSeek-V4.1-Flash asymmetric CED and 890 B/tok KV compression, Kimi K3 Attention Residuals, Qwen3.8-Next 4-branch gated residuals, and Muon orthogonalized momentum.

1.Why symmetric Decoder-only + Pre-RMSNorm hit a wall#

Between 2018 and 2024, frontier language models converged on a single template: a uniform stack of symmetric Decoder-only blocks connected by a Pre-RMSNorm residual bus (modern-transformer-evolution). Under 100K-to-1M-token agentic workloads—where a coding or deep-research agent ingests an entire repository and emits only a few hundred tool-call tokens—that template breaks along three hardware axes:

  1. Prefill-to-Decode Asymmetry (1000 : 1): A symmetric Decoder-only model forces every input token through the exact same heavy active parameter budget required for complex next-token reasoning.
  2. Depth-Wise Representation Dilution: Beyond 80–10080\text{--}100 layers, summing every layer's output onto one additive residual bus inflates deep-layer activation norms and drowns out sharp lexical features from early layers.
  3. Ill-Conditioned Second-Order Optimizer Overhead: AdamW tracks two FP32/BF16 states per parameter while leaving gradient updates dominated by top singular directions.

Late-2026 open-weight flagships—DeepSeek-V4.1-Flash (arXiv:2609.19969[5][5] · DeepSeek-V4.1-Flash (CED) · 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache CompressionOpen arXiv:2609.19969 ↗), Qwen3.8-Flash-Next (arXiv:2608.30320[4][4] · Qwen3.8-Next · 2026On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training StabilityOpen arXiv:2608.30320 ↗), Kimi K3 (arXiv:2607.24653[3][3] · Kimi K3 (AttnRes) · 2026Kimi K3: Open Frontier IntelligenceOpen arXiv:2607.24653 ↗), and Nemotron 3.5 (arXiv:2610.38095[7][7] · Nemotron 3.5 · 2026Nemotron 3.5 Super and Lightning: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Models for Agentic AIOpen arXiv:2610.38095 ↗)—independently converged on five coordinated mutations:

Architectural Axis DeepSeek-V4.1-Flash Qwen3.8-Flash-Next Kimi K3 / K3.1 Pro Nemotron 3.5 Super
Scale & Active Ratio 552B backbone + 196B Engram; 8B Prefill / 16B Decode 125B MoE + 51B N-gram table; 6B active / token 2.78T total / 104.2B active; 93 layers, 896 experts 120B total / 12B active (Lightning: 30B-A3B)
Backbone Topology Asymmetric CED (20 Causal Encoder + 20 Decoder layers) Hybrid linear-sparse Decoder-only Ultra-deep hybrid Decoder-only Mamba-2 + Attention hybrid MoE
Sequence Mixing CSA2 (cross-layer KV reuse + sparse indexer) + SWA replay Gated DeltaNet (GDN) + Qwen Sparse Attention (QSA) 3:1 hybrid: 3 KDA linear layers + 1 Gated MLA Mamba-2 SSM + grouped-query attention
Residual Bus Single-Pass mHC fused manifold hyper-connection 4-Branch Gated Residual (GR) Attention Residuals (AttnRes) along depth Scaled Pre-RMSNorm
Precision & Optimizer FP4 (E2M1) KV cache (890 B/tok) + Muon Muon + off-accelerator Host DRAM N-gram lookup MXFP4 weights + MXFP8 activations QAT + Muon FP8 / NVFP4 deployment-friendly quantization

2.Asymmetric CED and sub-kilobyte CSA2 KV compression#

DeepSeek-V4.1-Flash (arXiv:2609.19969[5][5] · DeepSeek-V4.1-Flash (CED) · 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache CompressionOpen arXiv:2609.19969 ↗) splits its 40-layer network into a Causal Encoder-Decoder (CED):

  • Causal Encoder (first 20 layers): Processes the entire prompt at 8B active parameters per token, distilling contextual representations into shared latent KV states. Once prefill finishes, the Encoder is never executed again during autoregressive decoding.
  • Autoregressive Decoder (last 20 layers): Concentrates 16B active parameters per token—doubling per-layer expert capacity exclusively for token-by-token reasoning and synthesis.

To push memory below 1 KB/token1\text{ KB/token}, CSA2 partitions layers into static roles (Full, Reindex, and Reuse). Only Full layers materialize and store compressed KV latents quantized to native FP4 (E2M1 with E4M3 block scales), while Reuse layers attend directly over the preceding Full layer's cached tensors at zero marginal KV bytes. Combined with SWA Bounded Replay—which drops sliding-window KV from SSD prefix caches and recomputes only the trailing suffix on cache hit—global HBM KV footprint drops to 890 Bytes/token (a 147×147\times reduction vs. Llama-3-8B's 131,072 B/tok, fitting a 1M1\text{M}-token trajectory in 0.83 GB0.83\text{ GB}).

In parallel, Qwen3.8-Next (arXiv:2608.30320[4][4] · Qwen3.8-Next · 2026On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training StabilityOpen arXiv:2608.30320 ↗) pairs Gated DeltaNet (St=αtSt−1(I−βtktkt⊤)+βtvtkt⊤S_t = \alpha_t S_{t-1}(I - \beta_t k_t k_t^\top) + \beta_t v_t k_t^\top) with sparse attention and offloads a 51B N-gram embedding table to Host DRAM via asynchronous prefetch—matching DeepSeek's 196B Engram lookup memory and cleanly separating compute parameters (MoE) from static memory parameters (off-accelerator lookup tables). Complex KDA (arXiv:2609.24797[6][6] · Complex KDA · 2026Complex KDA: Understanding and Enhancing the Expressivity of Kimi Delta AttentionOpen arXiv:2609.24797 ↗) extends rank-1 Delta updates into the complex eigenvalue domain so a single step can represent 2D state rotations for formal state-tracking.

Figure 1: Per-token KV cache compression down to 890 Bytes/token alongside Muon 5-step Newton-Schulz singular-value spectrum flattening.
Figure 1: Per-token KV cache compression down to 890 Bytes/token alongside Muon 5-step Newton-Schulz singular-value spectrum flattening.

3.Depth-wise AttnRes and 4-branch gated residuals#

When depth reaches 93 layers (Kimi K3, arXiv:2607.24653[3][3] · Kimi K3 (AttnRes) · 2026Kimi K3: Open Frontier IntelligenceOpen arXiv:2607.24653 ↗) or sparsity reaches 1:211:21 (Qwen3.8-Next, arXiv:2608.30320[4][4] · Qwen3.8-Next · 2026On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training StabilityOpen arXiv:2608.30320 ↗), standard x + f(RMSNorm(x)) residual addition dilutes early-layer signal and causes late-pretraining loss spikes. Both flagships replace blind summation with learned routing across the depth axis:

  1. Attention Residuals (AttnRes, Kimi K3): Layer ll carries a learned pseudo-query vector ql∈Rdq_l \in \mathbb{R}^d that computes softmax attention weights αl,i\alpha_{l,i} over historical layer outputs {h0,…,hl−1}\{h_0, \dots, h_{l-1}\}:
    x~l=∑i=0l−1αl,ihi,αl,i=exp⁡ ⁣(ql⊤k(hi)/d)∑j=0l−1exp⁡ ⁣(ql⊤k(hj)/d)\tilde{x}_l = \sum_{i=0}^{l-1} \alpha_{l, i} h_i, \qquad \alpha_{l, i} = \frac{\exp\!\big(q_l^\top k(h_i) / \sqrt{d}\big)}{\sum_{j=0}^{l-1} \exp\!\big(q_l^\top k(h_j) / \sqrt{d}\big)}
    (1)
  2. 4-Branch Gated Residual (GR, Qwen3.8-Next): Maintains M=4M = 4 parallel residual substreams X∈RB×S×4×H\mathbf{X} \in \mathbb{R}^{B \times S \times 4 \times H}. Each sublayer reads a softmax-gated mixture across the 4 streams and writes updates back through a bounded sigmoid gate β=2σ(Wwritey)/M\beta = 2\sigma(W_{\text{write}} y) / M.
python
class AttentionResidualRouter(nn.Module):
    """
    Depth-wise Attention Residuals (Kimi K3, arXiv:2607.24653; ARLoop, arXiv:2611.05234).
    Instead of summing all previous layers onto a single residual bus, a learned pseudo-query
    scores historical layer representations along the depth axis via softmax routing.
    """

    def __init__(self, hidden_size: int):
        super().__init__()
        self.pseudo_query = nn.Parameter(torch.randn(hidden_size) * 0.02)
        self.key_proj = nn.Linear(hidden_size, hidden_size, bias=False)
        self.scale = 1.0 / math.sqrt(hidden_size)

    def forward(self, layer_history: list[Tensor]) -> tuple[Tensor, Tensor]:
        stacked = torch.stack(layer_history, dim=2)  # [B, S, L_prev, H]
        keys = self.key_proj(stacked)
        logits = torch.einsum("bslh,h->bsl", keys, self.pseudo_query) * self.scale
        depth_weights = F.softmax(logits.float(), dim=-1).to(stacked.dtype)
        routed = torch.einsum("bsl,bslh->bsh", depth_weights, stacked)
        return routed, depth_weights.mean(dim=(0, 1))


class GatedResidual4Branch(nn.Module):
    """
    Four-branch Gated Residual stream (Qwen3.8-Next, arXiv:2608.30320).
    Maintains M=4 parallel residual substreams [B, S, 4, H], reading a gated combination
    before each sublayer and writing gated updates back to each branch.
    """

    def __init__(self, hidden_size: int, num_branches: int = 4):
        super().__init__()
        self.num_branches = num_branches
        self.read_gate = nn.Linear(hidden_size, num_branches, bias=False)
        self.write_gate = nn.Linear(hidden_size, num_branches, bias=False)

    def aggregate_for_sublayer(self, streams: Tensor) -> Tensor:
        mean_ctx = streams.mean(dim=2)
        alpha = F.softmax(self.read_gate(mean_ctx).float(), dim=-1).to(streams.dtype)
        return torch.einsum("bsm,bsmh->bsh", alpha, streams)

    def distribute_to_streams(self, streams: Tensor, sublayer_out: Tensor) -> Tensor:
        beta = torch.sigmoid(self.write_gate(sublayer_out)) * (2.0 / self.num_branches)
        return streams + beta.unsqueeze(-1) * sublayer_out.unsqueeze(2)

4.Muon 5-step Newton-Schulz and Blackwell FP4 co-design#

On NVIDIA Blackwell (B200/GB200), 4-bit Tensor Core MMA throughput scales far faster than Special Function Units (SFU) that compute exp2, turning Softmax exponentials into a kernel bottleneck (FlashAttention-4, arXiv:2603.05451[2][2] · FlashAttention-4 · 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware ScalingOpen arXiv:2603.05451 ↗, mitigates this via polynomial exp emulation on CUDA cores and asynchronous TMEM pipelines). At the optimizer level, AdamW's second-moment variance accumulator struggles with low-bit quantization and wastes HBM.

Muon (arXiv:2502.16982[1][1] · Muon Scaling · 2025Muon is Scalable for LLM TrainingOpen arXiv:2502.16982 ↗), adopted across DeepSeek-V4.1, Qwen3.8-Next, and Kimi K3, replaces diagonal preconditioning on 2D weight matrices with matrix orthogonalization: mapping the momentum matrix G=UΣV⊤G = U \Sigma V^\top toward its nearest semi-orthogonal polar factor UV⊤U V^\top so every singular subspace receives equal update magnitude.

Given a 2D gradient or momentum matrix G∈Rm×nG \in \mathbb{R}^{m \times n} (transposed if m>nm > n so X0∈Rr×cX_0 \in \mathbb{R}^{r \times c} with r≤cr \le c), first normalize by Frobenius norm X0=G/(∥G∥F+ϵ)X_0 = G / (\|G\|_F + \epsilon) so every singular value satisfies σi(X0)∈(0,1]\sigma_i(X_0) \in (0, 1]. Any odd polynomial p(X)=aX+b(XX⊤)X+c(XX⊤)2Xp(X) = a X + b (X X^\top) X + c (X X^\top)^2 X acts elementwise on the singular values while preserving singular vectors UU and VV:

p(UΣV⊤)=U(aΣ+bΣ3+cΣ5)V⊤p(U \Sigma V^\top) = U \big(a \Sigma + b \Sigma^3 + c \Sigma^5\big) V^\top
(2)

With minimax-tuned coefficients (a,b,c)=(3.4445,−4.7750,2.0315)(a, b, c) = (3.4445, -4.7750, 2.0315), iterating Xk+1=p(Xk)X_{k+1} = p(X_k) for k=0,…,4k = 0, \dots, 4 uses only pure Tensor Core GEMMs (zero SVD calls) to push small singular values rapidly toward 11 while contracting values above 11 back into (0.7,1.15)(0.7, 1.15). Finally, multiplying by the Moonlight RMS scale 0.2max⁡(m,n)0.2 \sqrt{\max(m, n)} matches AdamW's step-size variance across layer widths.

python
class AsymmetricCEDLayer(nn.Module):
    """
    Asymmetric Causal Encoder-Decoder (CED) layer with CSA2 cross-layer KV reuse
    (DeepSeek-V4.1-Flash, arXiv:2609.19969).
    - mode='full': projects and stores compressed KV state (simulated at FP4 = 0.5 B/elem).
    - mode='reuse': reuses the preceding full layer's KV cache with zero additional KV memory.
    """

    def __init__(self, hidden_size: int, ffn_dim: int, mode: str = "full"):
        super().__init__()
        if mode not in ("full", "reuse"):
            raise ValueError("mode must be 'full' or 'reuse'")
        self.mode = mode
        self.kv_dim = hidden_size // 4
        self.norm1 = nn.RMSNorm(hidden_size)
        self.wq = nn.Linear(hidden_size, self.kv_dim, bias=False)
        if mode == "full":
            self.wk = nn.Linear(hidden_size, self.kv_dim, bias=False)
            self.wv = nn.Linear(hidden_size, self.kv_dim, bias=False)
        self.wo = nn.Linear(self.kv_dim, hidden_size, bias=False)
        self.norm2 = nn.RMSNorm(hidden_size)
        self.ffn = nn.Sequential(
            nn.Linear(hidden_size, ffn_dim, bias=False),
            nn.SiLU(),
            nn.Linear(ffn_dim, hidden_size, bias=False),
        )

    def forward(
        self, x: Tensor, shared_kv: tuple[Tensor, Tensor] | None = None
    ) -> tuple[Tensor, tuple[Tensor, Tensor], int]:
        _, seq_len, _ = x.shape
        h = self.norm1(x)
        q = self.wq(h)
        if self.mode == "full":
            k, v = self.wk(h), self.wv(h)
            new_kv_bytes = int((k.numel() + v.numel()) * 0.5)
        else:
            if shared_kv is None:
                raise ValueError("reuse layer requires shared_kv from a preceding full layer")
            k, v = shared_kv
            new_kv_bytes = 0

        scores = torch.matmul(q, k.transpose(-2, -1)) / math.sqrt(self.kv_dim)
        mask = torch.triu(torch.full((seq_len, seq_len), float("-inf"), device=x.device), diagonal=1)
        attn = F.softmax((scores + mask).float(), dim=-1).to(x.dtype)
        x = x + self.wo(torch.matmul(attn, v))
        x = x + self.ffn(self.norm2(x))
        return x, (k, v), new_kv_bytes


def muon_newton_schulz_5step(grad: Tensor, steps: int = 5, eps: float = 1e-7) -> Tensor:
    """
    Muon 5-step Newton-Schulz matrix orthogonalization (arXiv:2502.16982).
    Applies the tuned quintic odd polynomial to flatten singular values toward 1,
    approximating the polar factor U @ V^T with Moonlight RMS scaling.
    """
    if grad.ndim != 2:
        raise ValueError("grad must be a 2D matrix")
    a, b, c = (3.4445, -4.7750, 2.0315)
    x = grad.float()
    transposed = x.size(0) > x.size(1)
    if transposed:
        x = x.T
    x = x / (x.norm() + eps)
    for _ in range(steps):
        gram = x @ x.T
        poly = b * gram + c * (gram @ gram)
        x = a * x + poly @ x
    if transposed:
        x = x.T
    scale = 0.2 * math.sqrt(max(grad.size(0), grad.size(1)))
    return x.to(grad.dtype) * scale

In our companion CPU verification (labs/llm/flagship-2026), AsymmetricCEDLayer confirms zero marginal KV bytes on Reuse layers with a 1:21:2 Encoder/Decoder FFN parameter ratio, while muon_newton_schulz_5step collapses an ill-conditioned gradient matrix (condition number ≈2000\approx 2000) by more than two orders of magnitude in five pure matrix multiplications.

5.References#

References

  1. [1]
  2. [2]
  3. [3]
  4. [4]
  5. [5]
  6. [6]
  7. [7]

Share