Shape-Texture Debiased Neural Network Training

Yingwei Li, Qihang Yu, Mingxing Tan, Jieru Mei, Peng Tang +3 more
10/12/2020
cs.CV

Official code: LiYingwei/ShapeTextureDebiasedTraining (112 stars, Python, MIT, PyTorch, last commit 2023-08-04).

Abstract

Shape and texture are two prominent and complementary cues for recognizing objects. Nonetheless, Convolutional Neural Networks are often biased towards either texture or shape, depending on the training dataset.

Show full abstract

Our ablation shows that such bias degenerates model performance. Motivated by this observation, we develop a simple algorithm for shape-texture debiased learning. To prevent models from exclusively attending on a single cue in representation learning, we augment training data with images with conflicting shape and texture information (eg, an image of chimpanzee shape but with lemon texture) and, most importantly, provide the corresponding supervisions from shape and texture simultaneously. Experiments show that our method successfully improves model performance on several image recognition benchmarks and adversarial robustness. For example, by training on ImageNet, it helps ResNet-152 achieve substantial improvements on ImageNet (+1.2%), ImageNet-A (+5.2%), ImageNet-C (+8.3%) and Stylized-ImageNet (+11.1%), and on defending against FGSM adversarial attacker on ImageNet (+14.4%). Our method also claims to be compatible with other advanced data augmentation strategies, eg, Mixup, and CutMix. The code is available here: https://github.com/LiYingwei/ShapeTextureDebiasedTraining.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Code and models for the paper Shape-Texture Debiased Neural Network Training (ICLR 2021)

11210PythonOct 2, 20203 years agoMIT
imagenetpaperpytorchshapetexture

Similar Papers

Cite this paper

@article{li2020shapetexture,
  title  = {Shape-Texture Debiased Neural Network Training},
  author = {Yingwei Li and Qihang Yu and Mingxing Tan and Jieru Mei and Peng Tang and Wei Shen and Alan Yuille and Cihang Xie},
  year   = {2020},
  eprint = {2010.05981},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.05981}
}

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/2010.05981.svg)](https://codeofpaper.com/paper/2010.05981)

Discussion