COLLD: Contrastive Layer-to-Layer Distillation for Compressing Multilingual Pre-Trained Speech Encoders

Heng-Jui Chang, Ning Dong, Ruslan Mavlyutov, Sravya Popuri, Yu-An Chung

TL;DR

The paper introduces CoLLD (Contrastive Layer-to-layer Distillation), a novel model compression framework that shrinks massive 1-billion-parameter multilingual speech encoders by 70% while retaining high performance. By combining masked prediction with a contrastive learning objective, CoLLD bridges the gap between academic compression research and large-scale, production-ready speech translation and recognition models.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has revolutionized speech processing, enabling state-of-the-art performance in automatic speech recognition (ASR) and speech-to-text translation (S2T). However, these benefits come at a massive computational cost: the best models often contain hundreds of millions or even billions of parameters. This makes deploying them to edge devices or using them for real-time applications virtually impossible.

While model compression techniques like Knowledge Distillation (KD) exist, prior work has predominantly focused on small, toy-scale models (e.g., compressing a 95M parameter HuBERT Base model) evaluated on simplistic benchmarks. It remained unclear if these methods scale to production-grade, 1-billion-parameter models trained on diverse, multilingual data. This paper tackles the challenge of compressing a 1B parameter encoder down to a manageable 300M parameters without sacrificing its multilingual capabilities.

Methods

CoLLD introduces a specialized approach to Layer-to-Layer (L2L) Knowledge Distillation. Instead of just matching the final output of a teacher and student model, CoLLD maps specific student layers to uniformly distributed teacher layers.

Overview of the CoLLD framework showing distillation (I) and downstream fine-tuning (II).

The core innovations include:

  1. Masked Prediction Target: During distillation, parts of the student model's input frames are masked, while the teacher model receives the full, unmasked input. The student must predict the teacher's representations based only on context.
  2. Predicting FFN Features: Rather than predicting the final layer outputs of the teacher's Conformer blocks, the student learns to predict the features from the second Feed-Forward Network (FFN) layer, which provides a richer learning signal.
  3. Contrastive Distillation Objective: Standard regression losses ($L_1$ or $L_2$) often cause representation collapse when combined with masked inputs in large models. CoLLD solves this by using a contrastive loss function (similar to InfoNCE). For each masked frame, the student must correctly identify the corresponding teacher frame out of a pool of random "distractor" frames from the same utterance.

Datasets

  • Distillation Data: A subset of 92k hours of audio sampled from an internal 4-million-hour multilingual corpus covering over 143 languages.
  • Evaluation Benchmarks:
  • CoVoST 2 & FLEURS-101: Used to evaluate multilingual Speech-to-Text (X-Eng S2T) translation performance.
  • Multilingual SUPERB (ML-SUPERB): A low-resource benchmark used to test the frozen compressed models on monolingual ASR, multilingual ASR, and language identification (LID) using a strict 10-minute training set limit.

Key Insights and Ideas

  • The Collapse Problem: The authors discovered that conventional $L_2$ regression losses fail during large-scale masked distillation because the student model easily defaults to outputting constant, collapsed representations. Shifting to a contrastive objective forces the student to preserve discriminative information.
  • Architecture Matters (Deep vs. Wide): Given a 300M parameter budget, a "deep and narrow" student (40 layers, smaller hidden dimension) significantly outperforms a "shallow and wide" student (12 layers, larger hidden dimension). Deep architectures are inherently better at mimicking the hierarchical step-by-step abstractions of a massive teacher.
  • Task-Specific Teachers: Distilling from a teacher model that has already been fine-tuned on the downstream task (e.g., S2T) yields a much stronger student than distilling from a purely self-supervised, pre-trained teacher.

Key Results

CoLLD successfully compresses the 1.0B parameter w2v-BERT 2.0 XX-Large model down to a 0.3B parameter student (CoLLD Large40), achieving a 70% reduction in size.

Encoder sizes vs. FLEURS X-Eng S2T BLEU scores, highlighting CoLLD's efficiency.
  • Speech Translation: On the FLEURS-101 benchmark, CoLLD Large40 achieved a BLEU score of 17.3, nearly matching the 0.6B parameter X-Large topline (17.6) and significantly outperforming a standard 0.3B model trained from scratch (15.0).
  • Low-Resource Generalization: On ML-SUPERB, CoLLD achieved an overall score of 988.7, easily beating massive open-source baselines like Meta's MMS (829.1) and XLS-R (734.1).
  • Data Efficiency: As shown in the training dynamics, CoLLD beats the baseline model after only 50k distillation updates and continues to scale cleanly up to 200k updates.
FLEURS-101 BLEU scores relative to the number of distillation updates.

Limitations and Future Work

While the "deep and narrow" 40-layer student yields the highest accuracy, it introduces a physical bottleneck: because the layers must be processed sequentially, it has higher computational latency (measured in GMACs) and cannot parallelize operations as effectively as a shallower 12-layer model.

Additionally, the model still struggles with translation performance on languages that were entirely unseen during the downstream fine-tuning phase, though it benefits slightly if high-resource relatives from the same language family are present. Future work will likely target optimizing the inference speed of these deep-but-narrow student architectures.

Summary updated

BibTeX
@inproceedings{chang2024colld,
  author = {Heng-Jui Chang and Ning Dong and Ruslan Mavlyutov and Sravya Popuri and Yu-An Chung},
  title = {{COLLD: Contrastive Layer-to-Layer Distillation for Compressing Multilingual Pre-Trained Speech Encoders}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=UhzqgmQu1F},
}
Figure