Parallel Rescoring with Transformer for Streaming On-Device Speech Recognition

Wei Li, James Qin, Chung-Cheng Chiu, Ruoming Pang, Yanzhang He


Recent advances of end-to-end models have outperformed conventional models through employing a two-pass model. The two-pass model provides better speed-quality trade-offs for on-device speech recognition, where a 1 st-pass model generates hypotheses in a streaming fashion, and a 2 nd-pass model rescores the hypotheses with full audio sequence context. The 2 nd-pass model plays a key role in the quality improvement of the end-to-end model to surpass the conventional model. One main challenge of the two-pass model is the computation latency introduced by the 2 nd-pass model. Specifically, the original design of the two-pass model uses LSTMs for the 2 nd-pass model, which are subject to long latency as they are constrained by the recurrent nature and have to run inference sequentially. In this work we explore replacing the LSTM layers in the 2 nd-pass rescorer with Transformer layers, which can process the entire hypothesis sequences in parallel and can therefore utilize the on-device computation resources more efficiently. Compared with an LSTM-based baseline, our proposed Transformer rescorer achieves more than 50% latency reduction with quality improvement.


 DOI: 10.21437/Interspeech.2020-2875

Cite as: Li, W., Qin, J., Chiu, C., Pang, R., He, Y. (2020) Parallel Rescoring with Transformer for Streaming On-Device Speech Recognition. Proc. Interspeech 2020, 2122-2126, DOI: 10.21437/Interspeech.2020-2875.


@inproceedings{Li2020,
  author={Wei Li and James Qin and Chung-Cheng Chiu and Ruoming Pang and Yanzhang He},
  title={{Parallel Rescoring with Transformer for Streaming On-Device Speech Recognition}},
  year=2020,
  booktitle={Proc. Interspeech 2020},
  pages={2122--2126},
  doi={10.21437/Interspeech.2020-2875},
  url={http://dx.doi.org/10.21437/Interspeech.2020-2875}
}