Abstract
Neural networks can learn spurious correlations in the data, often leading to performance degradation for underrepresented subgroups. Studies have demonstrated that the disparity is amplified when knowledge is distilled from a complex teacher model to a relatively "simple" student model. Prior work has shown that ensemble deep learning methods can improve the performance of the worst-case subgroups; however, it is unclear if this advantage carries over when distilling knowledge from an ensemble of teachers, especially when the teacher models are debiased. This study demonstrates that traditional ensemble knowledge distillation can significantly drop the performance of the worst-case subgroups in the distilled student model even when the teacher models are debiased. To overcome this, we propose Adaptive Group Robust Ensemble Knowledge Distillation (AGRE-KD), a simple ensembling strategy to ensure that the student model receives knowledge beneficial for unknown underrepresented subgroups. Leveraging an additional biased model, our method selectively chooses teachers whose knowledge would better improve the worst-performing subgroups by upweighting the teachers with gradient directions deviating from the biased model. Our experiments on several datasets demonstrate the superiority of the proposed ensemble distillation technique and show that it can even outperform classic model ensembles based on majority voting.
Introduction
Deep learning models are notorious for taking "shortcuts"—relying on spurious correlations that hold in the majority of training data but fail for underrepresented subgroups. For example, a model might associate a blue background with a "waterbird" rather than learning the bird's actual physical features. This reliance leads to poor Worst-Group Accuracy (WGA), a critical metric for fairness and robustness.
Knowledge Distillation (KD) is the standard technique for compressing large teacher ensembles into smaller student models. However, research shows that KD can amplify biases: the student often ends up more biased than its teachers, particularly when its capacity is limited. Traditional ensemble KD, which typically averages teacher outputs, often reinforces a consensus on biased shortcuts. To address this, researchers introduce AGRE-KD, a novel strategy that prevents students from inheriting these shortcuts by adaptively weighting teacher signals.
Methodology: The AGRE-KD Framework
AGRE-KD utilizes a gradient-based weighting scheme that employs an additional "biased reference model" as a negative guide to orchestrate the distillation process.
Adaptive Gradient Weighting
The core innovation lies in how the student model selects which teacher to follow. Instead of treating all teachers equally, the algorithm calculates the gradient direction of the student’s loss with respect to each teacher and compares it to the gradient direction of the biased model (a model intentionally trained to capture shortcuts).
As shown in the conceptual diagram above, if a teacher’s gradient points in the same direction as the biased model’s gradient (high cosine similarity), that teacher is likely reinforcing a shortcut and is downweighted. Conversely, teachers whose gradients deviate from the biased path are upweighted. This forces the student to focus on "core" features that the biased model ignores.
Experimental Results
The authors evaluated AGRE-KD across diverse benchmarks, including Waterbirds (vision), CelebA (facial attributes), and CivilComments (NLP).
Key findings include:
- Significant WGA Gains: On the Waterbirds dataset, while standard averaging (AVER) achieved only 46.4% Worst-Group Accuracy, AGRE-KD reached 87.9%.
- Outperforming Teachers: In the CelebA dataset, AGRE-KD achieved 91.9% WGA, actually surpassing the performance of the debiased teacher ensemble itself (90.3%).
- Architecture Agnostic: The biased reference model does not need to share the same architecture as the teachers or student to provide effective guidance.
- Robustness to Capacity: The method is particularly effective for small student models, which are naturally more prone to learning shortcuts due to limited capacity.
Conclusion
AGRE-KD demonstrates that the consensus of an ensemble is not always the best signal for a student model, especially when that consensus is built on spurious correlations. By adaptively weighting teachers based on their divergence from a biased reference, AGRE-KD ensures fairer and more robust knowledge transfer. Future work will explore the application of this method to high-stakes domains like medical imaging and financial risk assessment.
Paper Citation: Kenfack, P. J., Aïvodji, U., & Kahou, S. E. (2025). Adaptive Group Robust Ensemble Knowledge Distillation. Transactions on Machine Learning Research.
Summary updated