The Key to Going Linear: Analysis-Driven Transformer Linearization
Anna Kuzina, Paul N. Whatmough, Babak Ehteshami Bejnordi
Venue not available
Research metadataShow detailsHide details
- Affiliations
- Not available
- Published
- 2026-07-08
- Processed
- 7/27/2026, 3:21:57 PM
- Analysis model
- gemini-2.5-flash-lite
- Analysis status
- analyzed
- Local PDF artifact
- papers/pdf/2026/2607_07706v1.pdf
Abstract
The quadratic cost of causal self-attention severely bottlenecks long-context transformer inference. While numerous post hoc linearization pipelines exist, it is difficult to identify which components preserve model quality. This work isolates the effect of state update design in a strict frozen-backbone regime. We show that softmax relies on key-dependent, rank-1 orthogonal projections, elucidating why delta-style networks outperform purely gated accumulation. We identify a potential source of approximation errors and introduce structural interventions, specifically sink tokens, short convolutions, and fixed-budget cache routing, which reduces the remaining gap. We scale this linearization approach across LLaMA and Qwen models up to 32B parameters, outperforming prior post hoc baselines on MMLU and matching the long-context retrieval of complex adaptive-caching frameworks.
Summary
This paper addresses the quadratic cost of causal self-attention in transformers, which limits long-context inference. The authors propose an analysis-driven approach to linearize attention mechanisms by studying state updates in a frozen-backbone regime. They demonstrate that delta-style updates better approximate softmax attention than purely gated accumulation. By introducing structural interventions like sink tokens, short convolutions, and projection adaptation, they significantly reduce the performance gap. Their method scales to large models (up to 32B parameters) and achieves competitive results on benchmarks like MMLU and long-context retrieval tasks.