atlas

Research map / Architectures and efficiency / Attention and transformers

Longhorn: State Space Models are Amortized Online Learners

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Longhorn, a deep SSM derived from the closed-form implicit online regression update, which needs no separate forget gate and outperforms Mamba on MQAR, OpenWebText scaling, and 1.3B SlimPajama language modeling.

Problem

Sequence modeling with SSMs lacks a guiding design principle; linear recurrences are often ad hoc, and Transformers have quadratic cost for long contexts.

Approach

View the SSM recurrence as solving an online learning problem; choose an online associative-recall regression objective with a Frobenius-norm stability term, whose closed-form implicit update yields a diagonal-approximated state transition that automatically balances forgetting and learning without a separate forget gate.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Longhorn instead of Mamba for the SSM module1.3B language model trained on SlimPajama · SlimPajama downstream tasksaverage perplexity during training: 1.8xHelped
Use Longhorn instead of Mamba for the SSM module1.3B language model trained on SlimPajama · SlimPajama, eight downstream tasksaverage score: 52.25 -> 52.35Helped
Use Longhorn instead of Mamba for the SSM moduleOpenWebText language model · OpenWebText, 120M-scale, T=1024validation loss: 3.238 -> 3.225Helped
Use Longhorn instead of Mamba for the SSM moduleOpenWebText language model · OpenWebText, 120M-scale, T=4096validation loss: 3.231 -> 3.192Helped
Use Longhorn instead of LLaMAOpenWebText language model · OpenWebText, 350M-scale, T=1024validation loss: 2.891 -> 2.888Helped
Use Longhorn instead of MambaOpenWebText language model · OpenWebText, 350M-scale, T=4096validation loss: 2.868 -> 2.859Helped
Replace ViM with Vision Longhorn (ViL)Vision SSM on ImageNet · ImageNet, Tiny configurationtop-1 accuracy: 76.1 -> 76.4Helped
Replace ViM with Vision Longhorn (ViL)Vision SSM on ImageNet · ImageNet, Small configurationtop-1 accuracy: 80.5 -> 80.7Helped
Train Longhorn with context length 2048 and evaluate at longer context lengthsLonghorn pretrained on SlimPajama · SlimPajama length extrapolationcontext length: 16xHelped

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama OpenWebText ImageNet MQAR

Benchmarks: MQAR OpenWebText validation loss PIQA HellaSwag WinoGrande ARC-easy ARC-challenge OpenBookQA SIQA BoolQ ImageNet

Metrics: recall rate validation loss perplexity zero-shot accuracy top-1 accuracy

Baselines: Mamba GLA RetNet RWKV LLaMA Based Hyena BaseConv Attention Vision Mamba (ViM) DeltaNet

Builds on: Mamba Gated Linear Attention DeltaNet Vision Mamba

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy