Alias-Free ViT: Fractional Shift Invariance via Linear Attention

Hagay Michaeli, Daniel Soudry
10/26/2025
cs.CV

No official code found. Best implementation: hmichaeli/alias_free_vit (1 star, Apache-2.0, last commit 2026-02-08).

Abstract

Transformers have emerged as a competitive alternative to convnets in vision tasks, yet they lack the architectural inductive bias of convnets, which may hinder their potential performance. Specifically, Vision Transformers (ViTs) are not translation-invariant and are more sensitive to minor image translations than standard convnets. Previous studies have shown, however, that convnets are also not perfectly shift-invariant, due to aliasing in downsampling and nonlinear layers. Consequently, anti-aliasing approaches have been proposed to certify convnets' translation robustness. Building on this line of work, we propose an Alias-Free ViT, which combines two main components. First, it uses alias-free downsampling and nonlinearities. Second, it uses linear cross-covariance attention that is shift-equivariant to both integer and fractional translations, enabling a shift-invariant global representation. Our model maintains competitive performance in image classification and outperforms similar-sized models in terms of robustness to adversarial translations.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official implementation of the paper "Alias-Free ViT: Fractional Shift Invariance via Linear Attention"

11PythonOct 8, 20258 months agoApache-2.0

Similar Papers

Cite this paper

@article{michaeli2025aliasfree,
  title  = {Alias-Free ViT: Fractional Shift Invariance via Linear Attention},
  author = {Hagay Michaeli and Daniel Soudry},
  year   = {2025},
  eprint = {2510.22673},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.22673v1}
}

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/2510.22673.svg)](https://codeofpaper.com/paper/2510.22673)

Discussion