Skip to main content
QUICK REVIEW

[Paper Review] Salient ImageNet: How to discover spurious features in Deep Learning?

Sahil Singla, Soheil Feizi|arXiv (Cornell University)|Oct 8, 2021
Explainable Artificial Intelligence (XAI)Computer Science20 citations
TL;DR

This paper proposes a scalable framework to discover and localize spurious and core visual features in deep learning models using minimal human supervision. By leveraging activation maps of penultimate-layer neurons from a robust model and validating with top-activating images, the method generalizes annotations to thousands of images, revealing that standard ImageNet models heavily rely on spurious features—demonstrated by up to 70.77% accuracy drop when perturbing such features.

ABSTRACT

Deep neural networks can be unreliable in the real world especially when they heavily use {\it spurious} features for their predictions. Focusing on image classifications, we define {\it core features} as the set of visual features that are always a part of the object definition while {\it spurious features} are the ones that are likely to {\it co-occur} with the object but not a part of it (e.g., attribute "fingers" for class "band aid"). Traditional methods for discovering spurious features either require extensive human annotations (thus, not scalable), or are useful on specific models. In this work, we introduce a {\it general} framework to discover a subset of spurious and core visual features used in inferences of a general model and localize them on a large number of images with minimal human supervision. Our methodology is based on this key idea: to identify spurious or core extit{visual features} used in model predictions, we identify spurious or core extit{neural features} (penultimate layer neurons of a robust model) via limited human supervision (e.g., using top 5 activating images per feature). We then show that these neural feature annotations {\it generalize} extremely well to many more images {\it without} any human supervision. We use the activation maps for these neural features as the soft masks to highlight spurious or core visual features. Using this methodology, we introduce the {\it Salient Imagenet} dataset containing core and spurious masks for a large set of samples from Imagenet. Using this dataset, we show that several popular Imagenet models rely heavily on various spurious features in their predictions, indicating the standard accuracy alone is not sufficient to fully assess model performance. Code and dataset for reproducing all experiments in the paper is available at \url{https://github.com/singlasahil14/salient_imagenet}.

Motivation & Objective

  • Address the lack of scalability in existing methods for identifying spurious features in deep learning, which rely heavily on manual annotations.
  • Overcome limitations of prior approaches that are restricted to specific models or require extensive human labeling for large-scale datasets like ImageNet.
  • Develop a generalizable framework to identify and localize both core (essential) and spurious (non-essential) visual features used in model predictions.
  • Enable large-scale analysis of model reliability by detecting features that degrade performance under minimal distribution shift.
  • Provide a reproducible, open-source dataset (Salient ImageNet) with soft masks for spurious and core features across ImageNet classes.

Proposed method

  • Use a robust deep learning model (e.g., ResNet-50) to extract penultimate-layer neurons as neural features representing human-interpretable visual attributes.
  • For each neural feature, retrieve the top-5 most activating images for a given class and present them to human annotators (via Mechanical Turk) to label as 'core' or 'spurious'.
  • Leverage the human-annotated labels to generalize to top-k (k ≫ 5) images that activate the same neural feature, achieving 95% generalization accuracy at k=65.
  • Generate soft segmentation masks using activation maps (e.g., CAM or feature attack-based visualization) for the identified features across thousands of images.
  • Apply targeted Gaussian noise (σ=0.25 to 0.4) to spurious regions to evaluate model robustness, measuring accuracy drop as a proxy for feature reliance.
  • Construct the Salient ImageNet dataset by compiling these feature masks and annotations for 15 ImageNet classes, with quantitative evaluation of feature impact.

Experimental results

Research questions

  • RQ1Can we discover spurious and core visual features in deep learning models with minimal human supervision?
  • RQ2How well do human-annotated labels for neural features generalize across large sets of images beyond the initial top-5?
  • RQ3To what extent do standard ImageNet models rely on spurious features, and how does this affect their robustness under perturbations?
  • RQ4Can activation maps of penultimate-layer neurons serve as reliable soft masks for localizing spurious and core visual attributes?
  • RQ5Does the presence of spurious features correlate with significant drops in model accuracy when those features are perturbed?

Key findings

  • The method achieves 95% generalization accuracy when extending human-annotated neural feature labels from top-5 to top-65 activating images, demonstrating strong transferability.
  • For the class 'band aid', perturbing the spurious feature 'fingers' with σ=0.25 caused a 41.54% drop in model accuracy, indicating heavy reliance on this spurious cue.
  • On the 'wok' class, the spurious feature 'frying pan' led to a 46.15% accuracy drop under σ=0.25 noise, confirming model dependence on non-essential context.
  • For 'proboscis monkey', the spurious feature 'long nose' caused a 55.385% accuracy drop at σ=0.35, showing that even subtle features can mislead models.
  • In some cases, such as 'projectile', core features showed slight accuracy improvement under perturbation (e.g., +9.23% at σ=0.45), suggesting robustness to noise in essential features.
  • The Salient ImageNet dataset reveals that standard ResNet-50 models use spurious features extensively—highlighting that standard accuracy alone is insufficient for model evaluation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.