To Reverse the Gradient or Not: An Empirical Comparison of Adversarial and Multi-task Learning in Speech Recognition

Yossi Adi, Neil Zeghidour, Ronan Collobert, Nicolas Usunier, Vitaliy Liptchinsky, Gabriel Synnaeve

Abstract

This study investigates the comparative effectiveness of Multi-Task Learning (MTL) and Adversarial Learning (AL) in improving Automatic Speech Recognition (ASR) by managing speaker variability. While MTL encourages the model to identify speakers to aid feature extraction, AL forces the model to ignore speaker identity to achieve speaker-invariant representations. Through experiments on the Wall Street Journal dataset using a Gated Convolutional Neural Network, we find that deep models naturally develop speaker invariance. Furthermore, while both paradigms offer similar regularization benefits, AL excels in semi-supervised settings by leveraging untranscribed data with speaker labels to improve acoustic modeling.

Introduction

In Automatic Speech Recognition (ASR), speaker variability is a major hurdle. A robust acoustic model should ideally focus only on linguistic content, remaining invariant to the identity of the speaker. Historically, two diametrically opposed strategies have been used to handle this:

  1. Multi-Task Learning (MTL): Training the model to recognize both text and speaker identity, under the assumption that speaker-related features aid in understanding speech patterns.
  2. Adversarial Learning (AL): Training the model to recognize text while actively preventing a sub-network from identifying the speaker, forcing the learning of speaker-invariant representations.

Because these methods are mathematically incompatible—one minimizes speaker classification error while the other maximizes it via gradient reversal—this paper provides a controlled empirical comparison to determine which approach better serves ASR performance.

Methods

The researchers utilized a 17-layer Gated Convolutional Neural Network (Gated ConvNet) architecture. The model features a shared encoder ($E_r$) that bifurcates into two branches: a Transcription Branch ($D_y$) predicting letters via the AutoSeg Criterion (ASG), and a Speaker Branch ($D_s$) predicting speaker identity.

The model architecture features a shared encoder forking into transcription and speaker branches, with an optional gradient reversal layer for adversarial training.

The speaker branch was "forked" at three different depths: IN (after 2 layers), MID (after 8 layers), and OUT (after 15 layers). In the MTL configuration, the sum of both losses was minimized. In the AL configuration, a minimax game was employed where the encoder attempted to "fool" the speaker classifier by maximizing its loss through gradient reversal.

Experiments were conducted primarily on the Wall Street Journal (WSJ) dataset (81.5 hours). For semi-supervised AL, an additional 35 hours of LibriSpeech data was used, providing speaker labels without text transcriptions.

Results and Key Insights

Natural Invariance in Deep Models

A striking finding is that standard ASR models naturally become speaker-invariant as they get deeper. In the baseline model, speaker classification accuracy plummeted from approximately 80% at early layers to 20% at the final layers, suggesting the network inherently filters out speaker identity as "noise" to improve transcription accuracy.

Speaker classification accuracy across different network depths (In, Mid, Out) for baseline, multi-task, and adversarial models.

Performance Comparison

Surprisingly, both MTL and AL yielded similar performance gains on the standard WSJ dataset. Both methods appear to act as different forms of regularization, preventing overfitting by constraining model parameters. The baseline achieved a Word Error Rate (WER) of 5.9% on the Nov92 evaluation set, while AL at the "OUT" layer reached 5.6%.

The Semi-Supervised Advantage

The primary advantage of Adversarial Learning emerged in the semi-supervised setting. By utilizing audio with known speakers but no transcripts, the model was pushed toward greater invariance, resulting in a consistent improvement in Letter Error Rate (LER), dropping from the baseline's 4.9% to 4.6%.

Conclusion

While the impact of these techniques on high-resource datasets like WSJ is relatively minor—likely because deep models already develop natural invariance—the results for semi-supervised learning are promising. Future work should focus on applying these adversarial techniques to low-resource languages, where transcribed data is scarce but speaker-labeled audio is more readily available. Additionally, joint optimization of acoustic and language models may help translate LER improvements more effectively into final word accuracy.

Summary updated

Abstract

Transcribed datasets typically contain speaker identity for each instance in the data. We investigate two ways to incorporate this information during training: Multi-Task Learning and Adversarial Learning. In multi-task learning, the goal is speaker prediction; we expect a performance improvement with this joint training if the two tasks of speech recognition and speaker recognition share a common set of underlying features. In contrast, adversarial learning is a means to learn representations invariant to the speaker. We then expect better performance if this learnt invariance helps generalizing to new speakers. While the two approaches seem natural in the context of speech recognition, they are incompatible because they correspond to opposite gradients back-propagated to the model. In order to better understand the effect of these approaches in terms of error rates, we compare both strategies in controlled settings. Moreover, we explore the use of additional un-transcribed data in a semi-supervised, adversarial learning manner to improve error rates. Our results show that deep models trained on big datasets already develop invariant representations to speakers without any auxiliary loss. When considering adversarial learning and multi-task learning, the impact on the acoustic model seems minor. However, models trained in a semi-supervised manner can improve error-rates.
BibTeX
@inproceedings{adi2018reverse,
  author = {Yossi Adi and Neil Zeghidour and Ronan Collobert and Nicolas Usunier and Vitaliy Liptchinsky and Gabriel Synnaeve},
  title = {{To Reverse the Gradient or Not: An Empirical Comparison of Adversarial and Multi-task Learning in Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2018},
  doi = {10.1109/icassp.2019.8682468},
}
Figure