Unsupervised Improvement of Audio-Text Cross-Modal Representations

Zhepei Wang, Cem Subakan, Krishna Subramani, Junkai Wu, Tiago Tavares, Fábio Ayres, Paris Smaragdis

TL;DR

This paper tackles the challenge of training robust audio-text models without relying on massive, perfectly aligned datasets. They introduce unsupervised methods to curate "improvement sets" of audio-text pairs from unpaired data, significantly boosting zero-shot classification performance, especially when combined with a novel "soft-labeled" contrastive loss.

What Problem Does This Paper Address?

Current state-of-the-art methods for learning audio-text representations, like CLAP, have enabled impressive zero-shot classification capabilities. This means models can identify sounds even if they haven't been explicitly trained on those specific labels. However, these methods typically require a vast amount of paired audio and text data (e.g., an audio clip and its precise textual description). Acquiring such high-quality, aligned data is expensive and time-consuming, creating a bottleneck for scaling these powerful models. The paper aims to overcome this limitation by exploring unsupervised techniques to improve existing audio-text models using unpaired audio and text data.

Methods

The core of this work lies in developing unsupervised strategies to create "Improvement-Sets" of audio-text pairs. These sets are then used to fine-tune an initial "teacher" model into a better "student" model.

  1. Domain-Unspecific Curation (DU): This method uses a pre-trained teacher model to find matches between existing training captions and in-the-wild audio clips. Pairs with a high similarity score (above a threshold $\sigma$) are added to the Improvement-Set.
  2. Domain-Specific Curation (DS): This approach refines the process by first identifying text labels relevant to a specific downstream task (e.g., sound event classification). It then filters the training data to include audio-text pairs whose captions are most similar to these in-domain labels.
  3. Augmented Domain-Specific Curation (ADS): This builds upon DS by further incorporating in-the-wild audio. It first identifies domain-specific captions and then uses the teacher model to align these captions with relevant in-the-wild audio clips.
  4. Soft-Labeled Contrastive Loss: The authors propose a modification to the standard contrastive loss. Instead of using hard (one-hot) labels, they introduce "soft labels" derived from the similarity between samples within a batch. This helps the model better handle cases where similar audio-text pairs might appear in the same batch, preventing it from being overly penalized for not distinguishing them perfectly. This is particularly useful when using curated datasets that might contain more similar examples.

Datasets

  • Training Data (Teacher Model): The authors use a standard dataset for training the initial teacher CLAP model, comprising 128k paired audio and text captions from FSD50k, ClothoV2, AudioCaps, and MACS.
  • Unpaired Data for Curation: For unsupervised curation, they leverage over 1.9 million audio clips from the unbalanced training set of AudioSet. Importantly, no label information from AudioSet is used during the curation process.
  • Downstream Evaluation Datasets:
    • ESC-50: For sound event classification (50 environmental sound classes).
  • UrbanSound8K: For sound event classification (10 urban sound classes).
  • TUT Acoustic Scenes 2017 (TUT17): For acoustic scene classification (15 scene classes).

Key Insights and Ideas

  • Unpaired Data is Powerful: The paper demonstrates that even without perfect alignment, unpaired audio and text can be effectively leveraged to improve audio-text models.
  • Domain Specificity Matters: Simply using general in-the-wild data (DU) provides some improvement, but tailoring the curated data to the specific downstream task (DS and ADS) yields significantly better results.
  • Soft Labels are Crucial for Curated Data: The soft-labeled loss is not just a minor tweak; it's essential for realizing the full potential of domain-specific curated datasets. It helps the model learn more robust representations when dealing with potentially similar examples within a batch.
  • Synergy is Key: The best performance is achieved by combining domain-specific curation strategies (especially ADS) with the soft-labeled loss. These two components work synergistically.
  • Teacher Model Quality is Less Critical Than Expected: The proposed methods show substantial improvements even when the initial teacher model is trained on a much smaller subset (10%) of the original data, highlighting the effectiveness of the unsupervised curation and fine-tuning process.

Key Results

  • Significant Zero-Shot Accuracy Gains: The proposed methods, particularly ADS + Soft Labels (ADS+SL), achieve substantial improvements in zero-shot classification accuracy across all three downstream datasets (ESC-50, UrbanSound8K, TUT17).
  • On ESC-50, ADS+SL improves accuracy from the baseline teacher's 81.9% to 85.1%.
  • On UrbanSound8K, accuracy increases from 74.8% to 77.4%.
  • On TUT17, accuracy jumps from 29.8% to 36.0%.
  • Robustness to Limited Teacher Data: Even when the teacher model is trained on only 10% of the data, the ADS+SL strategy brings the student model's performance close to that of a teacher trained on the full dataset. For instance, on ESC-50, the subset-trained teacher achieves 74.2%, while the ADS+SL student reaches 81.3%.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the soft-labeled loss alone, without curation, does not always yield consistent gains and can even decrease performance on some datasets.
  • The domain-unspecific curation (DU) shows less consistent improvement compared to domain-specific methods.
  • Future Work:
    • The authors plan to explore incorporating general text corpora into the curation pipeline.
  • They also aim to investigate more advanced algorithms for audio-text matching to further enhance the curation process.

Summary updated

Abstract

Recent advances in using language models to obtain cross-modal audio-text representations have overcome the limitations of conventional training approaches that use predefined labels. This has allowed the community to make progress in tasks like zero-shot classification, which would otherwise not be possible. However, learning such representations requires a large amount of human-annotated audio-text pairs. In this paper, we study unsupervised approaches to improve the learning framework of such representations with unpaired text and audio. We explore domain-unspecific and domain-specific curation methods to create audio-text pairs that we use to further improve the model. We also show that when domain-specific curation is used in conjunction with a soft-labeled contrastive loss, we are able to obtain significant improvement in terms of zero-shot classification performance on downstream sound event classification or acoustic scene classification tasks.
BibTeX
@inproceedings{wang2023unsupervised,
  author = {Zhepei Wang and Cem Subakan and Krishna Subramani and Junkai Wu and Tiago Tavares and Fábio Ayres and Paris Smaragdis},
  title = {{Unsupervised Improvement of Audio-Text Cross-Modal Representations}},
  booktitle = {WASPAA},
  year = {2023},
  doi = {10.1109/waspaa58266.2023.10248180},
}
Figure