Reproduce “Vision Transformers are Robust Learners” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Sayak Paul, Pin-Yu Chen

The authors compare vision transformers with convolutional models across six ImageNet robustness datasets and probe possible explanations for performance differences. ViT L-16 reaches 28.10% top-1 accuracy on naturally difficult ImageNet-A examples, 4.3 times BiT m-r101x3’s score, despite having fewer parameters. ViTs outperform BiT on most tested dimensions, but not every task or all real-world shifts.

Key insights

  • Attention mechanisms, particularly ViT's self-attention, are crucial for robustness by enabling the learning of global contextual dependencies and maintaining a distributed focus on image features even under corruptions.
  • Large-scale pre-training serves as a powerful regularizer, significantly enhancing ViT's robustness by compensating for its fewer inherent inductive biases compared to CNNs.
  • ViTs exhibit a smoother loss landscape to input perturbations and require adversarial perturbations to spread across a wider energy spectrum, indicating increased resilience to targeted attacks and better generalization.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.