Abstract
Recent developments in computer vision have introduced Vision Transformers (ViTs) and MLP-based models to address the inherent weaknesses of Convolutional Neural Networks (CNNs). This study investigates the corruption robustness of these novel architectures. We find that Vision Transformers are inherently more robust to image corruptions than ResNet-50 and MLP-Mixers. Furthermore, ViTs exhibit a significantly higher shape bias—a preference for classifying objects based on form rather than texture—even when they possess far fewer parameters than traditional CNNs.
Introduction: The Texture Bias Problem
For years, Convolutional Neural Networks (CNNs) have been the gold standard for computer vision. However, they suffer from a significant "texture bias": while humans identify an elephant by its shape (trunk, ears), a CNN might rely solely on the wrinkled grey texture of its skin. This dependency makes CNNs brittle; when images are obscured by noise, weather, or blur, the texture is lost, and the model fails. This paper explores whether newer architectures like Vision Transformers (ViTs) and MLP-Mixers inherit this flaw or possess a more robust inductive bias toward shape.
Methodology
The researchers evaluated twenty pre-trained models across three families:
- CNNs: ResNet-50, AlexNet, GoogLeNet, and VGG-16.
- Vision Transformers (ViTs): ViT, DeiT, CaiT, and Swin Transformers.
- MLP-Mixers: Models relying on multi-layer perceptrons instead of convolutions or self-attention.
Robustness was measured using Mean Corruption Error (mCE) on the ImageNet-C dataset, which includes 19 corruption types like motion blur and Gaussian noise. Shape Bias was quantified using the Texture-Cue Conflict Dataset, where models must choose between a shape-based or texture-based classification (e.g., an elephant-shaped object with a clock texture).
Key Insights
The Shape-Robustness Connection
A core finding of the study is the strong link between a model's reliance on shape and its ability to withstand corruption. As shape bias increases, the error on corrupted images (mCE) generally decreases. This suggests that "seeing" global structure rather than local texture is a key driver of robustness.
Architecture Over Size
The study reveals that architectural design is more important for robustness than raw parameter count. For instance, DeiT-tiny, a Vision Transformer with only 5 million parameters, outperforms the much larger ResNet-50 (26 million parameters) in corruption robustness. This efficiency suggests that the self-attention mechanism in Transformers provides a fundamentally more robust way to process visual data than standard convolutions.
Results and Performance
The Swin-Large model achieved the best overall robustness with an mCE of 34.63%, compared to 65.54% for ResNet-50. In terms of shape bias, ViT-Large led the field at 55.35%, more than double that of ResNet-50 (26.17%).
MLP-Mixers, despite their novelty, performed similarly to CNNs, indicating they do not share the same inherent robustness advantages as Transformers.
Conclusion
Vision Transformers represent a significant step toward human-like visual processing. Their inherent shape bias makes them naturally more resilient to real-world data corruptions. Future work will focus on isolating which specific components of the Transformer architecture—such as the self-attention mechanism or patch-based embeddings—contribute most to this robustness.
Summary updated