Defending against Reconstruction Attacks through Differentially Private Federated Learning for Classification of Heterogeneous Chest X-ray Data

Joceline Ziegler, Bjarne Pfitzner, Heinrich Schulz, Axel Saalbach, Bert Arnrich

TL;DR

This paper demonstrates that standard Federated Learning (FL) is vulnerable to "reconstruction attacks" that can recover private patient X-rays from shared model updates. By integrating Rényi Differential Privacy (DP) into the training process, the authors successfully thwart these attacks while discovering that the DenseNet121 architecture is significantly more robust to the "utility-privacy trade-off" than ResNet50, maintaining high diagnostic accuracy even under strict privacy constraints.

What Problem Does This Paper Address?

Federated Learning is often touted as a privacy-preserving way to train medical AI because data never leaves the local institution. However, recent research has shown a "leakage" problem: an adversary (or even a curious central server) can use the mathematical gradients sent during training to reconstruct the original input images. In a medical context, this could mean a total breach of patient confidentiality.

While Differential Privacy (DP)—adding controlled noise to the training process—is a known defense, it usually comes at a high cost to model accuracy (utility). The authors set out to investigate how this trade-off behaves in a realistic, "messy" medical environment characterized by heterogeneous data (different sources) and imbalanced datasets (some hospitals having much more data than others).

Methods

The researchers simulated a federated environment with 36 clients and employed two main strategies:

  1. The Attack: They used an improved version of the Deep Leakage from Gradients (DLG) attack. This optimization-based approach tries to find a "dummy" image that, when passed through the model, produces gradients identical to the ones shared by the client.
  2. The Defense: They implemented Differentially Private Stochastic Gradient Descent (DP-SGD) using Rényi Differential Privacy. This involves two key steps:
  3. Gradient Clipping: Limiting the influence of any single data point.
  4. Noise Addition: Adding Gaussian noise to the aggregated gradients to mask individual contributions.

Crucially, they compared two popular architectures—DenseNet121 and ResNet50—to see if the model's structure itself influenced its privacy-utility balance.

Datasets

The study utilized two prominent public chest X-ray datasets:

  • CheXpert: A large dataset of adult patients.
  • Mendeley Chest X-Ray: A dataset focused on pediatric pneumonia.

To simulate a real-world "heterogeneous" setting, the authors distributed the data unevenly. Five clients held large chunks of CheXpert data, while 31 clients held very small, varying amounts of either CheXpert or Mendeley data. This created a highly imbalanced environment that tests the limits of standard aggregation algorithms.

Key Insights and Ideas

  • Architecture is a Privacy Variable: One of the most striking findings is that DenseNet121 is far more "DP-friendly" than ResNet50. While both performed similarly in non-private settings, ResNet's performance collapsed under DP, whereas DenseNet remained highly effective.
  • The "Late Stage" Vulnerability: Contrary to some previous studies suggesting attacks are easier on untrained models, these authors found that reconstruction attacks were actually more successful during later stages of training. This suggests that as a model converges, the gradients may become more descriptive of specific local data features.
  • Batch Normalization is a Leakage Point: The study found that freezing Batch Normalization layers was necessary for stable DP training, but it also made the models more susceptible to reconstruction attacks in the non-private baseline.
  • Successful Defense: DP wasn't just a theoretical barrier; it effectively reduced the quality of reconstructed images to unrecognizable noise. Quantitative metrics (PSNR) and auxiliary models (predicting age/sex) confirmed that no usable patient information could be extracted once DP was active.

Key Results

  • Baseline Performance: Both non-private models achieved an Area Under the Curve (AUC) of 0.94 for binary classification.
  • The DP Trade-off: At a privacy budget of $\epsilon = 6$ (a moderate privacy guarantee), DenseNet121 maintained an AUC of 0.937, essentially matching the non-private baseline. In contrast, ResNet50’s AUC plummeted to 0.764 under the same conditions.
  • Attack Success: In non-private settings, the DLG attack achieved a Peak Signal-to-Noise Ratio (PSNR) of ~12 dB, allowing for recognizable lung structures. With DP enabled ($\epsilon = 10$ to $1$), the PSNR dropped to ~6-8 dB, resulting in total visual failure of the attack.
  • Demographic Leakage: Auxiliary models could predict a patient's sex from non-private reconstructed images with an AUC of 0.69. With DP, this dropped to ~0.48 (no better than a random guess).

Limitations and Future Work

The authors acknowledge several areas for further exploration:

  • Computational Overhead: The study focused on model performance and privacy, but didn't deeply explore the communication and computational costs of DP-FL in a real-world production network.
  • Small Batch Restriction: The DLG attack is most effective on small batches. While the authors showed it can work on batches of up to 10, real-world FL might use larger batches that naturally provide some "hiding in the crowd" protection.
  • Fairness and Bias: The paper notes that DP often hits underrepresented subgroups the hardest. Future work is needed to ensure that privacy-preserving models don't inadvertently become less accurate for specific patient demographics.
  • Broader Attack Surface: This study focused on reconstruction. Future research should evaluate these models against other threats, such as property inference or membership inference attacks.

Summary updated

BibTeX
@inproceedings{ziegler2022defending,
  author = {Joceline Ziegler and Bjarne Pfitzner and Heinrich Schulz and Axel Saalbach and Bert Arnrich},
  title = {{Defending against Reconstruction Attacks through Differentially Private Federated Learning for Classification of Heterogeneous Chest X-ray Data}},
  booktitle = {Sensors},
  year = {2022},
  url = {https://openreview.net/forum?id=QhWOKYntnH},
}
Figure