Skip to main content
QUICK REVIEW

[Paper Review] CLAR: Contrastive Learning of Auditory Representations

Haider Al-Tahan, Yalda Mohsenzadeh|arXiv (Cornell University)|Oct 19, 2020
Music and Audio ProcessingComputer Science38 references15 citations
TL;DR

CLAR proposes a contrastive self-supervised learning framework for audio representations that combines data augmentations, time-frequency features, and joint supervised-contrastive training. It achieves 96.1% top-1 accuracy on Speech Commands-10, outperforming supervised learning by 1% and SimCLR by 11.3%, while converging faster and generalizing better with limited labeled data.

ABSTRACT

Learning rich visual representations using contrastive self-supervised learning has been extremely successful. However, it is still a major question whether we could use a similar approach to learn superior auditory representations. In this paper, we expand on prior work (SimCLR) to learn better auditory representations. We (1) introduce various data augmentations suitable for auditory data and evaluate their impact on predictive performance, (2) show that training with time-frequency audio features substantially improves the quality of the learned representations compared to raw signals, and (3) demonstrate that training with both supervised and contrastive losses simultaneously improves the learned representations compared to self-supervised pre-training followed by supervised fine-tuning. We illustrate that by combining all these methods and with substantially less labeled data, our framework (CLAR) achieves significant improvement on prediction performance compared to supervised approach. Moreover, compared to self-supervised approach, our framework converges faster with significantly better representations.

Motivation & Objective

  • To investigate whether contrastive self-supervised learning, successful in vision, can be effectively adapted to learn high-quality auditory representations.
  • To evaluate the impact of various audio-specific data augmentations on representation quality in contrastive learning.
  • To determine whether using time-frequency features instead of raw audio improves learned representations in contrastive learning.
  • To explore the benefits of jointly training with supervised and contrastive losses for improved representation quality and faster convergence.
  • To demonstrate that CLAR achieves superior performance with significantly less labeled data compared to supervised and self-supervised baselines.

Proposed method

  • Applies SimCLR-style contrastive learning to audio by maximizing agreement between augmented views of the same audio sample using NT-Xent loss.
  • Introduces and evaluates six audio-specific data augmentations: time shifting, time masking, frequency masking, time stretching, fade in/out, and pitch shifting.
  • Uses time-frequency features (e.g., mel-spectrograms) as input instead of raw waveforms to improve representation quality.
  • Combines supervised and contrastive learning objectives during training, jointly optimizing cross-entropy (CE) and normalized temperature-scaled contrastive (NT-Xent) losses.
  • Employs a ResNet18 encoder with a linear evaluation head, freezing the encoder during evaluation and fine-tuning only the head on labeled data.
  • Trains models for 1000 epochs with early stopping and evaluates performance every 10 epochs to track convergence speed and final accuracy.

Experimental results

Research questions

  • RQ1Which audio data augmentations are most effective for contrastive learning of auditory representations?
  • RQ2Does using time-frequency features instead of raw audio signals improve the quality of contrastive representations?
  • RQ3Can joint training with supervised and contrastive losses improve representation quality and convergence speed compared to sequential pre-training and fine-tuning?
  • RQ4How does CLAR perform under low-shot learning settings with only 1% of labeled data?
  • RQ5Does CLAR achieve faster convergence and better final performance than self-supervised (SimCLR) and supervised baselines?

Key findings

  • CLAR achieves 96.1% top-1 accuracy on the Speech Commands-10 dataset, representing a 1% relative improvement over supervised learning and an 11.3% improvement over SimCLR.
  • The best-performing augmentation combination for raw audio was time masking and time stretching, while for time-frequency features, time masking and time stretching yielded the highest performance.
  • Using time-frequency features instead of raw audio significantly improved representation quality, with a 20.5% accuracy gain on SC-10 when combined with optimal augmentations.
  • CLAR converges faster than the self-supervised SimCLR baseline, showing superior training speed and representation quality even with limited labeled data.
  • With only 1% labeled data, CLAR achieved 77.9% top-1 accuracy, outperforming the self-supervised method and showing only a 19% performance drop from 100% labeled data, compared to a 66% drop for supervised learning.
  • The joint training of supervised and contrastive objectives leads to better generalization and faster convergence, as the model optimizes the CE loss first, followed by gradual improvement of the NT-Xent loss.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.