A Comprehensive Study of Image Classification Model Sensitivity to Foregrounds, Backgrounds, and Visual Attributes

Mazda Moayeri, Phillip Pope, Yogesh Balaji, Soheil Feizi

Introduction

Modern image classification models have achieved remarkable accuracy on standard benchmarks like ImageNet. However, high accuracy often masks a fundamental weakness: shortcut learning. Models frequently rely on spurious correlations—such as identifying a 'ship' based on the presence of water rather than the vessel itself—rather than learning the intrinsic semantic features of the object. While qualitative tools like saliency maps offer some insight, they are often unreliable for rigorous evaluation. To bridge this gap, researchers have introduced RIVAL10, a dataset designed for quantitative interpretability.

The RIVAL10 Dataset

The core contribution of this work is the RIch Visual Attributes with Localization (RIVAL10) dataset. Derived from ImageNet-1k, RIVAL10 consists of approximately 26,000 samples across 10 classes (aligned with CIFAR-10). Unlike standard datasets, RIVAL10 provides high-quality, pixel-level segmentation masks for:

  1. Foreground Objects: The primary subject of the image.
  2. Visual Attributes: 18 specific semantic features, such as 'wings,' 'wheels,' 'beaks,' and 'horns.'

This granularity allows researchers to move beyond global accuracy and measure exactly how models respond to changes in specific image regions.

Methodology: Quantifying Sensitivity

To evaluate model behavior, the authors employ a systematic 'stress-test' using the RIVAL10 masks. By injecting Gaussian noise into either the foreground or the background, they can isolate the impact of each region on the model's final prediction.

Comparative sensitivity analysis of DeiT, Robust ResNet50, and SimCLR models under foreground and background noise corruptions.

A key metric introduced is Relative Foreground Sensitivity (RFS). RFS normalizes the drop in accuracy when the foreground is corrupted against the drop when the background is corrupted. A high RFS score indicates a model that is primarily 'object-centric,' while a low score reveals a heavy reliance on environmental shortcuts.

Key Findings: The Impact of Training Objectives

The study reveals several counter-intuitive insights into how different training paradigms affect model logic:

The Adversarial Irony

One of the most surprising findings concerns adversarial training. While designed to make models robust to small, worst-case perturbations, adversarial training in ResNets actually increases sensitivity to the background. Compared to standard training, robust ResNets show lower RFS scores, suggesting they may be leaning harder on stable background features to maintain performance under attack.

Transformer Adaptivity

In contrast to ResNets, Vision Transformers (ViTs) like DeiT demonstrate a unique 'adaptive' capability. As the overall noise level in an image increases, ViTs naturally shift their internal attention mechanisms toward the foreground. This allows them to maintain higher RFS scores across varying levels of corruption, suggesting a more flexible and robust internal representation.

Contrastive Learning Bias

Models trained with self-supervised contrastive objectives, such as SimCLR and CLIP, also exhibit lower relative foreground sensitivity. This indicates that the contrastive task—which often involves matching different views of the same image—encourages the model to incorporate significant background context into its feature representations.

Attribute-Level Interpretability and Generalization

Beyond foreground/background splits, RIVAL10 enables the study of neural node attribution. The researchers identified specific neurons in the penultimate layer of networks that correlate strongly with semantic attributes (e.g., a 'floppy ear' detector). By testing these detectors across the entire dataset, they found that deep networks do indeed develop internal 'concept detectors' that generalize well to new, unseen images of the same attribute.

Conclusion

The introduction of RIVAL10 provides a much-needed benchmark for the quantitative study of model interpretability. The findings highlight that 'robustness' is not a monolithic trait; a model robust to pixel-level noise may simultaneously be more prone to background shortcuts. Future work will involve scaling RIVAL10 to the full ImageNet taxonomy and using its attribute masks to programmatically test the causal limits of model logic.

Summary updated

BibTeX
@misc{moayeri2022comprehensive,
  author = {Mazda Moayeri and Phillip Pope and Yogesh Balaji and Soheil Feizi},
  title = {{A Comprehensive Study of Image Classification Model Sensitivity to Foregrounds, Backgrounds, and Visual Attributes}},
  year = {2022},
  eprint = {2201.10766},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.10766},
}
Figure