Abstract
While many parallel corpora are not publicly accessible for data copyright, data privacy and competitive differentiation reasons, trained translation models are increasingly available on open platforms. In this work, we propose a method called continual knowledge distillation to take advantage of existing translation models to improve one model of interest. The basic idea is to sequentially transfer knowledge from each trained model to the distilled model. Extensive experiments on Chinese-English and German-English datasets show that our method achieves significant and consistent improvements over strong baselines under both homogeneous and heterogeneous trained model settings and is robust to malicious models.
Introduction
In the field of Neural Machine Translation (NMT), high-quality parallel corpora are the primary resource for training, yet they are often restricted due to privacy or copyright concerns. Conversely, pre-trained models are increasingly shared on open platforms. This research addresses the challenge of improving a "student" model by sequentially distilling knowledge from a stream of diverse "teacher" models without requiring access to their original training data.
A major hurdle in this sequential learning process is catastrophic forgetting, where new knowledge from a current teacher overrides useful information learned from previous ones. Additionally, not every teacher is superior to the student in every context; some may even be poorly trained or "malicious," potentially degrading the student's performance. The proposed Continual Knowledge Distillation (CKD) framework addresses these issues through a novel filtration and inheritance mechanism.
Continual Knowledge Distillation (CKD)
The CKD framework enables a student model to learn from a sequence of teachers while maintaining previously acquired skills. It employs three primary loss functions to balance new learning with memory retention:
- Knowledge Filtration ($\ell_{KF}$): Instead of blindly following a teacher, the student evaluates the teacher's predictions on a transfer set. If the teacher outperforms the student (Positive Subset), standard distillation is applied. If the teacher performs worse (Negative Subset), a Negative KD loss is used to teach the student "what not to do" by pushing its probability distribution away from the teacher's erroneous predictions.
- Knowledge Inheritance ($\ell_{KI}$): To prevent forgetting, the student model at time step $t$ treats its previous state (at step $t-1$) as a secondary teacher. This ensures that knowledge gained from earlier steps in the sequence is preserved across time.
- Standard Cross-Entropy ($\ell_{CE}$): The student continues to train on its own small, available training set to maintain foundational performance.
Experimental Evaluation
The researchers evaluated CKD across two major language pairs: Chinese-to-English (Zh-En) and German-to-English (De-En), covering diverse domains such as News, Oral, Internet, Speech, and Subtitles. Performance was measured using BLEU scores and Accumulative Degradation (AD), a metric quantifying how much performance drops during the sequence.
As shown in the results, CKD consistently outperformed strong baselines like EWC and CL-NMT. In the Zh-En homogeneous setting, CKD achieved an average BLEU score improvement of +1.70 over the initial model. Crucially, CKD maintained an AD of nearly 0.00, indicating that it successfully accumulated knowledge without losing previously acquired skills.
Key Insights
- Value of "Negative" Knowledge: One of the most striking findings is that learning from a teacher's mistakes is useful. By explicitly avoiding the specific errors made by a weaker teacher, the student becomes more robust.
- Robustness to Malicious Teachers: The filtration mechanism acts as a natural defense. In experiments where "malicious" teachers provided random or shuffled outputs, the CKD student effectively ignored the noise, whereas standard distillation methods saw their performance collapse.
- Model Agnosticism: The method is effective even when the teacher and student have different architectures (e.g., distilling from an RNN teacher into a Transformer student).
Conclusion and Future Work
CKD provides a robust framework for accumulating knowledge from a sequence of models while avoiding catastrophic forgetting. While the current framework requires consistent vocabulary and language pairs, future research will explore cross-lingual distillation and curriculum learning for optimized teacher sequencing. Additionally, the authors acknowledge that "model stealing" remains an ethical concern for future exploration in the context of knowledge distillation.
Summary updated