# The Key to Going Linear: Analysis-Driven Transformer Linearization

*Anna Kuzina, Paul Whatmough, Babak Ehteshami Bejnordi*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151267) · [Open on the map](../papers.html#p151267)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Efficient Attention Mechanisms](../pgroup/327.md) · Type: new method · Keywords: transformer linearization, causal self-attention, quadratic complexity, rank-1 projection, sink token, short convolution

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › Sparse Attention; [Long Context](../areas/longcontext.md) › Long-context mechanisms › Efficient attention; [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Linearized Transformers

## Summary
The analysis-driven transformer linearization approach reveals key-dependent rank-1 projections in softmax and introduces structural interventions (sink tokens, short convolutions, fixed-budget cache routing) that enable efficient long-context inference for large language models.

## Explained to a 5-year-old
Big computer programs called transformers read long texts, but they need a lot of time because they compare every word with every other word. This makes them slow. The researchers looked at how the program updates its memory and found a simple way to make it faster. They added a few tricks like special tokens and short shortcuts to help the program remember. Because of these tricks, the program can now read longer texts quickly without losing accuracy.

## Explained to a 5-year-old, longer
Transformers are computer programs that read and understand language, like the words in a story. They work by comparing each word with every other word to figure out connections. This comparing step is called attention, and it becomes very slow when there are many words. The slowness is because the work grows like the square of the number of words, which is why it is called quadratic cost. Researchers wanted to make these programs faster so they could read longer texts without waiting a long time. They studied how the program updates its internal memory and discovered that the math behind attention can be simplified. The simplification shows that the program essentially uses a tiny, focused projection for each word. Based on this insight, the team added a few helpful tricks, such as special placeholder tokens and short local connections. These tricks act like shortcuts that let the program remember important information more efficiently. The new approach keeps the program’s accuracy while cutting down the amount of work needed. They tested the faster version on big language models and found it works well on reading comprehension tasks. As a result, long documents can now be processed quickly, making the technology more useful for everyday applications.

## For a technical reader
The paper tackles the quadratic time complexity of causal self-attention in large transformer models, which becomes a bottleneck for long contexts. By analyzing the state-update mechanism in a frozen-backbone setting, the authors reveal that softmax can be expressed as key-dependent rank-1 orthogonal projections. This insight explains why certain delta-style update schemes outperform pure gated accumulation and guides the design of structural interventions. The proposed interventions-sink tokens, short convolutions, and a fixed-budget cache routing-reduce approximation errors and close the gap with adaptive-caching methods. Experiments on LLaMA and Qwen models up to 32 B parameters show the approach matches prior retrieval performance while beating existing post-hoc linearizations on MMLU.

## Problem
Adapting transformers to long contexts is computationally expensive because causal self-attention scales quadratically with sequence length, making inference slow and resource-intensive.

## Method
The authors analyze state-update design in a frozen-backbone regime, showing that softmax can be expressed as key-dependent rank-1 orthogonal projections, and they propose structural interventions such as sink tokens, short convolutions, and fixed-budget cache routing to reduce approximation errors.

## Results
The approach outperforms prior post-hoc baselines on MMLU and matches the long-context retrieval performance of complex adaptive-caching frameworks.

## Contributions
We provide an analysis of state-update design that uncovers the role of key-dependent rank-1 projections, propose structural interventions to mitigate approximation errors, and demonstrate the effectiveness of the linearization on large transformer models up to 32 B parameters.

## Limitations and assumptions
The study evaluates only in a frozen-backbone setting, which may not capture the full dynamics of fine-tuned models.

## Practical relevance
Enabling efficient long-context inference for large language models on existing hardware by reducing the quadratic cost of self-attention.

## Research questions this paper is counted under

- [How can we reduce the quadratic attention cost and memory usage of large language models for long contexts while preserving performance?](../q/4.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151267)
