English

GradViT: Gradient Inversion of Vision Transformers

Computer Vision and Pattern Recognition 2022-03-29 v3 Artificial Intelligence Cryptography and Security Distributed, Parallel, and Cluster Computing Machine Learning

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/.

Keywords

Cite

@article{arxiv.2203.11894,
  title  = {GradViT: Gradient Inversion of Vision Transformers},
  author = {Ali Hatamizadeh and Hongxu Yin and Holger Roth and Wenqi Li and Jan Kautz and Daguang Xu and Pavlo Molchanov},
  journal= {arXiv preprint arXiv:2203.11894},
  year   = {2022}
}

Comments

CVPR'22 Accepted Paper

R2 v1 2026-06-24T10:22:20.216Z