Longhorn: State Space Models are Amortized Online Learners
Abstract
The most fundamental capability of modern AI methods such as Large Language Models (LLMs) is the ability to predict the next token in a long sequence of tokens, known as ``sequence modeling." Although the Transformers model is the current dominant approach to sequence modeling, its quadratic computational cost with respect to sequence length is a significant drawback. State-space models (SSMs) offer a promising alternative due to their linear decoding efficiency and high parallelizability during training. However, existing SSMs often rely on seemingly ad hoc linear recurrence designs. 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 optimizing these objectives. Based on this insight, we introduce a novel deep SSM architecture based on the implicit update for optimizing an online regression objective. Our experimental results show that our models outperform state-of-the-art SSMs, including the Mamba model, on standard sequence modeling benchmarks and language modeling tasks.
Community
How to design State Space Models (SSM) from principles? We propose to view the SSM (or any sequence mixing layer) in a deep SSM model as solving an online learning problem. The design of SSM then reduces to the design of the online learning objective, whose pre-step closed-form solution becomes the SSM's recurrence update. Then we propose Longhorn based on the implicit online learning update by solving an online regression objective. Longhorn achieves the same validation perplexity as Mamba using 1.8x less data. Code: https://github.com/Cranial-XIX/longhorn
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling (2024)
- An Empirical Study of Mamba-based Language Models (2024)
- Mamba-PTQ: Outlier Channels in Recurrent Large Language Models (2024)
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length (2024)
- LongSSM: On the Length Extension of State-space Models in Language Modelling (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper