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

· Source: cs.AI updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, extended

Summary

This study presents a comparative analysis of softmax attention and four recurrent linear-attention architectures: DeltaNet, Gated DeltaNet, Kimi Delta Attention, and Gated DeltaNet-2. Researchers trained 350M-parameter models for 15B tokens, with additional runs up to 3B parameters, to evaluate expressivity, memory control, and training throughput. Kimi Delta Attention with the Muon optimizer in a hybrid stack achieved the lowest final validation loss of 2.273, while a pure Gated DeltaNet stack with AdamW delivered the highest normalized training throughput. Hybrid stacks generally improved loss at a throughput cost. The paper also introduces Cross-Layer Value Routing (CLVR), a lightweight mechanism that routes a layer's write value into the shared hidden stream. CLVR reduced final validation loss by approximately 0.010-0.012 for DeltaNet and Gated DeltaNet at 350M parameters/1B tokens, though gains diminished with larger models or longer training.

Key takeaway

For Machine Learning Engineers designing large language models, your choice of linear attention architecture should align with your primary objective. If minimizing validation loss is paramount, prioritize Kimi Delta Attention with the Muon optimizer in a hybrid stack. Conversely, if maximizing training throughput and long-context scaling is critical, opt for a pure Gated DeltaNet stack with AdamW. Additionally, consider implementing Cross-Layer Value Routing (CLVR) for a small, consistent reduction in final validation loss on DeltaNet or Gated DeltaNet hosts.

Key insights

Linear attention variants balance efficiency and accuracy through refined memory control and cross-layer routing mechanisms.

Principles

Method

Linear attention mechanisms are expressed in a common recurrent-memory notation, then evaluated on 350M-parameter models for 15B tokens, comparing validation loss, throughput, and sequence-length scaling, alongside novel cross-layer routing variants.

In practice

Topics

Code references

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

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.AI updates on arXiv.org.