Metraipolis › archive › dc_f835fe828c92

Sliding-window beats linear attention — arXiv:2608.28444

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.28444
License (as archived)
CC0-1.0
Archived
2026-10-17T10:56:37.243Z
SHA-256 of the archived text
9855b1382b39e28e789ee4b1884f26c266b6da5abfb793b546aea17c02471cae
Stable URL of this page
https://metraipolis.com/documento/dc_f835fe828c92

How to cite

Sliding-window beats linear attention — arXiv:2608.28444 — arXiv (en), https://arxiv.org/abs/2608.28444 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f835fe828c92 (Metraipolis archive dc_f835fe828c92, sha256 9855b1382b39e28e789ee4b1884f26c266b6da5abfb793b546aea17c02471cae)
BibTeX
@misc{dcf835fe828c92,
  title = {Sliding-window beats linear attention — arXiv:2608.28444},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.28444},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f835fe828c92; sha256 9855b1382b39e28e789ee4b1884f26c266b6da5abfb793b546aea17c02471cae},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.28444. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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, and its keys and values must be stored in memory indefinitely, which is unsustainable. Two main lines of work address this: compressing the KV cache, e.g., by evicting or quantizing keys and values, and retrofitting LLMs to use Linear Attention, which replaces the KV cache with a fixed-size state. Retrofitting 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, it has not been properly compared to the simplest form of KV-cache eviction: Sliding Window Attention (SWA) with attention sinks. In this work, we show that SWA with sinks performs as well or better than most retrofitted Linear Attention models across multiple LLMs and downstream tasks, with the largest gains on long-context and generative tasks. On 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 additional training, is extremely fast, and requires little memory, making it an extremely cheap and reliable solution. When the training budget is limited, switching to SWA is a much more effective way to reduce inference memory cost than retrofitting linear attention. Linear attention models have shown promise, but they require training from scratch or extensive retrofitting to reap their architectural benefits and come close to SWA.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-31 in cs.CL).
Categorie arXiv: Computation and Language (cs.CL) ; Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2608.28444 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-17T10:47:33.138Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-08-31?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).