@AI_Whisper_X: Reposting Su Jianlin's review of the K3 architecture. In one sentence, K3 = KDA + MLA + Stable LatentMoE + AttnRes. The whole design isn't about showing off; the core is making trade-offs among model performance, computational efficiency, and training stability. Here's a brief explanation: KD…
Summary
Su Jianlin reviews the K3 architecture, focusing on the combination of KDA + MLA + Stable LatentMoE + AttnRes. He explains the design trade-offs, MoE stability improvements, why MLA was kept, and the relationship between DSV4 and MLA.
View Cached Full Text
Cached at: 08/05/26, 08:21 AM
Sharing Su Jianlin’s review of the K3 architecture.
In one sentence, K3 = KDA + MLA + Stable LatentMoE + AttnRes. The overall design isn’t flashy; the core is striking a trade-off among model quality, computational efficiency, and training stability.
Here’s a quick explanation:
- KDA: a linear attention variant
- MLA: a full attention variant with small KV cache
- Stable LatentMoE: a MoE approach with stability improvements over LatentMoE
- AttnRes: uses learnable cross-layer attention to replace fixed equal-weight residual summation
A few interesting points:
-
K3 uses both KDA and MLA. Also, training still uses the Moonlight version of the Muon optimizer, but the attention weights now use Per-Head Muon, optimizing each head independently. Su says this doesn’t directly improve performance; it’s mainly more reasonable mathematically and architecturally: heads are inherently relatively independent and shouldn’t be coupled together during optimization.
-
Addressing the “easy to blow up” problem with MoE.
LatentMoE first reduces dimensionality, then uses more experts, and finally projects back up, achieving slightly better results at roughly the same training/inference cost. However, the successive matrix projections also make training more prone to numerical instability.
K3 replaces SwiGLU with SiTU-GLU, using softcap to suppress abnormal activations; it also adds an RMS Norm before the LatentMoE up-projection. This norm doesn’t just make training more stable—when validation loss is roughly the same, certain benchmarks consistently degrade without it.
(There are tons of technical details here; read Su’s original post if interested.)
- On MLA
It looks like DSV4 has switched to a new design, so why is K3 still using MLA? Su’s answer: currently, MLA is still hard to fully beat. In training it has the MHA form, and during inference it has a small KV cache; given fixed training cost and KV cache budget, MLA remains nearly optimal.
Its problem is that it’s not very friendly to MTP (speculative decoding). MTP’s idea is to “trade compute for speed,” while MLA itself is already compute-heavy during decoding. Adding MTP on top means the two compete for compute.
Switching to other options also has costs. For example, switching to GQA8 with 128+128 gives results that struggle to beat MLA, and the KV cache is more than three times that of MLA; switching to MFA with 256+256 (essentially MQA) raises training and prefill costs.
Currently, no simple attention design can simultaneously cover quality, training cost, prefill, KV cache, and decoding compute. In the KDA+MLA hybrid architecture, some of MLA’s problems are alleviated, so K3 ultimately chose MLA.
- Su believes DSV4 hasn’t truly “abandoned MLA” either.
DSV4 appears to have redesigned attention, but underneath there are still traces of MLA. It uses MQA with head_dims=512 and K=V, which is exactly MLA’s inference-time form; combined with Sparse + Compress, the former reduces compute and the latter further compresses the KV cache while also reducing compute.
The direction is aggressive, but the infra is also more complex.
- K3’s MLA can drop RoPE because KDA already implicitly provides a generalized form of positional information.
This only applies to the KDA+MLA hybrid structure; for a full-MLA model like K2, dropping RoPE directly still significantly hurts performance.
It seems Su’s real point is: there are few free lunches in large-model architecture. K3’s design philosophy isn’t to find a new architecture that crushes everything, but to find a currently suitable combination among quality, training cost, prefill, decoding, KV cache, and stability.
Su’s original post contains a lot more technical content and is well worth reading.
Original post: https://kexue.fm/archives/11848
Similar Articles
Implementing Kimi K3 from scratch in PyTorch [P]
This paper details the architecture of the Kimi K3 model (featuring 2.8 trillion parameters and a 1 million token context) released by Moonshot AI, and demonstrates how to implement its seven core innovations from scratch using PyTorch, including KDA recurrent attention, gated MLA, and stable latent MoE.
@qingke_ai: https://x.com/qingke_ai/status/2079035914740019638
Using NVIDIA's Nemotron 3 Super and Moonshot AI's Kimi K3 as examples, this article analyzes how the LatentMoE architecture overcomes the efficiency bottleneck of traditional MoE by compressing the Expert computation dimension, and points out that this is a turning point for the next generation of MoE architectures.
New model from Telperion: Qwen3.8-27B-MLA & Qwen3.8-27B-GLA-g2. 4x smaller KV cache, smarter, and more efficient reasoning.
Telperion 发布了 Qwen3.8-27B 的潜在注意力(MLA 与 GLA-g2)变体,将 KV cache 压缩 4 倍,在消费级硬件上实现接近 4 倍的最大上下文或服务器端 4 倍并发,并在 SWE-bench Verified 上取得 +6.58% 的性能提升,同时减少约 20% 的推理 token 消耗。
@YichiZ03: 3-min explain AI Infra, Day 6 Today we will talk about KV Cache. As the essential of LLM inferencing, understanding the…
3-min explain AI Infra Day 6 介绍 KV Cache 机制,作为 LLM 推理的核心与后续优化策略的基础,并附带 Datawhale 与 RadixArk 联合推出的 zero-to-sglang 从零构建推理引擎教程。
@AI_Whisper_X: The gains from LLM model architectures have already been exhausted. I read an article about model architectures: with so many changes to LLM architectures since 2020, which ones actually help when evaluated under the same experimental setup? The author, Nikita Pavlichenko (formerly worked on JetBrains Mellum pretraining…
Nikita Pavlichenko, former head of pretraining for JetBrains Mellum, systematically evaluated LLM architecture changes since 2020 through 1,129 training experiments. He concluded that architectural gains had largely been exhausted by the DeepSeek-V3 generation, with fine-grained MoE and linear attention representing the most substantial advances, while the impact of training methods such as Muon and inference kernels is often underestimated.