Improving Knowledge Distillation Under Unknown Covariate Shift Through Confidence-Guided Data Augmentation

Niclas Popp, Kevin Alexander Laube, Matthias Hein, Lukas SchottarXiv 2025 · DOI

Introduction: The Challenge of Spurious Correlations

Deep learning models often rely on "shortcuts" or spurious correlations—features that are predictive in the training set but irrelevant to the actual task. For example, a model might identify "waterbirds" based on a blue water background rather than the bird itself. This reliance leads to a collapse in performance when the model encounters a covariate shift—test data where these shortcuts no longer hold (e.g., a waterbird on grass).

In the context of Knowledge Distillation (KD), where a large "teacher" model guides a smaller "student" model, the student frequently fails to generalize if the training data is biased, even if the teacher is robust. The core question addressed here is: Can we leverage a robust teacher to train a robust student using biased data?

Visualizing the impact of spurious features and how ConfiG augmentations bridge the gap between biased training data and diverse test scenarios.

ConfiG: Confidence-Guided Data Augmentation

The authors propose ConfiG, a strategy that uses a generative model (Stable Diffusion) to "hallucinate" the missing data groups necessary for student robustness. The method identifies regions where the student is likely to fail and generates targeted training samples to correct these biases.

The Three-Step Process

  1. Identify Bias: An auxiliary student model is trained on the original, biased training data, naturally picking up spurious shortcuts.
  2. Generate Challenging Samples: Using Stable Diffusion and Null-text inversion, the system edits real training images in the latent space. The generation is guided by a specific loss function:
  3. Teacher Confidence: High confidence in the correct class ensures causal features (e.g., the object's identity) remain intact.
  4. Student Confusion: High disagreement indicates that the spurious features the student relies on have been successfully modified or removed.
  5. Robust Distillation: The final student is trained on a combination of original real images and these synthetic "hard" images.
Comparison of ConfiG's optimization process against other augmentation methods, demonstrating how it systematically removes spurious features like age and hair color while maintaining the causal gender feature.

Experimental Evaluation

ConfiG was evaluated on three benchmarks designed to highlight spurious feature reliance:

  • CelebA: A face dataset modified so that training only includes specific combinations (e.g., young blond females vs. old non-blond males).
  • SpuCo Birds: A naturalistic dataset where bird types are biased by backgrounds (water vs. land).
  • Spurious ImageNet: A 100-class subset focused on background and texture shortcuts.

Key Results

ConfiG significantly outperformed existing diffusion-based baselines like ActGen and DAFusion across all metrics:

  • CelebA: Worst-group accuracy (performance on the rarest combinations) rose from 15.2% with standard distillation to 66.1%.
  • SpuCo Birds: Worst-group accuracy improved from 12.5% to 62.7%.
  • Efficiency: Generating just 2x synthetic samples with ConfiG proved more effective than 10x samples from other methods, demonstrating that targeted editing is superior to mass production.

Insights and Future Directions

The primary insight of this work is that disagreement is a compass. The most valuable training data lies in the "regions of disagreement" between the teacher and student. By actively modifying the input distribution to force the student to focus on causal features, ConfiG moves beyond traditional "dark knowledge" transfer.

While powerful, the method depends on a robust teacher and the generative capabilities of the diffusion model. Future work may focus on reducing the computational cost of latent space optimization or extending the framework to non-visual domains like Natural Language Processing.

Summary updated

BibTeX
@misc{popp2025improving,
  author = {Niclas Popp and Kevin Alexander Laube and Matthias Hein and Lukas Schott},
  title = {{Improving Knowledge Distillation Under Unknown Covariate Shift Through Confidence-Guided Data Augmentation}},
  year = {2025},
  eprint = {2506.02294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02294},
}
Figure