# GradViT: Gradient Inversion of Vision Transformers

Source: [GradViT: Gradient Inversion of Vision Transformers](<https://www.sota2.com/research/paper/68fa6c1b1e209131cea323af>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T05:12:24.250Z

Authors: Ali Hatamizadeh, Hongxu Yin, Holger Roth, Wenqi Li, Jan Kautz, Daguang Xu, Pavlo Molchanov

Published: 2022-03-22T17:06:07.000Z

## Abstract

In this work we demonstrate the vulnerability of vision transformers (ViTs) to gradient-based inversion attacks. During this attack, the original data batch is reconstructed given model weights and the corresponding gradients. We introduce a method, named GradViT, that optimizes random noise into naturally looking images via an iterative process. The optimization objective consists of (i) a loss on matching the gradients, (ii) image prior in the form of distance to batch-normalization statistics of a pretrained CNN model, and (iii) a total variation regularization on patches to guide correct recovery locations. We propose a unique loss scheduling function to overcome local minima during optimization. We evaluate GadViT on ImageNet1K and MS-Celeb-1M datasets, and observe unprecedentedly high fidelity and closeness to the original (hidden) data. During the analysis we find that vision transformers are significantly more vulnerable than previously studied CNNs due to the presence of the attention mechanism. Our method demonstrates new state-of-the-art results for gradient inversion in both qualitative and quantitative metrics. Project page at https://gradvit.github.io/.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Image Reconstruction on ImageNet1K](<https://www.sota2.com/research/sota/image-reconstruction-on-imagenet1k.md>): Image Reconstruction; ImageNet1K; PSNR: 15.515.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2203.11894>)

[PDF](<https://arxiv.org/pdf/2203.11894.pdf>)

[Implementation](<https://gradvit.github.io/>)
