Differentially Private Federated Learning with Local Regularization and Sparsification

Anda Cheng, Peisong Wang, Xi Sheryl Zhang, Jian Cheng

TL;DR

This paper tackles the accuracy degradation problem in federated learning (FL) when applying user-level differential privacy (DP). They propose two novel techniques, Bounded Local Update Regularization (BLUR) and Local Update Sparsification (LUS), to naturally reduce the norm of local model updates before DP mechanisms are applied, significantly improving the privacy-utility trade-off.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients to collaboratively train a machine learning model without sharing their raw data. While this offers privacy benefits, it's vulnerable to inference attacks that can reveal sensitive information about individuals or subgroups. Differential Privacy (DP) is a strong privacy guarantee that can be applied to FL to protect against such attacks. However, existing methods for achieving user-level DP (which protects each user's entire dataset as a unit) in FL often lead to a severe drop in model accuracy. This paper investigates the root cause of this accuracy degradation, which they identify as the interaction between the DP mechanisms (clipping and noise addition) and the learning process itself. Specifically, when local updates have large norms, the clipping operation discards valuable information, and the added noise further degrades performance.

Methods

The authors propose two complementary techniques to mitigate the accuracy loss while maintaining user-level DP:

  • Bounded Local Update Regularization (BLUR): This method modifies the local objective function by adding a regularization term that explicitly penalizes the L2 norm of the local model update. This encourages local updates to stay within a certain bound, making them more "adaptive" to the clipping operation. Essentially, it acts like an adaptive learning rate, discounting updates that exceed a threshold.
  • Local Update Sparsification (LUS): This technique further reduces the norm of local updates by zeroing out parameters that have a minimal impact on the model's performance. It achieves this by calculating a "utility cost" for each parameter update and preserving only the most impactful ones, effectively making the local updates sparse.

These techniques are applied before the standard DP mechanisms (clipping and noise addition) are executed, aiming to reduce the magnitude of the updates that these mechanisms operate on.

Datasets

The paper evaluates their proposed methods on two standard datasets:

  • EMNIST: A dataset of handwritten digits and letters, grouped by writer, which naturally exhibits user-level heterogeneity.
  • CIFAR-10: An image dataset used with artificially induced non-iid data distributions using a Dirichlet distribution to simulate varying levels of data heterogeneity.

Key Insights and Ideas

  • The core issue is the interaction between DP and FL: The paper argues that the accuracy degradation in DP-FL isn't just about adding noise, but how the DP mechanisms (clipping and noise) interact with the learning process, especially when local updates are large.
  • Naturally bounding local update norms is key: Instead of solely relying on clipping and noise, the authors propose to proactively reduce the magnitude of local updates before these DP steps.
  • BLUR and LUS are synergistic: BLUR helps to keep updates within a reasonable range, while LUS further prunes less important updates. Together, they create local updates that are more amenable to DP mechanisms, leading to better utility.
  • Larger models benefit more: The improvements are more pronounced on larger models (ResNet-18 vs. CNN-2-Layers), suggesting the approach is scalable.
  • Stronger privacy (smaller epsilon) benefits more: The accuracy gains are greater when a stronger privacy guarantee (smaller epsilon) is required, which is a crucial advantage for practical DP applications.

Key Results

  • Significant accuracy improvements: The proposed method (DP-FedAvg + BLUR + LUS) consistently outperforms existing state-of-the-art methods (DP-FedAvg, AE-DPFL, DDGauss) across different privacy budgets and data distributions on both EMNIST and CIFAR-10.
  • Accuracy gains: Improvements of up to 4-5% were observed compared to vanilla DP-FedAvg, and 1-2% compared to AE-DPFL.
  • Robustness to data heterogeneity: The method shows consistent outperformance and larger accuracy gains when data heterogeneity is higher.
  • Robustness to communication frequency: The approach is less affected by increased local update steps (longer communication delays) compared to vanilla DP-FedAvg.
  • Theoretical guarantees: The paper provides theoretical analysis for both privacy guarantees and convergence rates, showing improved convergence speedup compared to prior DP-FL methods.

Limitations and Future Work

  • Hyperparameter tuning: While the paper demonstrates effectiveness, the proposed methods introduce new hyperparameters (λ for BLUR, s or c for LUS) that require careful tuning.
  • Computational overhead: Sparsification and regularization might introduce some additional computational cost at the client side, though the paper focuses on improving utility.
  • Future work could explore: The paper doesn't explicitly detail future work, but potential directions include exploring more advanced regularization or sparsification techniques, applying these methods to different FL architectures or tasks, and further investigating the theoretical trade-offs.

Summary updated

BibTeX
@misc{cheng2022differentially,
  author = {Anda Cheng and Peisong Wang and Xi Sheryl Zhang and Jian Cheng},
  title = {{Differentially Private Federated Learning with Local Regularization and Sparsification}},
  year = {2022},
  eprint = {2203.03106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.03106},
}
Figure