xLSTM: Extended Long Short-Term Memory
Authors: Maximilian Beck, Korbinian Pöppel, Markus Spanring, Andreas Auer, Oleksandra Prudnikova, Michael Kopp, Günter Klambauer, Johannes Brandstetter, Sepp Hochreiter
Abstract
In the 1990s, the constant error carousel and gating were introduced as the central ideas of the Long Short-Term Memory (LSTM). Since then, LSTMs have stood the test of time and contributed to numerous deep learning success stories, in particular they constituted the first Large Language Models (LLMs). However, the advent of the Transformer technology with parallelizable self-attention at its core marked the dawn of a new era, outpacing LSTMs at scale. We now raise a simple question: How far do we get in language modeling when scaling LSTMs to billions of parameters, leveraging the latest techniques from modern LLMs, but mitigating known limitations of LSTMs? Firstly, we introduce exponential gating with appropriate normalization and stabilization techniques. Secondly, we modify the LSTM memory structure, obtaining: (i) sLSTM with a scalar memory, a scalar update, and new memory mixing, (ii) mLSTM that is fully parallelizable with a matrix memory and a covariance update rule. Integrating these LSTM extensions into residual block backbones yields xLSTM blocks that are then residually stacked into xLSTM architectures. Exponential gating and modified memory structures boost xLSTM capabilities to perform favorably when compared to state-of-the-art Transformers and State Space Models, both in performance and scaling.
The papers around it, by date and closeness
Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper
Papers around this one
Ranked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
LSTMem: Hierarchical Long Short-Term Online Memory for Large Language ModelsXiang-Long Shi, Rui-Jie Yang, Si-Rui Zhao et al. · 2026 · Not summarized yet
LSTMem uses LSTM-inspired matrix-valued memory states to equip frozen large language models with online memory.
Abstract
Large language models increasingly serve as long-horizon assistants and agents, where they must both accumulate information across interactions and make the relevant parts available when later requests depend on them. Existing compact online memories typically use a single persistent state both to accumulate history and to serve readout, so what the memory stores cannot be controlled separately from what it exposes to the current computation. We propose LSTMem, an LSTM-inspired online memory that instead equips each layer of a frozen LLM with two matrix-valued states: a cell state that accumulates history and a hidden state whose readouts correct the backbone's attention. Input and forget ga…
-
Long Short-Term Memory Networks: A Comprehensive SurveyMoez Krichen, Alaeddine Mihoub · 2025 · Applied Informatics · cited 135 times · Not summarized yet
The survey reviews LSTM architectures, gating, cell states, and applications across domains.
Abstract
Long Short-Term Memory (LSTM) networks have revolutionized the field of deep learning, particularly in applications that require the modeling of sequential data. Originally designed to overcome the limitations of traditional recurrent neural networks (RNNs), LSTMs effectively capture long-range dependencies in sequences, making them suitable for a wide array of tasks. This survey aims to provide a comprehensive overview of LSTM architectures, detailing their unique components, such as cell states and gating mechanisms, which facilitate the retention and modulation of information over time. We delve into the various applications of LSTMs across multiple domains, including the following: natur…
-
Intrinsically Sparse Long Short-Term Memory NetworksShiwei Liu, D. Mocanu, Mykola Pechenizkiy · 2019 · arXiv.org · preprint, not peer reviewed · cited 9 times · Not summarized yet
Intrinsically Sparse LSTM compresses LSTMs to reduce memory bandwidth and training and inference costs, rather than modifying their memory structure.
Abstract
Long Short-Term Memory (LSTM) has achieved state-of-the-art performances on a wide range of tasks. Its outstanding performance is guaranteed by the long-term memory ability which matches the sequential data perfectly and the gating structure controlling the information flow. However, LSTMs are prone to be memory-bandwidth limited in realistic applications and need an unbearable period of training and inference time as the model size is ever-increasing. To tackle this problem, various efficient model compression methods have been proposed. Most of them need a big and expensive pre-trained model which is a nightmare for resource-limited devices where the memory budget is strictly limited. To r…
-
Augmenting Language Models with Long-Term MemoryWeizhi Wang, Li Dong, Hao Cheng et al. · 2023 · Computation and Language · cited 274 times · AI summary available
LongMem adds a separate long-term memory retriever to frozen language models, addressing long-context limitations rather than scaling LSTM architectures.
Abstract
Existing large language models (LLMs) can only afford fix-sized inputs due to the input length limit, preventing them from utilizing rich long-context information from past inputs. To address this, we propose a framework, Language Models Augmented with Long-Term Memory (LongMem), which enables LLMs to memorize long history. We design a novel decoupled network architecture with the original backbone LLM frozen as a memory encoder and an adaptive residual side-network as a memory retriever and reader. Such a decoupled memory design can easily cache and update long-term past contexts for memory retrieval without suffering from memory staleness. Enhanced with memory-augmented adaptation training…
-
Distil-xLSTM: Learning Attention Mechanisms through Recurrent StructuresAbdoul Majid O. Thiombiano, Brahim Hnich, A. Ben Mrad et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 2 times · Not summarized yet
Distil-xLSTM uses xLSTM recurrent structures for a distilled small language model.
Abstract
The current era of Natural Language Processing (NLP) is dominated by Transformer models. However, novel architectures relying on recurrent mechanisms, such as xLSTM and Mamba, have been proposed as alternatives to attention-based models. Although computation is done differently than with the attention mechanism mechanism, these recurrent models yield good results and sometimes even outperform state-of-the-art attention-based models. In this work, we propose Distil-xLSTM, an xLSTM-based Small Language Model (SLM) trained by distilling knowledge from a Large Language Model (LLM) that shows promising results while being compute and scale efficient. Our Distil-xLSTM focuses on approximating a tr…
-
M+: Extending MemoryLLM with Scalable Long-Term MemoryYu Wang, Dmitry Krotov, Yuanzhe Hu et al. · 2025 · Computation and Language · cited 55 times · AI summary available
M+ extends latent-space memory in MemoryLLM to retain distant information, while xLSTM modifies recurrent memory for language modeling.
Abstract
Equipping large language models (LLMs) with latent-space memory has attracted increasing attention as they can extend the context window of existing language models. However, retaining information from the distant past remains a challenge. For example, MemoryLLM (Wang et al., 2024a), as a representative work with latent-space memory, compresses past information into hidden states across all layers, forming a memory pool of 1B parameters. While effective for sequence lengths up to 16k tokens, it struggles to retain knowledge beyond 20k tokens. In this work, we address this limitation by introducing M+, a memory-augmented model based on MemoryLLM that significantly enhances long-term informati…
-
Liger: Linearizing Large Language Models to Gated Recurrent StructuresDisen Lan, Wei-Gao Sun, Jia-Xi Hu et al. · 2025 · International Conference on Machine Learning · cited 34 times · Not summarized yet
Liger converts pretrained language models into gated linear recurrent structures, while xLSTM introduces new LSTM gates and memory structures.
Abstract
Transformers with linear recurrent modeling offer linear-time training and constant-memory inference. Despite their demonstrated efficiency and performance, pretraining such non-standard architectures from scratch remains costly and risky. The linearization of large language models (LLMs) transforms pretrained standard models into linear recurrent structures, enabling more efficient deployment. However, current linearization methods typically introduce additional feature map modules that require extensive fine-tuning and overlook the gating mechanisms used in state-of-the-art linear recurrent models. To address these issues, this paper presents Liger, short for Linearizing LLMs to gated recu…
-
Working Memory Connections for LSTMFederico Landi, L. Baraldi, M. Cornia et al. · 2021 · Neural Networks · cited 284 times · Not summarized yet
Working Memory Connections modifies LSTM gates using cell-state information, an earlier change to the gating and memory design.
Abstract
Recurrent Neural Networks with Long Short-Term Memory (LSTM) make use of gating mechanisms to mitigate exploding and vanishing gradients when learning long-term dependencies. For this reason, LSTMs and other gated RNNs are widely adopted, being the standard de facto for many sequence modeling tasks. Although the memory cell inside the LSTM contains essential information, it is not allowed to influence the gating mechanism directly. In this work, we improve the gate potential by including information coming from the internal cell state. The proposed modification, named Working Memory Connection, consists in adding a learnable nonlinear projection of the cell content into the network gates. Th…
Papers that cite it
-
On Subquadratic Architectures: From Applications to PrinciplesA. Hartl, Levente Zólyomi, David Stap et al. · 2026 · arXiv.org · preprint, not peer reviewed · Not summarized yet
On Subquadratic Architectures compares xLSTM with other subquadratic models and reports xLSTM's strongest overall performance across its tasks.
Abstract
Transformers dominate modern sequence modeling, but their quadratic attention incurs substantial computational cost. Subquadratic architectures offer a scalable alternative. However, it remains unclear which designs yield the most effective sequence models. We compare three leading approaches: xLSTM, Mamba-2, and Gated DeltaNet. We evaluate these models on tasks with complex dependencies: (1) code-model pre-training, (2) distillation of code models from large language models, and (3) pre-training of time-series foundation models. Across these settings, xLSTM delivers the strongest overall performance. To explain xLSTM's advantage, we present a unified formulation and analyze the underlying a…
-
M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language ModelingMayank Mishra, Shawn Tan, Ion Stoica et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 9 times · Not summarized yet
M2RNN cites xLSTM while developing matrix-valued recurrent states for scalable language modeling.
Abstract
Transformers are highly parallel but are limited to computations in the TC$^0$ complexity class, excluding tasks such as entity tracking and code execution that provably require greater expressive power. Motivated by this limitation, we revisit non-linear Recurrent Neural Networks (RNNs) for language modeling and introduce Matrix-to-Matrix RNN (M$^2$RNN): an architecture with matrix-valued hidden states and expressive non-linear state transitions. We demonstrate that the language modeling performance of non-linear RNNs is limited by their state size, and show how the state size expansion mechanism enables efficient use of tensor cores. Empirically, M$^2$RNN achieves perfect state tracking ge…
-
Advanced Stock Price Prediction with xLSTM-Based Models: Improving Long-Term ForecastingXiaojing Fan, Chunliang Tao, Jianyu Zhao · 2024 · International Conference on Soft Computing & Machine Intelligence (ISCMI) · cited 43 times · Not summarized yet
The stock prediction study applies xLSTM to forecasting short- and long-term stock prices.
Abstract
Stock price prediction has long been a critical area of research in financial modeling. The inherent complexity of financial markets, characterized by both short-term fluctuations and long-term trends, poses significant challenges in accurately capturing underlying patterns. While Long Short-Term Memory (LSTM) networks have shown strong performance in short-term stock price prediction, they struggle with effectively modeling long-term dependencies. In this paper, we propose an advanced stock price prediction model based on the Extended Long Short-Term Memory (xLSTM) algorithm, designed to enhance predictive accuracy over both short and long-term periods. We conduct extensive experiments by b…
-
CDxLSTM: Boosting Remote Sensing Change Detection With Extended Long Short-Term MemoryZhenkai Wu, Xiaowen Ma, Rongrong Lian et al. · 2025 · IEEE Geoscience and Remote Sensing Letters · cited 18 times · Not summarized yet
CDxLSTM applies an xLSTM-based feature enhancement layer to remote-sensing change detection.
Abstract
In complex scenes and varied conditions, effectively integrating spatial-temporal context is crucial for accurately identifying changes. However, current RS-CD methods lack a balanced consideration of performance and efficiency. CNNs lack global context, Transformers are computationally expensive, and Mambas face CUDA dependence and local correlation loss. In this paper, we propose CDXLSTM, with a core component that is a powerful XLSTM-based feature enhancement layer, integrating the advantages of linear computational complexity, global context perception, and strong interpret-ability. Specifically, we introduce a scale-specific Feature Enhancer layer, incorporating a Cross-Temporal Global …
-
SmoLSTM: A Compact Vision-Language-Action Model with Recurrent Memory that PersistsJan-Gerrit Habekost, Parsa Mastouri Kashani, Connor Gäde et al. · 2026 · Not summarized yet
SmoLSTM uses a matrix-memory LSTM control layer to retain episode history in vision-language-action tasks.
Abstract
Vision-language-action models often predict actions from only the current observation, which can leave tasks involving object occlusion or visually identical objects ambiguous without episode history. The usual countermeasure, widening the observation window, turns the horizon into a hyperparameter and lets per-step cost grow with it. We instead capture the episode in a recurrent state. SmoLSTM couples a frozen 256M-parameter SmolVLM backbone to a matrix-memory LSTM control layer in which observation tokens and action queries are unified in a single causal stream that is never reset throughout the entire episode. Recurrent-state storage is therefore O(1) in episode length. A flow-matching ac…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 3 November 2026.