Introduction
In the field of Automatic Speech Recognition (ASR), a persistent trade-off exists between latency and accuracy. Non-streaming models, which process an entire utterance before generating text, benefit from "full context"—the ability to look at both preceding and succeeding acoustic information. This allows them to achieve high accuracy but makes them unsuitable for real-time applications. Conversely, streaming models must transcribe audio as it is spoken, operating with limited future context. This constraint typically results in a significant performance gap compared to their offline counterparts.
To address this, researchers from iFLYTEK and partner universities have introduced a novel adaptive two-stage knowledge distillation (KD) framework. Their approach allows streaming models to inherit the superior representational power of non-streaming models, resulting in a 19% relative reduction in Word Error Rate (WER) on the LibriSpeech dataset while simultaneously improving inference speed.
The Challenges of Knowledge Distillation in ASR
Knowledge Distillation is a common technique where a high-performing "teacher" model guides the training of a smaller or more constrained "student" model. However, applying KD to streaming Transducer models presents two primary difficulties:
- Optimization Conflict: Attempting to teach the student both the internal logic (hidden layers) and the final output (probability distributions) simultaneously is often counterproductive. Because the final output is dependent on the hidden features, optimizing both at once can lead to unstable training.
- Distribution Sharpness: Teacher models are often overconfident, producing "sharp" probability distributions. If the student tries to mimic these sharp targets directly, it may fail to capture the nuanced relationships between different possible tokens—a problem often mitigated by "smoothing" the distribution using a temperature parameter.
Methodology: A Two-Stage Approach
The researchers propose a sequential distillation process for Conformer Transducers (CT) to resolve these conflicts.
Stage 1: Hidden Layer Alignment
In the first stage, the student model focuses exclusively on mimicking the teacher’s internal representations. By using Mean Square Error (MSE) loss to align the hidden features of the streaming student with the full-context features of the non-streaming teacher, the student builds a robust foundation. This ensures the student's encoder learns to approximate the "global" view of the teacher even while restricted to local context.
Stage 2: Output Layer Distillation
Once the hidden layers are stabilized, the focus shifts to the final output. The student learns to match the teacher’s probability distributions using Kullback-Leibler (KL) divergence. By separating these stages, the student is not overwhelmed by trying to learn two different levels of abstraction at the same time.
Adaptive Power Transformation (APT)
To solve the "sharpness" problem, the authors developed an Adaptive Power Transformation. Unlike traditional KD, which uses a fixed temperature to soften distributions, APT dynamically adjusts the smoothing based on the entropy of the teacher's output. This ensures that the teacher's targets are sufficiently smooth for the student to learn from, while preserving the essential information in the distribution. This data-driven smoothing leads to a more stable and effective learning process compared to manual hyperparameter tuning.
Experimental Results
The proposed method was evaluated on the LibriSpeech corpus using Conformer Transducer models of varying sizes (18M, 36M, and 73M parameters).
Accuracy Gains
The adaptive two-stage model achieved a 3.18% WER on the test-clean set and 6.63% WER on test-other. This represents a 19.24% relative improvement over standard streaming models. The results demonstrate that the student model successfully "borrowed" the accuracy of the non-streaming teacher.
Latency Improvements
Surprisingly, the distillation process also improved the model's responsiveness. For the 73M parameter model, the response time for the first token (Partial Recognition Latency) dropped from 933ms to 905ms. By learning more confident representations from the teacher, the student model is able to make decisions faster than a model trained without distillation.
Conclusion and Future Work
This research demonstrates that the gap between streaming and non-streaming ASR is not insurmountable. By utilizing a sequential training strategy and dynamic distribution smoothing, streaming models can achieve near-offline performance. While the two-stage process increases training complexity and remains dependent on the quality of the teacher model, its success across different model scales suggests it is a robust solution for high-performance, real-time speech recognition.
Future research may explore applying these adaptive smoothing techniques to other sequence-to-sequence tasks, such as machine translation or text-to-speech synthesis, where the balance between context and latency is equally critical.
Summary updated