Papers
arxiv:2407.14207

Longhorn: State Space Models are Amortized Online Learners

Published on Jul 19
· Submitted by klight on Jul 25
Authors:
Bo Liu ,
,
,
,

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

Paper author Paper submitter
edited Jul 25

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

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

@librarian-bot recommend

Sign up or log in to comment

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2407.14207 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2407.14207 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2407.14207 in a Space README.md to link it from this page.

Collections including this paper 3