NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dual-mode ASR: Unify and Improve Streaming ASR with Full-context Modeling

Jiahui Yu, Wei Han, Anmol Gulati, Chung-Cheng Chiu, Bo Li, Tara N Sainath, Yonghui Wu, Ruoming Pang

TL;DR

This paper introduces "Dual-mode ASR," a novel framework that unifies streaming and full-context Automatic Speech Recognition (ASR) models into a single, shared-weight architecture. By jointly training both modes and employing inplace knowledge distillation, Dual-mode ASR significantly improves streaming ASR's latency and accuracy, achieving state-of-the-art results.

What Problem Does This Paper Address?

Traditional ASR systems are broadly categorized into two types: streaming (online) ASR and full-context (offline) ASR. Streaming ASR aims to transcribe speech in real-time, emitting words as quickly as possible, but often at the cost of accuracy due to limited future context. Full-context ASR, on the other hand, waits for the entire utterance to be spoken, allowing for higher accuracy by leveraging all available context. This dichotomy leads to separate development, training, and deployment pipelines for each, increasing complexity and resource overhead. The challenge is to achieve the low latency of streaming ASR without sacrificing the accuracy of full-context ASR, and to do so efficiently.

Methods

The core innovation is the Dual-mode ASR framework, which trains a single end-to-end ASR model capable of operating in both streaming and full-context modes. This is achieved through:

  • Dual-mode Encoders: The encoder layers are designed to be either "dual-mode" (supporting both streaming and full-context) or "streaming-only" (causal). This design aims to reuse weights with minimal parameter overhead. Specific examples include:
  • Dual-mode Convolution: A symmetric convolution is used for full-context, while a masked version mimics causal convolution for streaming.
  • Dual-mode Average Pooling: Parameter-free pooling layers are used, easily integrated.
  • Dual-mode Self-attention: The attention mechanism is modified to attend only to the left context in streaming mode, while using full context otherwise.
  • Joint Training: The model is trained simultaneously for both streaming and full-context tasks, aggregating their respective losses. This is found to yield better model quality and stability than randomly sampling between modes.
  • Inplace Knowledge Distillation: This technique distills knowledge from the full-context (teacher) mode to the streaming (student) mode within the same model during training. The streaming model is encouraged to match the predictions of the full-context model, effectively transferring the benefit of future context to the real-time output. This is achieved by minimizing the KL-divergence between their predicted token probabilities.

Datasets

The proposed framework was evaluated on two datasets:

  • LibriSpeech: A widely used public dataset comprising approximately 970 hours of English reading speech.
  • MultiDomain: A large-scale dataset with approximately 413,000 hours of speech across multiple domains, including Voice Search, Farfield Speech, YouTube, and Meetings.

Key Insights and Ideas

  • Unification is Powerful: Combining streaming and full-context ASR into a single model significantly benefits the streaming mode, improving both its speed and accuracy. This suggests that the "future context" learned by the full-context mode is highly valuable for real-time transcription.
  • Knowledge Distillation is Key: Inplace knowledge distillation from the full-context to the streaming mode is crucial for achieving the best performance. It effectively bridges the gap in contextual information available to each mode during training.
  • Minimal Parameter Overhead: The dual-mode encoder design allows for significant weight sharing, meaning the addition of full-context capabilities doesn't drastically increase model size, making it practical for deployment.
  • Joint Training Enhances Stability: Training both modes concurrently leads to more robust and higher-quality models compared to training them in isolation or randomly sampling between them.

Key Results

The Dual-mode ASR framework, applied to state-of-the-art ContextNet and Conformer architectures, achieved:

  • State-of-the-art streaming ASR performance on both LibriSpeech and MultiDomain datasets in terms of both accuracy (Word Error Rate - WER) and latency.
  • Significant latency reduction for streaming ASR, with median latencies (Latency@50) dropping by up to 210ms and 90th percentile latencies (Latency@90) by up to 170ms on the MultiDomain dataset compared to standalone streaming models.
  • Improved or comparable accuracy for streaming ASR, with some configurations achieving better WER than their full-context counterparts. For example, on LibriSpeech, Dual-mode ContextNet streaming achieved a WER of 3.9% (a 0.6% improvement) and Dual-mode Conformer streaming achieved 3.7% (a 0.9% improvement) compared to their full-context versions.
  • Reduced model complexity: Simplifies the workflow for training and deploying both streaming and full-context ASR models.

Limitations and Future Work

  • Normalization Statistics: The paper notes that normalization statistics (means and variances) can differ between streaming and full-context modes, necessitating separate normalization layers for each.
  • Hyperparameter Tuning for Distillation Shift: While the distillation loss is free, a small-scale hyperparameter sweep was performed for the "shift" parameter used to align the full-context prediction with the streaming target. Further exploration of this parameter could be beneficial.
  • Future Work: The authors suggest that the Dual-mode ASR framework could inspire similar unified approaches in other sequence-to-sequence tasks like simultaneous machine translation and video processing. The empirical observation that weight sharing itself might encourage better deep representations for streaming ASR warrants further investigation.

Summary updated

BibTeX
@inproceedings{yu2021dual,
  author = {Jiahui Yu and Wei Han and Anmol Gulati and Chung-Cheng Chiu and Bo Li and Tara N Sainath and Yonghui Wu and Ruoming Pang},
  title = {{Dual-mode ASR: Unify and Improve Streaming ASR with Full-context Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure