[Paper Review] Self-Knowledge Distillation in Natural Language Processing
This paper proposes Self-Knowledge Distillation (SKD), a novel knowledge distillation method in NLP that leverages soft target probabilities from the training model's own word embedding space—specifically, the layer just before the softmax—to improve performance. By approximating these soft targets using vector proximity in the embedding space, SKD enhances model generalization, reduces overfitting, and achieves consistent performance gains across language modeling and neural machine translation tasks.
Since deep learning became a key player in natural language processing (NLP), many deep learning models have been showing remarkable performances in a variety of NLP tasks, and in some cases, they are even outperforming humans. Such high performance can be explained by efficient knowledge representation of deep learning models. While many methods have been proposed to learn more efficient representation, knowledge distillation from pretrained deep networks suggest that we can use more information from the soft target probability to train other neural networks. In this paper, we propose a new knowledge distillation method self-knowledge distillation, based on the soft target probabilities of the training model itself, where multimode information is distilled from the word embedding space right below the softmax layer. Due to the time complexity, our method approximates the soft target probabilities. In experiments, we applied the proposed method to two different and fundamental NLP tasks: language model and neural machine translation. The experiment results show that our proposed method improves performance on the tasks.
Motivation & Objective
- To address overfitting and improve generalization in NLP models by leveraging internal knowledge from the training model itself.
- To explore whether soft target probabilities derived from the model's own word embedding space can serve as effective knowledge distillation signals.
- To develop a lightweight, self-supervised distillation mechanism that does not require external teacher models.
- To evaluate the effectiveness of SKD across diverse NLP tasks such as language modeling and neural machine translation.
- To investigate the synergy between SKD and data augmentation techniques like noise injection.
Proposed method
- SKD uses the word embedding layer just before the softmax as a source of soft target probabilities, approximating them via vector similarity between predicted and target word embeddings.
- The method defines a proximity-based soft target probability $ q_n $ using cosine similarity between the predicted word vector $ w_n $ and the target word vector $ w_t $, where $ q_n = \text{sim}(w_n, w_t) $.
- A temperature-scaled cross-entropy loss is applied, combining standard cross-entropy with a distillation loss that encourages the model to align predictions with the internal soft targets.
- The distillation loss is weighted by a hyperparameter $ \alpha $, which is scheduled to increase from 0 to 1 during training to gradually incorporate the self-distillation signal.
- The approach avoids explicit soft label computation by relying on the geometric structure of the word embedding space, reducing computational cost.
- SKD is integrated into standard training pipelines for language modeling and neural machine translation without architectural changes.
Experimental results
Research questions
- RQ1Can soft target probabilities derived from the model’s own word embedding space improve generalization in NLP models?
- RQ2Does self-knowledge distillation reduce overfitting compared to standard cross-entropy training?
- RQ3How does SKD perform when combined with data augmentation techniques like noise injection?
- RQ4Is the performance gain from SKD consistent across different NLP tasks such as language modeling and neural machine translation?
- RQ5Can SKD be effectively scheduled during training to maximize performance without destabilizing optimization?
Key findings
- SKD consistently improves BLEU scores across all evaluated NLP tasks: En-Fi, Fi-En, and En-De translation tasks.
- On the En-Fi translation task with beam width 1, SKD achieved a BLEU score of 8.36 (vs. baseline 7.29), and with beam width 12, it reached 9.87 (vs. baseline 9.01).
- The combination of noise injection and SKD yielded the highest performance, achieving 10.13 BLEU on En-Fi with beam width 12, outperforming baseline by 0.92 points.
- The $ q_n $ value, representing proximity between predicted and target word vectors, increased over time, indicating that the model learned to produce more accurate and semantically close predictions.
- SKD models showed slower overfitting compared to baseline and noise-only models, suggesting that the internal distillation signal improves generalization.
- The scheduled increase of $ \alpha $ from 0 to 1 during training effectively introduced the self-distillation signal only after the model had captured sufficient initial knowledge, preventing early optimization instability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.