From GPT-2 to Kimi K3: Seven Years of Architecture Upgrades That Go Far Beyond Parameter Count
Kimi K3's architecture is a live catalog of the design constraints that now dominate large-model engineering. Understanding why each component exists, from DeltaNet's write corrections to AttnRes's depth-wise retrieval, is directly useful for anyone building or fine-tuning models that must handle million-token contexts without quadratic compute.
A 48-hour deep read of Kimi K3's code and eight papers traces every architectural leap from GPT-2's 124M-parameter decoder-only stack to a 2.8T-parameter MoE model. The path runs through linear attention, DeltaNet's targeted memory updates, gated decay, and Kimi Linear's per-channel forgetting, before arriving at K3's hybrid design: Kimi Delta Attention layers for constant-size recurrent state, interspersed Multi-head Latent Attention layers for full-context Softmax retrieval.
K3 also introduces AttnRes, a chunked attention residual that lets later layers selectively pull representations from earlier depths, countering information dilution in the residual stream. The model runs 898 experts (two shared, 896 routed with top-16 selection) in a compressed latent space, uses the SiTU activation, and applies gated MLA to control how much retrieved context enters the forward pass.
The core insight is that every capacity increase targets a specific mathematical bottleneck. Linear attention's cumulative writes cause interference; DeltaNet adds targeted overwrites. DeltaNet can't forget broadly; gating adds decay. Scalar decay is too coarse; Kimi Linear makes it per-channel. Fixed-state memory discards information; MLA and AttnRes retrieve it from context and depth.
Scaling laws hold, but the architecture lineage shows that capacity must be added in forms the system can actually exploit. Kimi K3's per-channel decay and depth-wise attention are not just bigger parameters; they are new degrees of freedom that address precise mathematical limits.
The alternating KDA/MLA design is a pragmatic admission that no single attention mechanism is optimal. Fixed-state recurrence is efficient but lossy; Softmax retrieval is expensive but precise. The hybrid approach pays the cost of both but gets the benefits of each where they matter most.
AttnRes's 2% latency penalty for a 1.25x compute advantage is a tradeoff that only makes sense at extreme scale. Smaller models would not amortize the overhead, which is why the technique appears only now.
The SiTU activation's 3x slowdown without fused kernels is a reminder that architecture papers and production inference live in different worlds. A mathematically superior activation is worthless if it cannot be made fast on real hardware.