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 · DOI

Abstract

This paper introduces a robust framework for Contrastive Language-Audio Pretraining (CLAP), effectively bridging the gap between audio signals and natural language. By leveraging the massive LAION-Audio-630K dataset and employing novel techniques such as keyword-to-caption augmentation and attentional feature fusion, the authors achieve state-of-the-art results in text-to-audio retrieval and zero-shot audio classification. The model demonstrates significant generalization capabilities, outperforming specialized models on standard benchmarks.

Introduction

While models like CLIP have revolutionized image-text alignment, the audio domain has faced significant hurdles. Most existing audio models rely on labor-intensive, manually labeled datasets that provide short keywords (e.g., "dog bark") rather than rich natural language descriptions. Furthermore, audio files vary wildly in duration, making it difficult for standard neural networks to process them efficiently without losing information. This research addresses these challenges by scaling data, enriching text labels, and developing an architecture capable of handling variable-length inputs.

Methodology

The CLAP framework maps audio and text into a shared mathematical space where related pairs are pulled together and unrelated pairs are pushed apart.

Architecture and Feature Fusion

The authors utilized HTSAT (a hierarchical vision-transformer-based audio encoder) and RoBERTa (a robust text encoder) as the primary backbones. To handle audio clips longer than 10 seconds, they developed an Attentional Feature Fusion (AFF) block. This mechanism combines a "global" downsampled view of the entire clip with several "local" high-resolution crops, allowing the model to capture both the overall context and fine acoustic details.

Keyword-to-Caption Augmentation

To bridge the gap between simple labels and descriptive text, the researchers used a T5 language model to transform keywords into natural language captions. For example, a label like "vacuum cleaner, hum" is augmented into "The steady hum of a vacuum cleaner fills the room." This process also included de-biasing to ensure gender-neutral descriptions.

The CLAP architecture featuring audio feature fusion and keyword-to-caption augmentation.

Datasets

The study introduces LAION-Audio-630K, the largest public dataset of its kind, containing over 633,000 audio-text pairs sourced from the web. Additionally, the authors "upgraded" the standard AudioSet (1.9 million samples) using their keyword-to-caption model. Other benchmarks used for training and evaluation include AudioCaps, Clotho, ESC-50, and UrbanSound8K.

Key Results and Discussion

The CLAP model set new benchmarks across multiple tasks:

  • Text-to-Audio Retrieval: Achieved a Mean Average Precision (mAP@10) of 51.3 on AudioCaps and 20.4 on Clotho.
  • Zero-Shot Classification: On the ESC-50 dataset, the model achieved 91.0% accuracy without seeing specific training labels, a massive jump over the previous state-of-the-art of 82.6%.
  • Encoder Selection: RoBERTa was found to be more resistant to overfitting than the original CLIP-Text encoder, likely due to its pretraining on a broader variety of natural language.
Comparison between zero-shot audio classification matching and supervised fine-tuning.

Conclusion

CLAP represents a significant advancement in audio-language modeling. While a trade-off exists between different types of audio data distributions (e.g., environmental sounds vs. complex story-like descriptions), the model's zero-shot performance is often comparable to specialized models. Future work will focus on scaling the dataset further and applying these representations to tasks like 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