Sliding Window Attention beats linear attention at zero cost in post-training
helloiamleonie · x · 2026-08-31
This post explains Sliding Window Attention (SWA), a local attention pattern that restricts tokens to attending only within a fixed-size neighborhood to reduce memory for long-context models. Citing new research, it claims that switching to a sliding-window attention mask with attention sinks post-training beats linear attention at no additional cost, challenging the complexity of alternative methods.
More from Research
- LLMs can rewrite their own weights: 27B model self-edits for +6.6 points — omarsar0 · 2026-12-02
- OpenDDE benchmark: frontier LLMs score 0.0 on biomolecular interface prediction — anshulkundaje · 2026-12-02
- Sampler Replay paper reframes RLVR: train the sampler, not the trainer — proves Score Centering is a special case — _akhaliq · 2026-12-02
- LUNA: generative AI reconstructs tissue architecture from dissociated single cells, published in Nature Methods — anshulkundaje · 2026-12-02
- World Bank RCT: 6 weeks of GPT-4 tutoring in Nigeria equals 1.5-2 years of schooling — DynamicWebPaige · 2026-12-02
- 2026 study: girls' STEM interest rose far more with female tutors than male tutors — DynamicWebPaige · 2026-12-02