xLSTM: Extended Long Short-Term Memory

Maximilian Beck, Korbinian Poppel, M. Spanring, Andreas Auer, Oleksandra Prudnikova, Michael K Kopp, G. Klambauer, Johannes Brandstetter, Sepp Hochreiter

arXiv:2405.04517 · 2026-07-27 공개 · arXiv · PDF

transformer long-context large-language-models lstm state-space-models xlstm exponential-gating residual-blocks

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.

한국어 요약

한 줄 요약

xLSTM은 LSTM을 확장한 새로운 아키텍처로, Transformer와 경쟁할 수 있는 성능을 보인다.

핵심 기여도

핵심 아이디어

기존 LSTM은 메모리 관리와 계산 효율성 측면에서 한계가 있었다. xLSTM은 이 문제를 해결하기 위해 메모리 구조와 게이팅 메커니즘을 재설계했다. 특히, 지수 게이팅은 메모리 업데이트 시 더 큰 범위의 값을 표현할 수 있게 하며, 메모리 안정성을 높인다. sLSTM은 스칼라 메모리와 새로운 업데이트 방식을 도입하여 정확도를 향상시키고, mLSTM은 행렬 기반 메모리와 공분산 업데이트를 통해 병렬 처리가 가능하다. 이 두 모듈은 잔차 연결 구조에 통합되어 xLSTM 아키텍처를 형성한다.

기술적 접근법

주요 결과

의의 및 한계

xLSTM은 LSTM의 장점을 유지하면서 현대적 LLM 기술을 결합함으로써, Transformer와의 경쟁 구도에 새로운 가능성을 제시한다. 특히, 메모리 구조와 게이팅 메커니즘의 혁신은 RNN 계열 모델의 재조명을 유도할 수 있다. 그러나 초록에서는 구체적인 성능 수치나 벤치마크 실험 결과가 명시되지 않아, 실제 적용 가능성에 대한 명확한 평가가 어렵다.

실용적 활용

xLSTM은 대규모 언어 모델링, 시계열 분석, 음성 처리 등에서 활용 가능하며, 병렬 처리가 필요한 산업 분야에서 기존 Transformer 대안으로 사용될 수 있다.