Differentially Private Federated Learning with Normalized Updates

Rudrajit Das, Abolfazl Hashemi, sujay sanghavi, Inderjit S DhillonOPT @ NeurIPS 2022

TL;DR

This paper introduces DP-NormFedAvg, a novel approach to differentially private federated learning that replaces the standard update clipping with normalization. This change aims to improve convergence by ensuring that the added noise for privacy doesn't overwhelm small client updates, a common issue with clipping. Theoretically and empirically, DP-NormFedAvg demonstrates better convergence and accuracy compared to its clipping-based counterpart.

What Problem Does This Paper Address?

Federated learning (FL) allows multiple clients to collaboratively train a machine learning model without sharing their raw data. To protect individual client privacy, differential privacy (DP) is often incorporated. A common DP technique in FL is to clip client updates (to bound their magnitude) and then add Gaussian noise. However, this clipping mechanism has a critical flaw: when client updates become very small (below the clipping threshold), the added noise, which is proportional to the clipping threshold, can drown out the actual update signal. This significantly hinders the model's convergence, especially in scenarios where updates naturally become small. This paper addresses this convergence issue by proposing an alternative to clipping.

Methods

The core of this paper is the introduction of DP-NormFedAvg. Instead of clipping client updates to a maximum norm, DP-NormFedAvg normalizes them. This means each client's update is rescaled to have a fixed norm (specifically, a scaled version of the unit vector along the update). This normalization step ensures that the update's magnitude is always controlled, preventing it from becoming arbitrarily small relative to the added privacy noise.

The authors then provide theoretical convergence guarantees for both DP-NormFedAvg and the standard DP-FedAvg with clipping. They analyze these algorithms under convex and L-smooth objective functions, deriving bounds on their convergence rates. A key theoretical contribution is the asymptotic comparison of the two methods, showing that DP-NormFedAvg offers better convergence in over-parameterized settings.

Datasets

The paper evaluates its proposed method on the following datasets:

  • Fashion-MNIST (FMNIST)
  • CIFAR-10
  • CIFAR-100

These are standard image classification datasets. The authors also use a synthetic quadratic problem for illustrative purposes.

Key Insights and Ideas

  • The "Drowning Out" Problem of Clipping: The paper highlights a fundamental issue with clipping in DP-FL: small updates get lost in the noise. This is because the noise magnitude is tied to the clipping threshold, not the actual update magnitude.
  • Normalization as a Solution: By normalizing updates to a fixed norm, DP-NormFedAvg ensures that the signal-to-noise ratio (SNR) remains more favorable, even when original updates are small. This intuitively leads to better convergence.
  • Theoretical Advantage in Over-parameterization: The authors theoretically demonstrate that DP-NormFedAvg achieves better asymptotic convergence rates than clipping in over-parameterized settings, a common scenario in modern deep learning.
  • Empirical Superiority: Experiments on real-world datasets confirm the theoretical findings, showing that DP-NormFedAvg consistently outperforms DP-FedAvg with clipping in terms of test accuracy.

Key Results

  • Theoretical Convergence: The paper provides convergence guarantees for both DP-FedAvg with clipping and DP-NormFedAvg. They show that DP-NormFedAvg has better asymptotic convergence in over-parameterized settings.
  • Experimental Accuracy: On FMNIST, CIFAR-10, and CIFAR-100, DP-NormFedAvg achieved higher test accuracy than DP-FedAvg with clipping across different privacy levels (ε=5 and ε=2). For example, on CIFAR-100 with ε=5, normalization achieved 59.36% accuracy compared to 56.53% for clipping. The improvement was more pronounced at lower privacy levels (higher ε).
  • Improved SNR: Experiments showed that the signal-to-noise ratio (SNR) for normalization was consistently higher than for clipping, supporting the intuition behind the method.

Limitations and Future Work

  • Convex Objectives: The theoretical analysis in this paper focuses on convex objectives. The authors acknowledge that they did not theoretically compare normalization and clipping in general convex settings or in the non-convex case.
  • Future Work: The authors suggest that extending the theoretical analysis to non-convex settings and exploring the implications of normalization in those scenarios would be interesting future research directions.

Summary updated

BibTeX
@inproceedings{das2022differentially,
  author = {Rudrajit Das and Abolfazl Hashemi and sujay sanghavi and Inderjit S Dhillon},
  title = {{Differentially Private Federated Learning with Normalized Updates}},
  booktitle = {OPT @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=0FllaTqjor7},
}
Figure