Does resistance to Style-Transfer equal Shape Bias? Evaluating Shape Bias by Distorted Shape

Ziqi Wen, Tianqin Li, Tai Sing Lee

Abstract

Deep learning models are known to exhibit a strong texture bias, while humans tend to rely heavily on global shape structure for object recognition. The current benchmark for evaluating a model's global shape bias is a set of style-transferred images, based on the assumption that resistance to the attack of style transfer is related to the development of global structure sensitivity. In this work, we show that networks trained with style-transfer images indeed learn to ignore style, but their shape bias arises primarily from local detail. We provide the Disrupted Structure Testbench (DiST) as a direct measurement of global structure sensitivity. Our findings indicate that: (1) models that performed well on previous cue-conflict datasets do not fare well in the proposed DiST; (2) supervised Vision Transformers (ViTs) lose global spatial information from positional embeddings, whereas self-supervised methods like Masked Autoencoders (MAE) significantly improve global structure sensitivity; and (3) improving global structure sensitivity is orthogonal to style-transfer resistance, suggesting that training with both is complementary.

Introduction

Computer vision models are notoriously "texture-biased." While a human recognizes a cat by its overall silhouette and the arrangement of its features, a standard Convolutional Neural Network (CNN) might identify it solely by the texture of its fur. To address this, researchers previously used "cue-conflict" datasets—images where the texture of one object (e.g., elephant skin) is draped over the shape of another (e.g., a cat). The assumption was that if a model could still identify the "cat," it must have developed a human-like "shape bias." This paper challenges that assumption, arguing that models can pass style-transfer tests by focusing on local geometric details rather than global structure.

The Disrupted Structure Testbench (DiST)

The authors propose the Disrupted Structure Testbench (DiST) to measure global structure sensitivity directly. DiST includes 2,400 original images from ImageNet-1K, each accompanied by two "disrupted" versions created via texture synthesis. These versions preserve the exact local textures and feature statistics of the original but completely scramble the global spatial configuration.

The DiST testbench illustrates how machines and humans differ in perceiving global shape vs. scrambled textures.

To force models to learn global structure, the authors propose DiSTinguish Training. This supervised objective treats disrupted images as separate classes (e.g., a 2,000-class task for ImageNet-1K), requiring the model to distinguish between an "Original Dog" and a "Scrambled Dog."

Key Insights and Results

Local Feature Focus in Stylized Models

Models trained on stylized images (like ResNet50-SIN) actually performed worse on the DiST benchmark (52.6%) than standard models (69.4%). Feature attribution results show that these models learned to ignore texture by fixating even harder on tiny, local geometric details (like the specific shape of an owl's eye) rather than the global configuration of the object.

Feature attribution results showing that models trained with stylization still focus on local features rather than global shape.

Spatial Information in Vision Transformers

Despite having global self-attention, supervised ViTs lose spatial information as data moves through the network; by the final layers, positional embeddings are effectively lost. However, ViTs trained with Masked Autoencoders (MAE) reached 93.7% on DiST, surpassing human performance (85.5%). This suggests that the task of reconstruction forces the model to retain global spatial relationships far better than simple classification.

Orthogonality of Shape and Texture

Global shape sensitivity and texture robustness are independent (orthogonal) traits. Improving one does not automatically improve the other. However, the authors found that training with both DiST images and style-transferred images is complementary, enhancing both global shape sensitivity and the robustness of local features.

Conclusion

This work demonstrates that resistance to style transfer is not a reliable proxy for global shape bias. By introducing DiST, the authors provide a more rigorous way to evaluate and train models for human-like structural sensitivity. While generating high-quality disrupted images is computationally expensive, the success of DiSTinguish training and self-supervised ViTs points toward a path for creating more robust, structurally aware vision systems.

Summary updated

BibTeX
@inproceedings{wen2024does,
  author = {Ziqi Wen and Tianqin Li and Tai Sing Lee},
  title = {{Does resistance to Style-Transfer equal Shape Bias? Evaluating Shape Bias by Distorted Shape}},
  booktitle = {Re-Align @ ICLR},
  year = {2024},
  url = {https://openreview.net/forum?id=in4qCYNWp9},
}
Figure