SpecAttn: Speculating Sparse Attention
Harsh Shah · 2025
Read SpecAttn: Speculating Sparse Attention by Harsh Shah (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-27641.txt.
Description
Harsh Shah presents SpecAttn in 2025, a training-free trick to speed up large language models as they write long replies. The slow step is self-attention, where each new word weighs all prior words, and cost grows fast with length. Sparse attention cuts that cost by weighing only key words. SpecAttn reuses work from speculative decoding, a draft-then-check method.
A small draft model runs first, and its attention weights show which words matter most for the large model. Layer matching and fast top-share picks guide which stored keys to keep. Cache access drops by more than three quarters, with a modest rise in perplexity, a gauge of text surprise. The method slots into current pipelines with no retraining.
Catalog record
| CREATOR | Harsh Shah |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 29 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2510-27641