Linear Attention Architectures: Mechanisms, Trade-offs, and Cross-Layer Routing

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

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

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

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.