Organizations: School of Mathematics and Statistics, Xi’an Jiaotong University, Shaanxi, P.R. China · Department of Computing, the Hong Kong Polytechnic University, Hong Kong, P.R. China
Rotation equivariance constitutes one of the most general and crucial structural priors for visual data, yet it remains notably absent from current Mamba-based vision architectures. Despite the success of Mamba in natural language processing and its growing adoption in computer vision, existing visual Mamba models fail to account for rotational symmetry in their design. This omission renders them inherently sensitive to image rotations, thereby constraining their robustness and cross-task generalization. To address this limitation, we incorporate rotation symmetry, a universal and fundamental geometric prior in images, into Mamba-based architectures. Specifically, we introduce EQ-VMamba, the first rotation equivariant visual Mamba architecture for vision tasks. The core components of EQ-VMamba include a carefully designed rotation equivariant cross-scan strategy and group Mamba blocks. Moreover, we provide a rigorous theoretical analysis of the intrinsic equivariance error, demonstrating that the proposed architecture enforces end-to-end rotation equivariance throughout the network. Extensive experiments across multiple benchmarks -- including high-level image classification, mid-level semantic segmentation, and low-level image super-resolution -- demonstrate that EQ-VMamba consistently improves rotation robustness and achieves superior or competitive performance compared to non-equivariant baselines, while requiring approximately 50% fewer parameters. These results indicate that embedding rotation equivariance not only effectively bolsters the robustness of visual Mamba models against rotation transformations, but also enhances overall performance with significantly improved parameter efficiency. Code is available at https://github.com/zhongchenzhao/EQ-VMamba.
Figures & tables
Fig. 1: (a)-(b) Visualization of output feature maps for an input image and its rotated version using VMamba and our proposed EQ-VMamba, respectively. (c) Performance comparison between VMamba and EQ-VMamba on the rotated ImageNet-100 dataset.
Fig. 2: Illustration of the group dimension (indexed by colors), and three fundamental transformation operators utilized in our equivariant framework. (a)-(c) illustrate πGR(⋅) , πGRS(⋅) , and πGS(⋅) , respectively.
Fig. 3: Overall architecture of the proposed end-to-end rotation equivariant visual Mamba (EQ-VMamba). The framework mainly comprises: (a) an EQ-patch embedding module that tokenizes the input image into group-structured feature maps, and (b) a stack of EQ-VSS blocks for hierarchical feature extraction. Each EQ-VSS block integrates an EQ-cross-scan operation for image-to-sequence flattening, group Mamba blocks for sequence modeling, and an EQ-cross-merge operation for sequence-to-image reconstruction.
Fig. 4: Illustration of the rotation equivariant patch embedding. A spatial rotation applied to the input image induces a joint transformation on the output feature map, i.e., PEeq(πGR(I))=πGRS(PEeq(I)) .
Fig. 5: Comparison between the non-equivariant cross-scan and the proposed equivariant EQ-cross-scan. (a) Under a 90 ∘ rotation of the input image, the standard cross-scan in VMamba fails to maintain sequence consistency. (b) In contrast, EQ-cross-scan preserves the ordering of tokens within each 1D sequence, ensuring rigorous structural correspondence between the rotated and unrotated representations.
Fig. 6: Upper : Architectural pipeline of the proposed equivariant Visual State-Space (EQ-VSS) block. (1) The block first employs EQ-Linear layers to generate input-dependent Mamba parameters A , B , and C . (2) These parameters, along with the input feature map, are partitioned along the group dimension and flattened into four 1D sequences via EQ-cross-scan. (3) Each feature sequence is processed in parallel by the group Mamba block using its corresponding group-wise parameters. (4) Finally, the output feature map is restored through the EQ-cross-merge operation. Bottom : Illustration of the proposed theoretical results, which show the correspondence between each theorem and its respective network module.
Model
Arch.
#Param.
FLOPs
Top-1 (%)
Top-5 (%)
ConvNeXt-T [ 6 ]
CNN
29M
4.5G
87.06
96.70
DeiT-S [ 64 ]
Trans.
22M
4.6G
78.88
93.64
Swin-T [ 9 ]
Trans.
29M
4.5G
87.42
97.20
XCiT-S24 [ 65 ]
Trans.
26M
9.2G
87.14
96.98
Vim-T [ 13 ]
SSM
7M
1.5G
82.20
95.60
MSVMamba-M [ 42 ]
SSM
12M
1.5G
87.56
97.76
TABLE I: Quantitative comparison of image classification performance on the ImageNet-100 validation set.
Fig. 7: Robustness comparison of VMamba-T, Spectral VMamba-T, and EQ-VMamba-T on the rotated ImageNet-100 dataset.
Backbone
#Param.
Natural Image
Remote Sensing Image
ADE20K
VOC 2012
Cityscapes
COCO-Stuff
LoveDA
ISPRS Potsdam
ConvNeXt-T [ 6 ]
48M
35.59
53.99
76.33
32.81
38.52
50.61
DeiT-S [ 64 ]
52M
23.13
24.17
24.29
54.23
38.74
48.63
Swin-T [ 9 ]
48M
27.05
35.73
70.05
25.83
40.78
53.78
XCiT-S24 [ 65 ]
76M
36.21
58.08
73.02
35.11
36.29
49.01
Vim-T [ 13 ]
13M
24.31
32.20
60.04
23.64
36.12
44.01
TABLE II: Quantitative comparison of semantic segmentation performance on natural/remote sensing image datasets (mIoU: %).
Backbone
#Param.
Natural Image
Remote Sensing Image
ADE20K
VOC 2012
Cityscapes
COCO-Stuff
LoveDA
ISPRS Potsdam
VMamba-T [ 14 ]
62M
15.98 (24.17 ↓ )
40.42 (23.28 ↓ )
32.70 (45.72 ↓ )
24.26 (14.41 ↓ )
41.68 (0.94 ↓ )
53.15 (0.09 ↓ )
EQ-VMamba-T
18M
39.59 ( 0.08 ↑ )
63.19 ( 1.27 ↓ )
78.01 ( 0.00 )
37.80 ( 0.50 ↓ )
45.69 ( 0.00 )
59.54 ( 0.00 )
VMamba-S [ 14 ]
82M
19.60 (22.08 ↓ )
47.54 (18.60 ↓ )
39.42 (39.61 ↓ )
26.51 (10.92 ↓ )
39.19 (1.71 ↓ )
53.08 (2.98 ↓ )
EQ-VMamba-S
25M
39.87 ( 0.03 ↓ )
65.64 ( 0.93 ↓ )
80.36 ( 0.00 )
37.76 ( 0.54 ↓ )
44.04 ( 0.00 )
62.00 ( 0.00 )
TABLE III: Quantitative comparison of semantic segmentation performance on rotated natural/remote sensing datasets (mIoU: %) (The values inside the parentheses indicate the increase/decrease in performance on rotated inputs compared with unrotated inputs).
Fig. 8: Visual comparison of segmentation results between VMamba and EQ-VMamba on the PASCAL VOC 2012 natural image dataset (top row) and the ISPRS Potsdam remote sensing dataset (bottom row).
Fig. 9: Robustness comparison of VMamba and EQ-VMamba on the rotated semantic segmentation datasets. Input image rotations lead to a substantial performance degradation in VMamba, while EQ-VMamba preserves performance under 90-degree rotations.
Model
Scale
#Param.
Set5
Set14
BSD100
Urban100
Manga109
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
EDSR [ 77 ]
×2
42.6M
38.11
0.9602
33.92
0.9195
32.32
0.9013
32.93
0.9351
39.10
0.9773
RCAN [ 78 ]
×2
15.4M
38.27
0.9614
34.12
0.9216
32.41
0.9027
33.34
0.9384
39.44
0.9786
SAN [ 79 ]
×2
15.7M
38.31
0.9620
34.07
0.9213
32.42
0.9028
33.10
0.9370
39.32
0.9792
HAN [ 80 ]
×2
15.9M
38.27
0.9614
34.16
0.9217
32.41
0.9027
33.35
0.9385
39.46
0.9785
IPT [ 81 ]
×2
115M
38.37
-
34.43
-
32.48
-
33.76
-
-
-
TABLE IV: Quantitative comparison of different methods on the classic image super-resolution benchmark.
Model
Scale
#Param.
Set5
Set14
BSD100
Urban100
Manga109
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
CARN [ 89 ]
×2
1,592K
37.76
0.9590
33.52
0.9166
32.09
0.8978
31.92
0.9256
38.36
0.9765
IMDN [ 90 ]
×2
694K
38.00
0.9605
33.63
0.9177
32.19
0.8996
32.17
0.9283
38.88
0.9774
LAPAR-A [ 91 ]
×2
548K
38.01
0.9605
33.62
0.9183
32.19
0.8999
32.10
0.9283
38.67
0.9772
LatticeNet [ 92 ]
×2
756K
38.13
0.9610
33.78
0.9193
32.25
0.9005
32.43
0.9302
-
-
SwinIR-light [ 53 ]
×2
910K
38.14
0.9611
33.86
0.9206
32.31
0.9012
32.76
0.9340
39.12
0.9783
TABLE V: Quantitative comparison of different methods on the lightweight image super-resolution benchmark.
Fig. 10: Visual comparison of image super-resolution results between MambaIR and EQ-MambaIR on Urban100 and Manga109 datasets.
Model
Image Classification
Semantic Segmentation
Untrained
Trained
Untrained
Trained
VMamba-T [ 14 ]
0.1721
0.4404
0.3547
0.1958
EQ-VMamba-T
0.0003
0.0003
0.0004
0.0002
VMamba-S [ 14 ]
0.2017
0.1497
0.3617
0.1809
EQ-VMamba-S
0.0003
0.0003
0.0004
0.0002
TABLE VI: Average equivariance error of different models on p4 rotation group (NMSE ↓ ).
EQ-cross scan
EQ-VSS block
Scale
#Param.
Top-1 (%)
Top-5 (%)
✗
✗
Tiny
30M
87.80
97.70
✓
✗
Tiny
30M
87.88
97.54
✓
✓
Tiny
10M
88.58
98.14
✗
✗
Small
50M
88.32
97.82
✓
✗
Small
50M
87.76
97.70
✓
✓
Small
17M
88.70
98.22
TABLE VII: Ablation study on EQ-cross-scan and EQ-VSS block.
Mamba block type
Scale
#Param.
Top-1 (%)
Top-5 (%)
Independent Mamba block
Tiny
9M
87.98
97.96
Group Mamba block
Tiny
10M
88.58
98.14
Independent Mamba block
Small
15M
88.04
97.98
Group Mamba block
Small
17M
88.70
98.22
TABLE VIII: Ablation study on the group Mamba block.
The state space model Mamba has recently emerged as a promising paradigm in computer vision, attracting considerable attention for its efficient handling of long-sequence tasks. Its inherent causal structure makes it particularly well suited for autoregressive pretraining. However, existing autoregressive pretraining methods in vision are largely limited to short-sequence settings and may not fully use Mamba's capacity to model longer contexts. To investigate this setting, we introduce SeparaTors for AutoRegressive pretraining (STAR), a new autoregressive pretraining method for Vision Mamba that explicitly marks the boundaries between different images. STAR increases the patch-token sequence length from 144 to 640 by packing four images and four separator clusters. This is approximately 4.4× the ARM patch-token sequence length. The increase is achieved without changing the resolution of any individual image: we use 192×192 inputs for autoregressive pretraining and 224×224 inputs for downstream classification fine-tuning. With this long-sequence pretraining scheme, STAR-B achieves 83.5% EMA top-1 accuracy on ImageNet-1K after 1,600 epochs of pretraining. The learned representation also transfers beyond in-distribution classification: compared with ARM, STAR-B improves COCO box AP from 46.11 to 46.84 and mask AP from 40.74 to 41.45, while raising the mean top-1 accuracy across five ImageNet robustness benchmarks from 55.1% to 56.8%. Under the evaluated four-image setting, these results indicate that separator-based long-sequence pretraining improves recognition robustness and dense visual prediction relative to ARM.
Vision Foundation Models (VFMs) have significantly advanced dense feature matching, yet severe in-plane rotation remains a critical challenge. Existing solutions face a fundamental dilemma: data-driven methods require inefficient parameter scaling to implicitly learn rotations, whereas strictly equivariant networks lack the semantic capacity of modern VFMs. Consequently, current frameworks typically freeze VFMs and shift the entire burden of rotation generalization to the downstream decoder. To break this architectural bottleneck, we propose REDI-Match, an efficient framework driven by a novel Rotation-Equivariant Distillation (REDI) paradigm. Instead of relying on rotation data augmentation to establish rotational correspondences, REDI distills the non-equivariant semantic representations of a VFM into a lightweight, strictly rotation-equivariant encoder, leveraging an equivariant geometric architecture to constrain robust high-dimensional semantics. To fully exploit these features, we equip the decoder with an entropy-driven spatial alignment module. By evaluating discrete rotation hypotheses, this mechanism explicitly locks onto the canonical coordinate system, eliminating global ambiguity before continuous refinement. Extensive experiments demonstrate that REDI-Match establishes a new state-of-the-art (SOTA) across multiple benchmarks. Notably, it achieves a 13.89% absolute pose accuracy improvement on the highly challenging SatAst dataset while operating 1.9x faster than the current SOTA (RoMa v2), enabling real-time inference (~41 FPS) on a single RTX 4090 GPU. Code: https://github.com/YinjiGe/REDI-Match.
Yinji Ge, Guixu Zheng, Wulong Guo +5
1Tsinghua University · 2Southern University of Science and Technology · 3Beihang University +1
The realm of Mamba for vision has been advanced in recent years to strike for the alternatives of Vision Transformers (ViTs) that suffer from the quadratic complexity. While the recurrent scanning mechanism of Mamba offers computational efficiency, it inherently limits non-causal interactions between image patches. Prior works have attempted to address this limitation through various multi-scan strategies; however, these approaches suffer from inefficiencies due to suboptimal scan designs and frequent data rearrangement. Moreover, Mamba exhibits relatively slow computational speed under short token lengths, commonly used in visual tasks. In pursuit of a truly efficient vision encoder, we rethink the scan operation for vision and the computational efficiency of Mamba. To this end, we propose SF-Mamba, a novel visual Mamba with two key proposals: auxiliary patch swapping for encoding bidirectional information flow under an unidirectional scan and batch folding with periodic state reset for advanced GPU parallelism. Extensive experiments on image classification, object detection, and instance and semantic segmentation consistently demonstrate that our proposed SF-Mamba significantly outperforms state-of-the-art baselines while improving throughput across different model sizes. We will release the source code after publication.