Reproduce “Vision Transformers provably learn spatial structure” 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

Samy Jelassi, Michael E. Sander, Yuanzhi Li

This paper theoretically explains how Vision Transformers implicitly learn spatial structure, termed "patch association," through gradient-based optimization, despite lacking explicit spatial inductive biases. It proves that a simplified ViT model learns these spatial connections and empirically demonstrates this capability contributes to sample-efficient transfer learning across visual tasks.

Key insights

  • Gradient descent implicitly guides ViTs to learn solutions that respect the spatial structure of data, leading to a phenomenon termed "patch association".
  • ViTs can learn spatial inductive biases through optimization from random initialization, rather than requiring them to be explicitly hardcoded into the architecture.
  • The learned patch association contributes to improved generalization and facilitates sample-efficient transfer learning to downstream tasks with similar spatial properties.

Summary by alphaXiv.

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