The Skellam Mechanism for Differentially Private Federated Learning

Naman Agarwal, Peter Kairouz, Ziyu Liu

Abstract

We introduce the multi-dimensional Skellam mechanism, a discrete differential privacy mechanism based on the difference of two independent Poisson random variables. To quantify its privacy guarantees, we analyze the privacy loss distribution via a numerical evaluation and provide a sharp bound on the R'enyi divergence between two shifted Skellam distributions. While useful in both centralized and distributed privacy applications, we investigate how it can be applied in the context of federated learning with secure aggregation under communication constraints. Our theoretical findings and extensive experimental evaluations demonstrate that the Skellam mechanism provides the same privacy-accuracy trade-offs as the continuous Gaussian mechanism, even when the precision is low. More importantly, Skellam is closed under summation and sampling from it only requires sampling from a Poisson distribution -- an efficient routine that ships with all machine learning and data analysis software packages. These features, along with its discrete nature and competitive privacy-accuracy trade-offs, make it an attractive practical alternative to the newly introduced discrete Gaussian mechanism.

Introduction

Differential Privacy (DP) has become the standard for protecting individual data in machine learning, typically implemented via the Gaussian mechanism. However, deploying continuous noise mechanisms in production environments presents significant challenges. First, numerical instability on finite-precision hardware can compromise theoretical privacy guarantees. Second, Federated Learning (FL) often utilizes Secure Aggregation (SecAgg), which operates on discrete integers and modular arithmetic, making continuous noise incompatible. Finally, existing discrete alternatives like the Binomial or Discrete Gaussian mechanisms often lack standard library support or fail to be "closed under summation," complicating privacy accounting in distributed settings.

The Skellam Mechanism

To address these hurdles, we propose the Skellam mechanism. The Skellam distribution is defined as the difference between two independent Poisson random variables. Its primary advantage is its simplicity: sampling only requires a Poisson sampler, which is ubiquitous in major numerical libraries like NumPy, TensorFlow, and PyTorch.

Crucially, the Skellam mechanism is closed under summation. This means the sum of local Skellam noise added by multiple clients results in a global update that follows a known Skellam distribution. This property avoids the "sum divergence" issues seen in the Distributed Discrete Gaussian (DDGauss) mechanism, where privacy guarantees can degrade as the number of participants increases.

Privacy Analysis and Composition

We provide a sharp bound for Rényi Differential Privacy (RDP) and show that the Skellam mechanism's guarantees are essentially identical to the Gaussian mechanism, differing only by a negligible factor. As shown in the figure below, the privacy loss $\epsilon$ for the Skellam mechanism tracks the Gaussian baseline almost perfectly across hundreds of training steps $T$.

Privacy composition over multiple steps T shows Skellam tracking the Gaussian mechanism closely.

Federated Learning Integration

Our end-to-end pipeline for private FL includes gradient clipping, random rotations (via randomized Hadamard transforms) to spread information, and conditional stochastic rounding to convert continuous gradients to integers. This allows for distributed noising where local Skellam noise aggregates into a private global update via SecAgg protocols.

Empirical Performance

We evaluated the Skellam mechanism on benchmarks including Federated EMNIST, Shakespeare, and Stack Overflow. In high-dimensional regimes typical of modern neural networks ($d=2^{20}$), the Skellam mechanism matches the privacy-accuracy trade-offs of the continuous Gaussian mechanism and outperforms DDGauss, particularly in scenarios with low local noise.

Privacy-accuracy trade-offs in high-dimensional settings ($d=2^{20}$) demonstrate Skellam's parity with the Gaussian mechanism.

Beyond accuracy, the Skellam mechanism offers significant engineering benefits. Our implementation is up to 1000x faster than non-vectorized Discrete Gaussian samplers and 40% faster than the best available vectorized implementations in TensorFlow. This efficiency, combined with its discrete nature and robust privacy accounting, makes the Skellam mechanism a highly attractive alternative for production-grade private federated learning.

Summary updated

Abstract

We introduce the multi-dimensional Skellam mechanism, a discrete differential privacy mechanism based on the difference of two independent Poisson random variables. To quantify its privacy guarantees, we analyze the privacy loss distribution via a numerical evaluation and provide a sharp bound on the R\'enyi divergence between two shifted Skellam distributions. While useful in both centralized and distributed privacy applications, we investigate how it can be applied in the context of federated learning with secure aggregation under communication constraints. Our theoretical findings and extensive experimental evaluations demonstrate that the Skellam mechanism provides the same privacy-accuracy trade-offs as the continuous Gaussian mechanism, even when the precision is low. More importantly, Skellam is closed under summation and sampling from it only requires sampling from a Poisson distribution -- an efficient routine that ships with all machine learning and data analysis software packages. These features, along with its discrete nature and competitive privacy-accuracy trade-offs, make it an attractive practical alternative to the newly introduced discrete Gaussian mechanism.
BibTeX
@inproceedings{agarwal2021skellam,
  author = {Naman Agarwal and Peter Kairouz and Ziyu Liu},
  title = {{The Skellam Mechanism for Differentially Private Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=bBg2fIku0X1},
}
Figure