Paper commentary
ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness
Shape bias improves CNN accuracy and robustness
- 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
- What we show
- Paper info and commentary
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}
}