Abstract
This paper investigates methods to improve the integration of monolingual data into Neural Machine Translation (NMT) by neutralizing the internal language model (ILM) that NMT systems implicitly learn during training. By adapting ILM compensation techniques from Automatic Speech Recognition, the authors demonstrate significant improvements over standard language model fusion. However, comprehensive evaluations across multiple benchmarks reveal that back-translation remains the superior method for utilizing monolingual corpora in NMT.
Introduction
Training high-quality NMT systems typically requires large-scale bilingual parallel data, which is often scarce for specific domains or low-resource languages. In contrast, monolingual data is abundant. Currently, the dominant method for leveraging monolingual text is Back-Translation (BT), where target-language text is translated into the source language to create synthetic training pairs. An alternative method is Language Model (LM) Fusion, where an external LM trained on monolingual data assists the NMT decoder during decoding.
Historically, BT has consistently outperformed LM Fusion. This is largely because an NMT decoder inherently functions as an "Internal Language Model" for the target language. When an external LM is added via standard shallow fusion, the two models often interfere, or redundant linguistic patterns are "double-counted." This research explores whether estimating and subtracting the NMT system's internal LM during decoding can make LM Fusion competitive with Back-Translation.
Methods: Internal LM Compensation
The authors adapt ILM Compensation from Automatic Speech Recognition (ASR). During decoding, the final score is calculated by subtracting a weighted version of the Internal LM from the combined NMT and external LM scores:
$$Score \propto \log P_{NMT} + \lambda_1 \log P_{ExternalLM} - \lambda_2 \log P_{InternalLM}$$
Since the ILM is not a distinct component but is embedded within the NMT model, the authors evaluate several approximation techniques:
- Separate LM: An independent LM trained on the target side of the parallel data.
- Heuristic Blindness ($h=0, h_{avg}, c_{avg}$): Forcing the NMT decoder to predict tokens without source context by zeroing or averaging encoder outputs.
- Mini-Self-Attention: A small, trainable self-attention layer added to the frozen NMT decoder, trained specifically to predict tokens using only target-side history.
As shown in the comparison above, the Mini-Self-Attention approach provides the most effective approximation, yielding the highest BLEU scores among the ILM variants.
Results and Discussion
The experimental results across four benchmarks (IWSLT, NEWS, and WMT14) highlight several key findings regarding the efficacy of ILM compensation.
ILM Compensation vs. Shallow Fusion
Subtracting the ILM consistently improves performance over standard shallow fusion (+SF). For example, on the IWSLT En→De task, shallow fusion improved the baseline from 28.9 to 30.0 BLEU, while ILM compensation (via mini-self-attn) further increased this to 31.7 BLEU. This confirms that internal and external models do indeed interfere during standard fusion.
The Superiority of Back-Translation
Despite the gains from ILM compensation, Back-Translation remains the leader. On the IWSLT En→De task, BT achieved 34.1 BLEU, significantly higher than the best LM fusion result. This suggests that integrating monolingual information directly into the model weights during training (as BT does) is more effective than applying it as a decoding-time adjustment.
Data Scaling and Synergy
As parallel training data increases (e.g., moving to the WMT benchmark), the gap between ILM compensation and BT narrows, though BT still holds the advantage. Interestingly, adding ILM compensation to a system already enhanced with BT provided negligible benefits, except for a marginal improvement on the largest WMT task.
Conclusion
While ILM compensation significantly improves the integration of external language models, it does not yet displace back-translation as the state-of-the-art for monolingual data utilization. However, ILM compensation may be particularly valuable in "cold start" scenarios where initial NMT quality is too low to generate reliable synthetic data for back-translation. Future research could investigate these extremely low-resource settings and explore ways to reduce the computational overhead introduced by running additional sub-models during decoding.
Summary updated