Generative Pre-Training for Speech with Autoregressive Predictive Coding

Yu-An Chung, James R. Glass

This paper from Yu-An Chung and James Glass at MIT explores a powerful self-supervised approach for speech processing. By training a model to "predict the future" of an audio signal, the authors demonstrate how to create general-purpose speech representations that excel at diverse tasks like recognition, translation, and speaker identification.

TL;DR

The authors propose Autoregressive Predictive Coding (APC) as a generative pre-training method that learns rich, transferable speech representations from unlabeled data. By predicting future audio frames, APC captures both phonetic content and speaker characteristics, significantly outperforming standard features and other self-supervised methods while requiring less labeled data and smaller downstream models.

What Problem Does This Paper Address?

In the world of speech technology, we usually start with "surface features" like log Mel spectrograms. However, these are raw and noisy. To make them useful for specific tasks (like transcribing text or identifying a speaker), we typically need massive amounts of human-annotated data.

Self-supervised learning (SSL) aims to bridge this gap by learning from unlabeled audio. While previous methods like Contrastive Predictive Coding (CPC) exist, they are often "discriminative"—they try to distinguish a correct future frame from a set of "noise" frames. The authors argue that this can cause the model to discard useful information (like background noise or speaker identity) that might be vital for certain downstream tasks. APC, by contrast, is "generative": it tries to reconstruct the actual signal, forcing the model to preserve as much information as possible.

Methods

The core idea of APC is simple but effective:

  1. The Objective: Given a sequence of acoustic feature vectors (spectrogram frames), the model must predict a frame that occurs $n$ steps in the future.
  2. The "n-step" Trick: If the model only predicts the next frame ($n=1$), it might just learn local smoothness. By forcing it to predict several steps ahead ($n > 1$), the model is pressured to learn more global, meaningful structures of speech.
  3. Architectures: The authors compare two backbones for the APC encoder:
  4. R-APC: A multi-layer Gated Recurrent Unit (RNN).
  5. T-APC: A multi-layer Transformer (specifically the decoder portion).
  6. Transfer Learning: Once pre-trained on unlabeled data, the encoder is used as a feature extractor. The authors tested two strategies: keeping the encoder "frozen" (fixed weights) or "fine-tuning" it alongside the downstream task model.

Datasets

  • Pre-training: The train-clean-360 subset of the LibriSpeech corpus (360 hours of unlabeled speech from 921 speakers).
  • Speech Recognition (ASR): The Wall Street Journal (WSJ) corpus.
  • Speech Translation (AST): An English-to-French translation dataset derived from LibriSpeech.
  • Speaker Identification (SID): The WSJ corpus, repurposed to classify 259 different speakers.

Key Insights and Ideas

  • Generative > Discriminative for Generality: Because APC tries to predict the actual values of future frames (L1 loss), it retains more signal information than contrastive methods. This makes it a better "all-rounder" for different types of tasks.
  • The "Sweet Spot" for $n$: There is a goldilocks zone for the prediction horizon. For RNNs, $n=3$ worked best; for Transformers, $n=5$. If $n$ is too small, the task is too easy; if it's too large, the task becomes too difficult to converge.
  • Frozen Features are Robust: Surprisingly, keeping the APC encoder frozen often yielded better results than fine-tuning it. This suggests the learned representations are already highly optimized and "accessible" for downstream linear layers.
  • Transformer Superiority: The Transformer-based APC (T-APC) consistently outperformed the RNN version, likely due to its ability to model long-range dependencies through self-attention.

Key Results

  • Performance Boost: On ASR, T-APC reduced the Word Error Rate (WER) from 18.3% (using standard log Mel features) to 13.7%—a relative improvement of over 25%.
  • Data Efficiency: A model trained on only half of the WSJ training data using APC features outperformed a model trained on the full dataset using standard features.
  • Model Efficiency: Using APC features allowed the researchers to reduce the number of layers in the downstream ASR model by half while still outperforming the baseline.
  • Few-Shot Speaker ID: In a "one-shot" scenario (only one utterance per speaker seen during training), T-APC achieved 17.6% accuracy, nearly double the 8.7% achieved by standard features.

Limitations and Future Work

  • Positional Encoding: The authors noted that the way Transformers handle time (positional encoding) could be improved for speech, as audio is a continuous signal rather than discrete tokens like text.
  • Scaling Up: The study used 360 hours of data; the authors suggest that training on even larger unlabeled datasets (thousands of hours) would likely yield even more powerful representations.
  • Beyond Recognition: The authors expressed interest in applying APC to speech synthesis (TTS), where the generative nature of the pre-training might be particularly beneficial for creating natural-sounding voices.

Summary updated

BibTeX
@inproceedings{chung2020generative,
  author = {Yu-An Chung and James R. Glass},
  title = {{Generative Pre-Training for Speech with Autoregressive Predictive Coding}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  doi = {10.1109/icassp40776.2020.9054438},
}
Figure