GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

Kimi Linear: An Expressive, Efficient Attention Architecture

Kimi Linear mixes channel-wise recurrent memory with periodic full attention. Learn the gated delta update, hybrid state costs and the limits of its speed claims.

Breakdown by FDE Interviews · 9 min read · Updated

About the original · 2025
AUTHORS
Kimi Team, Zhang, Lin, Yao, et al.
FROM
Moonshot AI
PUBLISHED
Oct 2025 · arXiv preprint
IN THIS BREAKDOWN · 10 SECTIONS

You can read 17% of this breakdown.

01

The paper in one minute

Kimi Linear combines recurrent attention with periodic full-attention layers. Its recurrent component, Kimi Delta Attention, updates a fixed-size matrix state rather than retaining a separate key and value for every past token. Channel-wise gates let different parts of that state decay at different rates.

The delta rule then corrects the state's prediction for a new key-value association. This is more selective than simply adding every association forever, and more flexible than applying one shared forget rate to an entire head. It still uses finite state, so the full model retains global attention to help with precise retrieval.

The reported architecture repeats three KDA layers followed by one full Multi-Head Latent Attention layer. In matched experiments, it improves several quality measures while reducing long-context state and decoding costs. Some individual tasks regress, so the abstract's broad superiority claim should be read alongside the actual tables.

This page reviews the November 2025 revision of the October paper. The official repository links the kernels, integration and released checkpoints. The key deployment question is whether the hybrid's quality and state savings help the customer's request distribution, not whether “linear attention” guarantees a fixed-memory service.

THE IDEA, VISUALLY
FORGET DIFFERENT CHANNELS AT DIFFERENT RATES Synthetic state: first association = 4, second = 9. Update the second toward 5 with beta = 0.5. Gate policy Decay gates First after update Second Channel-wise 1.0 / 0.1 4.00 2.95 Uniform fast decay 0.1 / 0.1 0.40 2.95 Uniform retention 1.0 / 1.0 4.00 7.00 Fine-grained gates can retain one channel while decaying another. The full model learns these gates and retains periodic global-attention layers. Original recurrence example, not evidence that arbitrary semantic facts map cleanly to individual channels.
Our two-channel example isolates the effect of supplied decay gates before the delta-rule correction. It illustrates the recurrence, not how a trained model assigns real-world facts to channels.
Research notes: the problem, approach and results
3:1

KDA-to-full-MLA layer ratio, section 4

48B / 3B

total / active parameters, section 5.4

52.2 → 54.5

MLA → Kimi Linear long-context mean, Table 5

THE PROBLEM

Full attention retains growing token-level state, while purely recurrent alternatives can lose precise long-history information.

THE IDEA

Use channel-wise gated delta updates in most layers and retain periodic global-attention layers.

THE RESULT

Matched experiments improve several quality measures and long-context efficiency, with task-level exceptions and configuration-dependent speedups.

02

Why it matters to an FDE

Long agent trajectories can make token-level attention state expensive. A recurrent layer offers bounded state per head, which can reduce memory traffic during decoding. That can be useful when the application generates long outputs or keeps many active sequences.

But an agent may also need to recover an exact identifier or obey an earlier exception. Finite-state compression does not guarantee perfect recall of arbitrary history. Kimi Linear's hybrid design acknowledges this tension by preserving some full-attention layers instead of replacing every layer with recurrence.

Use attention fundamentals and KV-cache accounting to understand the mechanism, then evaluate exact retrieval and state tracking alongside ordinary answer quality. The architecture is valuable when its complete tradeoff fits the workload, including interruptions, prefix reuse and the inference runtime's support for recurrent state.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 199 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>2 runnable code blocks
  • ▦3 results tables
  1. 03Key takeaways

    Six distinctions for reasoning about gated recurrence, hybrid memory and measured performance

    Free account
  2. 04How it works

    Follow channel decay, prediction-error correction and periodic global attention

    Premium
  3. 05The numbers that matter

    Keep training scale, quality exceptions and throughput conditions attached to each figure

    Premium
  4. 06Try it yourself

    Execute the gated delta update and verify it against the independent matrix formula

    Premium
  5. 07Where it breaks

    Recognize finite-state limits, artifact differences and incomplete serving abstractions

    Premium
  6. 08Using it on a deployment

    Evaluate a hybrid model on long trajectories with explicit correctness and recovery tests

    Premium
  7. 09Interview angles

    Explain the hybrid's benefits without calling its complete memory constant

    Premium
Back to the paper library →