A Separable Self-attention Inspired by the State Space Model for Computer Vision

Juntao Zhang, Shaogeng Liu, Kun Bian, You Zhou, Pei Zhang +3 more
1/3/2025
cs.CVcs.AI

Official code: yws-wxs/VMINet (1 star, Apache-2.0, last commit 2025-04-22).

Abstract

Mamba is an efficient State Space Model (SSM) with linear computational complexity. Although SSMs are not suitable for handling non-causal data, Vision Mamba (ViM) methods still demonstrate good performance in tasks such as image classification and object detection. Recent studies have shown that there is a rich theoretical connection between state space models and attention variants. We propose a novel separable self attention method, for the first time introducing some excellent design concepts of Mamba into separable self-attention. To ensure a fair comparison with ViMs, we introduce VMINet, a simple yet powerful prototype architecture, constructed solely by stacking our novel attention modules with the most basic down-sampling layers. Notably, VMINet differs significantly from the conventional Transformer architecture. Our experiments demonstrate that VMINet has achieved competitive results on image classification and high-resolution dense prediction tasks.Code is available at: https://github.com/yws-wxs/VMINet.

View on arXivView PDF

Code Implementations(1)

yws-wxs/VMINetOfficial100%
Apache-2.0
10PythonAug 29, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2025separable,
  title  = {A Separable Self-attention Inspired by the State Space Model for Computer Vision},
  author = {Juntao Zhang and Shaogeng Liu and Kun Bian and You Zhou and Pei Zhang and Jianning Liu and Jun Zhou and Bingyan Liu},
  year   = {2025},
  eprint = {2501.02040},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.02040v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.02040.svg)](https://codeofpaper.com/paper/2501.02040)

Discussion