LongSSM: On the Length Extension of State-space Models in Language Modelling
On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language
Abstract (arXiv)
In this paper, we investigate the length-extension of state-space models (SSMs) in language modeling. Length extension involves training models on short sequences and testing them on longer ones. We show that state-space models trained with zero hidden states initialization have difficulty doing length extension. We explain this difficulty by pointing out the length extension is equivalent to polynomial extrapolation. Based on the theory, we propose a simple yet effective method - changing the hidden states initialization scheme - to improve the length extension. Moreover, our method shows that using long training sequence length is beneficial but not necessary to length extension. Changing the hidden state initialization enables the efficient training of long-memory model with a smaller training context length.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 27 of its 36 references that are in the map. First posted on arXiv 4 Jun 2024.
Builds on
27 of 36 references.
Closest ancestors · 4
Same direction, newest first
- 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
- 2022Simplified State Space Layers for Sequence Modeling9 Aug
- 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct
Other references · 23
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 600
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2023End-to-end Autonomous Driving: Challenges and Frontierscited by 485
11 more
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
- 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 126
- 2022A Length-Extrapolatable Transformercited by 123
- 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 43
- 2023State-space Models with Layer-wise Nonlinearity are Universal Approximators with Exponential Decaying Memorycited by 38
- 2019A Unified Framework of Online Learning Algorithms for Training Recurrent Neural Networkscited by 37
- 2023StableSSM: Alleviating the Curse of Memory in State-space Models through Stable Reparameterizationcited by 29
- 2020On the Curse of Memory in Recurrent Neural Networks: Approximation and Optimization Analysiscited by 26
- 2023A Brief Survey on the Approximation Theory for Sequence Modellingcited by 15
- 2023Inverse Approximation Theory for Nonlinear Recurrent Neural Networkscited by 10
- 2023Position Interpolation Improves ALiBi Extrapolationcited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 2.
3 papers.
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2025TTT3R: 3D Reconstruction as Test-Time Trainingcited by 122
- 2025Understanding and Improving Length Generalization in Recurrent Modelscited by 19
- 2025TTT3R: 3D Reconstruction as Test-Time Training30 Sep 2025
- 2025Understanding and Improving Length Generalization in Recurrent Models3 Jul 2025
- 2024Titans: Learning to Memorize at Test Time31 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMs
- 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Models
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory
- 2022Long Range Language Modeling via Gated State Spaces
- 2025Characterizing Mamba's Selective Memory using Auto-Encoders
- 2023State space models can express n-gram languages