Abstract
Knowledge distillation, transferring knowledge from a teacher model to a student model, has emerged as a powerful technique in neural machine translation for compressing models or simplifying training targets. Knowledge distillation encompasses two primary methods: sentence-level distillation and token-level distillation. In sentence-level distillation, the student model is trained to align with the output of the teacher model, which can alleviate the training difficulty and give student model a comprehensive understanding of global structure. Differently, token-level distillation requires the student model to learn the output distribution of the teacher model, facilitating a more fine-grained transfer of knowledge. Studies have revealed divergent performances between sentence-level and token-level distillation across different scenarios, leading to the confusion on the empirical selection of knowledge distillation methods. In this study, we argue that token-level distillation, with its more complex objective (i.e., distribution), is better suited for “simple” scenarios, while sentence-level distillation excels in “complex” scenarios. To substantiate our hypothesis, we systematically analyze the performance of distillation methods by varying the model size of student models, the complexity of text, and the difficulty of decoding procedure. While our experimental results validate our hypothesis, defining the complexity level of a given scenario remains a challenging task. So we further introduce a novel hybrid method that combines token-level and sentence-level distillation through a gating mechanism, aiming to leverage the advantages of both individual methods. Experiments demonstrate that the hybrid method surpasses the performance of token-level or sentence-level distillation methods and the previous works by a margin, demonstrating the effectiveness of the proposed hybrid method.
Introduction
Knowledge Distillation (KD) is a cornerstone of model compression in Neural Machine Translation (NMT), where a large, high-performance "teacher" model guides the training of a smaller "student." Researchers typically employ two distinct strategies:
- Sentence-level KD: The student learns from simplified "pseudo-sentences" generated by the teacher, which helps capture global structure.
- Token-level KD: The student attempts to match the teacher’s full probability distribution for every word (token), enabling a fine-grained transfer of knowledge.
Despite their widespread use, the choice between these methods often relies on trial-and-error. This paper addresses this "empirical confusion" by systematically defining task complexity and proving which KD method is best suited for specific scenarios.
The Complexity Hypothesis
The authors hypothesize that the optimal distillation strategy depends on the complexity of the translation task, defined across three dimensions:
- Model Capacity: Smaller student models face a "harder" task due to limited parameters.
- Text Complexity: Synthetic noise (e.g., deletions, swaps) increases the difficulty of the mapping.
- Decoding Difficulty: Autonomous generation (Beam Search) is more complex than guided training (Teacher Forcing).
Experimental results reveal a Complexity Inversion: for low-capacity models or noisy text, sentence-level KD is significantly more effective as it provides a simplified target. As the student model grows or the text becomes cleaner, token-level KD takes the lead, as the student finally has the capacity to absorb the teacher's detailed distribution.
Proposed Hybrid Distillation Method
To avoid the need for manual selection, the authors propose a Hybrid Distillation Method that adaptively balances both strategies using a dynamic gating mechanism ($G$). The loss function is defined as: $$L = G \cdot L_{token-level} + (1 - G) \cdot L_{sentence-level}$$
This allows the model to switch strategies based on the specific difficulty of the sentence it is currently learning.
Key Insights and Results
The "Curriculum" Gate
Analysis of the hybrid gate ($G$) reveals a natural curriculum: early in training, the gate favors sentence-level distillation to learn global structures. As the model matures, it shifts toward token-level distillation to capture fine-grained nuances.
Performance Gains
The hybrid approach consistently outperforms standalone methods and state-of-the-art baselines. On the IWSLT14 de$→$en task, the Hybrid Distillation method achieved a 39.30 BLEU score, outperforming standalone sentence-level (39.01) and token-level (39.15) distillation, as well as strong baselines like BiBERT (38.61) and R-Drop (37.25).
Conclusion
This study provides a principled framework for selecting KD methods in NMT based on task complexity. The proposed hybrid gating mechanism further automates this selection, discovering an effective training curriculum that yields superior translation performance. Future work will explore extending this approach to Non-Autoregressive Translation (NAT) and multi-teacher scenarios.
Summary updated