NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SSAMBA: Self-Supervised Audio Representation Learning with Mamba State Space Model

Siavash Shams, Sukru Samet Dindar, Xilin Jiang, Nima Mesgarani · DOI

Introduction

Recent advancements in audio representation learning have been dominated by the Audio Spectrogram Transformer (AST) and its self-supervised variant (SSAST). While effective, these models rely on self-attention mechanisms with quadratic complexity ($O(n^2)$) relative to sequence length. This computational bottleneck limits their applicability for long-form audio and resource-constrained environments.

SSAMBA (Self-Supervised Audio Mamba) addresses this by replacing the Transformer backbone with a bidirectional Mamba State Space Model (SSM). Mamba offers linear scaling ($O(n)$) while maintaining the ability to capture long-range dependencies, making it an ideal candidate for efficient, general-purpose audio representation learning.

Methods

SSAMBA introduces several architectural and training innovations to adapt the Mamba framework for audio tasks.

Bidirectional Mamba Encoder

Unlike standard causal Mamba models used in language modeling, SSAMBA employs a bidirectional Mamba encoder. Since audio classification often benefits from global context (where the end of a sound informs the beginning), processing patches in both forward and backward directions is essential to capture a full receptive field without the cost of self-attention.

The SSAMBA architecture featuring a bidirectional Mamba encoder and the MSPM self-supervised pretraining framework.

Patch-Based Processing and Pretraining

Following the Vision Transformer paradigm, input log Mel spectrograms are divided into $16 \times 16$ patches, flattened, and augmented with learnable positional encodings. The model is pretrained using Masked Spectrogram Patch Modeling (MSPM) on a combined dataset of AudioSet-2M and LibriSpeech. During MSPM, the model optimizes a dual objective: a discriminative task (InfoNCE loss) to identify masked patches among distractors, and a generative task (MSE loss) to reconstruct the original content of masked patches.

Key Results

SSAMBA demonstrates superior performance and efficiency across a wide range of benchmarks, including AudioSet-20K, ESC-50, and Speech Commands.

Performance and Efficiency

SSAMBA-base consistently outperforms SSAST-base, achieving a mean Average Precision (mAP) of 28.3 on AudioSet-20K (vs. 26.9 for SSAST) and 80.8 mAP on the complex Dynamic Audio Scene Labeling (DASL) task (vs. 78.7 for SSAST).

The most significant advantage of SSAMBA is its computational efficiency. As sequence lengths increase, the linear scaling of the Mamba backbone becomes transformative. For inputs of approximately 22k patches, SSAMBA-tiny is up to 92.7% faster and 95.4% more memory-efficient than its Transformer-based counterpart.

Inference time and GPU memory usage comparison between SSAMBA and SSAST variants as a function of input patch count.

Discussion and Future Work

The success of SSAMBA highlights that selective state-space dynamics can match the "global reach" of self-attention without its prohibitive quadratic costs. Future research will explore alternative masking strategies, such as frame-based masking, to improve performance on speech-specific tasks like speaker identification. Additionally, scaling the model to larger variants may further widen the efficiency gap over traditional Transformer architectures at the extreme scale.

Summary updated

BibTeX
@inproceedings{shams2024ssamba,
  author = {Siavash Shams and Sukru Samet Dindar and Xilin Jiang and Nima Mesgarani},
  title = {{SSAMBA: Self-Supervised Audio Representation Learning with Mamba State Space Model}},
  booktitle = {SLT},
  year = {2024},
  url = {https://openreview.net/forum?id=qYhxLWogXT},
}
Figure