atlas

Research map / Architectures and efficiency / Attention and transformers

xLSTM: Extended Long Short-Term Memory

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models

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 xLSTM, extending LSTM with exponential gating and two new memory cells (scalar sLSTM with memory mixing, matrix-memory mLSTM), stacked into residual xLSTM blocks and scaled to 1.3B-parameter language models that beat Transformers, SSMs and RNNs on perplexity.

Problem

LSTMs were outpaced by Transformers at scale due to limited storage (scalar cell states), inability to revise storage decisions, and lack of parallelizability from memory mixing; the question is how far LSTMs go when scaled to LLM sizes.

Approach

Introduce exponential gating with normalizer and stabilizer states to let LSTMs revise storage decisions; sLSTM adds scalar memory with new head-wise memory mixing, mLSTM replaces the scalar cell with a matrix memory updated by a covariance rule and is fully parallelizable; both are wrapped in pre-LayerNorm residual blocks (post up-projection for sLSTM, pre up-projection for mLSTM).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add exponential gating (ablation)LSTM with Up-Projection Backbone · SlimPajama validation (15B tokens)perplexity: 26.01 -> 17.70Helped
add matrix memory (ablation)xLSTM[0:1] · SlimPajama validation (15B tokens)perplexity: 17.70 -> 13.48Helped
add Resnet backbone (ablation)vanilla LSTM · SlimPajama validation (15B tokens)perplexity: 2417.86 -> 35.46Helped
add Up-Projection Backbone (ablation)LSTM with Resnet Backbone · SlimPajama validation (15B tokens)perplexity: 35.46 -> 26.01Helped
use input-dependent learnable forget and input gates (ablation)xLSTM[1:0] · SlimPajama validation (15B tokens)perplexity: 13.95 -> 13.43Helped
use input-dependent learnable forget gate only (ablation)xLSTM[1:0] · SlimPajama validation (15B tokens)perplexity: 13.95 -> 13.58Helped
use input-dependent learnable input gate only (ablation)xLSTM[1:0] · SlimPajama validation (15B tokens)perplexity: 13.95 -> 13.69Helped
use learnable forget- and input-gate biases without input-dependent gating (ablation)xLSTM[1:0] · SlimPajama validation (15B tokens)perplexity: 13.95 -> 13.73Helped
use input-dependent learnable gates rather than bias-only gates (ablation)xLSTM[1:0] · SlimPajama validation (15B tokens)perplexity: 13.73 -> 13.43Helped
use xLSTM rather than Mamba1.3B language models trained on SlimPajama · SlimPajama validation (300B tokens)perplexity: 9.14 -> 8.89Helped
use xLSTM[1:0] rather than Mamba1.3B language models trained on SlimPajama · PALOMA average perplexityperplexity: 11.84 -> 11.58Helped
use xLSTM[1:0] rather than xLSTM[7:1]1.3B language models trained on SlimPajama · PALOMA average perplexityperplexity: 11.69 -> 11.58Helped

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama Wikitext-103 PALOMA

Benchmarks: SlimPajama PALOMA LAMBADA HellaSwag PIQA ARC-E ARC-C WinoGrande Long Range Arena Multi-Query Associative Recall

Metrics: perplexity accuracy throughput generation time

Baselines: GPT-3 Llama Mamba RWKV-4 RWKV-5 RWKV-6 HGRN2 RetNet

Builds on: LSTM Fast Weight Programmers Mamba GLA

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