An analysis of incorporating an external language model into a sequence-to-sequence model
Anjuli Kannan, Yonghui Wu, Patrick Nguyen, Tara N. Sainath, Zhifeng, Chen, Rohit Prabhavalkar

TL;DR
This paper investigates how integrating external language models via shallow fusion affects speech recognition performance, demonstrating significant WER improvements across various conditions and tasks.
Contribution
It provides a comprehensive analysis of shallow fusion with different language models, decoding units, and tasks, highlighting its effectiveness in speech recognition.
Findings
Shallow fusion with a neural LM reduces WER by 9.1% on Google Voice Search.
Using external language models can eliminate the need for second-pass rescoring.
Performance gains vary with language model type and decoding units.
Abstract
Attention-based sequence-to-sequence models for automatic speech recognition jointly train an acoustic model, language model, and alignment mechanism. Thus, the language model component is only trained on transcribed audio-text pairs. This leads to the use of shallow fusion with an external language model at inference time. Shallow fusion refers to log-linear interpolation with a separately trained language model at each step of the beam search. In this work, we investigate the behavior of shallow fusion across a range of conditions: different types of language models, different decoding units, and different tasks. On Google Voice Search, we demonstrate that the use of shallow fusion with a neural LM with wordpieces yields a 9.1% relative word error rate reduction (WERR) over our competitive attention-based sequence-to-sequence model, obviating the need for second-pass rescoring.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
