Causal ImageNet: How to discover spurious features in Deep Learning?

Sahil Singla, Soheil Feizi

Introduction

Deep neural networks often achieve high accuracy by exploiting "shortcuts" or spurious features—visual attributes that correlate with a label in the training data but are not intrinsic to the object itself. For instance, a model might identify a "cow" primarily by the presence of green grass. This reliance on context leads to brittleness when models encounter objects in novel environments. Discovering these features at scale has historically been a bottleneck due to the need for extensive human annotation.

Methodology: Leveraging Robust Interpretability

The researchers propose a scalable framework to unmask these shortcuts by turning the "black box" of a neural network into a feature discovery tool. The process begins with a "robust" ResNet-50 model. Unlike standard models, robust models (trained against adversarial perturbations) possess penultimate layer neurons that align closely with human-understandable concepts.

Saliency map highlighting fingers as a spurious feature for the 'band-aid' class.

The framework identifies neurons critical for specific classes and employs minimal human supervision. Mechanical Turk workers review only the top five images that most strongly activate a given neuron to determine if it represents a "core" feature (the object itself) or a "spurious" context (e.g., "fingers" for the class "band-aid"). Crucially, the authors demonstrate that if a neuron represents a spurious feature in these top images, it generalizes to thousands of others, allowing for automated large-scale labeling.

The Salient ImageNet Dataset

The primary output of this work is Salient ImageNet, a dataset containing 52,521 images across 232 classes. Each image is annotated with "soft masks" derived from neural activation maps, highlighting exactly where the model perceives core and spurious features. This resource enables researchers to audit model sensitivity to specific visual attributes.

Key Insights and Results

The study reveals that spurious features are pervasive; at least one was discovered for nearly 40% of the classes studied. In extreme cases, such as "space bar" or "seatbelt," every top feature utilized by the model was found to be spurious.

Heatmap distinguishing between the core object (butterfly) and spurious background (flowers).

The researchers quantified this "cheating" by adding Gaussian noise to the identified spurious regions. For the "drake" (male duck) class, adding noise to the "water" region caused a 41.5% drop in accuracy, while noise on the duck's head had negligible impact. This confirms that standard accuracy metrics often mask a model's failure to learn the actual object.

Conclusion

Salient ImageNet provides a rigorous benchmark for evaluating the reliability of computer vision models. By identifying and masking spurious features, researchers can now train "cleaner" models that ignore misleading context, moving toward AI systems that are more robust in safety-critical, real-world applications.

Summary updated

BibTeX
@inproceedings{singla2022causal,
  author = {Sahil Singla and Soheil Feizi},
  title = {{Causal ImageNet: How to discover spurious features in Deep Learning?}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=XVPqLyNxSyh},
}
Figure