Microsoft Paper: Sliding Window Attention Beats Linear Attention for Inference Memory
rohanpaul_ai · x · 2026-09-02
A new Microsoft paper finds that for reducing inference memory, training-free Sliding Window Attention (SWA) outperforms most retrofitted linear-attention methods.
Methodology: Keep only a small recent window plus the first 4 “sink” tokens that models rely on.
Key Findings:
- With a 64-token window, this setup achieved the best average downstream score in 9 of 11 model comparisons and recovered 99.0% of the full-attention baseline.
- The performance gap widened on long-context reasoning: at 4K context, SWA reached 17.2%–23.0% on Needle-in-a-Haystack tasks (vs. 5.8% for LoLCATs) and 15% on BABILong (vs. 3%).
- In speed and memory tests, the 64-token SWA setup was the fastest and most memory-efficient.
Conclusion: While full attention still wins on very long contexts, SWA with attention sinks is recommended as the first try for fixed, low-memory scenarios without retraining.
More from Research
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Quantum Researcher: Even a P=BQP Proof Wouldn't Mean a Usable Algorithm — MJBiercuk · 2026-12-05
- NeurIPS reviewer reveals a paper he rated accept was rejected over 'benchmaxxing' objection — lpachter · 2026-12-05
- Fact localization in LLMs is somewhere between 1 and N neurons, not fully distributed — thebasepoint · 2026-12-05
- How facts spread across neurons: delete a set and the model flips the Hunchback's author — thebasepoint · 2026-12-05
- Robot learning researcher asks if the field's framing is a 'fake problem' — kscottz · 2026-12-05