Mitigating Clever Hans Strategies in Image Classifiers through Generating Counterexamples
By: Sidney Bender , Ole Delzer , Jan Herrmann and more
Potential Business Impact:
Teaches computers to learn better, not just guess.
Deep learning models remain vulnerable to spurious correlations, leading to so-called Clever Hans predictors that undermine robustness even in large-scale foundation and self-supervised models. Group distributional robustness methods, such as Deep Feature Reweighting (DFR) rely on explicit group labels to upweight underrepresented subgroups, but face key limitations: (1) group labels are often unavailable, (2) low within-group sample sizes hinder coverage of the subgroup distribution, and (3) performance degrades sharply when multiple spurious correlations fragment the data into even smaller groups. We propose Counterfactual Knowledge Distillation (CFKD), a framework that sidesteps these issues by generating diverse counterfactuals, enabling a human annotator to efficiently explore and correct the model's decision boundaries through a knowledge distillation step. Unlike DFR, our method not only reweights the undersampled groups, but it also enriches them with new data points. Our method does not require any confounder labels, achieves effective scaling to multiple confounders, and yields balanced generalization across groups. We demonstrate CFKD's efficacy across five datasets, spanning synthetic tasks to an industrial application, with particularly strong gains in low-data regimes with pronounced spurious correlations. Additionally, we provide an ablation study on the effect of the chosen counterfactual explainer and teacher model, highlighting their impact on robustness.
Similar Papers
Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanations
Machine Learning (CS)
Teaches small computers big computer secrets with less data.
Imbalanced Classification through the Lens of Spurious Correlations
Machine Learning (CS)
Fixes computer learning when data is uneven.
Decoupled Classifier-Free Guidance for Counterfactual Diffusion Models
CV and Pattern Recognition
Changes pictures to show "what if" scenarios better.