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

Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann +1 more
11/29/2018
3,426 citations
cs.CVcs.AIcs.LG

Official code: rgeirhos/Stylized-ImageNet (529 stars, Python, MIT, last commit 2026-07-21). Most starred: rgeirhos/texture-vs-shape, a community implementation (815 stars, R, last commit 2023-05-02, 1.5× the official stars). 1 more implementation below.

Abstract

Convolutional Neural Networks (CNNs) are commonly thought to recognise objects by learning increasingly complex representations of object shapes. Some recent studies suggest a more important role of image textures.

Show full abstract

We here put these conflicting hypotheses to a quantitative test by evaluating CNNs and human observers on images with a texture-shape cue conflict. We show that ImageNet-trained CNNs are strongly biased towards recognising textures rather than shapes, which is in stark contrast to human behavioural evidence and reveals fundamentally different classification strategies. We then demonstrate that the same standard architecture (ResNet-50) that learns a texture-based representation on ImageNet is able to learn a shape-based representation instead when trained on "Stylized-ImageNet", a stylized version of ImageNet. This provides a much better fit for human behavioural performance in our well-controlled psychophysical lab setting (nine experiments totalling 48,560 psychophysical trials across 97 observers) and comes with a number of unexpected emergent benefits such as improved object detection performance and previously unseen robustness towards a wide range of image distortions, highlighting advantages of a shape-based representation.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
rgeirhos/Stylized-ImageNetOfficial529PythonMIT2026-07-21
rgeirhos/texture-vs-shapeCommunity815R–2023-05-02
MIT

Code to create Stylized-ImageNet, a stylized version of standard ImageNet (ICLR 2019 Oral)

52965Python, ShellNov 5, 20184 months agoMIT
computer-visiondeep-learninghuman-visionshape-biasstyle-transfer+1 more

Pre-trained models, data, code & materials from the paper "ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness" (ICLR 2019 Oral)

815107R, MATLABNov 28, 20183 years agoNOASSERTION
deep-learningfeatureshuman-visionobject-recognitionpsychophysics+2 more

Similar Papers

Cite this paper

@article{geirhos2018imagenettrained,
  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.12231}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1811.12231.svg)](https://codeofpaper.com/paper/1811.12231)

Discussion