Connecting metrics for shape-texture knowledge in computer vision

Tiago Oliveira, Tiago Marques, Arlindo L. OliveiraarXiv 2023 · DOI

Introduction

A fundamental difference between human and machine vision is the reliance on shape versus texture. While humans prioritize global shape, Artificial Neural Networks (ANNs) are often dominated by local texture cues—a phenomenon termed "texture bias." This study performs a large-scale meta-analysis of 624 models to determine if increasing accuracy naturally drives models toward more human-like shape-based recognition.

Methodology

The researchers evaluated 624 models from 17 distinct architectures, including Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs). Two primary metrics were used to quantify model behavior and internal state:

  1. Shape Behavioral Bias: Measured using the Geirhos et al. "cue-conflict" dataset (e.g., a cat-shaped silhouette with elephant skin texture) to see if the model predicts the shape or the texture.
  2. Shape Dimensionality Bias: An internal measure of the penultimate layer using the Stylized Pascal VOC 2012 dataset, counting the neurons dedicated to representing shape versus texture.

The analysis revealed a clear trend: as models become more accurate on standard benchmarks like ImageNet, they exhibit higher shape bias. This suggests that achieving high-level performance forces models to move beyond simple texture cues and adopt more robust shape-based strategies.

Correlations between ImageNet accuracy, behavioral shape bias, and internal shape-dimensionality ratio.

As shown in the figure above, there is a positive correlation between ImageNet accuracy and both behavioral bias ($r=0.45$) and the internal shape-to-texture dimensionality ratio ($r=0.57$). Notably, the "Noisy Student" EfficientNet L2 reached a shape bias of ~60% without explicit shape-focused training, highlighting how scaling performance can naturally induce human-like strategies.

The Internal "Tug-of-War"

One of the most significant findings is the competitive nature of internal representations. The study found a nearly perfect negative correlation between the number of neurons dedicated to shape and those dedicated to texture.

The inverse relationship between texture and shape dimensionality, illustrating a zero-sum representation.

This "zero-sum" relationship ($r=-0.91$) indicates that in the model's penultimate layer, shape and texture are in direct competition. Gaining shape knowledge necessitates discarding an equivalent amount of texture knowledge. Furthermore, texture dimensionality itself decreases as accuracy increases ($r=-0.55$), reinforcing the idea that elite models must shed texture reliance to reach higher performance tiers.

Conclusion and Future Directions

While the gap between AI and human vision is closing, it remains substantial; humans typically exhibit ~95% shape bias, whereas the best models currently reach ~60%. While accuracy is a strong driver of shape bias, it may eventually saturate as models approach the ImageNet ceiling. Future research should investigate whether this emergent shape knowledge translates to improved adversarial robustness and better generalization in out-of-distribution scenarios.

Summary updated

BibTeX
@misc{oliveira2023connecting,
  author = {Tiago Oliveira and Tiago Marques and Arlindo L. Oliveira},
  title = {{Connecting metrics for shape-texture knowledge in computer vision}},
  year = {2023},
  eprint = {2301.10608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.10608},
}
Figure