Large-Scale Contrastive Language-Audio Pretraining with Feature Fusion and Keyword-to-Caption Augmentation

Yusong Wu, Ke Chen, Tianyu Zhang, Yuchen Hui, Taylor Berg-Kirkpatrick, Shlomo Dubnov

Abstract

Contrastive language-audio pretraining aims to map audio and text into a shared latent space, enabling powerful zero-shot capabilities and retrieval performance. This paper introduces a robust pipeline to overcome the primary bottlenecks in this domain: data scarcity and variable-length audio inputs. By introducing the massive LAION-Audio-630K dataset, a novel attentional feature fusion mechanism, and an LLM-based keyword-to-caption augmentation strategy, the authors achieve state-of-the-art results across multiple audio benchmarks.

Introduction: The "CLIP for Audio"

Contrastive learning has revolutionized computer vision through models like OpenAI's CLIP, which learn from massive amounts of image-text pairs. However, applying this paradigm to audio has faced significant hurdles. Unlike images, which can be easily resized, audio clips vary wildly in duration. Furthermore, high-quality audio-text datasets are significantly smaller than their visual counterparts.

This research addresses these challenges by building a comprehensive contrastive learning pipeline. The authors systematically evaluate various encoder combinations, eventually identifying HTSAT (Hierarchical Token-Semantic Audio Transformer) and RoBERTa as the most effective backbone for audio and text, respectively.

Methodology: Feature Fusion and Text Augmentation

To handle the diversity of audio data and the limitations of existing datasets, the authors introduce two primary technical innovations illustrated in the architecture below.

The proposed contrastive pretraining architecture, featuring the dual-path audio encoder for variable-length inputs and the keyword-to-caption augmentation pipeline.

1. Feature Fusion for Variable-Length Audio

Standard transformer-based audio encoders often struggle with long-form audio due to computational complexity. The authors propose a feature fusion mechanism that avoids expensive "slice and vote" methods. Instead, they combine a downsampled "global" view of the entire audio clip with randomly sampled "local" slices. These views are merged using an Attentional Feature Fusion (AFF) network, allowing the model to process audio of any length with constant computation time while preserving both global context and local detail.

2. Keyword-to-Caption Augmentation

Large-scale datasets like AudioSet often contain only simple keyword tags rather than descriptive sentences. To bridge this gap, the authors utilize a pre-trained T5 language model to transform these tags into natural language captions. This process enriches the text embedding space, providing the model with more descriptive signals during training. A post-processing step is also applied to debias the generated text, ensuring more neutral and generalized representations.

Data Scaling: LAION-Audio-630K

A core contribution of this work is the release of LAION-Audio-630K, the largest publicly available audio-caption dataset to date. Comprising over 633,000 pairs (approximately 4,325 hours of audio), it aggregates data from eight public sources. This dataset provides the scale necessary for the model to learn generalized audio features that transfer effectively to "in-the-wild" downstream tasks.

Experimental Results and Downstream Performance

The resulting model, referred to as CLAP, sets new benchmarks in both zero-shot and supervised settings.

Zero-Shot Classification

The model demonstrates remarkable generalization, significantly outperforming previous state-of-the-art (SOTA) models. It achieved 91.0% accuracy on ESC-50 (an 8.4% improvement) and 46.2% on VGGSound, a massive leap from the 10.0% baseline seen in prior work. These results suggest that the synthetic captions and large-scale pretraining successfully created a more robust embedding space.

Supervised Fine-Tuning

Beyond zero-shot tasks, the model serves as a powerful feature extractor for supervised learning. When fine-tuned for specific classification tasks, the model achieves a new SOTA on VGGSound (75.4% mAP).

The fine-tuning pipeline used to adapt the pretrained audio encoder for downstream classification tasks.

Text-to-Audio Retrieval

In retrieval tasks, the model reached SOTA recall metrics, hitting an R@1 of 36.7% on AudioCaps and 18.2% on Clotho. The authors noted a trade-off: while scaling data improves performance on diverse datasets like Clotho, it can cause a slight distribution shift that marginally affects performance on narrower, domain-specific benchmarks like AudioCaps.

Conclusion and Future Work

This work provides a scalable blueprint for audio-language pretraining. By addressing the structural challenges of audio data and the scarcity of natural language annotations, the authors have created a model that generalizes across a wide array of sounds. Future research will focus on scaling the training data even further and applying these generalized representations to generative tasks, such as audio synthesis and source separation.

Summary updated

BibTeX
@inproceedings{wu2023large,
  author = {Yusong Wu and Ke Chen and Tianyu Zhang and Yuchen Hui and Taylor Berg-Kirkpatrick and Shlomo Dubnov},
  title = {{Large-Scale Contrastive Language-Audio Pretraining with Feature Fusion and Keyword-to-Caption Augmentation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095969},
}
Figure