Linear Attention Architectures: Mechanisms, Trade-offs, and Cross-Layer Routing
Summary
This paper presents a comparative study of softmax attention and four recurrent linear-attention architectures: DeltaNet, Gated DeltaNet, Kimi Delta Attention, and Gated DeltaNet-2. It analyzes their expressivity, memory decay, erase/write control, training throughput, and implementation complexity using a common recurrent-memory notation. Experiments involved 350M-parameter models trained for 15B tokens, alongside larger DeltaNet runs at 1.3B and 3B parameters. Key findings from the 350M-parameter sweep include Kimi Delta Attention with Muon achieving the lowest final validation loss, while a pure Gated DeltaNet stack with AdamW showed the highest normalized training throughput. Hybrid stacks generally improved loss at a throughput cost, and Muon consistently outperformed AdamW in reducing validation loss. The study also introduces Cross-Layer Value Routing (CLVR), which modestly improved final validation loss for DeltaNet and Gated DeltaNet.
Key takeaway
For Machine Learning Engineers optimizing long-context models, consider evaluating Kimi Delta Attention with the Muon optimizer, as it demonstrated the lowest final validation loss in 350M-parameter, 15B-token experiments. If throughput is critical, a pure Gated DeltaNet stack with AdamW showed the highest normalized training throughput. Additionally, explore implementing Cross-Layer Value Routing (CLVR) to potentially lower validation loss in your DeltaNet or Gated DeltaNet architectures.
Key insights
Comparative study reveals Kimi Delta Attention with Muon and Cross-Layer Value Routing (CLVR) improve linear attention performance.
Principles
- Hybrid stacks improve loss at throughput cost.
- Muon optimizer consistently lowers validation loss.
- Cross-layer routing can enhance memory performance.
Method
Linear attention mechanisms are expressed in a common recurrent-memory notation to compare expressivity, memory decay, erase/write control, training throughput, and implementation complexity.
In practice
- Consider Kimi Delta Attention with Muon.
- Evaluate hybrid stacks for loss improvement.
- Implement Cross-Layer Value Routing (CLVR).
Topics
- Linear Attention
- Recurrent Neural Networks
- DeltaNet
- Kimi Delta Attention
- Cross-Layer Routing
- Model Optimization
Best for: Research Scientist, AI Scientist, Machine Learning Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.