Does enhanced shape bias improve neural network robustness to common corruptions?

Chaithanya Kumar Mummadi, Ranjitha Subramaniam, Robin Hutmacher, Julien Vitay, Volker Fischer, Jan Hendrik Metzen

Introduction

Convolutional Neural Networks (CNNs) are highly effective at image recognition, but they harbor a well-documented flaw: a strong bias toward texture over shape. While a human recognizes a cat by its silhouette and features, a standard CNN might identify it solely by its fur texture. This over-reliance makes models fragile; introduce common corruptions like Gaussian noise or motion blur, and the texture is destroyed, causing the model's accuracy to plummet.

Previous research suggested a compelling fix: forcing models to focus on shapes—often by training them on "Stylized ImageNet" (images where textures are replaced by artistic styles)—increases their robustness to these corruptions. However, this paper identifies a critical logical gap in that assumption. Is the resulting robustness truly caused by the enhanced shape bias, or is it merely a byproduct of the heavy data augmentation used to create those stylized images? By systematically decoupling these factors, the authors demonstrate that shape bias is not the silver bullet for robustness it was thought to be.

Methodology: Decoupling Shape and Texture

To isolate shape representations from texture, the researchers employed several techniques to manipulate the training data and network architecture:

  1. Edge-based Representations: They generated a dataset of "edge maps" using a pre-trained edge detector. This strips away almost all texture, leaving only the global geometric structure of the objects.
  2. Style Randomization (SR): They introduced a training module that randomizes the mean and standard deviation of feature maps. Because these statistics often encode "style" or "texture," randomizing them forces the network to seek out more invariant features, such as shape.
  3. Stylization Variants: The team compared several data mixing strategies:
  4. SIN: Stylized ImageNet (standard natural images with artistic styles applied).
  5. SE (Stylized Edges): Artistic styles applied directly to edge maps.
  6. SE+IN (Superposition): A 50/50 blend of stylized edges and natural images.

By evaluating models trained on these distinct inputs, the authors could independently measure shape bias (using a "cue-conflict" dataset, e.g., a cat silhouette filled with elephant skin texture) and corruption robustness (using the ImageNet-C benchmark). To keep the massive number of experimental permutations computationally feasible, the study primarily utilized ImageNet20, a 20-class subset of the original dataset.

Key Findings: Correlation Does Not Equal Causation

The most significant insight from the study is that high shape bias does not guarantee robustness to common corruptions.

Comparison of model performance across validation data, patch shuffled data, texture-shape cue conflict (shape bias), and Gaussian blur (robustness).

As illustrated above, models can achieve massive shape bias but still break easily when faced with noise or blur. For instance, models trained on standard images combined with edge maps (the authors' approach, shown in orange) achieved a higher shape bias (46%) than previous stylized models (34%). However, when subjected to Gaussian blur, the edge-map model's accuracy plummeted to 27%, while the previous stylized model maintained a 62% accuracy. This stark gap proves that shape bias alone cannot explain corruption robustness.

Other key takeaways include:

  • The "Superposition" Sweet Spot: The most robust model overall was the SE+IN (Superposition) model. It achieved the highest Mean Corruption Accuracy (78.96%), despite having a relatively low shape bias score (22). This suggests that retaining some natural texture information while varying the style is far more effective for robustness than discarding texture entirely.
  • Style Variation is the True Driver: Robustness appears to stem from exposing the model to a wide variety of "styles" (augmentations) that remain relatively close to the natural image manifold. The data augmentation itself—not the resulting shape-centric representation—is doing the heavy lifting.
  • Fine-tuning Style Layers: Surprisingly, the authors found that a model's robustness could be significantly improved simply by fine-tuning its normalization layers (the "style" components) on corrupted data, leaving the core "shape-detecting" weights completely untouched.

Conclusion and Future Directions

This paper successfully challenges the prevailing assumption that enhanced shape bias is the primary mechanism behind improved neural network robustness. While stylization techniques do increase shape bias, this is largely a byproduct; the actual robustness to common corruptions is driven by the diversity of the style-based data augmentation.

The authors acknowledge that their primary experiments were conducted on a subset of ImageNet (20 classes) using the ResNet18 architecture, though they validated key findings on larger sets and architectures like ResNet50 and MobileNetV2. Future research should move beyond the binary "shape vs. texture" debate. Instead, the focus should shift toward developing stronger, more diverse augmentation procedures in feature space rather than just pixel space, and investigating whether shape-biased representations offer distinct advantages in other domains like object detection or transfer learning.

Summary updated

BibTeX
@inproceedings{mummadi2021does,
  author = {Chaithanya Kumar Mummadi and Ranjitha Subramaniam and Robin Hutmacher and Julien Vitay and Volker Fischer and Jan Hendrik Metzen},
  title = {{Does enhanced shape bias improve neural network robustness to common corruptions?}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=4aHSj9wuMT},
}
Figure