Skip to main content
QUICK REVIEW

[Paper Review] SAPAG: A Self-Adaptive Privacy Attack From Gradients

Yijue Wang, Jieren Deng|arXiv (Cornell University)|Sep 14, 2020
Privacy-Preserving Technologies in DataComputer Science24 references8 citations
TL;DR

SAPAG is a self-adaptive privacy attack that reconstructs training data from gradients in distributed learning by using an adaptive Gaussian kernel to measure gradient differences, enabling high-fidelity reconstruction across diverse DNN architectures, weight initializations, and training phases—outperforming prior methods like DLG in accuracy and convergence speed.

ABSTRACT

Distributed learning such as federated learning or collaborative learning enables model training on decentralized data from users and only collects local gradients, where data is processed close to its sources for data privacy. The nature of not centralizing the training data addresses the privacy issue of privacy-sensitive data. Recent studies show that a third party can reconstruct the true training data in the distributed machine learning system through the publicly-shared gradients. However, existing reconstruction attack frameworks lack generalizability on different Deep Neural Network (DNN) architectures and different weight distribution initialization, and can only succeed in the early training phase. To address these limitations, in this paper, we propose a more general privacy attack from gradient, SAPAG, which uses a Gaussian kernel based of gradient difference as a distance measure. Our experiments demonstrate that SAPAG can construct the training data on different DNNs with different weight initializations and on DNNs in any training phases.

Motivation & Objective

  • Address the limitations of existing gradient-based reconstruction attacks that lack generalizability across different DNN architectures and weight initializations.
  • Overcome the restriction of prior methods that only succeed in early training phases by enabling reconstruction at any stage of model training.
  • Develop a robust, self-adaptive framework that dynamically adjusts to the unique gradient distribution of the target model to improve reconstruction fidelity.
  • Demonstrate the effectiveness of the attack on both computer vision and natural language processing tasks, including transformer-based models.

Proposed method

  • Proposes a self-adaptive gradient distance measure using a Gaussian kernel whose scaling factor is dynamically learned from the target model’s gradient distribution.
  • Employs an optimization process that iteratively updates dummy inputs to minimize the gradient difference between the dummy and real training data using the adaptive Gaussian kernel as the loss metric.
  • Uses AdamW optimizer for stable and fast convergence during reconstruction, with hyperparameters tuned per model architecture.
  • Applies the method to both single-image and batched training data reconstruction, demonstrating scalability and efficiency.
  • For NLP tasks, recovers original text by multiplying reconstructed embeddings with the Moore–Penrose pseudoinverse of the embedding weight matrix.
  • Adapts the attack framework to work with diverse architectures, including ResNet, LeNet-5, and transformer-based models, regardless of initialization or training phase.

Experimental results

Research questions

  • RQ1Can a gradient-based reconstruction attack generalize across different DNN architectures, such as ResNet and Transformers?
  • RQ2Does the attack remain effective across various weight initialization strategies and training phases?
  • RQ3How does the adaptive Gaussian kernel improve reconstruction accuracy and convergence speed compared to non-adaptive methods like DLG?
  • RQ4Can the attack reconstruct batched training data efficiently without increased computational cost?
  • RQ5To what extent can the attack reconstruct token-wise text in NLP models, and how does it compare to existing methods in terms of semantic coherence?

Key findings

  • SAPAG successfully reconstructs training data on ResNet-18 and LeNet-5 with different weight initializations, achieving high-fidelity image reconstruction even in later training phases.
  • The attack maintains high reconstruction accuracy for both training and validation images, indicating that gradient information remains informative throughout training.
  • SAPAG converges faster and achieves higher reconstruction accuracy than DLG, particularly in deeper networks like ResNet-18.
  • For batched training data (batch size = 8), SAPAG reconstructs all 8 images with comparable quality to single-image reconstruction, converging in 20,000 iterations using AdamW.
  • On a transformer-based language model, SAPAG recovers most key words in the original text, producing coherent and meaningful sentences, outperforming DLG in word recovery and semantic fidelity.
  • The L-BFGS optimizer is unstable on deeper networks like ResNet-18, while AdamW provides consistent and superior performance across all evaluated models.

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.