Introduction
Neural Machine Translation (NMT) models often struggle when applied to specialized domains like medicine or law, despite their strong performance on general datasets. Traditional domain adaptation typically involves fine-tuning models on domain-specific parallel data. However, this approach faces significant challenges: parallel data is often scarce for niche domains, and fine-tuning can lead to "catastrophic forgetting," where the model loses its general-domain capabilities.
To address these issues, this paper introduces Iter-kNNMT, a fully non-parametric approach for unsupervised domain adaptation. By leveraging only monolingual data and an iterative refinement process, Iter-kNNMT adapts models to new domains without altering their internal weights, thus preserving general-domain knowledge.
Methodology: Iterative Refinement
Iter-kNNMT builds upon $k$NN-MT, which allows a pre-trained model to consult an external "datastore" of examples during translation. The core innovation lies in a dual-model iterative process where forward (Source $\to$ Target) and backward (Target $\to$ Source) models refine each other's datastores.
The process begins by using a general-domain model to back-translate target-language monolingual data, creating an initial noisy datastore. In subsequent steps, the forward model uses this datastore to translate source-language data, which is then used to update the backward model's datastore. This cycle repeats, with each iteration producing more fluent and domain-accurate translations. Crucially, the underlying NMT model remains unchanged; only the external "cheat sheet" is updated.
Experimental Setup
The method was evaluated on a multi-domain benchmark for English-German (EN-DE) and German-English (DE-EN) translation, covering IT, Medical, Law, and Koran domains. To simulate unsupervised scenarios, parallel datasets were split to create unaligned monolingual sets for the source and target languages.
Key Results
Iter-kNNMT demonstrates significant performance gains over both basic NMT and existing non-parametric methods. On average, the method achieved a 6 BLEU point improvement over the base NMT model across all domains.
As shown in the results table, Iter-kNNMT consistently outperforms UDA-kNNMT, the previous state-of-the-art non-parametric method, by approximately 1 BLEU point on average. The improvements are most notable in the Medical and Koran domains. For instance, in the EN-DE Medical domain, performance jumped from 39.99 to 48.06 BLEU.
Discussion and Insights
The success of Iter-kNNMT highlights several key principles:
- Duality and Virtuous Cycles: Using forward and backward models to refine each other creates a self-improving system.
- Non-Parametric Efficiency: Providing a better reference library (the datastore) can be more effective than re-training the model's "brain," avoiding the risks of parameter updates.
- Data Accumulation: Ablation studies revealed that retaining older versions of the datastore alongside refined data (accumulation) improves robustness.
- Convergence: Most performance gains occur within the first two iterations, making the method computationally efficient.
Conclusion and Future Work
While Iter-kNNMT offers a powerful, non-parametric solution for domain adaptation, it introduces challenges regarding inference speed and storage requirements due to the size of the external datastores. Future research will focus on datastore compression and improving decoding efficiency to make this approach more viable for real-time applications.
Summary updated