Leave No Knowledge Behind During Knowledge Distillation: Towards Practical and Effective Knowledge Distillation for Code-Switching ASR Using Realistic Data

Liang-Hsuan Tseng, Zih-Ching Chen, Wei-Shun Chang, Cheng-Kuang Lee, Tsung-Ren Huang, Hung-yi Lee · DOI

Abstract

Large-scale foundation models for Automatic Speech Recognition (ASR), such as Whisper, often face challenges regarding computational efficiency and performance on code-switching (CS) speech. This paper introduces the K2D (Leave No Knowledge Behind) framework, which leverages 60,000 hours of unlabeled realistic audio to train a student model that is 2x smaller and 5x faster than Whisper Large-v2. By employing a novel cross-model validation filtering mechanism, the K2D student model not only achieves significant speedups but also outperforms its teacher model in both in-domain and out-of-domain code-switching scenarios.

The Challenge of Code-Switching and Efficiency

While foundation models have set new benchmarks in ASR, they remain resource-intensive for real-time applications. Furthermore, in regions where speakers fluidly mix languages (e.g., Mandarin and English), these models often struggle due to the scarcity of high-quality labeled code-switching data. While massive amounts of unlabeled "realistic" audio (such as university lectures) are available, using a large teacher model to generate pseudo-labels for training typically introduces hallucinations—repetitive or nonsensical text—that degrade the performance of student models.

The K2D Framework

The authors propose a three-stage framework designed to maximize the utility of unlabeled data while minimizing noise:

  1. Realistic Pseudo-Labeling: A teacher model (Whisper Large-v2) transcribes 60,000 hours of raw audio from National Taiwan University (NTU) course videos, providing text with associated timestamps.
  2. Data Pre-Filtering: To mitigate teacher hallucinations, a small auxiliary model is introduced as a validator. The framework compares transcriptions from both the large teacher and the small validator. Data segments are only retained if both models reach a consensus within a defined distance threshold. This "cross-model validation" effectively identifies high-quality training samples that are less likely to contain hallucinations.
  3. Knowledge Distillation (KD): A student model, featuring a frozen encoder and a compact 2-layer decoder, is trained to mimic the teacher's output distributions using the filtered, high-quality realistic data.
The K2D framework: (a) generating pseudo-labels from longform audio, (b) filtering data using a small validator model to catch hallucinations, and (c) performing knowledge distillation on the validated subset.

Experimental Results and Insights

The K2D approach demonstrates that a smaller model can surpass its teacher when trained on carefully curated realistic data.

Efficiency and Accuracy Trade-offs

The K2D student model achieves a 5x speedup in generation and reduces the parameter count by half compared to Whisper Large-v2. Despite its smaller size, it shows superior performance across multiple benchmarks. On the ASCEND conversational Mandarin-English dataset, K2D achieved a 30.5% Mixed Error Reduction Rate (MERR) relative to the teacher model.

Performance comparison showing that the K2D student model (red) achieves lower error rates than larger Whisper models (green/blue) while maintaining a smaller parameter footprint across both in-domain and out-of-domain tasks.

Key Findings

  • The Validator Paradox: Counterintuitively, using a weaker model to validate a stronger one is highly effective. If a tiny model and a giant model agree on a transcription, that segment is likely a robust and "easy" learning signal for the student.
  • Surpassing the Teacher: The student model's superior performance stems from its exposure to realistic code-switching data during distillation—data that the general-purpose teacher may not have mastered as effectively.
  • Balanced Performance: The method improves accuracy in both Mandarin and English simultaneously, ensuring the model does not become biased toward the dominant language in a code-switched pair.

Conclusion and Future Work

K2D provides a practical path toward deploying efficient, high-performance ASR for multilingual environments. Future research may explore the sensitivity of the filtering thresholds across different language pairs and the potential gains from unfreezing the encoder during the distillation process. By "leaving no knowledge behind" through rigorous data filtering, K2D sets a new standard for efficient knowledge transfer in speech recognition.

Summary updated

BibTeX
@inproceedings{tseng2024leave,
  author = {Liang-Hsuan Tseng and Zih-Ching Chen and Wei-Shun Chang and Cheng-Kuang Lee and Tsung-Ren Huang and Hung-yi Lee},
  title = {{Leave No Knowledge Behind During Knowledge Distillation: Towards Practical and Effective Knowledge Distillation for Code-Switching ASR Using Realistic Data}},
  booktitle = {SLT},
  year = {2024},
  url = {https://openreview.net/forum?id=jecimhMB9v},
}
Figure