Mitigating Clever Hans Strategies in Image Classifiers through Generating Counterexamples

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Bender, Sidney, Delzer, Ole, Herrmann, Jan, Marxfeld, Heike Antje, Müller, Klaus-Robert, Montavon, Grégoire
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913095201325056
author Bender, Sidney
Delzer, Ole
Herrmann, Jan
Marxfeld, Heike Antje
Müller, Klaus-Robert
Montavon, Grégoire
author_facet Bender, Sidney
Delzer, Ole
Herrmann, Jan
Marxfeld, Heike Antje
Müller, Klaus-Robert
Montavon, Grégoire
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_17524
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Mitigating Clever Hans Strategies in Image Classifiers through Generating Counterexamples
Bender, Sidney
Delzer, Ole
Herrmann, Jan
Marxfeld, Heike Antje
Müller, Klaus-Robert
Montavon, Grégoire
Machine Learning
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.
title Mitigating Clever Hans Strategies in Image Classifiers through Generating Counterexamples
topic Machine Learning
url https://arxiv.org/abs/2510.17524