TL;DR
Common benchmarks evaluate a vision model’s "shape bias" using style-transferred images, under the assumption that resisting texture shifts implies learning global shape. This paper shows that style-robust models often just rely on style-invariant local features (like an eye) rather than true global shape. To fix this, the authors introduce DiST (Distorted Shape Testbench), a benchmark using texture synthesis to disrupt global shape while keeping local textures intact, alongside a training approach (DiSTinguish) that explicitly teaches models global shape structure.
What Problem Does This Paper Address?
Humans recognize objects largely by their global shape configurations, whereas standard Convolutional Neural Networks (CNNs) are notorious for relying on local textures as shortcuts.
To evaluate and encourage shape bias, prior research relied heavily on style-transferred images (e.g., the Cue-Conflict dataset), assuming that models invariant to stylized textures must rely on global shape. The authors challenge this premise: does resistance to style transfer actually equal a global shape bias? By analyzing gradient-based sensitivity maps (SmoothGrad), they reveal that models trained on stylized data simply shift their focus to style-invariant local features rather than learning holistic, global object geometry.
Methods
The authors propose two main contributions:
- Distorted Shape Testbench (DiST):
- A benchmark that disrupts global spatial structures while preserving local texture statistics using CNN-based texture synthesis (Gatys et al., 2015). By matching Gram matrices across intermediate VGG layers, an image's global layout is randomized without altering local features.
- Evaluated as an odd-one-out task: given one original image and $N=2$ shape-distorted variants, a model must pick the odd image based on the cosine distance of its final-layer representations.
- DiSTinguish Training:
- To force networks to learn global shape representations, classification is expanded from $n$ classes to $2n$ classes, where the additional $n$ classes consist of shape-distorted variants.
- To make large-scale training computationally feasible, the authors use a 10-step optimization approximation (DiSTinguish-A) instead of the 100-step generation used for the evaluation benchmark.
- At inference for standard classification, class logits are remapped back to $n$ dimensions by summing corresponding original and distorted logits ($z'_i = z_i + z_{i+n}$).
Datasets
- DiST (Distorted Shape Testbench): Newly introduced benchmark consisting of 2,400 original ImageNet-1K images, each paired with two distinct shape-distorted variants (4,800 synthetic images).
- ImageNet-1K & ImageNet-10: Standard classification benchmarks (ImageNet-10 mirrors the 10 classes in Imagenette).
- Stylized ImageNet (SIN-1K / SIN-10) & Cue-Conflict: Existing datasets used to assess texture vs. shape bias via style transfer.
Key Insights and Ideas
- Style resistance $\neq$ global shape perception: ResNet50 trained on stylized images (ResNet50-SIN) excels on Cue-Conflict style tests but fails to beat a standard ResNet50 on DiST. Attribution maps show it fixates tightly on local cues (e.g., an owl’s eye) that survive style shifts.
- Transformers do not automatically solve global shape: Despite self-attention mechanisms and strong performance on style-transfer benchmarks, Vision Transformers (ViTs) do not demonstrate an inherent advantage over standard CNNs on DiST. Furthermore, scaling up model size does not monotonically improve DiST accuracy (e.g., ViT-S scores 70.9%, while ViT-B scores only 54.8%).
- Orthogonal representations: DiSTinguish training and stylized augmentation target complementary mechanisms. Training with both yields a model that simultaneously handles style shifts and global shape distortions without harming standard ImageNet accuracy.
Key Results
- Human vs. Model Gap: Human participants achieved 85.5% accuracy on DiST under tight response-time constraints (800 ms presentation + 1200 ms response window), whereas baseline models hovered between 54% and 71% (ResNet50: 69.4%; ViT-L: 68.5%; ViT-B: 54.8%).
- DiSTinguish Effectiveness on ImageNet-1K:
- Baseline ResNet50: 69.4% DiST accuracy, 76.1% ImageNet Top-1.
- Stylized-Augmentation ResNet50: 73.3% DiST accuracy, 52.2% SIN-1K Top-1.
- DiSTinguish ResNet50: 98.6% DiST accuracy, 77.7% ImageNet Top-1.
- Combined (DiSTinguish + Stylized Aug): Achieves 98.7% DiST accuracy and matches stylized accuracy (52.2% on SIN-1K), confirming the methods are complementary.
- Downstream Utility: In an image retrieval task with occluded objects, models trained with DiSTinguish successfully retrieved the correct target images where stylized models failed due to missing local anchor features.
Limitations and Future Work
- Synthesis Computational Overhead: Synthesizing shape-distorted images using 100-step Gram matrix optimization is slow (~55s per image on an Nvidia V100). While the 10-step approximation (DiSTinguish-A) mitigates this during training, scalable generation remains a hurdle.
- Artifacts and Scene Complexity: In complex images where the subject blends into a busy background, Gram matrix texture synthesis can generate ambiguous outputs that are challenging for both humans and models to interpret.
- Future Work: Developing faster shape-distortion algorithms and architectural innovations that organically cultivate global shape sensitivity without requiring synthetic auxiliary classes.
Summary updated