Abstract Knowledge distillation (KD) has shown great promise in transferring knowledge from larger teacher models to smaller student models. However, existing KD strategies for large language models often minimize output distributions between student and teacher models indiscriminately for each token. This overlooks the imbalanced nature of tokens and their varying transfer difficulties. In response, we propose a distillation strategy called Self-Evolution KD. The core of this approach involves dynamically integrating teacher distribution and one-hot distribution of ground truth into the student distribution as prior knowledge, which promotes the distillation process. It adjusts the ratio of prior knowledge based on token learning difficulty, fully leveraging the teacher model’s potential. Experimental results show our method brings an average improvement of approximately 1.4 SacreBLEU points across four translation directions in the WMT22 test sets. Further analysis indicates that the improvement comes from better knowledge transfer from teachers, confirming our hypothesis.
Introduction
Large Language Models (LLMs) like Llama have revolutionized machine translation, but their massive size makes them expensive to deploy. While Knowledge Distillation (KD)—training a smaller "student" model to mimic a larger "teacher"—is a common solution, it has a major flaw: indiscriminate learning.
Current KD methods minimize the difference between student and teacher outputs for every single token. However, language is imbalanced. Common words are easy to learn, while rare or context-heavy words are difficult. By treating all tokens the same, standard KD fails to focus the student's "attention" where it's needed most. Furthermore, simply copying a teacher's output can be overwhelming for a small student; students need "prior knowledge" or "hints" to master difficult concepts, much like a human student benefits from a teacher's personalized guidance.
Methodology
The proposed Self-Evolution Knowledge Distillation (SE-KD) framework introduces a two-stage process to address these challenges:
- Self-Question: The student model evaluates its own learning state by calculating the Kullback-Leibler (KL) divergence between its own output distribution and a "target distribution" (a mix of the teacher’s output and the actual ground-truth word). If the gap is higher than a preset threshold ($\Gamma$), the token is labeled "hard-to-learn."
- Self-Evolution:
- For Easy Tokens: The student uses standard KD.
- For Hard Tokens: The authors introduce a proxy distribution. Instead of forcing the student to jump straight to the teacher's complex distribution, they create a "smoothed" version that mixes the student’s current guess with the target distribution. This acts as a stepping stone, allowing for faster convergence and better knowledge transfer.
This approach is "self-evolving" because the categorization of tokens changes as the student improves during training. SE-KD avoids dimensionality mismatch between different model sizes by working entirely within the probability distributions of the output tokens, making it lightweight and efficient.
Experimental Results
The researchers evaluated their method on the WMT22 test sets, covering four translation directions: English $\leftrightarrow$ German (En-De, De-En) and English $\leftrightarrow$ Czech (En-Cs, Cs-En). For training, they used a high-quality instruction-following dataset of 52K samples derived from the ALMA project. They used Llama-1-13B as the teacher and Llama-1-7B as the student, later scaling the teacher up to Llama-30B to test the method's robustness.
Key findings include:
- Significant Gains: SE-KD achieved an average improvement of 1.44 SacreBLEU points over standard Forward KD.
- Closing the Gap: In some cases, the 7B student model trained with SE-KD performed comparably to—or even slightly outperformed—the 13B teacher model in terms of lexical matching.
- Scaling Success: When using a much larger 30B teacher, the gains were even more pronounced (+1.7 SacreBLEU), suggesting the method is particularly effective at mitigating the "adverse effects" of a massive size gap between teacher and student.
- Efficiency: Because the method only adjusts the loss calculation and doesn't add new parameters or complex hidden-state matching, it incurs almost no extra training cost.
Discussion and Future Work
The core philosophy of SE-KD is that an excellent teacher adjusts the amount of "prior knowledge" provided based on a student's mastery. While effective, the current difficulty threshold ($\Gamma$) is a fixed hyperparameter. Future work may explore using a separate, small neural network to dynamically predict the best threshold or integration ratio for each token. Additionally, testing on other architectures like Mistral or Falcon and exploring more extreme model size gaps (e.g., 175B to 7B) would further validate the approach's generalizability.
Summary updated