Longhorn: State Space Models are Amortized Online Learners
On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language
Abstract (arXiv)
Modern large language models are built on sequence modeling via next-token prediction. While the Transformer remains the dominant architecture for sequence modeling, its quadratic decoding complexity in sequence length poses a major limitation. State-space models (SSMs) present a competitive alternative, offering linear decoding efficiency while maintaining parallelism during training. However, most existing SSMs rely on linear recurrence designs that appear somewhat ad hoc. In this work, we explore SSM design through the lens of online learning, conceptualizing SSMs as meta-modules for specific online learning problems. This approach links SSM design to formulating precise online learning objectives, with state transition rules derived from solving these objectives. Based on this insight, we introduce a novel deep SSM architecture, Longhorn, whose update resembles the closed-form solution for solving the online associative recall problem. Our experimental results show that Longhorn outperforms state-of-the-art SSMs, including the Mamba model, on standard sequence modeling benchmarks, language modeling, and vision tasks. Specifically, Longhorn achieves a 1.8x improvement in sample efficiency compared to Mamba, and can extrapolate over contexts that are up to 16x longer during inference.
Key facts. Cited by 59 papers in the map (data through 14 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 47 of its 65 references that are in the map. First posted on arXiv 19 Jul 2024.
Builds on
47 of 65 references.
Closest ancestors · 9
Same direction, newest first
- 2024Just read twice: closing the recall gap for recurrent language models7 Jul
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden States5 Jul
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling11 Jun
- 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
- 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
- 2022Diagonal State Spaces are as Effective as Structured State Spaces27 Mar
- 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct
Other references · 38
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 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
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 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
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Rethinking Attention with Performerscited by 1,601
26 more
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,056
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2016Language Modeling with Gated Convolutional Networkscited by 702
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2024xLSTM: Extended Long Short-Term Memorycited by 327
- 2022Long Range Language Modeling via Gated State Spacescited by 265
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
- 2023Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakescited by 111
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 102
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 100
- 2022What Makes Convolutional Models Great on Long Sequence Modeling?cited by 87
- 2022Pretraining Without Attentioncited by 51
- 2022DOM-LM: Learning Generalizable Representations for HTML Documentscited by 24
Built on by
Citing papers per year: 2024: 6; 2025: 21; 2026: 32.
59 papers.
Sort:
By area:
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2025TTT3R: 3D Reconstruction as Test-Time Trainingcited by 129
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 76
- 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 75
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
- 2025Nested Learning: The Illusion of Deep Learning Architecturescited by 72
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 66
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 64
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 47
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attentioncited by 33
- 2025Understanding and Improving Length Generalization in Recurrent Modelscited by 23
38 more
- 2025Efficient Attention Mechanisms for Large Language Models: A Surveycited by 22
- 2025Lattice: Learning to Efficiently Compress the Memorycited by 19
- 2024Understanding and Mitigating Bottlenecks of State Space Models through the Lens of Recency and Over-smoothingcited by 18
- 2026Memory Caching: RNNs with Growing Memorycited by 15
- 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
- 2025Gated KalmaNet: A Fading Memory Layer Through Test-Time Ridge Regressioncited by 11
- 2025Mechanistic evaluation of Transformers and state space modelscited by 9
- 2025RAD: Redundancy-Aware Distillation for Hybrid Models via Self-Speculative Decodingcited by 8
- 2025TNT: Improving Chunkwise Training for Test-Time Memorizationcited by 8
- 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Trackingcited by 8
- 2026Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear Recurrencescited by 7
- 2024Learning Memory Mechanisms for Decision Making through Demonstrationscited by 6
- 2025RoboSSM: Scalable In-context Imitation Learning via State-Space Modelscited by 5
- 2025SAS: Simulated Attention Scorecited by 4
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regressioncited by 4
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attentioncited by 4
- 2024Learning in the Recurrent State: Gradient Descent with Linear Recurrent Networkscited by 3
- 2026Fast Spatial Memory with Elastic Test-Time Trainingcited by 3
- 2026Continuous Latent Contexts Enable Efficient Online Learning in Transformerscited by 3
- 2026MuonSSM: Orthogonalizing State Space Models for Sequence Modelingcited by 3
- 2026Maglev: Sliding Recurrent Memorycited by 3
- 2025Untangling Component Imbalance in Hybrid Linear Attention Conversion Methodscited by 2
- 2026Learning to Remember, Learn, and Forget in Attention-Based Modelscited by 2
- 2026Tapered Language Modelscited by 2
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchorscited by 2
- 2024Learning Mamba as a Continual Learner: Meta-Learning Selective State Space Models for Continual Learningcited by 1
- 2025Hydra: Dual Exponentiated Memory for Multivariate Time Series Analysiscited by 1
- 2026A State-Transition Framework for Efficient LLM Reasoningcited by 1
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026FG2-GDN: Enhancing Long-Context Gated Delta Networks with Doubly Fine-Grained Controlcited by 1
- 2026Taylor-Calibrate: Principled Initialization for Hybrid Linear Attention Distillationcited by 1
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projectionscited by 1
- 2026The Key to Going Linear: Analysis-Driven Transformer Linearizationcited by 1
- 2026Proteus: Incremental Memory Activation for Long-Context Sequence Modelingcited by 1
- 2026Safin-1: Safety from Within through Memory-Native State Evolutioncited by 1
- 2026RunningTensor: Generalizing Linear Attention to Higher-Order Recurrent Statescited by 1
- 2025Enhancing Linear Attention with Residual Learningcited by 0
- 2026Memory by Design: Bayesian Layers for Sequence Modelingcited by 0
50 most cited of 59 All 59 (JSON)
- 2026Voltic: Distinguishing Volatility from Stochasticity in Recurrent Memory5 Oct 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026GradLev: Token-Parallel Test-Time Training Via Costate Prediction28 Sep 2026
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models27 Sep 2026
- 2026Length-Independent State Tracking Under a Parallel Scan26 Sep 2026
- 2026RunningTensor: Generalizing Linear Attention to Higher-Order Recurrent States11 Sep 2026
- 2026Safin-1: Safety from Within through Memory-Native State Evolution31 Aug 2026
- 2026Proteus: Incremental Memory Activation for Long-Context Sequence Modeling17 Aug 2026
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors12 Aug 2026
- 2026Maglev: Sliding Recurrent Memory3 Aug 2026
- 2026The Key to Going Linear: Analysis-Driven Transformer Linearization8 Jul 2026
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projections3 Jul 2026
38 more
- 2026MuonSSM: Orthogonalizing State Space Models for Sequence Modeling29 Jun 2026
- 2026CARVE: Content-Aware Recurrent with Value Efficiency for Chunk-Parallel Linear Attention25 Jun 2026
- 2026Tapered Language Models22 Jun 2026
- 2026Taylor-Calibrate: Principled Initialization for Hybrid Linear Attention Distillation15 Jun 2026
- 2026Architecture-Aware Reinforcement Learning Makes Sliding-Window Attention Competitive in Math Reasoning10 Jun 2026
- 2026Q-Delta: Beyond Key-Value Associative State Evolution7 Jun 2026
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning29 May 2026
- 2026Memory by Design: Bayesian Layers for Sequence Modeling29 May 2026
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention21 May 2026
- 2026Continuous Latent Contexts Enable Efficient Online Learning in Transformers11 May 2026
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attention7 May 2026
- 2026Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear Recurrences22 Apr 2026
- 2026FG2-GDN: Enhancing Long-Context Gated Delta Networks with Doubly Fine-Grained Control21 Apr 2026
- 2026Fast Spatial Memory with Elastic Test-Time Training8 Apr 2026
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning10 Mar 2026
- 2026Memory Caching: RNNs with Growing Memory27 Feb 2026
- 2026Test-Time Training with KV Binding Is Secretly Linear Attention24 Feb 2026
- 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Tracking11 Feb 2026
- 2026Learning to Remember, Learn, and Forget in Attention-Based Models9 Feb 2026
- 2026A State-Transition Framework for Efficient LLM Reasoning1 Feb 2026
- 2025Nested Learning: The Illusion of Deep Learning Architectures31 Dec 2025
- 2025Gated KalmaNet: A Fading Memory Layer Through Test-Time Ridge Regression26 Nov 2025
- 2025TNT: Improving Chunkwise Training for Test-Time Memorization10 Nov 2025
- 2025Hydra: Dual Exponentiated Memory for Multivariate Time Series Analysis2 Nov 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Untangling Component Imbalance in Hybrid Linear Attention Conversion Methods7 Oct 2025
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regression1 Oct 2025
- 2025TTT3R: 3D Reconstruction as Test-Time Training30 Sep 2025
- 2025Enhancing Linear Attention with Residual Learning24 Sep 2025
- 2025RoboSSM: Scalable In-context Imitation Learning via State-Space Models24 Sep 2025
- 2025Efficient Attention Mechanisms for Large Language Models: A Survey25 Jul 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025Understanding and Improving Length Generalization in Recurrent Models3 Jul 2025
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Training5 Jun 2025
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Time29 May 2025
- 2025RAD: Redundancy-Aware Distillation for Hybrid Models via Self-Speculative Decoding28 May 2025
- 2025Mechanistic evaluation of Transformers and state space models21 May 2025
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimization17 Apr 2025
50 newest of 59 All 59 (JSON)
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2026A State-Transition Framework for Efficient LLM Reasoningcited by 1
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026Architecture-Aware Reinforcement Learning Makes Sliding-Window Attention Competitive in Math Reasoningcited by 0
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoningcited by 0
- 2026Architecture-Aware Reinforcement Learning Makes Sliding-Window Attention Competitive in Math Reasoning10 Jun 2026
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning29 May 2026
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning10 Mar 2026
- 2026A State-Transition Framework for Efficient LLM Reasoning1 Feb 2026
- 2024Titans: Learning to Memorize at Test Time31 Dec 2024
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attentioncited by 33
- 2024Understanding and Mitigating Bottlenecks of State Space Models through the Lens of Recency and Over-smoothingcited by 18
- 2025Mechanistic evaluation of Transformers and state space modelscited by 9
- 2026MuonSSM: Orthogonalizing State Space Models for Sequence Modelingcited by 3
- 2024Learning Mamba as a Continual Learner: Meta-Learning Selective State Space Models for Continual Learningcited by 1
- 2026MuonSSM: Orthogonalizing State Space Models for Sequence Modeling29 Jun 2026
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention21 May 2026
- 2025Mechanistic evaluation of Transformers and state space models21 May 2025
- 2024Understanding and Mitigating Bottlenecks of State Space Models through the Lens of Recency and Over-smoothing31 Dec 2024
- 2024Learning Mamba as a Continual Learner: Meta-Learning Selective State Space Models for Continual Learning1 Dec 2024
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025TTT3R: 3D Reconstruction as Test-Time Trainingcited by 129
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 76
- 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 75
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
- 2025Nested Learning: The Illusion of Deep Learning Architecturescited by 72
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 66
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 64
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 47
- 2025Understanding and Improving Length Generalization in Recurrent Modelscited by 23
- 2025Efficient Attention Mechanisms for Large Language Models: A Surveycited by 22
- 2025Lattice: Learning to Efficiently Compress the Memorycited by 19
- 2026Memory Caching: RNNs with Growing Memorycited by 15
12 most cited of 45 All 45 (JSON)
- 2026Voltic: Distinguishing Volatility from Stochasticity in Recurrent Memory5 Oct 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026GradLev: Token-Parallel Test-Time Training Via Costate Prediction28 Sep 2026
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models27 Sep 2026
- 2026Length-Independent State Tracking Under a Parallel Scan26 Sep 2026
- 2026RunningTensor: Generalizing Linear Attention to Higher-Order Recurrent States11 Sep 2026
- 2026Safin-1: Safety from Within through Memory-Native State Evolution31 Aug 2026
- 2026Proteus: Incremental Memory Activation for Long-Context Sequence Modeling17 Aug 2026
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors12 Aug 2026
- 2026Maglev: Sliding Recurrent Memory3 Aug 2026
- 2026The Key to Going Linear: Analysis-Driven Transformer Linearization8 Jul 2026
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projections3 Jul 2026
12 newest of 45 All 45 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba
- 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement
- 2023State space models can express n-gram languages
- 2025Characterizing Mamba's Selective Memory using Auto-Encoders
- 2025MS-SSM: A Multi-Scale State Space Model for Efficient Sequence Modeling
- 2024BlackMamba: Mixture of Experts for State-Space Models
- 2026Mamba-3: Improved Sequence Modeling using State Space Principles
- 2026Harmonic: Hierarchical State Space Models for Efficient Long-Context Language Modeling