Improving Streaming Transformer Based ASR Under a Framework of Self-Supervised Learning

Songjun Cao, Yueteng Kang, Yanzhe Fu, Xiaoshuo Xu, Sining Sun, Yike Zhang, Long Ma

TL;DR

This paper tackles the challenge of making powerful Transformer-based Automatic Speech Recognition (ASR) models work in real-time streaming scenarios. They introduce a novel two-stage fine-tuning method combining knowledge distillation and self-training to improve streaming Transformer performance, achieving significant word error rate reductions on the Librispeech dataset.

What Problem Does This Paper Address?

Modern ASR systems, particularly those based on the Transformer architecture, achieve state-of-the-art performance by leveraging self-supervised learning (SSL) on massive amounts of unlabeled audio data. However, the standard bidirectional Transformer architecture requires access to the entire audio sequence to compute attention, making it unsuitable for real-time streaming applications where audio arrives sequentially and decisions must be made with limited future context. Existing streaming Transformer variants often introduce latency or computational overhead. This paper aims to bridge this gap by improving the performance of streaming Transformers within an SSL framework, specifically addressing how to effectively fine-tune these models for streaming while maintaining high accuracy.

Methods

The core contribution lies in a novel two-stage training method for fine-tuning pre-trained SSL models into streaming ASR systems. This method combines two key techniques:

  • Knowledge Distillation: A non-streaming "teacher" model (trained with guided CTC loss) is used to transfer its knowledge to a streaming "student" model. This helps the student model mimic the teacher's behavior, mitigating the performance drop often seen when moving from non-streaming to streaming architectures.
  • Self-Training: The streaming model is further trained on pseudo-labeled data generated by a non-streaming model. This allows the streaming model to learn from a larger, unlabeled dataset, leveraging the strengths of both SSL and semi-supervised learning.

The paper also explores different types of streaming Transformer architectures (Time-restricted, Chunk Transformer, and Block Transformer) and evaluates their performance under a fixed algorithmic latency constraint. The Block Transformer, which incorporates a "future part" to provide limited future context, emerges as the most effective streaming architecture for this task.

Datasets

  • Librispeech Corpus (LS-960): This is the primary dataset used.
  • Pre-training: The entire 960-hour dataset is used without transcriptions for self-supervised pre-training.
  • Fine-tuning: The train-clean-100 subset (100 hours) is used as labeled data, and the remaining 860 hours are used as unlabeled data for knowledge distillation and self-training.
  • Evaluation: Models are evaluated on the Librispeech dev-other/clean and test-clean/other sets.

Key Insights and Ideas

  • Streaming Transformers can be effectively fine-tuned with SSL: The paper demonstrates that it's possible to adapt powerful SSL pre-trained models to streaming scenarios without a drastic performance penalty.
  • Block Transformer is a strong streaming architecture: Among the evaluated streaming variants, the Block Transformer, with its ability to incorporate a limited future context, shows the best performance.
  • Knowledge Distillation and Self-Training are complementary: The proposed two-stage method, combining both techniques, yields better results than either method alone. This suggests that knowledge distillation helps bridge the gap between non-streaming and streaming models, while self-training leverages unlabeled data to further improve performance.
  • Future context is crucial for streaming performance: The success of the Block Transformer highlights the importance of providing even limited future context to streaming models.
  • Mismatch in spike timings is less of an issue for streaming models with future context: The authors note that the performance gain from guided CTC loss in knowledge distillation is less pronounced compared to prior work, attributing this to the streaming Transformer's ability to see some future frames, reducing the spike timing mismatch.

Key Results

  • The proposed two-stage training method achieves a 16.3% relative Word Error Rate (WER) reduction on the Librispeech noisy test set compared to a baseline streaming Transformer.
  • Using only the 100h clean subset as labeled data and the rest as unlabeled data, their final streaming Transformer model achieves competitive WERs of 3.5% (clean) and 8.7% (noisy) on the Librispeech test sets.
  • The Block Transformer architecture, with a chunk size of 240ms and future size of 120ms, achieved the best results among streaming transformers under a 480ms latency constraint, with WERs of 3.9% (clean) and 10.6% (noisy) on the test set.
  • Knowledge distillation alone resulted in a WER of 3.9% (clean) and 9.8% (noisy), while self-training alone achieved 3.6% (clean) and 8.9% (noisy). The combined approach (S7) reached 3.5% (clean) and 8.7% (noisy).

Limitations and Future Work

  • Streaming Transformer during pre-training: The paper found that introducing streaming Transformers during the pre-training phase did not yield good results, with validation loss increasing. This is left as a future exploration.
  • Efficiency of streaming Transformer structures: Designing more efficient structures for streaming Transformers is identified as an interesting area for future research.
  • Algorithmic latency vs. computational optimization: The current work focuses on accuracy under a fixed algorithmic latency. Future work could explore computational optimization alongside latency reduction.

Summary updated

BibTeX
@inproceedings{cao2021improving,
  author = {Songjun Cao and Yueteng Kang and Yanzhe Fu and Xiaoshuo Xu and Sining Sun and Yike Zhang and Long Ma},
  title = {{Improving Streaming Transformer Based ASR Under a Framework of Self-Supervised Learning}},
  booktitle = {Interspeech},
  year = {2021},
}
Figure