Supervised Contrastive Learning for Accented Speech Recognition

Tao Han, Hantao Huang, Ziang Yang, Wei HanarXiv 2021

TL;DR

This paper introduces a supervised contrastive learning framework to improve the robustness of Automatic Speech Recognition (ASR) systems against accented speech. By leveraging data augmentation and a novel contrastive loss, the method learns accent-invariant representations, significantly outperforming traditional joint training methods.

What Problem Does This Paper Address?

Automatic Speech Recognition (ASR) systems, while impressive, often struggle with performance degradation when encountering accented speech, particularly unfamiliar accents. This is a major hurdle for widespread adoption and reliable use in diverse environments. Existing methods to address this often involve complex architectural changes or specialized training strategies. The authors aim to provide a more straightforward yet effective solution by adapting contrastive learning, a technique popular in computer vision, to the ASR domain.

Methods

The core of this work is the application of supervised contrastive learning to ASR. The general idea is to train a model to distinguish between "positive" pairs (similar samples) and "negative" pairs (dissimilar samples) by maximizing the similarity of positive pairs and minimizing the similarity of negative pairs in an embedding space.

To create these "views" of the same data for contrastive learning in the ASR context, the authors explore three data augmentation techniques:

  1. Noise Injection: Adding various types of noise to the audio.
  2. Spectrogram Augmentation: Modifying the spectrogram representation of the audio.
  3. TTS-Same-Sentence Generation: Synthesizing speech for the same sentence using Text-to-Speech (TTS) models, creating variations of the same utterance.

The proposed framework integrates a standard ASR loss (e.g., cross-entropy for character prediction) with a contrastive loss during a pre-training phase. This joint training of both losses is a key differentiator from some contrastive learning approaches (like SimCLR) which might only use the contrastive loss during pre-training. The authors hypothesize that this combined approach helps the model learn representations that are invariant to both data augmentation and pronunciation variations.

Datasets

The experiments were conducted using the Common Voice Dataset [8]. Specifically, the authors utilized the English portion of this dataset, which includes speech from various accents. For training, they used a combination of accents (Australia, England, Ireland, New Zealand, United States). The test set comprised of accents that were considered unseen or unfamiliar to the training data (Africa, Hong Kong, Indian, Philippines, Singapore).

Key Insights and Ideas

  • Contrastive Learning for ASR is Viable: The paper demonstrates that contrastive learning, a technique primarily explored in computer vision, can be effectively adapted to improve ASR robustness, particularly for accented speech.
  • Joint ASR and Contrastive Loss is Crucial: Unlike some vision-based contrastive methods, combining the standard ASR loss with the contrastive loss during pre-training significantly boosts performance. This suggests that the two tasks mutually benefit each other, leading to better representations and faster convergence.
  • Data Augmentation is Key for Contrastive Views: The effectiveness of contrastive learning heavily relies on generating diverse "views" of the same data. The paper shows that various augmentation techniques are essential for creating these positive pairs.
  • Accent-Invariant Representations: The ultimate goal is to learn representations that are insensitive to accent variations. The t-SNE visualizations clearly show that the contrastive learning approach leads to better clustering of same-character representations and clearer separation between different characters, indicating the learning of more robust and accent-invariant features.

Key Results

  • Significant WER Reduction: The proposed supervised contrastive learning method, especially when combined with data augmentation, significantly reduces the Word Error Rate (WER).
  • Compared to traditional joint training, contrastive learning improved accuracy by 3.66% (zero-shot) and 3.78% (full-shot) on average.
  • Even without data augmentation, the contrastive approach improved WER by 1.35% (zero-shot) and 0.7% (full-shot) over joint training.
  • Spectrogram Augmentation is Most Effective: Among the explored data augmentation techniques, spectrogram augmentation yielded the most substantial improvements in WER.
  • Visualization Supports Findings: t-SNE visualizations of character embeddings clearly show that the contrastive learning approach leads to more compact clusters for the same characters and better separation between different characters, visually confirming the learning of accent-invariant representations.

Limitations and Future Work

  • TTS Generation Nuances: While TTS-same-sentence generation provided more views, it didn't improve WER as much as spectrogram augmentation in the zero-shot setting. The authors suggest this might be because generated TTS can be perceived as same-speaker speech, potentially reinforcing speaker dependency. They propose that using more advanced TTS models capable of generating diverse voices could further improve results.
  • Broader Applicability: The authors highlight that the proposed contrastive learning framework is general and can be applied to any character-based end-to-end ASR model. They suggest future work could extend this to address other robustness issues like noise and reverberation.
  • Further Exploration of Augmentation: While spectrogram augmentation was the best performer, further research into optimal augmentation strategies for ASR could be beneficial.

Summary updated

Abstract

Neural network based speech recognition systems suffer from performance degradation due to accented speech, especially unfamiliar accents. In this paper, we study the supervised contrastive learning framework for accented speech recognition. To build different views (similar "positive" data samples) for contrastive learning, three data augmentation techniques including noise injection, spectrogram augmentation and TTS-same-sentence generation are further investigated. From the experiments on the Common Voice dataset, we have shown that contrastive learning helps to build data-augmentation invariant and pronunciation invariant representations, which significantly outperforms traditional joint training methods in both zero-shot and full-shot settings. Experiments show that contrastive learning can improve accuracy by 3.66% (zero-shot) and 3.78% (full-shot) on average, comparing to the joint training method.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Common VoiceJoint trainWER46.20%Speech Recognition · 0-shot · subset=Af, HK, Ind, Phip, Sg accents
Source quote
L111: Joint train │ 40.88 │ 44.90 │ 63.73 │ 43.77 │ 37.71 │ 46.20
BibTeX
@misc{han2021supervised,
  author = {Tao Han and Hantao Huang and Ziang Yang and Wei Han},
  title = {{Supervised Contrastive Learning for Accented Speech Recognition}},
  year = {2021},
  eprint = {2107.00921},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.00921},
}
Figure