# ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness

Shape bias improves CNN accuracy and robustness

Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, Wieland Brendel · arXiv · 2018-11-29

- **Problem** ImageNet-trained CNNs classify by texture, while humans rely on shape.
- **Method** Stylized-ImageNet restyles each ImageNet image with a painting's texture while keeping its global shape. Training ResNet-50 on this data instead of plain ImageNet pushes the network toward shape-based features.
- **Results** Shape bias rose from 22% to 81% for ResNet-50 when trained on Stylized-ImageNet instead of ImageNet. Accuracy and robustness to image distortions also improved.

## Why texture may explain CNN decisions

The common picture is that a CNN builds object shapes from simple edges, layer by layer. Visualisations and shape-perception studies seemed to support this picture. Other findings point the other way: CNNs classify texturised images well even when global shape is destroyed. Standard CNNs are bad at recognising sketches, where shapes survive but texture cues are gone.

Gram-matrix classifiers and receptive-field-limited networks also reach high ImageNet accuracy from local information alone.

This leads to the texture hypothesis, which holds that texture matters more than global shape for CNN object recognition. Settling the two hypotheses matters for deep learning and for neuroscience, where CNNs serve as models of human vision.

## Setting up the cue conflict test

The test needs images where shape and texture point to different classes, so the authors generate them with style transfer. Their example pairs the shape of a cat with the texture of an elephant. They generated 1280 cue conflict images, 80 per category. Participants chose one of 16 entry-level categories, and the same images were fed to the CNNs.

Only decisions that matched either the texture category or the shape category count towards the shape bias. Human observers gave 95.9% of their correct decisions to the shape category. So the same images separate the two hypotheses for humans and networks alike.

## Building Stylized-ImageNet

The idea is to keep the global shape of each ImageNet image and replace its texture with the style of a painting. The authors apply AdaIN style transfer with a stylization coefficient of 1.0, and each source image is stylized only once. The style source is Kaggle's Painter by Numbers data set, which contains 79,434 paintings.

AdaIN is a fast feed-forward method, so it can stylize all of ImageNet, which an iterative method would take too long to do. Using a different stylization technique from the iterative one used for cue conflict images keeps the test from relying on a single method.

## Accuracy and BagNet checks

The authors read this gap as SIN being a harder task, since textures are no longer predictive of the class. ImageNet-trained features reached only 16.4% top-5 on SIN, while SIN-trained features scored 82.6% on ImageNet without fine-tuning.

The 9x9 BagNet scored 70.0% top-5 on ImageNet but only 10.0% on SIN. The authors take this as evidence that SIN removes local texture cues, so a network has to integrate longer-range spatial information.

## Shape bias after stylized training

The same ResNet-50 architecture changes its decisions once its training data changes. Its shape bias rose from 22% when trained on ImageNet to 81% when trained on SIN. The authors note that in many categories this comes close to the shape bias of humans.

Because the architecture stays fixed, the authors conclude that the texture bias comes from the ImageNet training data rather than from the design. Shape-based features learned on SIN also transfer to natural images, as the 82.6% top-5 result on ImageNet shows.

## Accuracy, transfer and corruption robustness

Shape-ResNet is trained jointly on SIN and ImageNet and then fine-tuned on ImageNet. It achieved 76.72 top-1 and 93.28 top-5 on ImageNet validation, compared to 76.13 and 92.86 for the vanilla ResNet-50. The authors describe SIN as a useful data augmentation that improves accuracy without architectural changes.

As a Faster R-CNN backbone on Pascal VOC 2007, mAP50 rose from 70.7 to 75.1 with SIN in the training data. The authors attribute this to bounding boxes being aligned with global object shape.

On ImageNet-C, overall corruption error fell from 76.7 for the vanilla ResNet-50 to 69.3 for the jointly trained model. None of the corruption types were part of the training data. Across the parametric distortions, the SIN-trained ResNet-50 outperforms the IN-trained one on almost all manipulations.

## Limitations

The authors suggest this may come from the high-frequency content of paintings and the reliance on sharp edges. The SIN-trained network also loses a few percent accuracy on undistorted images.

The cue conflict comparison covers the four ImageNet-trained networks named in the methods, and the appendix adds other architectures. A substantial fraction of cue conflict images were hard to recognise for both humans and CNNs. The training-data cause of the texture bias is the authors' interpretation, which their architecture comparison supports.

## Paper info

