atlas

Research map / Large language models / Reasoning and chain of thought

xLSTM 7B: A Recurrent LLM for Fast and Efficient Inference

ICML 2025 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving

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.

Scales the xLSTM (mLSTM-only) architecture to a 7B-parameter LLM trained on 2.3T tokens, with a post-up-projection block, gate soft-capping and negative input-gate bias init, and reports fast generation/prefill throughput versus Llama and Mamba models.

Problem

Recurrent LLMs with linear-time, constant-memory inference have not been scaled beyond about 1.3B parameters, and their inference speed and training stability at 7B scale were unknown.

Approach

Replace the previous xLSTM pre-up-projection block (mLSTM with convolutions and skip connections, operating in a higher dimension) with a Transformer-style post-up-projection block (mLSTM in embedding dimension followed by SwiGLU MLP), and stabilize training via RMSNorm pre-norm, soft-capping of input/forget gates, and negative input-gate bias initialization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the pre-up projection block with the post-up projection block (ablation)xLSTM · 1.4B model trainingthroughput: 10.57 -> 37.03; 3.5× speedupHelped
Replace the pre-up projection block with the post-up projection block (ablation)xLSTM · 1.4B model validationperplexity: 12.46 -> 12.68; +0.22Hurt
Use post-up projection block instead of the previous block (ablation)xLSTM · 7B model trainingthroughput: 3.46 -> 9.15; × 2.64Helped
Increase the head count from 8 to 16 (ablation)xLSTM 7B · 7B model validationvalidation perplexity: 9.52 -> 9.52No clear effect
Increase the head count from 8 to 32 (ablation)xLSTM 7B · 7B model trainingtrain step time: 3.63 -> 3.41Helped
Use 4 heads instead of 8 (ablation)xLSTM 7B · RULER long-context evaluationaverage accuracyMixed
Replace the pre-norm LayerNorm with RMSNorm (ablation)xLSTM · 1.4B model trainingtraining stabilityHelped
Replace the mLSTM state-norm LayerNorm with RMSNorm (ablation)xLSTM · 1.4B model trainingtraining stabilityNo clear effect
Apply soft-capping to the input and forget gate pre-activations and output logits (ablation)xLSTM 7B · 160B-token trainingvalidation lossHelped
Initialize the input gate bias to -10 rather than higher values (ablation)xLSTM · 160M model trainingvalidation perplexity: -10Helped
Make the input gate non-trainable at 0 (ablation)xLSTM 7B · Huggingface Leaderboard v1Average: 0.613 -> 0.510Hurt
Make the input gate non-trainable at -10 (ablation)xLSTM 7B · RULER long-context evaluationaverage accuracyHurt

Limitations

Experimental setup

Datasets: DCLM FineWeb-Edu Cosmopedia ProofPile-2 TheStack NuminaMath CoT MetaMathQA Tulu v3.1 OpenHermes 2.5 GSM8K Smoltalk LongDataCollections

Benchmarks: Open LLM Leaderboard v2 (BBH, MMLU-Pro, MATH, MuSR, GPQA, IFEval) Open LLM Leaderboard v1 tasks via lighteval RULER generation throughput time to first token prefill throughput

Metrics: accuracy tokens per second latency (time to first token) GPU memory validation perplexity

Baselines: Llama-2-7B Llama-3.1-8B Falcon-Mamba-7B Codestral Mamba RWKV-v5/6 Zamba2-7B Qwen2.5-7B Gemma-7B

Builds on: xLSTM Mamba LLaMA FlashLinearAttention

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