TL;DR
SLAP (Scalable Language-Audio Pretraining) scales audio-text pretraining to a massive 109 million pairs while natively supporting variable-duration audio up to 30 seconds. By unifying contrastive, self-supervised, and captioning losses into a single-stage training pipeline, SLAP learns both rich global semantics and fine-grained local audio features, setting new state-of-the-art results across multiple audio-language benchmarks.
What Problem Does This Paper Address?
Contrastive Language-Audio Pretraining (CLAP) has become the go-to paradigm for teaching models how to connect sound and text. However, current CLAP models suffer from three major bottlenecks:
- Data Scarcity: While vision-language models like CLIP enjoy billion-scale datasets, CLAP models are typically trained on just a few million samples, forcing them to rely on initializations pretrained on AudioSet rather than training from scratch.
- Rigid Durations: Most Transformer-based audio encoders are restricted to short, fixed-duration clips (usually $\le$ 10 seconds). Shorter clips are padded and longer ones are truncated, leading to wasted compute and lost information.
- Coarse Representations: Standard contrastive objectives align global embeddings (the "whole picture"), which often misses dense, fine-grained local audio features crucial for downstream tasks like audio captioning or tagging.
To solve these issues, the authors introduce SLAP, a framework designed to scale data, flexibly handle variable audio lengths, and capture multi-level audio features simultaneously.
Methods
SLAP introduces a modernized audio Transformer architecture and a unified, single-stage multi-objective training pipeline.
1. Modernized Audio Transformer
Instead of copying vision architectures, the authors redesign the Transformer specifically for audio:
- 2D Rotary Positional Embeddings (RoPE): Better models the time and frequency relationships in mel-spectrograms.
- Alternating Attention: To handle long sequences efficiently, the model interleaves local sliding window attention blocks (capturing local patterns) with global attention blocks (capturing long-range dependencies).
2. Variable Duration via Sequence Packing
To natively support variable-duration audio without wasteful padding, SLAP uses a sequence packing strategy. Mel-spectrogram patches from different clips in a batch are flattened and concatenated into a single 1D sequence, completely removing padded patches. Flash Attention is then leveraged to efficiently compute attention over this variable-length packed sequence.
3. Single-Stage Multi-Objective Training
Instead of complex multi-stage training, SLAP optimizes three losses simultaneously:
- Contrastive Loss ($\mathcal{L}_{\text{CLAP}}$): Aligns global text and audio embeddings using Multi-Head Attention Pooling (MAP).
- Self-Supervised Learning Loss ($\mathcal{L}_{\text{SSL}}$): A masked audio modeling objective where a student network predicts prototype scores of masked patches, guided by an exponential moving average (EMA) teacher network.
- Captioning Loss ($\mathcal{L}_{\text{CAP}}$): A shallow Transformer decoder generates text captions conditioned on dense audio features, ensuring the local patches retain strong semantic meaning.
Datasets
- Pretraining: MovieGen Audio, a massive dataset containing roughly 109 million audio clips of varying durations. Crucially, its captions are synthetically generated by an audio captioning model.
- Evaluation & Fine-tuning:
- AudioCaps & Clotho: Used for audio-text retrieval and audio captioning. Clotho is particularly notable for containing longer, variable-duration clips (15–30 seconds).
- WavCaps: Used to supplement training for zero-shot classification.
- Downstream Benchmarks: ESC-50, UrbanSound8K, CREMA-D, RAVDESS, GTZAN (for zero-shot classification), and AudioSet, SPC-2 (for audio tagging).
Key Insights and Ideas
- Noisy Scale Beats Small Perfection: Even though the 109M pretraining captions were model-generated (and thus contained noise or hallucinations), scaling the data volume by an order of magnitude yielded massive generalization gains.
- Sequence Packing is Highly Efficient: Packing variable-length clips into a single 1D sequence avoids the computational overhead of padding shorter clips to a fixed maximum length, making 30-second audio processing viable.
- Local + Global Objectives Complement Each Other: The ablation studies show that adding local objectives ($\mathcal{L}_{\text{SSL}}$ and $\mathcal{L}_{\text{CAP}}$) directly improves the global retrieval performance ($\mathcal{L}_{\text{CLAP}}$), proving that learning dense features prevents the global embedding from losing critical details.
Key Results
Audio-Text Retrieval
SLAP achieves state-of-the-art results on both AudioCaps and Clotho datasets. When fine-tuned, it achieves a Recall@1 of 47.5% on AudioCaps (Text-to-Audio) and 36.8% on Clotho (Audio-to-Text), substantially outperforming prior models like M2D2 and LAION-CLAP.
Zero-Shot Audio Classification
When fine-tuned on the diverse real-world sound events of WavCaps, SLAP sets new SOTA benchmarks for zero-shot classification on ESC-50 (95.5%) and GTZAN (80.5%).
Limitations and Future Work
- Proprietary Dataset: The primary 109M MovieGen Audio dataset is not publicly available, though the authors note its curation pipeline can be replicated on other large unlabeled audio corpora.
- Shallow Captioning Decoder: For audio captioning tasks, SLAP outperforms similar CLAP-based setups but falls short of SOTA captioning models that utilize massive, pretrained Large Language Models (LLMs) as decoders. Integrating a pretrained LLM into SLAP's single-stage pipeline remains an open direction.
- AudioSet Tagging Gap: On AudioSet tagging, SLAP slightly trails M2D2. The authors attribute this to M2D2 being explicitly self-supervised on AudioSet during pretraining, whereas SLAP was evaluated via direct fine-tuning from its generic movie-audio checkpoint.
Summary updated