Abstract
Sequence-to-sequence models, such as attention-based models in automatic speech recognition (ASR), are typically trained to optimize the cross-entropy criterion which corresponds to improving the log-likelihood of the data. However, system performance is usually measured in terms of word error rate (WER), not log-likelihood. Traditional ASR systems benefit from discriminative sequence training which optimizes criteria such as the state-level minimum Bayes risk (sMBR) which are more closely related to WER. In the present work, we explore techniques to train attention-based models to directly minimize expected word error rate. We consider two loss functions which approximate the expected number of word errors: either by sampling from the model, or by using N-best lists of decoded hypotheses, which we find to be more effective than the sampling-based method. In experimental evaluations, we find that the proposed training procedure improves performance by up to 8.2% relative to the baseline system. This allows us to train grapheme-based, uni-directional attention-based models which match the performance of a traditional, state-of-the-art, discriminative sequence-trained system on a mobile voice-search task.
1. Introduction
In Automatic Speech Recognition (ASR), the primary metric for evaluating system performance is the Word Error Rate (WER). However, most contemporary end-to-end sequence-to-sequence models are trained using the Cross-Entropy (CE) criterion. This objective maximizes the log-likelihood of the ground-truth sequence, which does not necessarily correlate perfectly with WER. CE loss is calculated at the token level and fails to account for the global sequence structure or the edit distance between predictions and targets. While traditional ASR systems have successfully employed discriminative sequence training (e.g., sMBR) to bridge this gap, extending these techniques to attention-based models remains a significant challenge due to the exponential search space of possible output sequences.
2. Methodology
We propose a training procedure that directly minimizes the expected Word Error Rate (MWER). The goal is to minimize the expectation of the word error count over the distribution of all possible output sequences.
2.1 Approximation Strategies
Given the intractability of summing over all possible sequences, we evaluate two approximation methods:
- Sampling-based Approximation: Estimating the expectation by drawing $N$ random samples from the model's posterior distribution.
- N-best List Approximation: Using beam search to generate the top $N$ most likely hypotheses. Our experiments indicate that N-best lists are more effective because they focus on the high-probability regions of the distribution that the model encounters during inference.
2.2 Model Architecture
The underlying architecture follows the "Listen, Attend, and Spell" (LAS) framework. A critical component is the multi-headed additive attention mechanism, which enables the decoder to focus on multiple relevant parts of the acoustic signal simultaneously.
2.3 Training Refinements
Directly optimizing for WER can lead to training instability. We employ two key strategies to ensure convergence:
- Initialization: Models are "warm-started" with standard CE training before transitioning to the MWER objective.
- Hybrid Loss Function: We interpolate the MWER loss with a small amount of CE loss, controlled by a hyperparameter $\lambda$. This hybrid approach regularizes the training process and prevents the model weights from oscillating.
3. Experimental Evaluation
The models were trained on a dataset of approximately 15 million anonymized utterances from Google mobile voice search, totaling roughly 12,500 hours of audio. To improve noise robustness, we utilized Multi-Style Training (MTR), augmenting the data with various environmental noises and reverberation.
4. Results and Discussion
Our results demonstrate that MWER training significantly outperforms the CE baseline:
- Accuracy Gains: We achieved up to an 8.2% relative improvement in WER.
- Grapheme-based Modeling: By using MWER training, simple grapheme-based models (predicting characters) were able to match the performance of complex, state-of-the-art phoneme-based systems that require expert-curated pronunciation dictionaries.
- Model Variants: Uni-directional LAS models improved from 8.1% to 7.5% WER, reaching 6.7% when combined with a second-pass language model rescorer.
5. Conclusion
Minimum Word Error Rate training provides a robust framework for optimizing attention-based ASR models. By aligning the training objective with the evaluation metric, we achieve state-of-the-art performance with simpler architectures. Future research will address the computational cost of performing beam search during training and explore tighter integration with external language models.
Summary updated