DinoSR: Self-Distillation and Online Clustering for Self-supervised Speech Representation Learning

Alexander H. Liu, Heng-Jui Chang, Michael Auli, Wei-Ning Hsu, James R. Glass

Self-supervised learning (SSL) has revolutionized how we process speech, allowing models to learn powerful representations from vast amounts of unlabeled audio. However, a fundamental tension remains: audio is a continuous signal, while the language it carries is inherently discrete (composed of phonemes and words).

In their NeurIPS 2023 paper, researchers from MIT and Meta AI introduce DinoSR, a novel framework that harmonizes these two worlds. By combining self-distillation with a clever online clustering mechanism, DinoSR learns to "discover" a phone-like inventory on the fly, setting new benchmarks for efficiency and performance.

TL;DR

DinoSR is a self-supervised speech model that uses a teacher-student framework to perform online clustering, effectively discovering a "machine phone inventory" without human labels. It achieves state-of-the-art results in acoustic unit discovery and low-resource speech recognition while being significantly more data-efficient than previous heavyweights like HuBERT and data2vec.

What Problem Does This Paper Address?

Speech SSL models generally fall into two camps. One camp, exemplified by HuBERT, uses offline clustering (like K-means) to create discrete targets for the model to predict. This works well but is cumbersome, requiring multiple, expensive iterations of training and re-clustering. The other camp, like data2vec, uses continuous targets via self-distillation. While efficient, these models might miss the beneficial "information bottleneck" provided by discrete units, which helps filter out noise and speaker-specific quirks to focus on phonetic content.

The challenge is: Can we get the best of both worlds? Can we have the end-to-end efficiency of self-distillation while still leveraging the power of discrete, discovered acoustic units?

Methods

DinoSR (Self-Distillation and Online Clustering for Speech Representation Learning) introduces a streamlined architecture to solve this.

Figure 1: An overview of DinoSR: the teacher network is an exponential moving average of the student network and takes unmasked speech as input to extract target features. Online clustering is applied to multiple layers of the teacher, each with a separate codebook. The student network is trained to predict the corresponding clusters of masked input. Both teacher network and online clustering (shadowed regions) do not require gradients.

The Core Components:

  1. Self-Distillation: The system uses two identical Transformer networks: a Student and a Teacher. The Teacher's weights are an Exponential Moving Average (EMA) of the Student's, meaning the Teacher evolves slowly and provides a stable target.
  2. Masked Language Modeling (MLM): The Student receives a masked version of the audio, while the Teacher sees the full, unmasked signal. The Student's goal is to predict what the Teacher "sees" in those masked regions.
  3. Online Clustering (The Secret Sauce): Instead of predicting raw continuous embeddings, DinoSR runs a clustering algorithm during training. The Teacher's embeddings are mapped to a set of "codebooks" (centroids). These centroids are updated via EMA based on the embeddings they attract.
  4. Discrete Targets: The Student is trained to predict the cluster index (a pseudo-label) assigned by the Teacher. This happens across multiple layers, forcing the model to learn a hierarchical, discrete representation of speech.

Unlike standard Vector Quantization (VQ) used in models like wav2vec 2.0, DinoSR’s online clustering is gradient-free. This avoids common pitfalls like "codebook collapse," where the model stops using most of its available discrete units.

Datasets

The authors pre-trained DinoSR on the standard LibriSpeech 960h corpus. They evaluated it across several demanding benchmarks:

  • ZeroSpeech 2021: Specifically for unsupervised acoustic unit discovery (ABX error rate).
  • LibriLight: For low-resource speech recognition (fine-tuning on as little as 10 minutes of labeled data).
  • SUPERB: A general-purpose benchmark for various downstream speech tasks (phoneme recognition, intent classification, etc.).
  • BABEL: Used for preliminary multilingual experiments across 10 different languages.

Key Insights and Ideas

  • Machine-Discovered Phonemes: The clusters DinoSR learns aren't just random math; they align remarkably well with human phonemes. Analysis showed that each codeword typically concentrates on a single phone, effectively creating a "machine phone inventory."
  • Efficiency is King: By avoiding the iterative offline clustering of HuBERT, DinoSR is much faster to train. More importantly, it is data-efficient. It achieves better performance than competitors while "hearing" fewer total hours of audio during the pre-training process.
  • Stability through EMA: Using EMA for both the teacher weights and the cluster centroids provides a stabilizing effect that allows the discrete units to emerge naturally as the model learns, without needing complex heuristics or manual restarts.

Key Results

DinoSR demonstrates impressive gains across the board:

  • Acoustic Unit Discovery: On the ZeroSpeech 2021 challenge, DinoSR achieved an average ABX error rate of 3.59, significantly outperforming HuBERT (4.22) and data2vec (5.20).
Table 1: Acoustic unit discovery results on ZeroSpeech 2021 challenge [16] in ABX error rate.
  • Speech Recognition (WER): In the ultra-low-resource setting (10 minutes of labeled data), DinoSR achieved a Word Error Rate (WER) of 6.6 on LibriSpeech dev-clean, compared to 7.3 for data2vec and 9.1 for HuBERT.
  • Data Efficiency: As shown in Figure 2, DinoSR reaches lower error rates much faster than other models in terms of total speech hours processed.
Figure 2: The trade-off between perfor- mance (WER on LibriSpeech dev-other) and data efficiency (hours of speech the model processed in total during pre- training) for different methods.

Limitations and Future Work

While DinoSR is a major step forward, the authors note a few areas for growth:

  • Language Bias: The primary focus was on English. While preliminary results on the BABEL dataset are promising, more work is needed to ensure these "discovered units" generalize well to diverse, low-resource languages.
  • Information Filtering: Because the model is so good at focusing on phonetic content, it might inadvertently filter out other useful information like speaker identity, emotion, or background acoustics, which are important for some non-ASR tasks.
  • Scaling: The current study focused on "BASE" sized models. Scaling DinoSR to "LARGE" or "HUGE" architectures remains a promising direction for future research.

For those interested in diving deeper or training their own models, the code is available at https://github.com/Alexander-H-Liu/dinosr.

Summary updated

Abstract

In this paper, we introduce self-distillation and online clustering for self-supervised speech representation learning (DinoSR) which combines masked language modeling, self-distillation, and online clustering. We show that these concepts complement each other and result in a strong representation learning model for speech. DinoSR first extracts contextualized embeddings from the input audio with a teacher network, then runs an online clustering system on the embeddings to yield a machine-discovered phone inventory, and finally uses the discretized tokens to guide a student network. We show that DinoSR surpasses previous state-of-the-art performance in several downstream tasks, and provide a detailed analysis of the model and the learned discrete units.
BibTeX
@inproceedings{liu2023dinosr,
  author = {Alexander H. Liu and Heng-Jui Chang and Michael Auli and Wei-Ning Hsu and James R. Glass},
  title = {{DinoSR: Self-Distillation and Online Clustering for Self-supervised Speech Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=twmHKU3Ds4},
}
Figure