Introduction
Neural Machine Translation (NMT) models often face the challenge of adapting to new domains in a streaming data environment. While "Multi-Domain Learning" (MDL) provides a theoretical upper bound by retraining on all data simultaneously, it is frequently impractical due to privacy concerns or storage limitations for legacy datasets. Simply fine-tuning a model on a new domain typically leads to catastrophic forgetting, where performance on previously learned domains degrades significantly. Existing solutions like adapters or regularization often struggle to balance model size, privacy, and translation quality.
Semi-supervised Contrastive Distillation (SCD)
To address these issues, the authors propose the Semi-supervised Contrastive Distillation (SCD) framework. SCD enables incremental learning across domains without requiring access to the original parallel training data of previous tasks. The framework is built upon two core components:
- Semi-supervised Knowledge Distillation: Instead of original parallel data, SCD utilizes only the source-side text from previous domains. A "Teacher" model (the previous iteration) generates "soft labels" for this unlabeled text, which the "Student" model (the current iteration) aims to match while learning the new domain.
- Cross-domain Contrastive Objective (CCO): To prevent domain interference, contrastive learning is employed. By using the same sentence encoded through different domain-specific model versions as "hard negatives," the model learns to distinguish between domain-specific characteristics, preventing knowledge "bleeding."
Experimental Results
The framework was evaluated on a multi-domain German-to-English dataset covering five domains: IT, Koran, Law, Medical, and Subtitles. SCD demonstrates superior retention of old knowledge compared to strong baselines. For instance, in the IT -> Koran transition, SCD maintains an IT BLEU score of 39.87, nearly matching the original performance, whereas standard fine-tuning would see significant degradation.
Key Insights
- Distributional Anchoring: The distillation process effectively anchors previous knowledge using only the distribution of source-side text, proving that gold-standard translations are not strictly necessary for retention.
- Efficiency at Scale: The model achieves stability with minimal unlabeled data (as few as 50–100 instances), making it highly practical for real-world scenarios where historical data may be scarce.
- Performance Gap: SCD significantly narrows the gap between incremental learning and the MDL upper bound, maintaining high BLEU scores across all learned domains without the need for data storage.
Conclusion
SCD represents a significant advancement in incremental NMT, offering a privacy-preserving and efficient way to handle domain shifts. While currently tested on five domains, future work will explore scaling to more complex environments and extending the framework to document-level translation and other cross-lingual tasks like summarization.
Summary updated