- **Authors**: Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, Wieland Brendel
- **Venue**: arXiv · Preprint
- **First published**: 2018-11-29
- **Added**: 2026-11-12
- **Updated**: 2022-11-9
- **Version**: v3
- **arXiv**: 1811.12231
- **Category**: cs.CV · cs.AI · cs.LG · q-bio.NC · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1811.12231v3) · [PDF ↗](https://arxiv.org/pdf/1811.12231v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, Wieland Brendel (2018). ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv:1811.12231v3. https://arxiv.org/abs/1811.12231v3

**BibTeX**

```
@misc{geirhos2018imagenet,
  title = {{ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness}},
  author = {Robert Geirhos and Patricia Rubisch and Claudio Michaelis and Matthias Bethge and Felix A. Wichmann and Wieland Brendel},
  year = {2018},
  eprint = {1811.12231},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.12231v3}
}
```

## Related papers

- [Shortcut Learning in Deep Neural Networks](https://refivu.com/en/papers/429eb10d-b6ea-4d00-b18e-0509b85a5062-shortcut-learning-in-deep-neural-networks.md)
- [Object Detection with Deep Learning: A Review](https://refivu.com/en/papers/7a141689-80c4-419f-837d-9d8f246ca5fc-object-detection-with-deep-learning-a-review.md)
- [Improved Baselines with Momentum Contrastive Learning](https://refivu.com/en/papers/b3c4bdf4-000b-4115-9c61-4869e9e62ccc-improved-baselines-with-momentum-contrastive-learning.md)
- [Training Region-based Object Detectors with Online Hard Example Mining](https://refivu.com/en/papers/3c16d5fe-9eb6-4481-9b4d-f4eefd0171ee-training-region-based-object-detectors-with-online-hard.md)
- [MnasNet: Platform-Aware Neural Architecture Search for Mobile](https://refivu.com/en/papers/9898212b-ee8e-448d-817e-c0047d43e15a-mnasnet-platform-aware-neural-architecture-search-for-mobile.md)
- [Self-training with Noisy Student improves ImageNet classification](https://refivu.com/en/papers/57e759e6-5034-4019-9e65-3fac466f7c21-self-training-with-noisy-student-improves-imagenet.md)

## Other paper commentary

- [DualGAN: Unsupervised Dual Learning for Image-to-Image Translation](https://refivu.com/en/papers/d55f8c4a-20b7-4a6d-b036-ba23c6b476bc-dualgan-unsupervised-dual-learning-for-image-to-image.md)
- [BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation](https://refivu.com/en/papers/072fcecb-6c6d-400e-ac1c-93885521831b-blip-bootstrapping-language-image-pre-training-for-unified.md)
- [Deep Retinex Decomposition for Low-Light Enhancement](https://refivu.com/en/papers/f4201ae3-b544-42f6-81cc-c789d2e0e575-deep-retinex-decomposition-for-low-light-enhancement.md)
- [VisualBERT: A Simple and Performant Baseline for Vision and Language](https://refivu.com/en/papers/146a7bb6-3ad9-4579-98f2-9a180a30f10a-visualbert-a-simple-and-performant-baseline-for-vision.md)
- [Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer](https://refivu.com/en/papers/8f3933a0-30e6-41a0-8d25-597109ee5170-towards-robust-monocular-depth-estimation-mixing-datasets.md)
- [Simple Baselines for Human Pose Estimation and Tracking](https://refivu.com/en/papers/1bfa3990-5650-4254-9d74-6addde0897ee-simple-baselines-for-human-pose-estimation-and-tracking.md)
- [Mip-NeRF 360: Unbounded Anti-Aliased Neural Radiance Fields](https://refivu.com/en/papers/fc238283-69fa-4599-9425-b610ae8df74c-mip-nerf-360-unbounded-anti-aliased-neural-radiance.md)
- [Diffusion Models: A Comprehensive Survey of Methods and Applications](https://refivu.com/en/papers/88553d75-09f1-48d0-a32d-bbb93fe0b6e8-diffusion-models-a-comprehensive-survey-of-methods-and.md)
- [UNITER: UNiversal Image-TExt Representation Learning](https://refivu.com/en/papers/c2b71a61-22ad-48f9-af71-922539fd9eab-uniter-universal-image-text-representation-learning.md)
- [CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation](https://refivu.com/en/papers/eb07d47d-3eb5-4fba-ba4e-7d3bd33335aa-codet5-identifier-aware-unified-pre-trained-encoder-decoder.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [MS COCO](https://refivu.com/en/terms/1a7c38d39825-ms-coco)
- [PASCAL VOC 2007](https://refivu.com/en/terms/ff90fa43ba1c-pascal-voc-2007)
- [Robustness](https://refivu.com/en/terms/aae67093955e-robustness)
- [ImageNet-C](https://refivu.com/en/terms/9254adbcaa14-imagenet-c)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/57e803cb-75a6-462c-b1bd-4b3c2848753b-imagenet-trained-cnns-are-biased-towards-texture-increasing)
