Introduction
Researchers from Microsoft have introduced a novel method to fuse specialized Neural Machine Translation (NMT) models with Large Language Models (LLMs) at the token level during inference. This "on-the-fly" ensemble consistently outperforms either model alone, demonstrating that even a "weaker" LLM can significantly enhance the translation quality and fluency of state-of-the-art NMT systems.
The Challenge: Specialized NMT vs. General LLMs
Machine translation currently operates in two distinct paradigms. Dedicated NMT models are specialized, efficient, and excel in low-resource settings. Conversely, LLMs possess vast world knowledge and superior fluency but are prone to hallucinations and often lag behind specialized models in raw translation accuracy.
The challenge lies in combining these complementary strengths. NMT models are "translation-first" but can be rigid. LLMs are "fluency-first" and can easily incorporate auxiliary information (e.g., style or context) via prompting—a task difficult for standard NMT architectures. The proposed method seeks to bridge this gap without the prohibitive cost of retraining or fine-tuning.
Methodology: Token-Level Fusion
The core of this approach is a token-level fusion mechanism applied during the decoding process. As the model generates each subsequent token, it calculates probability distributions from both systems:
- NMT Model: Provides a probability based on the source sentence and previously generated tokens.
- LLM: Provides a probability based on a translation prompt, the source sentence, and the previously generated tokens.
These distributions are combined using a linear interpolation: $$p_{ensemble} = \lambda \cdot p_{MT} + (1 - \lambda) \cdot p_{LLM}$$ where $\lambda$ is a mixing ratio tuned on a validation set. This "on-the-fly" method requires no changes to underlying model weights and allows the LLM to be "steered" using standard prompting techniques like in-context learning or document context.
Key Insights
Prompting is Essential
A critical finding is that the LLM must be "aware" it is translating to contribute effectively. If the LLM is used purely as a language model without a translation prompt, the ensemble's performance degrades significantly as the LLM's influence increases.
Diversity and Context
- Diversity Trumps Strength: Ensembling an MT model with a weaker LLM often yields better results than ensembling two stronger MT models. The diversity of the LLM's training data provides unique value.
- Context over Examples: For document-level translation, providing the LLM with previous sentences from the same document was more effective than providing high-quality "few-shot" examples from different contexts.
- The "Weaker" LLM Boost: Even when the LLM was significantly worse than the NMT model (e.g., by over 20 COMET points), the ensemble still provided a quality boost over the NMT baseline.
Experimental Results
The researchers evaluated the method using the COMET-22 metric across several language pairs and resource levels.
Key findings include:
- High-Resource Gains: In German-English (de-en), the ensemble reached a score of 83.9, outperforming both the NMT (83.5) and LLM (82.6) baselines.
- Document-Level Success: On the CTXPro benchmark, adding document context allowed the ensemble to achieve peak accuracy in formality and gender agreement.
- Model Scaling: While larger LLMs (13B) generally improved results, the 7B model was sufficient to provide a meaningful quality boost.
Limitations and Future Work
Despite its success, the method has limitations:
- Computational Overhead: Running inference on two models simultaneously increases latency and memory requirements.
- Low-Resource Floor: The method showed limited improvement in very low-resource settings (e.g., Hausa), where the LLM's signal is too weak to provide a useful contribution.
- Static Mixing: Future research may explore dynamic, token-by-token weighting instead of a fixed $\lambda$.
- API Constraints: The token-level approach is currently incompatible with high-latency closed-source model APIs, as it requires per-token probability access.
Summary updated