Gated Slot Attention for Efficient Linear-Time Sequence Modeling
Yu Zhang, Songlin Yang, Rui-Jie Zhu, Yue Zhang, Leyang Cui, Yiqiao Wang, Bolun Wang, Freda Shi, Bailin Wang, Wei Bi, Peng Zhou, Guohong Fu
Abstract
Linear attention Transformers and their gated variants, celebrated for enabling parallel training and efficient recurrent inference, still fall short in recall-intensive tasks compared to traditional Transformers and demand significant resources for training from scratch. This paper introduces Gated Slot Attention (GSA), which enhances Attention with Bounded-memory-Control (ABC) by incorporating a gating mechanism inspired by Gated Linear Attention (GLA). Essentially, GSA comprises a two-layer GLA linked via , utilizing context-aware memory reading and adaptive forgetting to improve memory capacity while maintaining compact recurrent state size. This design greatly enhances both training and inference efficiency through GLA's hardware-efficient training algorithm and reduced state size. Additionally, retaining the operation is particularly beneficial in"finetuning pretrained Transformers to RNNs"(T2R) settings, reducing the need for extensive training from scratch. Extensive experiments confirm GSA's superior performance in scenarios requiring in-context recall and in T2R settings.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
41 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- MoM: Linear Sequence Modeling with Mixture-of-Memories cites PIQA: Reasoning about Physical Commonsense in Natural Language
- MoM: Linear Sequence Modeling with Mixture-of-Memories cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Head-in-Head in Linear Attention cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Head-in-Head in Linear Attention cites MoM: Linear Sequence Modeling with Mixture-of-Memories
- Head-in-Head in Linear Attention cites PIQA: Reasoning about Physical Commonsense in Natural Language
- Head-in-Head in Linear Attention cites Parallelizing Linear Transformers with the Delta Rule over Sequence Length
- Head-in-Head in Linear Attention cites MesaNet: Sequence Modeling by Locally Optimal Test-Time Training
- PIQA: Reasoning about Physical Commonsense in Natural Language cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Measuring Massive Multitask Language Understanding cites PIQA: Reasoning about Physical Commonsense in Natural Language
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length cites PIQA: Reasoning about Physical Commonsense in Natural Language
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon Layers cites PIQA: Reasoning about Physical Commonsense in Natural Language
- Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon Layers cites Parallelizing Linear Transformers with the Delta Rule over Sequence Length
- Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon Layers cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- MesaNet: Sequence Modeling by Locally Optimal Test-Time Training cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- MesaNet: Sequence Modeling by Locally Optimal Test-Time Training cites PIQA: Reasoning about Physical Commonsense in Natural Language
- MesaNet: Sequence Modeling by Locally Optimal Test-Time Training cites Parallelizing Linear Transformers with the Delta Rule over Sequence Length
- MesaNet: Sequence Modeling by Locally Optimal Test-Time Training cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
Cited by top-tier papers41
- Parallelizing Linear Transformers with the Delta Rule over Sequence LengthSonglin Yang, Bailin Wang, Yu Zhang, Yikang Shen et al.NeurIPS 2024 · 412 citations
- Head-in-Head in Linear AttentionShijie Mei, Man Yao, Jiabo Tong, Bo XU et al.ICML 2026 · 48 citations
- MesaNet: Sequence Modeling by Locally Optimal Test-Time TrainingJohannes von Oswald, Nino Scherrer, Seijin Kobayashi, Luca Versari et al.ICLR 2026 · 45 citations
- Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon LayersZeyuan Allen-ZhuNeurIPS 2025 · 44 citations
- MoM: Linear Sequence Modeling with Mixture-of-MemoriesJusen Du, Weigao Sun, Disen Lan, Jiaxi Hu et al.ICLR 2026 · 43 citations
Builds on38
- Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra et al.NeurIPS 2022 · 5,493 citations
- WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 citations
- PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao et al.AAAI 2020 · 2,916 citations
- Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 citations
Related papers
- ABC: Attention with Bounded-memory ControlHao Peng, Jungo Kasai, Nikolaos Pappas, Dani Yogatama et al.ACL 2022 · 31 citations
- Gated Linear Attention Transformers with Hardware-Efficient TrainingSonglin Yang, Bailin Wang, Yikang Shen, Rameswar Panda et al.ICML 2024 · 390 citations
- Native Hybrid Attention for Efficient Sequence ModelingJusen Du, Jiaxi Hu, Zhang Tao, Weigao Sun et al.ACL 2026 · 8 citations
- Finetuning Pretrained Transformers into RNNsJungo Kasai, Hao Peng, Yizhe Zhang, Dani Yogatama et al.EMNLP 2021 · 9 citations
- Log-Linear AttentionHan Guo, Songlin Yang, Tarushii Goel, Eric P. Xing et al.ICLR 2026 · 41 citations
