← Latest papers
🤖 machine learning

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

This paper presents a comparative study of softmax and four linear attention architectures (DeltaNet, Gated DeltaNet, Kimi Delta Attention, and Gated DeltaNet-2) using 350M-parameter models to analyze their mechanisms, performance trade-offs, and the efficacy of a proposed Cross-Layer Value Routing mechanism, finding that Kimi Delta Attention with Muon achieves the lowest validation loss while Gated DeltaNet with AdamW offers the highest throughput.

Original authors: Tommaso Cerruti, Tim Rieder, George Rowlands, Lingfeng Jin, Imanol Schlag

Published 2026-07-10
📖 6 min read🧠 Deep dive

Original authors: Tommaso Cerruti, Tim Rieder, George Rowlands, Lingfeng Jin, Imanol Schlag

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are running a massive library where every new book (a "token") needs to check its notes against every single book that came before it. This is how standard AI models work, and it's brilliant but exhausting. As the library grows, the time it takes to check every pair of books explodes, making it incredibly slow and expensive to train.

This paper is like a detective story about finding a smarter, faster way to run that library without losing the ability to remember important details. The authors compared the old, slow way (Softmax Attention) against four new, speedy "linear attention" methods: DeltaNet, Gated DeltaNet, Kimi Delta Attention, and Gated DeltaNet-2.

The Big Idea: The "Error-Correcting" Notebook

Instead of writing the whole new book into the library's memory every time, these new methods use a clever trick called a delta rule. Imagine you have a notebook that already predicts what the next book will say. Instead of rewriting the whole page, you only write down the difference (the error) between what you predicted and what actually happened. This keeps the memory clean and prevents old notes from clashing with new ones.

The paper then asks: How do we make this notebook even better?

  • DeltaNet just writes the difference.
  • Gated DeltaNet adds a "forget button" (a scalar gate) to wipe out old, dusty notes.
  • Kimi Delta Attention upgrades this to a "channel-wise" forget button, letting the model forget specific types of notes while keeping others.
  • Gated DeltaNet-2 goes even further, separating the "erase" button from the "write" button, giving the model total control over what to delete and what to keep.

The Race: Speed vs. Smarts

The authors ran a massive experiment with models containing 350 million parameters, training them on 15 billion tokens (a huge amount of text). They didn't just look at who was smartest; they looked at who was fastest.

Here is what they found:

  • The Speed Champion: A "pure" stack of Gated DeltaNet trained with the AdamW optimizer was the fastest. It processed data so efficiently that it became the baseline for speed (100%). However, it wasn't the smartest; it had a higher "validation loss" (a score where lower is better) of 2.433.
  • The Smartest Contender: The title for the lowest loss (the smartest model) went to Kimi Delta Attention using a different optimizer called Muon in a "hybrid" stack (mixing the fast linear layers with the slow standard layers). It reached a loss of 2.273.
  • The Trade-off: The paper shows a clear tug-of-war. If you want the absolute best performance, you often have to mix in the slower, standard attention layers (hybrid stacks), which slows you down. If you want pure speed, you stick to the linear layers, but you might lose a bit of accuracy.

Crucially, the paper rules out one big idea: They found that learning rate (how fast the model learns) is just as important as the architecture itself. A model might look bad not because its design is wrong, but because it was given the wrong learning rate. For example, Muon prefers a lower learning rate (around 3 × 10⁻⁴), while AdamW likes a higher one (around 10⁻³). You can't just swap optimizers and expect the same results; you have to tune them together.

The New Trick: Sharing Secrets Across Layers

Deep neural networks have a problem: as information travels from the bottom layer to the top, it can get "diluted" or lost. The authors tried to fix this by creating a "secret tunnel" between layers, letting lower layers pass a message to higher ones.

They tested two main ideas for what to pass through this tunnel:

  1. The "Mistake" (Error): Pass the error (the difference between what was predicted and what happened).
  2. The "Goal" (Value): Pass the target value (what the model was trying to write).

The Surprise: The paper explicitly argues against the idea that passing the "mistake" is the best way. When they tried passing the error directly into the next layer's target (a method they called CLER), it didn't help at all. It was like trying to fix a leaky pipe by shouting the sound of the leak into the next room; it didn't work.

The Solution: They found that passing the target value (the "Goal") worked slightly better. They called this Cross-Layer Value Routing (CLVR).

  • In their 350M-parameter experiments, this new method lowered the final validation loss by a tiny amount (about 0.01).
  • For example, in the Gated DeltaNet model, the loss dropped from 2.8331 to 2.8228 (a difference of -0.0103).
  • In the DeltaNet model, it dropped from 2.8469 to 2.8350 (a difference of -0.0119).

How sure are they? The authors are careful. They note these results come from single runs (not averaged over many tries), so the gains are small and could be influenced by random chance. However, the pattern was consistent: passing the value was always slightly better than passing the error. They also tested this on a larger 1.3 billion parameter model, where the gain was even smaller (-0.0019), suggesting the benefit might shrink as models get bigger and smarter on their own.

What About the Future?

The paper doesn't claim to have solved everything. They explicitly state that they did not test these routing tricks on the other architectures like Kimi Delta Attention or Gated DeltaNet-2, so we don't know if the "value routing" trick works there yet. They also didn't test how fast these models are at reading (inference), only how fast they are at learning (training).

The Takeaway

This paper doesn't declare one "winner." Instead, it maps out a landscape.

  • If you need speed and long context, pure linear stacks are your friend.
  • If you need maximum accuracy and can afford a bit of slowness, hybrid stacks with Kimi Delta Attention and Muon look promising.
  • If you want to connect layers, don't pass the errors; pass the values.

The authors suggest that while these routing tricks offer a small boost, the real magic lies in understanding how the optimizer, the learning rate, and the architecture all dance together. It's not just about building a faster engine; it's about tuning the whole car.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →