Long Range Language Modeling via Gated State Spaces
Harsh Mehta, Ankit Gupta, Ashok Cutkosky, Behnam Neyshabur
Abstract
State space models have shown to be effective at modeling long range dependencies, specially on sequence classification tasks. In this work we focus on autoregressive sequence modeling over English books, Github source code and ArXiv mathematics articles. Based on recent developments around the effectiveness of gated activation functions, we propose a new layer named Gated State Space (GSS) and show that it trains significantly faster than the diagonal version of S4 (i.e. DSS) on TPUs, is fairly competitive with several well-tuned Transformer-based baselines and exhibits zero-shot generalization to longer inputs while being straightforward to implement. Finally, we show that leveraging self-attention to model local dependencies improves the performance of GSS even further.
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.
126 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
- Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model cites Efficiently Modeling Long Sequences with Structured State Spaces
- Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model cites Reformer: The Efficient Transformer
- Big Bird: Transformers for Longer Sequences cites Reformer: The Efficient Transformer
- VMamba: Visual State Space Model cites Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model
- VMamba: Visual State Space Model cites Efficiently Modeling Long Sequences with Structured State Spaces
- VMamba: Visual State Space Model cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Hyena Hierarchy: Towards Larger Convolutional Language Models cites Efficiently Modeling Long Sequences with Structured State Spaces
- Hyena Hierarchy: Towards Larger Convolutional Language Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Hyena Hierarchy: Towards Larger Convolutional Language Models cites Reformer: The Efficient Transformer
- Hyena Hierarchy: Towards Larger Convolutional Language Models cites Language Models are Few-Shot Learners
- xLSTM: Extended Long Short-Term Memory cites Hyena Hierarchy: Towards Larger Convolutional Language Models
- xLSTM: Extended Long Short-Term Memory cites Efficiently Modeling Long Sequences with Structured State Spaces
- xLSTM: Extended Long Short-Term Memory cites Language Models are Few-Shot Learners
- xLSTM: Extended Long Short-Term Memory cites Resurrecting Recurrent Neural Networks for Long Sequences
- Efficiently Modeling Long Sequences with Structured State Spaces cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
- Resurrecting Recurrent Neural Networks for Long Sequences cites Efficiently Modeling Long Sequences with Structured State Spaces
- Resurrecting Recurrent Neural Networks for Long Sequences cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Resurrecting Recurrent Neural Networks for Long Sequences cites Language Models are Few-Shot Learners
Cited by top-tier papers126
- VMamba: Visual State Space ModelYue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu et al.NeurIPS 2024 · 3,199 citations
- Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space ModelLianghui Zhu, Bencheng Liao, Qian Zhang, Xinlong Wang et al.ICML 2024 · 1,725 citations
- xLSTM: Extended Long Short-Term MemoryMaximilian Beck, Korbinian Pöppel, Markus Spanring, Andreas Auer et al.NeurIPS 2024 · 703 citations
- Hyena Hierarchy: Towards Larger Convolutional Language ModelsMichael Poli, Stefano Massaroli, Eric Nguyen, Daniel Y. Fu et al.ICML 2023 · 481 citations
- Resurrecting Recurrent Neural Networks for Long SequencesAntonio Orvieto, Samuel L. Smith, Albert Gu, Anushan Fernando et al.ICML 2023 · 474 citations
Builds on19
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 citations
- Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie et al.NeurIPS 2020 · 3,159 citations
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
Related papers
- On the Parameterization and Initialization of Diagonal State Space ModelsAlbert Gu, Karan Goel, Ankit Gupta, Christopher RéNeurIPS 2022 · 690 citations
- Block-State TransformersJonathan Pilault, Mahan Fathi, Orhan Firat, Chris Pal et al.NeurIPS 2023 · 33 citations
- Effectively Modeling Time Series with Simple Discrete State SpacesMichael Zhang, Khaled Kamal Saab, Michael Poli, Tri Dao et al.ICLR 2023 · 14 citations
- Diagonal State Spaces are as Effective as Structured State SpacesAnkit Gupta, Albert Gu, Jonathan BerantNeurIPS 2022 · 546 citations
- What Makes Convolutional Models Great on Long Sequence Modeling?Yuhong Li, Tianle Cai, Yi Zhang, Deming Chen et al.ICLR 2023 · 20 citations
