Generative Spoken Language Modeling from Raw Audio

Kushal Lakhotia, Evgeny Kharitonov, Wei-Ning Hsu, Yossi Adi, Adam Polyak, Benjamin Bolte, Tu Anh Nguyen, Jade Copet, Alexei Baevski, Adelrahman Mohamed, Emmanuel DupouxarXiv 2021

TL;DR

This paper introduces "Generative Spoken Language Modeling" (GSLM), a new task focused on learning language directly from raw audio without any text supervision. They propose novel evaluation metrics and demonstrate that it's possible to build systems that generate coherent and meaningful speech, mimicking how infants learn language.

What Problem Does This Paper Address?

Current Natural Language Processing (NLP) systems heavily rely on text data, which is a barrier for the vast majority of the world's languages that lack standardized orthography or extensive textual resources. This paper tackles the challenge of building AI systems that can learn and generate language purely from audio, much like how humans learn their first language before reading. This "textless NLP" could democratize language technology and unlock new possibilities for low-resource languages and richer human-AI interaction.

Methods

The core of their approach is a pipeline involving three main components:

  • Speech-to-Unit (S2u) Encoder: This component takes raw audio and converts it into discrete "pseudo-text" units. They experiment with several state-of-the-art unsupervised speech encoders like CPC, wav2vec 2.0, and HuBERT.
  • Unit-based Language Model (uLM): A generative language model is trained on these pseudo-text units, learning the linguistic patterns without any direct text input. They use a Transformer-based language model for this.
  • Unit-to-Speech (u2S) Decoder: This component takes the generated pseudo-text units from the uLM and synthesizes them back into audio waveforms. They adapt the Tacotron-2 model for this task.

A key innovation is their evaluation methodology. They propose using a pre-trained Automatic Speech Recognition (ASR) system to convert generated speech back into text, allowing them to adapt standard text-based metrics (like perplexity and BLEU) for evaluating intelligibility and meaningfulness. They also introduce zero-shot probe metrics and human evaluations to validate their approach.

Datasets

  • LibriSpeech: Used for training and evaluating the speech encoders and the ASR models.
  • LJ Speech: Used for training the unit-to-speech models.
  • LibriLight: A large dataset (6k and 60k hours) used for pre-training the speech encoders.

Key Insights and Ideas

  • Textless NLP is Feasible: The paper provides strong evidence that it's possible to train language models and generate speech directly from raw audio, bypassing the need for text.
  • Evaluation is Crucial: A major contribution is the development of robust, ASR-based evaluation metrics that correlate well with human judgment, enabling systematic progress in this new domain.
  • Unit Granularity Matters: The number of discrete units (50, 100, or 200) significantly impacts performance, with the optimal number being task- and encoder-dependent.
  • Encoder Choice is Key: Different speech encoders (CPC, wav2vec 2.0, HuBERT) yield varying results, highlighting the importance of the initial representation learning step.
  • Trade-offs Exist: There's a complex interplay between acoustic fidelity and linguistic coherence, and finding the right balance is essential for good generation.

Key Results

  • Resynthesis: Models trained with more units generally achieved better resynthesis scores (lower PER/CER), with HuBERT and CPC showing promising results. Their best models achieved PER/CER within 3% of text-based toplines.
  • Generation: Human evaluations showed that systems with 100 or 200 units were preferred over those with 50 units. HuBERT emerged as a strong performer in generation tasks.
  • Metric Correlation: Their proposed ASR-based metrics showed high correlation with human evaluations (e.g., r > 0.85 for PPX and human scores), validating their effectiveness. Zero-shot probe metrics also correlated well with downstream tasks.

Limitations and Future Work

  • Encoder Comparison: While they compared three encoders, they acknowledge that a more exhaustive study with hyperparameter tuning and a wider range of encoders is needed to definitively determine the best approach.
  • Model Architecture Adaptation: Current uLM and u2S models are largely adapted from text-based systems. Future work should focus on adapting these architectures to better leverage the richness and continuous nature of speech signals (e.g., prosody, emotions).
  • Low-Resource Languages: A significant future direction is extending these textless NLP methods to languages with limited or no textual resources, which is a primary motivation for this research.
  • Temperature Control: The paper highlights the challenge of controlling the trade-off between quality and diversity in generation and proposes a method using oracle text to normalize temperature, suggesting further exploration in this area.

Summary updated

BibTeX
@misc{lakhotia2021generative,
  author = {Kushal Lakhotia and Evgeny Kharitonov and Wei-Ning Hsu and Yossi Adi and Adam Polyak and Benjamin Bolte and Tu Anh Nguyen and Jade Copet and Alexei Baevski and Adelrahman Mohamed and Emmanuel Dupoux},
  title = {{Generative Spoken Language Modeling from Raw Audio}},
  year = {2021},
  eprint = {2102.01192},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.01192},
}
Figure