NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Exploring the Origins and Prevalence of Texture Bias in Convolutional Neural Networks

Katherine L. Hermann, Simon Kornblith

TL;DR

This paper investigates why ImageNet-trained Convolutional Neural Networks (CNNs) exhibit a strong bias towards classifying images based on texture rather than shape, unlike humans. They discover that while CNNs can learn shape classification as easily as texture, the training data, particularly aggressive random cropping, is the primary driver of this texture bias. Naturalistic data augmentations significantly reduce this bias, suggesting that differences in training data, not just model architecture, explain the human-CNN divergence.

What Problem Does This Paper Address?

For years, researchers have observed that state-of-the-art CNNs, particularly those trained on the massive ImageNet dataset, tend to classify images based on superficial texture cues rather than the underlying shape. This is a stark contrast to human vision, which heavily relies on shape for object recognition. This "texture bias" in CNNs is problematic for several reasons: it highlights a fundamental misunderstanding of how these models work, it may contribute to their vulnerability to adversarial attacks, and it hinders their ability to generalize to new, unseen data distributions. The authors aim to pinpoint the origins of this texture bias and explore methods to mitigate it, bringing CNNs' visual processing closer to human-like perception.

Methods

The researchers employed a multi-pronged approach to dissect the texture bias:

  • Controlled Datasets: They utilized specialized datasets like the Geirhos Style-Transfer (GST) dataset, which presents images with conflicting shapes and textures, and the Navon dataset, which uses large letters composed of smaller letters. They also used ImageNet-C, which contains ImageNet images with various corruptions.
  • Training Variations: They systematically varied training procedures, including:
  • Data Augmentation: Investigating the impact of different augmentation techniques, such as random cropping (varying crop size and aspect ratio), color distortion, Gaussian blur, noise, and Sobel filtering.
  • Training Objectives: Comparing standard supervised learning with various self-supervised learning objectives (e.g., rotation prediction, exemplar prediction, SimCLR, BigBiGAN).
  • Model Architectures: Evaluating different CNN architectures, including AlexNet, VGG16, ResNet-50, and Inception-ResNet v2, and even exploring attention-based models.
  • Evaluation Metrics: They measured "shape bias" (percentage of correct classifications made based on shape), "shape match" (percentage of correct shape identifications), and "texture match" (percentage of correct texture identifications). They also assessed ImageNet top-1 accuracy.
  • Representation Analysis: They used linear classifiers to decode shape and texture information from the hidden layers of trained CNNs to understand where this information is present and how it's used (or discarded) in the classification process.

Datasets

The paper uses the following datasets:

  • ImageNet ILSVRC-2012: The standard large-scale dataset for training and evaluating image classification models.
  • Geirhos Style-Transfer (GST) dataset: A custom dataset created by combining the shape of one image with the texture of another using neural style transfer. This dataset is crucial for creating ambiguous stimuli with conflicting shape and texture.
  • Navon dataset: A dataset of figures composed of large letters made from smaller letters, used to study global vs. local processing.
  • ImageNet-C: A dataset of ImageNet images corrupted with various noise types (e.g., shot noise, fog, motion blur), used to evaluate robustness and texture bias.
  • ImageNet-Sketch: A dataset of human-drawn sketches of ImageNet classes, used to evaluate generalization to shape-centric representations.
  • Stylized ImageNet (SIN): A dataset of ImageNet images processed with style transfer, used to evaluate generalization to texture-centric representations.

Key Insights and Ideas

  • CNNs Can Learn Shape: Contrary to the observed texture bias, the authors demonstrate that when trained on datasets with conflicting shape and texture, CNNs can learn to classify by shape just as easily as by texture. This suggests the bias isn't an inherent limitation of CNN architectures.
  • Data Augmentation is King: The most significant factor influencing texture bias is data augmentation. Aggressive random cropping during training increases texture bias, while more naturalistic augmentations like color distortion, noise, and blur decrease it. This is a major finding, shifting the focus from architecture to data.
  • Human-like Vision is Achievable with the Right Data: By employing naturalistic data augmentations and less aggressive cropping, the researchers were able to train models that classify ambiguous images by shape a majority of the time, mimicking human behavior.
  • Shape Information is Present, But Lost: Even in highly texture-biased models, shape information is often decodable from the intermediate layers. However, this shape information appears to be discarded or down-weighted in the later layers and the final classification decision.
  • Architecture and Objective Have Minor Roles: While different training objectives and architectures do have some effect on texture bias, their impact is significantly smaller compared to data augmentation.

Key Results

  • Shape Bias Reduction: Naturalistic data augmentations (color distortion, Gaussian blur, Gaussian noise) significantly reduced texture bias. For example, adding these augmentations to a ResNet-50 model trained with random crops led to a shape bias of 30.7% (texture match 38.8%) compared to a baseline of 19.5% (texture match 48.4%).
  • Shape-Biased Models Generalize Better: Models trained with augmentations that reduced texture bias also showed improved accuracy on out-of-distribution datasets like ImageNet-Sketch and Stylized ImageNet, which privilege shape.
  • Trade-off Between Accuracy and Shape Bias: A general trade-off was observed: models that were more shape-biased often had slightly lower ImageNet top-1 accuracy, and vice-versa.
  • Decoding Shape: In the convolutional layers of AlexNet and ResNet-50, shape was decodable with higher accuracy (e.g., 77.9% for AlexNet) than texture (65.6%), even in texture-biased models. However, this decodability decreased in the fully connected layers.

Limitations and Future Work

  • Dataset Limitations: The authors acknowledge that the specialized datasets used (GST, Navon, ImageNet-C) have their own limitations and may not perfectly represent naturalistic visual scenarios. They hope to create new datasets that combine controllability with naturalism.
  • Trade-off Management: The observed trade-off between shape bias and ImageNet top-1 accuracy suggests that finding the optimal balance for specific applications will be important.
  • Broader Impact: The paper highlights the importance of understanding these divergences between human and machine vision for building more reliable and interpretable AI systems. They also emphasize the potential for interdisciplinary collaboration between computer vision, neuroscience, and psychology. Future work could focus on developing more robust and human-aligned vision models by further exploring data augmentation strategies and understanding the mechanisms by which shape information is lost in CNNs.

Summary updated

BibTeX
@inproceedings{hermann2020exploring,
  author = {Katherine L. Hermann and Simon Kornblith},
  title = {{Exploring the Origins and Prevalence of Texture Bias in Convolutional Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=nySi4Nsu-dz},
}
Figure