arXiv:2610.07585cs.CVOct 2026

Manuscript Offprint

arXiv:2610.07585

REViT-v2: Hierarchical Windowed Roto-reflection Equivariant ViT for Equivariant Feature Extraction

Sheir A. Zaheer, Jihwan Moon, Chan Y. Park

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We propose a scalable roto-reflection-group-equivariant vision transformer based on windowed group-convolutional self-attention and a hierarchical feature architecture. We demonstrate that our approach can be scaled to group-equivariant vision transformers (ViTs) with millions of parameters and large datasets with practically sized images, i.e., ImageNet. The code and pretrained weights for the proposed Hierarchical Windowed Roto-reflection Equivariant ViTs (REViT-v2) are available at https://github.com/kc-ml2/revit.

1. Introduction

Standard vision transformers (ViTs) (Dosovitskiy et al., 2021) do not explicitly encode common image symmetries. A conventional model must learn from data that a visual pattern retains its identity after a rotation or reflection. Group-equivariant neural networks instead incorporate this relationship into the architecture. Group-equivariant convolutional networks introduced group convolutions as a systematic means of sharing filters across translations, rotations, and reflections (Cohen and Welling, 2016; Weiler and Cesa, 2019).

Romero and Cordonnier (2021) extended the same principle to attention and showed that attention can be made equivariant to symmetry groups by constructing positional encodings that are invariant under the corresponding group action. This provides a general theoretical formulation, but it does not scale beyond low-resolution images. Moreover, group-relative positional terms must be repeatedly evaluated in all attention layers. Zaheer et al. (2026) subsequently introduced rot-reflection equivariant convolutional vision transformer (REViT) with group-convolutional self-attention (G-CSA), in which convolutional projections remove the dependence on explicit positional encoding. This makes equivariant transformers considerably simpler. Nevertheless, when group-convolutional attention is evaluated globally, its spatial attention matrix remains quadratic with respect to input size. The cost is especially important for equivariant models because regular group representations typically allocate several orientation channels to each feature field.

Several developments in efficient vision transformers suggest a path toward addressing this limitation. CvT introduced convolutional token embedding and convolutional attention projections showing that convolutional structure can reduce the need for explicit positional encoding (Wu et al., 2021). Swin transformer restricted attention to local windows

  • work done at KC Machine Learning Lab

© 2026 S.A. Zaheer, J. Moon & C.Y. Park.

and organized the network into a multiscale pyramid (Liu et al., 2021). Multiscale Vision Transformers similarly demonstrated the value of progressively reducing token resolution while increasing channel capacity (Fan et al., 2021).

In this paper, we propose REViT-v2. REViT-v2 combines hierarchical vision transformers with local group-equivariant convolutional self attention. REViT-v2 introduces two central components. First, it utilizes Windowed Group Convolutional Self-Attention (wG-CSA), which performs attention within local spatial windows while preserving complete group-representation fields in each attention head. Second, it constructs a multi-stage equivariant feature pyramid using group-convolutional tokenization and downsampling. Consequently, REViT-v2 reduces the spatial complexity of group-equivariant attention from quadratic to linear in the image area. This design targets large-scale image recognition while maintaining equivariance throughout the feature extractor. We demonstrate its effectiveness through classification results on ImageNet-1K (Deng et al., 2009) and a complexity comparison with global G-CSA.