Deliberation Model Based Two-Pass End-To-End Speech Recognition

Ke Hu, Tara N. Sainath, Ruoming Pang, Rohit Prabhavalkar

Abstract

End-to-end (E2E) automatic speech recognition (ASR) systems have streamlined the speech processing pipeline but often face a trade-off between the speed of streaming models and the accuracy of non-streaming ones. This paper introduces a "deliberation" model that bridges this gap by utilizing a second-pass decoder that attends to both the original acoustics and the first-pass text hypotheses. This approach yields a 12% relative reduction in Word Error Rate (WER) on general tasks and a 23% improvement on proper nouns, outperforming state-of-the-art conventional models.

Introduction

The evolution of automatic speech recognition has moved toward end-to-end (E2E) architectures, which replace separate acoustic, pronunciation, and language models with a single neural network. While streaming models like the Recurrent Neural Network Transducer (RNN-T) offer low latency suitable for real-time applications, they typically lag behind larger, non-streaming models in accuracy.

Traditional "two-pass" systems attempt to rectify this by using a second model to re-score the initial hypotheses. However, these rescorers usually focus solely on the audio or solely on the text. This research proposes a novel deliberation-based system that "deliberates" over both the acoustics and multiple first-pass hypotheses simultaneously, allowing for more informed and accurate final transcriptions.

System Architecture

The proposed system consists of three primary components: a shared encoder, a first-pass RNN-T decoder, and a second-pass deliberation decoder.

The Deliberation Model architecture, featuring a shared encoder and a two-pass decoding process.
  1. Shared Encoder: This component processes raw audio (log-mel filterbank energies) into high-level acoustic representations.
  2. RNN-T Decoder (First Pass): A streaming model that generates immediate, initial text hypotheses ($y_r$).
  3. Deliberation Decoder (Second Pass): The core innovation of this work. It employs two distinct attention mechanisms: one for the audio encoding and another for the first-pass hypotheses. The hypotheses are first processed through bidirectional LSTMs to capture full context, enabling the model to look both forward and backward through the text.

To resolve potential incompatibilities between streaming and non-streaming components, the authors introduced "Additional Encoder" (AE) layers, which improved performance by approximately 4%.

Training Methodology

The model is trained in two stages. First, the RNN-T is trained; subsequently, its parameters are fixed while the deliberation components are optimized. A critical element of the training process is the use of Minimum Word Error Rate (MWER) loss. Unlike standard cross-entropy loss, MWER directly optimizes the model to minimize transcription errors, helping the deliberation decoder learn which parts of the potentially noisy first-pass hypotheses are most reliable.

The system was trained on massive, multi-domain Google datasets, including anonymized utterances from Voice Search, YouTube, and telephony, augmented with simulated noise and reverberation.

Key Insights and Results

The deliberation model's primary strength lies in its ability to use bidirectional context to correct errors. Because the second pass sees the entire first-pass hypothesis at once, it can use "future" words to correct "past" mistakes.

Attention map showing the deliberation decoder correcting a first-pass hypothesis using acoustic context.

As illustrated in the attention visualization, the model can resolve ambiguities—for instance, correcting "ond" to "on" when the subsequent context is "Nevada."

Performance Metrics

  • Word Error Rate: The best deliberation model achieved a 5.0% WER on Voice Search, representing a 12% relative improvement over standard LAS rescoring.
  • Proper Nouns: The model excelled at recognizing specific names and titles, showing a 23% relative WER reduction on proper noun test sets compared to the first-pass model.
  • Comparison to Conventional Models: The E2E deliberation model outperformed a state-of-the-art conventional (non-E2E) model by 21% on Voice Search tasks.
  • Joint Training: Training all modules together provided an additional 2% boost for Voice Search and a significant 9% boost for proper noun recognition.

Conclusion and Future Work

The deliberation model significantly advances the state-of-the-art in E2E ASR by effectively combining acoustic and linguistic information in a two-pass framework. However, this accuracy comes at a computational cost; the deliberation decoder is roughly twice the size of a standard rescorer and requires significantly more GFLOPS.

Future work will focus on optimizing the latency of the deliberation pass. While computation can be parallelized across hypotheses, detailed latency estimation remains a complex challenge. Additionally, the authors noted occasional "over-correction" where the model might change a spelling in a way that is semantically benign but technically incorrect relative to the ground truth.

Summary updated

BibTeX
@inproceedings{hu2020deliberation,
  author = {Ke Hu and Tara N. Sainath and Ruoming Pang and Rohit Prabhavalkar},
  title = {{Deliberation Model Based Two-Pass End-To-End Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=Epn897u6C4},
}
Figure