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

Maximilian Beck, Korbinian Pöppel, Phillip Lippe, Richard Kurle, Patrick M. Blies +3 more
3/17/2025
cs.LGcs.AIcs.CL

No official code found. Best implementation: NX-AI/xlstm (2,190 stars, Apache-2.0, last commit 2025-11-04). 2 more below.

Abstract

Recent breakthroughs in solving reasoning, math and coding problems with Large Language Models (LLMs) have been enabled by investing substantial computation budgets at inference time. Therefore, inference speed is one of the most critical properties of LLM architectures, and there is a growing need for LLMs that are efficient and fast at inference. Recently, LLMs built on the xLSTM architecture have emerged as a powerful alternative to Transformers, offering linear compute scaling with sequence length and constant memory usage, both highly desirable properties for efficient inference. However, such xLSTM-based LLMs have yet to be scaled to larger models and assessed and compared with respect to inference speed and efficiency. In this work, we introduce xLSTM 7B, a 7-billion-parameter LLM that combines xLSTM's architectural benefits with targeted optimizations for fast and efficient inference. Our experiments demonstrate that xLSTM 7B achieves performance on downstream tasks comparable to other similar-sized LLMs, while providing significantly faster inference speeds and greater efficiency compared to Llama- and Mamba-based LLMs. These results establish xLSTM 7B as the fastest and most efficient 7B LLM, offering a solution for tasks that require large amounts of test-time computation. Our work highlights xLSTM's potential as a foundational architecture for methods building on heavy use of LLM inference. Our model weights, model code and training code are open-source.

View on arXivView PDF

Code Implementations(3)

NX-AI/xlstmCommunity100%
Apache-2.0

Official repository of the xLSTM.

2,190185C, C++May 8, 202411 months agoApache-2.0
deep-learningdeep-learning-architecturellmmachine-learningnlp+1 more
NX-AI/xlstm-jaxCommunity100%

Official JAX implementation of xLSTM including fast and efficient training and inference code. 7B model available at https://huggingface.co/NX-AI/xLSTM-7b.

1057C, C++Dec 11, 20246 months agoNOASSERTION
xlstm
NX-AI/mlstm_kernelsCommunity100%

Tiled Flash Linear Attention library for fast and efficient mLSTM Kernels.

9210Shell, PythonDec 10, 20246 months agoNOASSERTION
deep-learningllmrnntriton-kernelsxlstm

Similar Papers

Cite this paper

@article{beck2025xlstm,
  title  = {xLSTM 7B: A Recurrent LLM for Fast and Efficient Inference},
  author = {Maximilian Beck and Korbinian Pöppel and Phillip Lippe and Richard Kurle and Patrick M. Blies and Günter Klambauer and Sebastian Böck and Sepp Hochreiter},
  year   = {2025},
  eprint = {2503.13427},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.13427v1},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.13427.svg)](https://codeofpaper.com/paper/2503.13427)

Discussion