Reproduce “2-D SSM: A General Spatial Layer for Visual Transformers” 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
Ethan Baron, Itamar Zimerman, Lior Wolf
A new spatial layer called 2D-SSM enhances Vision Transformers by incorporating strong two-dimensional inductive biases, extending 1D State Space Models with Roesser's 2D model. This integration yields accuracy improvements of up to 4.48% across various ViT architectures and datasets, while adding minimal parameters and providing intrinsic positional awareness.
Key insights
- Roesser's 2D-State Space Model can be effectively adapted and efficiently computed as a 2D convolutional kernel, providing a strong 2D inductive bias for Vision Transformers.
- The 2D-SSM layer imbues ViTs with intrinsic positional awareness, allowing them to perform effectively even without explicit positional encodings.
- The generalized 2D-SSM outperforms simpler multi-dimensional SSMs like S4ND, demonstrating superior expressiveness by supporting full-rank kernels for diverse spatial dependencies.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.