Introduction
Automatic Speech Recognition (ASR) has increasingly shifted toward end-to-end architectures that simplify the training pipeline. Among these, Connectionist Temporal Classification (CTC) models are particularly valued for their non-autoregressive nature. Unlike traditional models that generate text tokens sequentially, CTC-based models predict the entire sequence simultaneously, offering significant advantages in inference speed.
However, achieving high accuracy with CTC models typically requires large, computationally expensive architectures. While Knowledge Distillation (KD)—the process of training a smaller "student" model to mimic a larger "teacher" model—is a standard technique for model compression, it has historically struggled with CTC frameworks. Standard distillation methods often fail to improve, or even degrade, performance because the complex alignment between speech and text is difficult for a compact student to learn solely from the teacher's final output. This paper introduces Inter-KD (Intermediate Knowledge Distillation), a framework designed to overcome these hurdles by providing internal guidance to the student model during training.
Methodology
The core innovation of Inter-KD is the use of "intermediate" supervision. Rather than only comparing the final outputs of the teacher and student, the researchers provide the student with hints throughout its internal layers.
1. Auxiliary CTC Layers
The researchers utilized a Jasper Mini (33-layer) student model and attached auxiliary CTC layers at specific internal intervals—specifically at layers 18, 24, and 30. These layers act as intermediate checkpoints during the training process.
2. Dual-Supervision Loss
Each auxiliary layer is optimized using a dual-signal approach:
- Ground Truth Supervision: Standard CTC loss calculated against the actual text labels.
- Teacher Mimicry: An $L_2$ loss that forces the intermediate layer's output to match the final softmax output of a high-performing teacher model (Jasper DR).
The authors found that $L_2$ loss on softmax outputs is more effective for CTC distillation than traditional KL-divergence, as it better handles the timing of "blank" tokens and the characteristic probability spikes inherent to CTC models.
3. Inference Efficiency
A key advantage of this framework is that the auxiliary layers are strictly used for training. Once the model is optimized, these layers are discarded. The final deployed student model retains its original compact architecture, resulting in zero additional computational overhead during inference.
Experimental Setup
The Inter-KD framework was evaluated using the LibriSpeech dataset, a standard large-scale corpus of read English speech. The models were trained on the full 960-hour training set ("train-clean-100", "train-clean-360", and "train-other-500") and evaluated on the standard "clean" and "other" development and test splits.
Results and Analysis
The experimental results on the LibriSpeech test-clean set (without the assistance of a Language Model) demonstrate the efficacy of the Inter-KD approach:
- Baseline Student (Jasper Mini): 8.85% WER
- Student + Sequence-level KD: 9.10% WER (Performance degradation)
- Student + Inter-KD (Ours): 6.30% WER
Inter-KD achieved a 28.81% Relative Error Rate Reduction (RERR) over the baseline student model. Notably, standard sequence-level distillation actually worsened the performance, highlighting the difficulty of distilling CTC models without intermediate guidance. Even when integrated with a 4-gram Language Model (LM), Inter-KD consistently outperformed other state-of-the-art distillation methods such as Guided CTC training and SKD.
Insights on Internal Representations
The study revealed that intermediate layers in the Inter-KD framework produce surprisingly accurate predictions. For instance, the auxiliary layer at position 30 performed nearly as well as the final 33rd layer. This suggests that Inter-KD not only improves final accuracy but also encourages the model to reach high-level representations earlier in its architecture, potentially enabling "early exit" strategies for even faster inference in future implementations.
Conclusion and Future Work
Inter-KD provides a robust solution for compressing CTC-based ASR models without sacrificing accuracy. By leveraging intermediate teacher knowledge, the framework allows compact models to achieve performance levels previously reserved for much larger architectures.
While highly effective on the Jasper architecture, future research is needed to determine if the specific placement of auxiliary layers (18, 24, 30) generalizes to other architectures like Conformer or QuartzNet. Additionally, while the potential for dynamic "early exit" inference was noted, formal benchmarking of such a mechanism remains a promising avenue for further optimization in mobile and edge ASR applications.
Summary updated