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

StyleAugment: Learning Texture De-biased Representations by Style Augmentation without Pre-defined Textures

Sanghyuk Chun, Song ParkarXiv 2021

Abstract

Convolutional neural networks (CNNs) are notoriously biased toward local textures, often ignoring global shape information. This "texture bias" makes models brittle when faced with common image corruptions or adversarial examples. We present StyleAugment, an online data augmentation technique that encourages shape-based representations by swapping styles between natural images within a training mini-batch. By utilizing Adaptive Instance Normalization (AdaIN) to transfer textures between images from the same dataset, StyleAugment forces models to prioritize structural "objectness" over spurious texture cues. Our method significantly improves robustness on benchmarks like ImageNet-C and ImageNet-A without requiring external artistic datasets or complex multi-network architectures.

Introduction

Standard CNNs often classify objects based on local patterns—like the fur of a cat—rather than the object's overall silhouette. While efficient on clean datasets, this reliance on texture leads to performance collapses when images are affected by rain, motion blur, or compression noise. Previous mitigation strategies, such as Stylized ImageNet (SIN), used artistic style transfer to re-texture training images. However, SIN is limited by a semantic gap between artistic brushstrokes and natural noise, and its offline nature restricts the diversity of stylized samples the model encounters.

Methodology: Online Style Swapping

StyleAugment addresses these limitations by performing stylization "on-the-fly" during the training process. For every mini-batch, the algorithm randomly pairs images, treating one as "content" and the other as a "style" reference.

Using a pre-trained AdaIN encoder-decoder, the mean and variance of the content image's features are aligned with those of the style reference. This effectively "paints" the texture and color distribution of one natural image onto the structure of another. Unlike Mixup, which blends both images and their labels, StyleAugment preserves the original label of the content image. This forces the network to identify the underlying geometry (shape) regardless of the confusing background or texture.

Visual comparison showing how StyleAugment transfers natural textures (e.g., butterfly wings) onto content images (e.g., a dog) compared to artistic stylization.

Because it uses other images from the same dataset as style references, the resulting images are more "realistic" than those stylized with abstract art, yet they contain "uncommon correlations"—such as a dog with the texture of a butterfly wing—that break the model's reliance on texture shortcuts.

Experimental Results

The authors evaluated StyleAugment across several rigorous benchmarks, demonstrating superior robustness compared to standard augmentations and specialized de-biasing methods.

Quantitative comparison of StyleAugment against state-of-the-art de-biasing methods on ImageNet-9, ImageNet-C, and ImageNet-A.

Robustness and De-biasing

  • ImageNet-C: StyleAugment achieved 65.3% accuracy, a significant jump over the Vanilla ResNet-18's 54.2%. When combined with the AdamP optimizer, robustness further increased to 72.5%.
  • Unbiased Accuracy: On the ImageNet-9 benchmark, which isolates foreground objects, StyleAugment reached 92.6%, outperforming specialized architectures like BagNet and methods like ReBias.
  • Adversarial Robustness: On ImageNet-A ("natural adversarial examples"), top-1 accuracy improved from 24.9% (Vanilla) to 29.6%.

The Shape-Texture Tradeoff

A key insight from the study is the role of stylization quality. The authors found that while photorealistic style transfer (e.g., WCT2) preserves edges better, it is less effective at de-biasing than AdaIN. This suggests that some "damage" to the original texture is actually necessary to force the model to stop relying on it. However, this comes with a slight cost: on the full ImageNet-1k dataset, StyleAugment caused a minor drop in "clean" accuracy (e.g., from 69.8% to 68.3% for ResNet-18), indicating that some fine-grained texture information is lost.

Conclusion

StyleAugment provides a simple, data-level intervention that significantly reduces texture bias in CNNs. By leveraging the internal diversity of a dataset to create infinite stylized variations, it builds models that are far more robust to real-world corruptions. Its efficiency and lack of reliance on external artistic data make it a practical choice for improving the reliability of computer vision systems.

Summary updated

BibTeX
@misc{chun2021styleaugment,
  author = {Sanghyuk Chun and Song Park},
  title = {{StyleAugment: Learning Texture De-biased Representations by Style Augmentation without Pre-defined Textures}},
  year = {2021},
  eprint = {2108.10549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.10549},
}
Figure