uaMix-MAE: Efficient Tuning of Pretrained Audio Transformers with Unsupervised Audio Mixtures

Afrina Tabassum, Dung N. Tran, Trung Dang, Ismini Lourentzou, Kazuhito KoishidaICASSP 2024 · DOI

TL;DR

This paper introduces uaMix-MAE, a novel method for efficiently tuning pre-trained Masked Autoencoders (MAEs) for audio tasks. By combining contrastive learning with a unique unsupervised audio mixing strategy, uaMix-MAE significantly improves performance in low-data scenarios, outperforming existing methods by up to 6%.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has revolutionized representation learning in various domains, including audio. Masked Autoencoders (MAEs) excel at learning rich, low-level audio features by reconstructing masked audio segments. However, MAEs often lack semantic alignment, requiring substantial labeled data for effective adaptation to downstream tasks. Instance Discrimination (ID) methods, like contrastive learning, are better at capturing high-level semantics but can be computationally expensive and require large unlabeled datasets for effective training. The challenge is to leverage the strengths of both MAEs and ID methods to achieve efficient adaptation to downstream tasks, especially in low-data regimes, without incurring prohibitive computational costs or requiring massive unlabeled datasets.

Methods

The core of uaMix-MAE lies in its efficient contrastive tuning strategy that leverages unsupervised audio mixtures.

  • Pretrained MAE Backbone: The method starts with a pre-trained MAE encoder, which has learned general audio representations.
  • Contrastive Tuning Head: A contrastive head is added to the MAE encoder.
  • NNCLR Objective: The paper employs the Nearest Neighbour Contrastive Learning (NNCLR) objective. This objective aims to pull representations of augmented "positive" samples closer in the feature space while pushing "negative" samples further apart, thereby aligning representations semantically.
  • Progressive Retraining: To optimize training, a progressive retraining strategy is used. Initially, the MAE encoder is frozen, and only the contrastive head is trained. Then, the upper layers of the encoder are unfrozen and retrained along with the head. This approach leverages the idea that lower encoder layers capture general features, while upper layers can be fine-tuned for task-specific semantics.
  • Unsupervised T-CutMix: This is the key novel contribution. Instead of traditional data augmentation applied only to the input audio, T-CutMix manipulates audio in both the input space and a "virtual label" space. It creates mixed audio samples by blending regions of an anchor audio sample with regions of another sample from the batch, using a binary mask. Simultaneously, it creates a "smoothed" virtual label for this mixed sample. This technique is inspired by image-based mixing strategies like MixUp and CutMix but is specifically tailored for audio. The goal is to encourage smoother decision boundaries in the latent feature space, leading to better generalization with less labeled data.

Datasets

The paper evaluates uaMix-MAE on several datasets for different tasks:

  • Self-supervised Training & Fine-tuning: AudioSet-20K
  • Fine-tuning & Few-shot Learning: ESC-50, VoxCeleb1, NSynth, SCv2
  • Few-shot Learning: Kaggle18

These datasets cover a range of audio types and complexities, allowing for a comprehensive evaluation of the method's generalization capabilities.

Key Insights and Ideas

  • Bridging MAE and ID: The paper successfully demonstrates that combining MAE's low-level feature extraction with ID's semantic alignment can lead to more robust and adaptable audio representations, especially in low-data scenarios.
  • The Power of Unsupervised Mixing: The T-CutMix strategy is crucial. By mixing both audio content and virtual labels, the model learns to be invariant to variations introduced by the mixing process, leading to improved generalization. This is a significant departure from simply augmenting input audio.
  • Smoother Decision Boundaries: The T-CutMix technique, by creating mixed samples and smoothed labels, explicitly aims to create less rigid decision boundaries in the learned feature space. This is hypothesized to be key for better performance with limited supervision.
  • Efficient Tuning: The progressive retraining strategy, combined with the efficient mixing approach, allows for effective tuning of large MAE models with significantly less data and computational overhead compared to traditional fine-tuning or training ID models from scratch.

Key Results

  • Few-Shot Learning: uaMix-MAE consistently outperforms strong MAE baselines by 4-6% in low/few-shot settings across various benchmarks (e.g., ESC-50, VoxCeleb1, NSynth, Kaggle18). For instance, on VoxCeleb1, it achieves 66.3±0.9% in 5-way 1-shot learning, outperforming AudioMAE by 5.2%.
  • Fine-tuning: uaMix-MAE achieves comparable results to other baselines in fine-tuning scenarios, demonstrating its versatility.
  • Ablation Studies: The T-CutMix strategy is shown to be critical, significantly outperforming variants with "No Mixing" or only "MixUp + LS" (label smoothing). Applying CutMix in both time and frequency dimensions (TF-CutMix) was found to be less effective than T-CutMix alone.
  • Qualitative Analysis: t-SNE visualizations show that uaMix-MAE produces better intra-class clustering and more distinct separation between classes compared to the original AudioMAE, indicating improved semantic representation.

Limitations and Future Work

  • Computational Cost: While more efficient than some ID methods, contrastive tuning still requires significant computational resources. The paper mentions that "training with abundant unlabeled data is impractical for resource-constrained environments," implying that further efficiency gains are desirable.
  • Hyperparameter Sensitivity: The effectiveness of T-CutMix likely depends on hyperparameters like the beta distribution parameters for mixing coefficients and the mask generation strategy.
  • Future Work: The authors suggest exploring more sophisticated mixing strategies and investigating the application of uaMix-MAE to other modalities or more complex audio tasks. Further research into the theoretical underpinnings of why T-CutMix improves semantic alignment would also be valuable.

Summary updated

BibTeX
@inproceedings{tabassum2024uamix,
  author = {Afrina Tabassum and Dung N. Tran and Trung Dang and Ismini Lourentzou and Kazuhito Koishida},
  title = {{uaMix-MAE: Efficient Tuning of Pretrained Audio Transformers with Unsupervised Audio Mixtures}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10446342},
}
Figure