mlsanityData to 14 Oct 2026

Reviving Shift Equivariance in Vision Transformers

arXiv 2306.07470 ↗First posted 13 Jun 2023cs.CV cs.AIcited by 9

Not on the map. Why?

Abstract (arXiv)

Shift equivariance is a fundamental principle that governs how we perceive the world - our recognition of an object remains invariant with respect to shifts. Transformers have gained immense popularity due to their effectiveness in both language and vision tasks. While the self-attention operator in vision transformers (ViT) is permutation-equivariant and thus shift-equivariant, patch embedding, positional encoding, and subsampled attention in ViT variants can disrupt this property, resulting in inconsistent predictions even under small shift perturbations. Although there is a growing trend in incorporating the inductive bias of convolutional neural networks (CNNs) into vision transformers, it does not fully address the issue. We propose an adaptive polyphase anchoring algorithm that can be seamlessly integrated into vision transformer models to ensure shift-equivariance in patch embedding and subsampled attention modules, such as window attention and global subsampled attention. Furthermore, we utilize depth-wise convolution to encode positional information. Our algorithms enable ViT, and its variants such as Twins to achieve 100% consistency with respect to input shift, demonstrate robustness to cropping, flipping, and affine transformations, and maintain consistent predictions even when the original models lose 20 percentage points on average when shifted by just a few pixels with Twins' accuracy dropping from 80.57% to 62.40%.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 14 of its 16 references that are in the map. First posted on arXiv 13 Jun 2023.

Builds on

14 of 16 references.

References · 14

  1. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  2. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  3. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
  4. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
  5. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  6. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
  7. 2022MaxViT: Multi-Axis Vision Transformercited by 476
  8. 2021Conditional Positional Encodings for Vision Transformerscited by 406
  9. 2019Making Convolutional Networks Shift-Invariant Againcited by 391
  10. 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
  11. 2018Why do deep convolutional networks generalize so poorly to small image transformations?cited by 198
  12. 2022DaViT: Dual Attention Vision Transformerscited by 175
2 more
  1. 2022The Lie Derivative for Measuring Learned Equivariancecited by 54
  2. 2020Truly shift-invariant convolutional neural networkscited by 53

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 2; 2025: 3; 2026: 3.

9 papers.