
Alexia Jolicoeur-Martineau, Rhea Sanjay Sukthanker, Pashmina Cameron, Emy Gervais · arXiv (Cornell University) 2026 · 2026
DOI: 10.48550/arxiv.2608.28444
Counts differ because each database indexes a different set of publications. We treat OpenAlex as the canonical count; Google Scholar is not shown (no API, and crawling it violates its ToS).
Due to the nature of quadratic attention, Large Language Models (LLMs) consume a lot of memory and energy. Every new token costs more than the previous one. For each additional token, the keys and values must be stored in memory indefinitely, which is unsustainable. Several alternatives have been proposed to fix the quadratic scaling problem, one of which is retrofitting LLMs to use Linear Attention. This idea has attracted a lot of attention, given its promise to solve the quadratic scaling problem with state-of-the-art performance at low cost. However, this line of research has not been properly compared to simpler baselines. In this work, we show that Sliding Window Attention (SWA) with sinks performs as well or better than post-trained Linear Attention models. We observe this across multiple LLMs on various downstream tasks. For long-context reasoning tasks (Needle-in-a-Haystack and BABILong), SWA achieves massively higher performance (2 to 10 times higher than linear attention). SWA requires no post-training, is extremely fast, and requires low memory; therefore, making it an extremely cheap and reliable solution. To reduce inference memory cost, we strongly recommend switching to SWA instead of post-training linear models. Linear attention models may have shown some promise, but they likely require to be trained from scratch or extensive post-training in order to even match SWA.
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) 2018 · 2018 · 46039 citations90% match
2014 · 34004 citations90% match
2019 · 33225 citations90% match
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) 2019 · 2019 · 17465 citations90% match
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) 2023 · 2023 · 14309 citations90% match
2014 · 13959 citations90% match
arXiv (Cornell University) 2013 · 2013 · 11714 citations95% match
No comments yet — start the discussion below.
2019 · 11662 citations90% match
Transactions of the Association for Computational Linguistics 2017 · 2017 · 9887 citations90% match
2014 · 8653 citations90% match