GatedFWA: Linear Flash Windowed Attention with Gated Associative Memory
Not on the map. Why?
Abstract (arXiv)
Modern autoregressive models rely on attention, yet the Softmax full attention in Transformers scales quadratically with sequence length. Sliding Window Attention (SWA) achieves linear-time encoding/decoding by constraining the attention pattern, but under an textitAssociative Memory interpretation, its difference-style update renders the training objective effectively unbounded. In contrast, Softmax attention normalizes updates, leading to memory shrinkage and gradient vanishing. We propose GatedFWA: a Memory-underlineGated (underlineFlash) underlineWindowed underlineAttention mechanism that preserves SWAs efficiency while stabilizing memory updates and making gradient flow controllable. In essence, GatedFWA accumulate a per-token/head gate into a decay bias added to the attention logits, acting as a learnable contraction in the memory recurrence. We implement a fused one-pass gate preprocessing and a FlashAttention-compatible kernel that injects the gate under a sliding mask, ensuring I/O efficiency and numerical stability. On language modelling benchmarks, GatedFWA delivers competitive throughput with negligible overhead and better use of global context, and it integrates cleanly with token compression/selection methods such as NSA and generalizes to various autoregressive domains.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 38 of its 47 references that are in the map. First posted on arXiv 8 Dec 2025.
Builds on
38 of 47 references.
References · 38
- 2017Attention Is All You Needcited by 60,361
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
26 more
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
- 2024Qwen2-Audio Technical Reportcited by 560
- 2024Large Language Models: A Surveycited by 525
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2020Hopfield Networks is All You Needcited by 475
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2019Axial Attention in Multidimensional Transformerscited by 358
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
- 2024An Introduction to Vision-Language Modelingcited by 178
- 2025A Survey on Vision-Language-Action Models: An Action Tokenization Perspectivecited by 96
- 2024Associative Recurrent Memory Transformercited by 15
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Forgetting Transformer: Softmax Attention with a Forget Gate
- 2026Blurry Window Attention
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention
- 2025Log-Linear Attention
- 2022Mega: Moving Average Equipped Gated Attention
- 2026ConSA: Controllable Sparsity in Hybrid Attention via Learnable Allocation
- 2025Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformers
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learning