Reproduce “Vision Transformer with Sparse Scan Prior” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

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

About this paper

Yuguang Zhang, Qihang Fan, Huaibo Huang

Leveraging the human eye's sparse scanning mechanism, researchers at CASIA developed the Sparse Scan Vision Transformer (SSViT) and its Sparse Scan Self-Attention (S³A) for efficient visual processing. The SSViT-T model achieved 83.0% top-1 ImageNet accuracy, surpassing prior efficient architectures by 0.8%, and exhibited improved performance across diverse computer vision tasks and out-of-distribution datasets.

Key insights

  • Biologically inspired sparse scanning, which selectively focuses on key regions, provides an effective strategy to mitigate the quadratic computational cost of global self-attention in ViTs without sacrificing performance.
  • A multi-stage attention process, combining fine-grained local context extraction around sparse anchors with subsequent global interaction among these anchors, is crucial for efficient and robust visual processing.
  • Computational efficiency in complex attention designs can be maintained by strategically reusing query and key projections across different self-attention computations.

Summary by alphaXiv.

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