Minimum Bayes Risk Training of RNN-Transducer for End-to-End Speech Recognition

Chao Weng, Chengzhu Yu, Jia Cui, Chunlei Zhang, Dong Yu

Introduction

End-to-end (E2E) speech recognition has seen significant advancements with the rise of architectures like the RNN-Transducer (RNN-T). Traditionally, these models are trained using Maximum Likelihood Estimation (MLE). While MLE is computationally efficient and effective for learning probability distributions, it does not directly optimize for the primary evaluation metrics used in speech recognition: Word Error Rate (WER) or Character Error Rate (CER).

This paper proposes a transition from MLE to Minimum Bayes Risk (MBR) training for RNN-T models. By directly minimizing the expected edit distance between predicted hypotheses and ground truth, the authors aim to bridge the gap between training objectives and evaluation performance. Furthermore, they address the challenge of integrating external language models (LMs) into the RNN-T framework, which is notoriously difficult due to the model's unique "blank" symbol logic.

Hybrid Architecture for RNN-Transducers

To establish a high-performance baseline, the authors depart from standard LSTM-based RNN-T designs. Instead, they utilize a hybrid architecture that combines Time Delay Neural Networks (TDNN) and Transformer layers.

Hybrid RNN-T architecture featuring TDNN and Transformer layers in both encoder and decoder.

The encoder (transcription network) and decoder (prediction network) both leverage this hybrid approach. TDNN layers are used to capture local temporal dependencies efficiently, while Transformer layers provide the self-attention mechanism necessary to model long-range global context. This combination allows the model to benefit from the strengths of both convolutional and attention-based paradigms.

Minimum Bayes Risk (MBR) Training

The core contribution of this work is the application of MBR fine-tuning. In this stage, the model is optimized to minimize the "risk," defined as the expected edit distance over a set of candidate hypotheses.

Technical Implementation

  1. N-best Generation: During training, the model generates an N-best list of hypotheses on-the-fly using beam search.
  2. Gradient Derivation: The paper provides a formal derivation for the MBR loss gradient tailored to the RNN-T framework, allowing for stable backpropagation.
  3. Regularization: To prevent training instability and maintain decoding efficiency, the original RNN-T MLE loss is added as a regularizer to the MBR loss.
  4. Softmax Smoothing: A smoothing factor ($\beta < 1$) is applied to the softmax distribution during the N-best generation process, which helps produce more diverse and representative hypotheses for the risk calculation.

External Language Model Integration

Integrating an external Neural Network Language Model (NNLM) into an RNN-T is challenging because the RNN-T's output space includes a "blank" symbol used for alignment, which standard LMs do not recognize.

The authors propose a "shallow fusion" heuristic where the scores for the "blank" symbol are left unchanged, while non-blank symbols are interpolated with the NNLM scores and then re-normalized. This approach allows the system to leverage massive text-only corpora (80 billion tokens in this study) without disrupting the acoustic alignment logic of the RNN-T.

Experimental Results

The proposed methods were evaluated on a massive industrial-scale Mandarin dataset comprising approximately 21,000 hours of transcribed speech. This data was further augmented to 63,000 hours.

Character Error Rate (CER) performance across different model configurations on Read and Spontaneous speech.

As shown in the results, MBR training consistently improves performance over the MLE baseline. For "Read" speech, the CER dropped from 6.2% to 5.6% with MBR alone, and further to 5.0% when combined with the NNLM. On "Spontaneous" speech, which is inherently more difficult, the CER improved from 15.4% to 14.9%.

Conclusion

This work demonstrates that Minimum Bayes Risk training is a powerful tool for refining RNN-Transducer models on large-scale datasets. By directly optimizing for edit distance and employing a clever heuristic for language model fusion, the authors achieved significant accuracy gains. The use of a TDNN-Transformer hybrid architecture further underscores the importance of modern neural components in building state-of-the-art speech recognition systems.

Summary updated

BibTeX
@inproceedings{weng2020minimum,
  author = {Chao Weng and Chengzhu Yu and Jia Cui and Chunlei Zhang and Dong Yu},
  title = {{Minimum Bayes Risk Training of RNN-Transducer for End-to-End Speech Recognition}},
  booktitle = {Interspeech},
  year = {2020},
  doi = {10.21437/interspeech.2020-1221},
}
Figure