English

Unified Streaming and Non-streaming Two-pass End-to-end Model for Speech Recognition

Sound 2021-12-30 v2 Computation and Language Audio and Speech Processing

Abstract

In this paper, we present a novel two-pass approach to unify streaming and non-streaming end-to-end (E2E) speech recognition in a single model. Our model adopts the hybrid CTC/attention architecture, in which the conformer layers in the encoder are modified. We propose a dynamic chunk-based attention strategy to allow arbitrary right context length. At inference time, the CTC decoder generates n-best hypotheses in a streaming way. The inference latency could be easily controlled by only changing the chunk size. The CTC hypotheses are then rescored by the attention decoder to get the final result. This efficient rescoring process causes very little sentence-level latency. Our experiments on the open 170-hour AISHELL-1 dataset show that, the proposed method can unify the streaming and non-streaming model simply and efficiently. On the AISHELL-1 test set, our unified model achieves 5.60% relative character error rate (CER) reduction in non-streaming ASR compared to a standard non-streaming transformer. The same model achieves 5.42% CER with 640ms latency in a streaming ASR system.

Keywords

Cite

@article{arxiv.2012.05481,
  title  = {Unified Streaming and Non-streaming Two-pass End-to-end Model for Speech Recognition},
  author = {Binbin Zhang and Di Wu and Zhuoyuan Yao and Xiong Wang and Fan Yu and Chao Yang and Liyong Guo and Yaguang Hu and Lei Xie and Xin Lei},
  journal= {arXiv preprint arXiv:2012.05481},
  year   = {2021}
}
R2 v1 2026-06-23T20:51:51.360Z