Skip to main content
QUICK REVIEW

[Paper Review] Data Leakage in Federated Averaging

Dimitar I. Dimitrov, Mislav Balunović|arXiv (Cornell University)|Jun 24, 2022
Privacy-Preserving Technologies in DataComputer Science15 citations
TL;DR

This paper proposes a novel optimization-based data leakage attack targeting Federated Averaging (FedAvg), overcoming challenges like hidden intermediate weights, multiple local batches, and simultaneous label-parameter changes. By combining automatic differentiation for simulation-based reconstruction loss and an epoch order-invariant prior, the method recovers 45% of images on FEMNIST with 10 local epochs and 10 batches per epoch—significantly outperforming baseline FedSGD attacks.

ABSTRACT

Recent attacks have shown that user data can be recovered from FedSGD updates, thus breaking privacy. However, these attacks are of limited practical relevance as federated learning typically uses the FedAvg algorithm. Compared to FedSGD, recovering data from FedAvg updates is much harder as: (i) the updates are computed at unobserved intermediate network weights, (ii) a large number of batches are used, and (iii) labels and network weights vary simultaneously across client steps. In this work, we propose a new optimization-based attack which successfully attacks FedAvg by addressing the above challenges. First, we solve the optimization problem using automatic differentiation that forces a simulation of the client's update that generates the unobserved parameters for the recovered labels and inputs to match the received client update. Second, we address the large number of batches by relating images from different epochs with a permutation invariant prior. Third, we recover the labels by estimating the parameters of existing FedSGD attacks at every FedAvg step. On the popular FEMNIST dataset, we demonstrate that on average we successfully recover >45% of the client's images from realistic FedAvg updates computed on 10 local epochs of 10 batches each with 5 images, compared to only <10% using the baseline. Our findings show many real-world federated learning implementations based on FedAvg are vulnerable.

Motivation & Objective

  • To identify and address the key challenges in recovering client data from FedAvg updates, which are more complex than in FedSGD due to intermediate weight changes and batch diversity.
  • To develop a practical data leakage attack that works on realistic FedAvg configurations with multiple local epochs and batches.
  • To improve reconstruction accuracy by estimating label counts and leveraging structural priors that are invariant to batch order across epochs.
  • To demonstrate that FedAvg, widely used in real-world systems, is vulnerable to data reconstruction attacks despite its privacy-preserving design.

Proposed method

  • The attack uses automatic differentiation to simulate the client's local training process, matching the final model weights by optimizing dummy inputs and labels.
  • It introduces a simulation-based reconstruction loss ($\mathcal{L}_{\text{sim}}$) that accounts for changing model weights during local updates.
  • An epoch order-invariant prior ($\mathcal{L}_{\text{inv}}$) compresses image sequences using an order-invariant function $g$ (e.g., mean or max) and compares them across epochs to reduce batch complexity.
  • The method estimates label counts ($\widetilde{\lambda}^c$) using a FedSGD-inspired extension, which informs the reconstruction process and improves accuracy.
  • It combines $\mathcal{L}_{\text{sim}}$ and $\mathcal{L}_{\text{inv}}$ with a learnable weight $\lambda_{\text{inv}}$ to balance reconstruction fidelity and structural consistency.
  • For FEMNIST, it uses $g = \text{mean}$ and $D_{\text{inv}} = \ell_2$; for CIFAR100, it uses $g = \text{conv}+\max$ with $D_{\text{inv}} = \ell_2$ to enhance feature-level invariance.

Experimental results

Research questions

  • RQ1Can data be effectively reconstructed from FedAvg updates despite the absence of intermediate model weights and multiple local batches?
  • RQ2How does an epoch order-invariant prior improve reconstruction when the sequence of batches is unknown and varies across epochs?
  • RQ3To what extent does combining simulation-based loss with structural priors outperform existing FedSGD-based attacks on FedAvg?
  • RQ4What role do label count estimation and feature-level priors play in improving reconstruction quality for complex datasets like CIFAR100?
  • RQ5How do different choices of order-invariant functions and distance metrics affect the final reconstruction performance?

Key findings

  • The proposed attack successfully recovers 45% of client images on the FEMNIST dataset using realistic FedAvg settings (10 local epochs, 10 batches per epoch, 5 images per batch), compared to less than 10% with baseline FedSGD attacks.
  • The use of an epoch order-invariant prior significantly improves reconstruction quality, especially on CIFAR100, where the combination of random convolution and max pooling yields the best results.
  • The $\ell_2$ distance and mean function consistently outperform $\ell_1$ and max functions, with $\ell_2$ showing better generalization across datasets.
  • On FEMNIST, the addition of convolutional features does not improve performance, suggesting simpler priors suffice for simpler datasets.
  • On CIFAR100, the $\text{conv}+\max$ prior increases reconstruction accuracy by 2.8 percentage points compared to $\text{mean}$, indicating that complex feature extraction enhances performance on complex data.
  • Ablation studies confirm that both the simulation loss and the order-invariant prior contribute significantly to reconstruction success, with the latter being particularly effective in mitigating batch order ambiguity.

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.