Reproduce “Kimi Linear: An Expressive, Efficient Attention Architecture” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Kimi Team, Yu Zhang, Zongyu Lin, Xingcheng Yao, Jiaxi Hu, Fanqing Meng, Chengyin Liu, Xin Men and 52 more

Kimi Linear tests a hybrid language model for long, decoding-heavy work. It uses Kimi Delta Attention, which stores a selective, channel-wise recurrent memory, and periodic global Multi-Head Latent Attention layers. In matched 1.4T-token training, it reaches 84.3 versus 81.3 for full-attention MLA on RULER at 128k context, but trails MLA on LongBench V2 and Frames.

Key insights

  • Fine-grained, channel-wise gating in linear attention (KDA) significantly enhances expressivity and memory control, outperforming previous linear attention variants on synthetic tasks.
  • A strategic hybrid architecture, combining efficient linear attention with selective full attention, can overcome the quality limitations of purely linear models while providing substantial efficiency gains.
  • Delegating positional encoding responsibilities entirely to the linear attention component allows for simplified full attention layers (MLA with NoPE) and improves long-context robustness.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.