ImageNet-E: Benchmarking Neural Network Robustness via Attribute Editing

Xiaodan Li, Yuefeng Chen, Yao Zhu, Shuhui Wang, Rong Zhang, Hui Xue · DOI

TL;DR

This paper introduces ImageNet-E, a new benchmark and toolkit for evaluating neural network robustness to changes in object attributes (like background, size, position, and direction) within the in-distribution data. They found that even state-of-the-art models are surprisingly sensitive to these attribute changes, and surprisingly, some "robust" models perform worse on this benchmark than standard ones, highlighting a critical gap in current robustness evaluations.

What Problem Does This Paper Address?

The prevailing wisdom in deep learning robustness is that higher accuracy on standard datasets like ImageNet often correlates with better robustness against various corruptions or out-of-distribution (OOD) shifts. Much research has focused on creating datasets with these OOD corruptions (e.g., ImageNet-C for noise, ImageNet-R for artistic renditions). However, this paper argues that a crucial aspect of model robustness is overlooked: how models perform when in-distribution data is subtly altered in terms of object attributes. They posit that understanding a model's sensitivity to changes in an object's background, size, position, or orientation is vital for debugging and improving models, especially for real-world applications where these attributes can vary. Existing benchmarks don't adequately address this fine-grained, in-distribution attribute manipulation.

Methods

The core of this work is a novel object editing toolkit built upon Denoising Diffusion Probabilistic Models (DDPMs). This toolkit allows for controlled manipulation of specific object attributes:

  • Background Editing: DDPMs are used to generate backgrounds with controlled texture complexity. The authors introduce a guiding loss function that encourages desired background properties, ensuring the edited images remain close to the original data distribution.
  • Object Attribute Editing (Size, Position, Direction): For these attributes, the object is first disentangled from the background using inpainting. Then, standard orthogonal transformations (scaling, translation, rotation) are applied to the object. Crucially, DDPMs are employed again to blend the transformed object back into the background, ensuring a more coherent and seamless integration than simple copy-pasting.

This toolkit is then used to create the ImageNet-E dataset, which consists of edited images from the original ImageNet, focusing on animal classes to maintain visual quality.

Datasets

  • ImageNet: The original dataset used as the source for creating ImageNet-E.
  • ImageNet-S: Used to obtain mask annotations for objects.
  • ImageNet-E (newly introduced): A benchmark dataset derived from ImageNet, featuring controlled edits to object attributes (background complexity, size, position, direction). It aims to evaluate robustness to in-distribution attribute changes.

Key Insights and Ideas

  • In-distribution attribute sensitivity is a critical robustness blind spot: Even models with high ImageNet accuracy are surprisingly brittle to subtle changes in object attributes like background complexity.
  • "Robust" models aren't always robust to everything: Some models trained for adversarial robustness or common corruptions actually perform worse on ImageNet-E than their vanilla counterparts, suggesting that current robustness benchmarks may not capture all relevant failure modes.
  • Background complexity matters significantly: A small change in background complexity can lead to a substantial drop in top-1 accuracy (average of 9.23% reported in the abstract, and 10.62% in Table 1).
  • Larger models tend to be more robust to attribute changes: This aligns with general trends in deep learning, where increased capacity often leads to better generalization.
  • Adversarial training can hurt attribute robustness: Surprisingly, adversarially trained models showed worse performance on ImageNet-E compared to their normally trained counterparts, indicating a potential trade-off.
  • Diffusion models are powerful for controlled image editing: Their ability to blend edited objects seamlessly into backgrounds is key to creating a high-quality, realistic benchmark.

Key Results

  • Significant accuracy drops: Models experienced an average top-1 accuracy drop of 9.23% due to background complexity changes (λ=20). Size changes led to an even larger average drop of 18.34%.
  • Model sensitivity: Most evaluated models, including CNNs and Vision Transformers, showed considerable sensitivity to attribute changes.
  • Robustness trade-offs: Some models designed for robustness on other benchmarks (e.g., adversarial training, SIN) showed worse performance on ImageNet-E. For instance, RN50-SIN had a higher drop rate (24.23%) than vanilla RN50 (21.26%) for size changes.
  • Enhancement strategies: The paper explores and demonstrates the effectiveness of preprocessing (e.g., Ten-Crop), architecture designs (e.g., attention modules like ResNest, ViT), and training strategies (e.g., masked image modeling) for improving attribute robustness.

Limitations and Future Work

  • Mask requirement: The current editing toolkit requires object masks, limiting its applicability to datasets with such annotations.
  • DDPM generalization: The quality and generalization of the editing toolkit are dependent on the underlying DDPMs. Synthesizing high-quality person images, for example, was found to be difficult.
  • Future Work: The authors plan to explore how to leverage the edited data from ImageNet-E to enhance model performance, including both validation accuracy and robustness. They also aim to expand the dataset and editing capabilities.

Summary updated

BibTeX
@inproceedings{li2023imagenet,
  author = {Xiaodan Li and Yuefeng Chen and Yao Zhu and Shuhui Wang and Rong Zhang and Hui Xue},
  title = {{ImageNet-E: Benchmarking Neural Network Robustness via Attribute Editing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=hH4DN9poQn},
}
Figure