Abstract
Recent advances in audio representation learning have been dominated by Transformer architectures, which, despite their success, face challenges with quadratic computational complexity. This paper introduces AxLSTMs (Audio xLSTMs), a novel approach that revitalizes recurrent architectures using the extended Long Short-Term Memory (xLSTM) framework. By employing a masked patch modeling objective, AxLSTMs achieve up to a 25% relative performance improvement over comparable Transformer baselines (SSAST) while utilizing significantly fewer parameters. Our results demonstrate that modern recurrent models are highly competitive and efficient alternatives for general-purpose audio modeling.
Introduction
For several years, the Transformer architecture has been the de facto standard for audio processing tasks. However, its quadratic complexity relative to sequence length poses significant scaling challenges. Historically, Recurrent Neural Networks (RNNs) like LSTMs offered linear scaling but were hampered by limited memory capacity, information bottlenecks in scalar cell states, and a lack of parallelizability.
The recently proposed xLSTM architecture addresses these flaws through exponential gating and matrix-based memory. This paper explores whether xLSTMs can serve as a viable backbone for self-supervised audio representation learning, potentially offering a more efficient path forward than traditional attention-based models.
The AxLSTM Architecture
The core of the AxLSTM is the matrix LSTM (mLSTM) block. Unlike standard LSTMs, the mLSTM utilizes a matrix memory cell and is fully parallelizable, enabling training speeds comparable to Transformers.
The model follows a masked predictive modeling pipeline:
- Patch Embedding: Input spectrograms are divided into non-overlapping patches.
- Masking: Approximately 50% of the patches are randomly masked.
- Encoding: The xLSTM encoder processes the sequence. To overcome the unidirectional nature of standard RNNs, the authors implement a "flip" trick where even-numbered blocks process the sequence in reverse, providing bidirectional context.
- Reconstruction: A Multi-Layer Perceptron (MLP) reconstructs the original spectrogram values from the encoder's output.
Experimental Setup
Models were pretrained on AudioSet, comprising approximately 2 million 10-second clips. Evaluation was conducted using the HEAR (Holistic Evaluation of Audio Representations) benchmark, which spans 10 diverse tasks including music, speech, and environmental sound classification.
Results and Discussion
AxLSTMs demonstrate superior parameter efficiency and performance compared to Transformer baselines. Specifically, AxLSTM-Base (65.6M parameters) achieved an aggregate score of 86.6 on the HEAR benchmark, significantly outperforming SSAST-Base (85.7M parameters), which scored 68.7. This performance matches that of more complex state-of-the-art models like BEATs and MSM-MAE, despite AxLSTM's simpler reconstruction-only objective.
Key findings include:
- Scalability: AxLSTMs scale effectively with sequence length, showing continued improvement as patch sizes decrease and sequence lengths increase—a regime where Transformers often struggle.
- Efficiency: The "Tiny" variant of AxLSTM (4.3M parameters) outperforms its SSAST counterpart (5.4M parameters) while being 20% smaller.
- Gating Mechanism: Exponential gating proved crucial for performance, likely by allowing the model to filter noise in complex audio signals more effectively.
Conclusion
AxLSTMs represent a significant step in re-establishing recurrent architectures as top-tier contenders in audio representation learning. By combining the linear scaling of RNNs with the parallelizability and memory capacity of modern architectures, AxLSTMs offer a high-performance, efficient alternative to Transformers. Future work will focus on scaling these models to the "Large" and "Huge" regimes and refining bidirectional modeling techniques.
Summary updated