Quantifying Information Leakage from Gradients

Fan Mo, Anastasia Borovykh, Mohammad Malekzadeh, Hamed Haddadi, Soteris DemetriouarXiv 2021

TL;DR

This paper introduces a novel framework using "usable information theory" to quantify and pinpoint exactly how much private information is leaked from neural network gradients during collaborative learning. By analyzing this leakage layer-by-layer, they provide crucial insights into the vulnerabilities of current privacy-preserving methods and offer a path towards more robust defenses.

What Problem Does This Paper Address?

Collaborative learning allows multiple parties to train a shared deep neural network (DNN) without directly sharing their private data. Instead, they only share the gradients (the updates to the model's parameters) computed on their local data. While this seems like a privacy-preserving approach, recent research has shown that these gradients can still leak sensitive information, potentially allowing attackers to reconstruct private data or infer private attributes of the data owners. The core problem this paper addresses is the lack of a clear, quantitative understanding of where and how much private information is leaked through these gradients, and why this leakage occurs. Existing methods often provide coarse-grained analyses or rely solely on experimental results without a unifying theoretical framework.

Methods

The authors propose a framework based on usable information theory, which extends traditional information theory by considering the computational constraints of attackers. This allows them to measure the "usable" amount of private information an attacker can extract, rather than just the theoretical maximum. They define two key types of private information leakage:

  • Original Information Leakage (Data Reconstruction Attack - DRA): This measures how much of the original input data can be reconstructed from the gradients. They adapt usable information theory to estimate the probability of a successful reconstruction attack, focusing on similarity metrics (like SSIM for images) and a defined threshold.
  • Latent Information Leakage (Attribute Inference Attack - AIA): This quantifies the leakage of private attributes (e.g., gender, age) associated with the data. They directly apply the usable information definition, measuring the probability that an attacker can infer a private attribute given the gradients.

To further understand the sources of leakage, they also introduce a sensitivity analysis of the gradients. This involves measuring how much the gradients change with respect to changes in the input data (for original information) or with respect to the presence of a specific attribute (for latent information). This sensitivity measure is designed to be attack-independent, providing a more fundamental understanding of model vulnerabilities.

Datasets

The paper evaluates their framework on a variety of datasets, including:

  • Image Datasets: CIFAR-100, Labeled Faces in the Wild (LFW), Large-scale CelebFaces Attributes (CelebA), and Public Figures Face Database (PubFig). CelebA and PubFig are highlighted for containing rich attribute annotations.
  • Text Datasets: IMDB reviews and CSI corpus.

Key Insights and Ideas

  • Layer-wise Leakage is Crucial: The most significant insight is that information leakage is not uniform across a DNN. Different layers leak different amounts and types of private information, and understanding this layer-wise distribution is key to designing effective defenses.
  • Usable Information Theory is a Better Fit: Traditional information theory assumes unbounded attackers. Usable information theory, by incorporating attacker constraints, provides a more realistic measure of privacy risk in practical scenarios.
  • Sensitivity as a Proxy for Leakage: Gradient sensitivity analysis offers a valuable, attack-independent way to understand why leakage occurs, complementing the direct leakage measurements. It reveals how changes in input data or attributes affect gradient computations.
  • Classifier Layers are Hotspots: The first few layers of the classifier (typically after the convolutional feature extractor) often contain the most sensitive information for latent attributes, suggesting these are prime targets for protection.
  • Aggregation Helps, But Isn't a Silver Bullet: Gradient aggregation (e.g., in FedAvg) significantly reduces leakage, but it doesn't eliminate it entirely, especially for more sophisticated attacks.

Key Results

  • Localization of Leakage: The framework successfully localizes information leakage, showing that fully-connected layers in classifiers often hold the most latent and original information.
  • Impact of Hyperparameters:
    • Epochs: Have a relatively small impact on leakage after the initial training phases.
  • Aggregation: Mixing target gradients with a large amount of non-target information (e.g., 30x more data) significantly reduces leakage.
  • Defense Mechanisms: Applying dropout and differential privacy to more sensitive layers (identified by their analysis) is more effective.
  • Sensitivity Analysis Corroborates Leakage: The sensitivity measures generally align with the usable information leakage results, validating the framework's findings. For example, layers with higher sensitivity often show higher leakage.
  • Attack Performance Varies: The paper shows that different attack models (e.g., iDLG vs. Gradient Inverting) exhibit different leakage patterns, highlighting the need for a generalized framework.

Limitations and Future Work

  • Limitations:
    • The approximation of usable information relies on the chosen similarity metrics and thresholds, meaning the results are not strict bounds.
  • The sensitivity analysis for latent information uses a coarse-grained approach (subspace distance), which might miss finer details.
  • The computational cost of some analyses, particularly for DRA, can be high.
  • Future Work:
    • Investigate models with skip connections (like ResNets) and other architectures (RNNs, Graph Neural Networks).
  • Analyze more defense mechanisms using their proposed metrics.
  • Explore factors beyond sensitivity, such as Bayesian-based generalization analysis, to further characterize leakage.
  • Develop more efficient methods for computing usable information, especially for data reconstruction attacks.
  • The authors suggest their framework can be used to benchmark new attacks and defenses, and to design more targeted, layer-wise privacy protection mechanisms.

Summary updated

BibTeX
@misc{mo2021quantifying,
  author = {Fan Mo and Anastasia Borovykh and Mohammad Malekzadeh and Hamed Haddadi and Soteris Demetriou},
  title = {{Quantifying Information Leakage from Gradients}},
  year = {2021},
  eprint = {2105.13929},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.13929},
}
Figure