Reproduce “ELSA: Enhanced Local Self-Attention for Vision Transformer” 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

Jingkai Zhou, Pichao Wang, Fan Wang, Qiong Liu, Hao Li, Rong Jin

ELSA, developed by researchers from South China University of Technology and Alibaba Group, enhances Local Self-Attention in Vision Transformers by addressing its limitations in channel and spatial processing. It improves the top-1 accuracy of a Swin-T model on ImageNet-1K from 81.3% to 82.7% and shows performance gains across object detection and semantic segmentation tasks.

Key insights

  • Traditional Local Self-Attention (LSA) in Vision Transformers often underperforms due to inadequate channel processing (limited attention heads) and suboptimal spatial processing (non-overlapping local windows).
  • Hadamard attention, using element-wise multiplication instead of dot products, provides better expressivity for local contexts, reduces computational complexity, and improves relative position integration.
  • A ghost head module can effectively increase the channel representation capacity of attention outputs by generating additional features from existing ones, without a substantial increase in parameter count.

Summary by alphaXiv.

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