[Paper Review] Respecting Transfer Gap in Knowledge Distillation
This paper proposes Inverse Probability Weighting Distillation (IPWD), a method that corrects the transfer gap in knowledge distillation by estimating and inversely weighting samples with low propensity scores in the machine domain, where teacher model predictions are imbalanced due to context-equivariance. IPWD improves student performance by 0.33% to 0.82% top-1 accuracy on CIFAR-100 and ImageNet, especially benefiting under-represented classes.
Knowledge distillation (KD) is essentially a process of transferring a teacher model's behavior, e.g., network response, to a student model. The network response serves as additional supervision to formulate the machine domain, which uses the data collected from the human domain as a transfer set. Traditional KD methods hold an underlying assumption that the data collected in both human domain and machine domain are both independent and identically distributed (IID). We point out that this naive assumption is unrealistic and there is indeed a transfer gap between the two domains. Although the gap offers the student model external knowledge from the machine domain, the imbalanced teacher knowledge would make us incorrectly estimate how much to transfer from teacher to student per sample on the non-IID transfer set. To tackle this challenge, we propose Inverse Probability Weighting Distillation (IPWD) that estimates the propensity score of a training sample belonging to the machine domain, and assigns its inverse amount to compensate for under-represented samples. Experiments on CIFAR-100 and ImageNet demonstrate the effectiveness of IPWD for both two-stage distillation and one-stage self-distillation.
Motivation & Objective
- To address the unrealistic assumption in knowledge distillation that human and machine domains are independent and identically distributed (IID), which overlooks domain shift.
- To identify that teacher model predictions are imbalanced due to context-equivariance, even when trained on class-balanced data, creating a transfer gap.
- To improve distillation performance on under-represented classes by correcting for imbalanced teacher knowledge in the machine domain.
- To propose a method that dynamically adjusts sample weights based on estimated propensity scores to balance knowledge transfer.
Proposed method
- Estimate the propensity score $ P(x \mid \text{machine domain}) $ for each training sample $ x $, representing its likelihood of being in the machine domain.
- Apply inverse probability weighting (IPW) by assigning $ 1 / P(x) $ as the sample weight to compensate for under-represented samples in the machine domain.
- Integrate IPW into the distillation loss via a modified KL divergence loss: $ \mathcal{L}_{\text{ipw-dist}} = \sum_i w_i \cdot \text{KL}(T_i(x) \parallel S_i(x)) $, where $ w_i = 1 / P(x_i) $.
- Apply IPWD only in the final 75 epochs of training to avoid poor weight estimation during early training when student and self-teacher models are underfit.
- Use a progressive distillation schedule (PS-KD) with a decaying trade-off coefficient $ \alpha_t $, and extend it with IPWD to form $ \mathcal{L}_{\text{ps-kd + ipw}} $.
- Train on standard benchmarks (CIFAR-100, ImageNet) using standard architectures (ResNet, DenseNet, etc.) to validate effectiveness across settings.
Experimental results
Research questions
- RQ1Why does knowledge distillation perform poorly on under-represented classes despite using soft labels from a teacher?
- RQ2To what extent does the imbalance in teacher model predictions—driven by context-equivariance—create a transfer gap between human and machine domains?
- RQ3Can inverse propensity weighting effectively correct for imbalanced knowledge transfer in knowledge distillation?
- RQ4Does applying IPWD at the early stage of training degrade performance due to inaccurate weight estimation?
- RQ5How does IPWD compare to existing distillation methods in terms of accuracy, calibration, and robustness across different architectures?
Key findings
- IPWD improves top-1 accuracy of PS-KD by 0.33% to 0.82% across four architectures on CIFAR-100 in one-stage self-distillation.
- On ResNeXt-29, IPWD applied in the final 75 epochs achieves 83.30% top-1 accuracy, outperforming PS-KD (82.72%) and early IPWD application (82.86%).
- IPWD significantly reduces Expected Calibration Error (ECE) and Average Uncertainty Rank (AURC), with ECE dropping from 9.15 to 4.93 and AURC from 39.78 to 37.49 on ResNeXt-29.
- The method consistently improves performance across all four architectures (ResNet-18, ResNet-101, DenseNet-121, ResNeXt-29), demonstrating generalization.
- Ablation shows that early IPWD application hurts performance due to inaccurate weight estimation, confirming the need for delayed application.
- On ImageNet, IPWD improves student accuracy and calibration, confirming effectiveness beyond CIFAR-100 and in more complex settings.
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.