Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Framework for Gradient Leakage

Mislav Balunović, Dimitar I. Dimitrov|arXiv (Cornell University)|Nov 8, 2021
Adversarial Robustness in Machine LearningComputer Science13 citations
TL;DR

This paper introduces a Bayesian framework to formalize gradient leakage in federated learning, framing the optimal adversary as a Bayes-optimal optimization problem that leverages joint distributions of inputs and gradients. It demonstrates that existing attacks are approximations of this optimal adversary and shows experimentally that the Bayes optimal adversary outperforms prior methods, especially when defenses are applied, revealing that current heuristic defenses are ineffective early in training.

ABSTRACT

Federated learning is an established method for training machine learning models without sharing training data. However, recent work has shown that it cannot guarantee data privacy as shared gradients can still leak sensitive information. To formalize the problem of gradient leakage, we propose a theoretical framework that enables, for the first time, analysis of the Bayes optimal adversary phrased as an optimization problem. We demonstrate that existing leakage attacks can be seen as approximations of this optimal adversary with different assumptions on the probability distributions of the input data and gradients. Our experiments confirm the effectiveness of the Bayes optimal adversary when it has knowledge of the underlying distribution. Further, our experimental evaluation shows that several existing heuristic defenses are not effective against stronger attacks, especially early in the training process. Thus, our findings indicate that the construction of more effective defenses and their evaluation remains an open problem.

Motivation & Objective

  • To formalize gradient leakage as a Bayesian inference problem to define the theoretically optimal adversary.
  • To interpret existing gradient leakage attacks as approximations of the Bayes optimal adversary under different distributional assumptions.
  • To evaluate the effectiveness of the Bayes optimal adversary against state-of-the-art heuristic defenses.
  • To reveal that current defenses are particularly vulnerable early in training, urging evaluation throughout the training process.

Proposed method

  • Proposes a theoretical framework where the Bayes optimal adversary minimizes expected risk using the joint distribution p(x, g) of inputs and gradients.
  • Derives the optimal attack as a constrained optimization problem involving log-likelihood terms: log p(g|x) and log p(x).
  • Uses Monte Carlo sampling to approximate the Bayes optimal attack when exact computation is intractable.
  • Employs image priors such as anisotropic total variation and Gaussian priors to regularize reconstructed inputs.
  • Tunes hyperparameters (learning rate, decay, weighting) via grid search to fairly compare attacks.
  • Evaluates defenses by computing p(g|x) exactly for noise-based and pruning-based defenses to test attack performance.

Experimental results

Research questions

  • RQ1What is the theoretically optimal gradient leakage attack under a Bayesian framework?
  • RQ2How do existing attacks relate to the Bayes optimal adversary in terms of underlying distributional assumptions?
  • RQ3Can the Bayes optimal adversary outperform heuristic attacks in practice?
  • RQ4Are current heuristic defenses effective against stronger, distribution-aware attacks?
  • RQ5How does vulnerability to gradient leakage evolve during training, especially early on?

Key findings

  • The Bayes optimal adversary achieves higher reconstruction quality (measured by PSNR) than prior attacks when the true distributions are known.
  • In the case of Gaussian noise defense, the ℓ2 attack and Bayes optimal attack are equivalent up to a constant factor, confirming theoretical alignment.
  • For non-Gaussian defenses (e.g., Laplacian noise, soft pruning), the Bayes optimal adversary consistently outperforms ℓ2, ℓ1, and cosine-based attacks.
  • Defenses are significantly more vulnerable early in training, with reconstruction PSNR increasing rapidly in early epochs.
  • Existing heuristic defenses (e.g., Soteria, ATS, PRECODE) fail to protect against the Bayes optimal adversary, indicating they are insufficient against optimal attacks.
  • The study advocates for evaluating defenses throughout training, not just at convergence, due to early-stage vulnerabilities.

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.