Measuring Lower Bounds of Local Differential Privacy via Adversary Instantiations in Federated Learning

Marin Matsumoto, Tsubasa Takahashi, Seng Pei Liew, Masato OguchiarXiv 2022 · DOI

Local Differential Privacy (LDP) is widely used to protect user data in Federated Learning (FL) by adding noise to gradients. However, the theoretical privacy guarantees ($\epsilon$) often represent a pessimistic worst-case scenario that may not reflect real-world risks. This paper introduces a hypothesis-testing framework to empirically measure the "real-world" privacy of LDP-protected FL. By simulating six adversary types with varying capabilities, we demonstrate that empirical privacy leakage is often significantly lower than theoretical bounds, particularly in black-box settings. Our findings suggest that privacy parameters in FL can potentially be relaxed to improve model utility without compromising practical security.

Introduction

In the landscape of privacy-preserving machine learning, Federated Learning (FL) combined with Local Differential Privacy (LDP) has emerged as a robust standard. LDP ensures that individual user updates—typically gradients—are randomized before being sent to a central server, providing a mathematical guarantee quantified by the privacy parameter $\epsilon$.

Despite its theoretical elegance, a significant gap exists between these formal bounds and the actual privacy risks encountered in practice. Developers often struggle to interpret what a specific $\epsilon$ value means for data safety, and the inherent pessimism of worst-case theoretical analysis can lead to excessive noise injection, severely degrading model performance.

The Empirical Privacy Test Framework

To bridge this gap, we propose a framework that treats privacy measurement as a hypothesis-testing problem. The framework involves two primary roles:

  1. The Crafter: A malicious client that generates two distinct raw gradients, $g_1$ and $g_2$. It selects one, applies the LDP-SGD algorithm to add noise, and submits the resulting randomized gradient $\tilde{g}$.
  2. The Distinguisher: An adversary attempting to determine whether $\tilde{g}$ originated from $g_1$ or $g_2$.
The proposed framework for measuring empirical LDP, illustrating the interaction between the Crafter, the LDP-SGD mechanism, and the Distinguishers.

We evaluate two distinct attack surfaces:

  • White-box: The adversary has direct access to the randomized gradient $\tilde{g}$.
  • Black-box: The adversary can only observe the final updated model after the server has aggregated multiple updates.

Adversary Instantiations

We instantiated six types of adversaries with increasing levels of maliciousness to explore the privacy-utility trade-off:

  • Benign: Standard training without malicious intent.
  • Input Data (Perturbation): Using adversarial techniques like FGSM to create inputs that produce divergent gradients.
  • Parameters: Manipulating model parameters to maximize gradient differences.
  • Gradient (Flipping): Directly manipulating the sign or direction of gradients.
  • Collusion: A scenario where the server and a client cooperate to bypass protections.
  • Dummy Gradient: A worst-case attacker that crafts gradients with maximum allowed norms to minimize the relative impact of LDP noise.

Key Results and Insights

Our experiments across standard benchmarks (MNIST, CIFAR-10, Fashion-MNIST, SVHN) reveal several critical insights. Most importantly, the theoretical "worst-case" bound is extremely difficult to achieve in practice. As shown in our results, only the "Dummy Gradient" and "Collusion" attacks—which require extreme manipulation or server-side cooperation—actually reach the theoretical $\epsilon$ bound.

Empirical epsilon measurements for different adversary types compared to a theoretical bound of 4.0.

In a realistic "Benign" setting on the MNIST dataset with a theoretical $\epsilon$ of 4.0, the measured empirical $\epsilon$ was as low as 0.09 for black-box adversaries and 0.77 for white-box adversaries. This indicates that the actual privacy protection is much stronger than the formal guarantee suggests.

Furthermore, we observed a massive "Black-box Gap." The success rate of an attacker drops significantly when they can only see the final model rather than individual updates. This underscores the inherent privacy benefits of the aggregation step in FL and highlights the value of Secure Aggregation techniques. We also identified a specific vulnerability in LDP-SGD: it is most susceptible when gradients have large norms. Attackers can exploit this by crafting "dummy" gradients that push the limits of the clipping threshold, making the added noise less effective.

Conclusion

Our study provides a quantitative basis for justifying the relaxation of LDP parameters in many practical FL scenarios. Because realistic attacks perform poorly compared to the theoretical worst-case, practitioners may be able to use larger $\epsilon$ values—resulting in less noise and higher model accuracy—without significantly increasing the risk of data leakage. Future work will focus on developing "out-of-distribution" detectors to filter out the malicious "dummy" updates that approach theoretical bounds, further securing FL systems.

Summary updated

BibTeX
@misc{matsumoto2022measuring,
  author = {Marin Matsumoto and Tsubasa Takahashi and Seng Pei Liew and Masato Oguchi},
  title = {{Measuring Lower Bounds of Local Differential Privacy via Adversary Instantiations in Federated Learning}},
  year = {2022},
  eprint = {2206.09122},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.09122},
}
Figure