TL;DR
This paper introduces a sequence-level knowledge distillation (KD) method to compress large, attention-based sequence-to-sequence (Seq2Seq) speech recognition models into compact, deployable versions. By training smaller student models on the $k$-best hypotheses generated by a large teacher model via beam search, the authors achieved up to a $9.8\times$ reduction in parameters with only a modest 7.0% increase in Word Error Rate (WER).
What Problem Does This Paper Address?
End-to-end deep neural networks, particularly attention-based Seq2Seq models, have revolutionized Large Vocabulary Continuous Speech Recognition (LVSCR). However, these state-of-the-art models are notoriously massive, demanding significant memory and computational power. This makes deploying them on resource-constrained edge devices—like smartphones or embedded systems—highly impractical.
While model compression techniques like Knowledge Distillation (KD) work well for standard networks, traditional frame-level KD struggles with autoregressive models like Seq2Seq. Because these models generate outputs step-by-step based on previous predictions, standard KD fails to capture the complex, long-term time dependencies inherent in sequential data, often leading to degraded performance.
Methods
To bridge this gap, the authors propose a sequence-level knowledge distillation approach tailored for speech recognition. Instead of forcing the student model to match the teacher's frame-by-frame token probabilities, the student learns from entire sequences generated by the teacher.
The workflow consists of three main steps:
- Teacher Training: Train a large, high-capacity Seq2Seq teacher model on the target dataset.
- Pseudo-Label Generation: Run the trained teacher model over the training dataset using beam search to extract the top-$k$ highest-scoring hypotheses (transcriptions) for each audio utterance.
- Student Training: Train a significantly smaller student model using these $k$-best hypotheses as "pseudo-labels" instead of the original ground-truth text.
The model architecture utilizes a 2D CNN to process STFT spectrograms, followed by Gated Recurrent Units (GRUs) for both the encoder and decoder, coupled with a 1D CNN-based attention mechanism.
Datasets
The approach was evaluated using the standard Wall Street Journal (WSJ) corpus:
- Training:
train_si284(81 hours, ~37k sentences) - Validation:
dev93 - Testing:
eval92
Key Insights and Ideas
- Pseudo-Labels as Regularizers: Even though the teacher's generated hypotheses are not 100% accurate, they act as "soft targets" or regularizers. Training on these sequences prevents the student model from overfitting to the rigid one-hot training data distribution, allowing it to better mimic the teacher's underlying probability space.
- The Power of $k$-Best Hypotheses: Prior work in Neural Machine Translation (NMT) relied only on the single best hypothesis (1-best). By expanding this to $k$-best hypotheses, the authors effectively multiplied the dataset size by a factor of $k$, providing the student with richer data regarding the teacher's alternative predictions and uncertainty.
- Diminishing Returns of Beam Size: The experiments revealed that hyperparameter tuning has a sweet spot. Setting both the beam size and $k$ to 5 yielded optimal or near-optimal results; pushing these values higher increased computational overhead without providing meaningful accuracy gains.
Key Results
The authors benchmarked two student configurations against the baseline teacher model (16.8M parameters):
- Student-mid (6.1M parameters, $2.7\times$ reduction): Improved its WER from a baseline of 21.8% (trained without KD) down to 19.7% using sequence-level KD (with topK=10, beamSize=10).
- Student-small (1.7M parameters, $9.8\times$ reduction): Saw the most dramatic benefit from KD, dropping its WER from 28.7% down to 22.3% (with topK=5, beamSize=5). This represents a massive 6.4% absolute reduction in WER compared to direct training, leaving it only 7.0% behind the original teacher model.
In terms of inference speed, the Student-mid and Student-small models achieved $1.4\times$ and $1.7\times$ speedups, respectively.
Limitations and Future Work
While the parameter reduction was substantial ($9.8\times$), the corresponding inference speedup ($1.7\times$) was bottlenecked by the sequential nature of RNNs (GRUs), which cannot be easily parallelized during execution.
To overcome this limitation, the authors note that future research should explore applying sequence-level knowledge distillation to highly parallelizable, non-RNN attention architectures, such as the Transformer or CNN-based Seq2Seq models (S2SConv).
Summary updated