Skip to main content
QUICK REVIEW

[Paper Review] See through Gradients: Image Batch Recovery via GradInversion

Hongxu Yin, Arun Mallya|arXiv (Cornell University)|Apr 15, 2021
Adversarial Robustness in Machine LearningComputer Science42 references30 citations
TL;DR

GradInversion reconstructs individual images from batch-averaged gradients for large networks and datasets, using label restoration and group/realism regularizers, revealing privacy risks in gradient-based learning.

ABSTRACT

Training deep neural networks requires gradient estimation from data batches to update parameters. Gradients per parameter are averaged over a set of data and this has been presumed to be safe for privacy-preserving training in joint, collaborative, and federated learning applications. Prior work only showed the possibility of recovering input data given gradients under very restrictive conditions - a single input point, or a network with no non-linearities, or a small 32x32 px input batch. Therefore, averaging gradients over larger batches was thought to be safe. In this work, we introduce GradInversion, using which input images from a larger batch (8 - 48 images) can also be recovered for large networks such as ResNets (50 layers), on complex datasets such as ImageNet (1000 classes, 224x224 px). We formulate an optimization task that converts random noise into natural images, matching gradients while regularizing image fidelity. We also propose an algorithm for target class label recovery given gradients. We further propose a group consistency regularization framework, where multiple agents starting from different random seeds work together to find an enhanced reconstruction of original data batch. We show that gradients encode a surprisingly large amount of information, such that all the individual images can be recovered with high fidelity via GradInversion, even for complex datasets, deep networks, and large batch sizes.

Motivation & Objective

  • Motivate privacy risks in gradient-based collaborative and federated learning by showing batch-gradient leakage.
  • Develop GradInversion to recover original images from averaged batch gradients in large networks and datasets.
  • Propose techniques to identify ground-truth labels and improve reconstruction fidelity through regularization.

Proposed method

  • Frame input reconstruction as an optimization that minimizes gradient-m matching loss plus realism regularizers.
  • Restore batch labels by exploiting gradients from the final fully connected layer.
  • Impose fidelity regularization using total-variation, L2, and BatchNorm priors to produce realistic images.
  • Introduce group consistency regularization by jointly optimizing multiple seeds and registering outputs to form a consensus.
  • Enhance optimization with Langevin-like noise to promote exploration during reconstruction.

Experimental results

Research questions

  • RQ1Can GradInversion recover original images from batch-averaged gradients in large networks and high-resolution datasets?
  • RQ2How accurately can batch labels be recovered from the gradients of the final classification layer?
  • RQ3Do fidelity and group-consistency regularizations improve the realism and fidelity of recovered images?
  • RQ4What is the impact of batch size on reconstruction quality and image identifiability?
  • RQ5How does the method compare to prior gradient-inversion approaches for ImageNet-scale tasks?

Key findings

  • GradInversion can recover detailed 224×224 ImageNet images from ResNet-50 gradients for batch sizes up to 48.
  • Label restoration from the final fully connected layer gradients is highly effective, achieving high accuracy even for larger batches.
  • Fidelity regularization (including BN priors) substantially improves visual quality and quantitative similarity to originals.
  • Group consistency regularization with multi-seed optimization and registration further enhances reconstruction fidelity.
  • GradInversion outperforms prior methods in both visual and quantitative metrics on ImageNet gradients.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.