Abstract
End-to-end (E2E) speech recognition models often require external Language Models (LMs) to generalize across diverse domains. However, standard shallow fusion techniques necessitate manual tuning of interpolation weights for each domain. This paper presents MWER-ILME, a training objective that integrates LM fusion directly into the Minimum Word Error Rate (MWER) training process using Internal LM Estimation (ILME). This approach eliminates the need for per-domain weight tuning and achieves significant performance improvements, including an 8.8% relative WER reduction on multi-domain tasks and a 21.7% reduction on out-of-domain data.
Introduction
End-to-end speech recognition systems, such as Transformer Transducers, have achieved state-of-the-art performance but face challenges with domain shifts (e.g., from voice search to conversational speech). To mitigate this, external LMs are typically fused with the E2E model during inference. The standard method, Shallow Fusion, relies on a finicky interpolation weight ($\lambda$) that must be manually tuned for different datasets—a process that is both time-consuming and computationally expensive.
Methodology: MWER-ILME
The core innovation of this work is moving LM fusion from the inference stage into the training stage. The authors propose a Minimum Word Error Rate (MWER) criterion combined with Internal LM Estimation (ILME).
MWER Training
Unlike standard Cross-Entropy training which focuses on character-level accuracy, MWER training optimizes the model to minimize the expected word error rate across the top-N hypotheses.
Internal LM Estimation (ILME)
E2E models implicitly learn an internal language model from their training data. ILME improves fusion by subtracting this internal LM's scores from the E2E model's output. This process "cleans" the acoustic signal, allowing for more effective integration of the external LM's knowledge.
The MWER-ILME Objective
In MWER-ILME, ILME-based fusion is performed during the MWER training phase. The model generates N-best hypotheses using both the external and internal LMs. Gradients from the word error rate are backpropagated through the E2E model, training it to "cooperate" optimally with the external LM. By fixing the LM weights during training, the model learns a robust representation that generalizes without further tuning.
Experimental Setup
The model was trained on a 30,000-hour Microsoft dataset comprising anonymized voice search, dictation, and conversation data. Evaluation was conducted on a multi-domain test set (Call, Meeting, Search, Keyboard, Email, Common Voice) and the LibriSpeech dataset for out-of-domain assessment. External LMs included a multi-domain LSTM LM (2 billion words) and a LibriSpeech-specific LM.
Results and Discussion
The proposed MWER-ILME method demonstrates superior performance and robustness across all tested domains.
Performance Gains
MWER-ILME achieved an average 8.8% relative Word Error Rate (WER) reduction over standard MWER. It also outperformed MWER with Shallow Fusion (MWER-SF) by 5.8%.
Zero-Tuning and Domain Generalization
A key advantage of MWER-ILME is its "zero-tuning" capability. The model outperformed "Oracle" Shallow Fusion—where weights are perfectly tuned for each specific test set—by 2.4% relatively. This suggests that the model learns a universal integration strategy for external knowledge.
Out-of-Domain Robustness
On the LibriSpeech dataset, which represents a domain not seen during E2E training, MWER-ILME provided a substantial 21.7% relative WER reduction compared to the baseline MWER model.
Conclusion
MWER-ILME offers a robust solution for integrating external LMs into E2E speech recognition systems. By aligning training and inference through ILME-based fusion within the MWER objective, the model achieves significant accuracy gains and eliminates the need for manual domain-specific weight tuning. Future work may explore the computational efficiency of N-best hypothesis generation and the potential for joint training of the E2E model and external LMs.
Summary updated