Paper commentary
Differentially Private Federated Learning: A Client Level Perspective
Client-level differential privacy can be added to federated learning by randomizing client averaging
- Problem Federated learning keeps data on clients, but shared model parameters can still reveal whether a given client took part in training. Existing differential privacy methods protect single records, not whole clients.
- Method The authors replace plain federated averaging with random client sampling, clipping of each client update, and Gaussian noise. Training stops when a moments accountant's delta reaches a set threshold.
- Results With 10000 clients the model reached 0.96 accuracy at delta e-6, against 0.97 for a non-private model with 100 clients. Accuracy with 100 and 1000 clients stayed lower and did not converge.
Why hide whole clients
In federated learning, each client trains locally and only learned parameters go to a trusted curator, which returns an aggregated model. Keeping data on the clients helps privacy, but a conventionally trained model's parameters still carry information about the data used in training. Differential privacy addresses this by making it hard to tell from the learned model whether a particular data point was used.
The authors move the protected unit from a single record to an entire client's data set. The goal is that the model does not reveal whether a client took part in decentralized training, so that other clients cannot detect it through differential attacks. dp-SGD, the record-level method from earlier work, does not address this case, and a similar client-level procedure was published independently at the same time, although that study also measures element-level privacy.
Replacing averaging with sampling and noise
In federated averaging, the curator sends the central model to a fraction of clients, each client runs several mini-batch gradient steps, and the curator averages the returned models into a new central model. The proposed procedure keeps this round structure but replaces the plain average with a randomized step.
Each round a random subset Z_t of m_t clients is drawn, and only these clients receive the central model. Each client's update is the difference between its locally optimized model and the central model, and these updates are returned to the curator. Before summing, each update is scaled by dividing it by the maximum of 1 and its norm divided by S, so that every scaled update has norm below S and the sum has sensitivity bounded by S.
A Gaussian mechanism adds noise scaled to S to this sum, and the result is divided by m_t to approximate the average update. The new central model is the previous central model plus this approximate average. \\[w_{t+1} = w_t + \\frac{1}{m_t}\\left(\\sum_{k \\in Z_t} \\frac{\\Delta w_k}{\\max(1, \\|\\Delta w_k\\|_2/S)} + \\mathcal{N}(0, \\sigma^2 S^2)\\right)\\]
Dividing by m_t makes the distortion of the average governed by the noise variance S^2 sigma^2/m. If that distortion grows too large, the sub-sampled average is buried in noise and learning stops progressing, so sigma and m also set the privacy loss of the round. The idea follows dp-SGD, which also approximates an average with a Gaussian mechanism, but there the average is over per-iteration gradients of single data points.
Clipping bound and noise scale
The clipping bound S trades off two things: a small S keeps the noise variance small, while a large S keeps more of each client's original contribution. In each round the bound is set to the median norm of the unclipped client updates, following an earlier procedure. The median itself is computed without a randomized mechanism, which the authors acknowledge is strictly a privacy violation, although they judge the leakage through it to be small.
For a fixed S, the ratio r = sigma^2/m governs both distortion and privacy loss, and a higher sigma or a lower m increases the privacy loss. At a fixed r, the privacy loss is smaller when sigma and m are both small, so a choice of sigma follows from an upper bound on r and a lower bound on m. A lower bound on m is hard to estimate because client data is non-IID and client contributions can differ strongly.
To measure how similar client updates are, the authors define the between clients variance Vc as the average over all matrix entries of the variance of each entry across the K clients. The update scale Us is the average over all entries of the squared mean update of each entry.
Privacy accounting and the stopping rule
For a single Gaussian mechanism inquiry, the authors bound the probability of breaking epsilon-differential privacy with a standard theorem from the textbook they cite. Delta accumulates over repeated inquiries, so an accountant keeps track of it and blocks further answers once a threshold is reached.
The authors use the moments accountant, which gives much tighter bounds on the privacy loss than the standard composition theorem. After each new model the accountant evaluates delta from epsilon, sigma and m, and training stops once delta reaches the chosen threshold. The threshold depends on the total number of clients K, and it is chosen far below one over K so that privacy for many clients is not bought at the cost of revealing information about a few.
Simulated federated MNIST setup
The authors follow the sharding setup of the earlier federated averaging work: the sorted MNIST data is divided into shards and each client receives two of them, so most clients hold samples of only two digits. The experiments cover K values of 100, 1000 and 10000 clients, with each client holding 600 data points and data points repeated for 1000 and 10000 clients.
For every scenario a cross-validation grid search covers the number of batches per client B, the epochs per client E, the number of clients per round m, and the GM parameter sigma. Epsilon is fixed to 8, following the earlier dp-SGD work, and training stops once delta reaches e-3, e-5 and e-6 for 100, 1000 and 10000 clients.
Accuracy at the privacy budget
The best models are chosen by the highest accuracy that stays below the delta bound, with fewer communication rounds preferred when accuracy ties. With 100 clients and delta e-3, the differentially private model reached 0.78 accuracy in 11 communication rounds with communication costs of 550. Communication costs count how many times a client sends a model, summed over the rounds.
With 1000 clients and delta e-5, accuracy was 0.92 over 54 communication rounds, with communication costs of 11880. With 10000 clients and delta e-6, accuracy was 0.96 over 412 communication rounds, with communication costs of 209500.
The non-private benchmark is available only for 100 clients, where it reached 0.97 over 380 communication rounds with communication costs of 38000. The 0.96 for 10000 clients is therefore close to the 0.97 of a non-private model with a different number of clients, not a matched comparison. The accuracy curves of the best models over communication rounds show that the endpoint of each differentially private curve marks the point where the delta threshold stopped training.
Why the number of clients matters
Lowering both m_t and sigma_t in a way that keeps sigma^2/m constant had almost no effect on the accuracy gained in an early round, while reducing the privacy loss. Later rounds need a large m_t to keep gaining accuracy, so a higher privacy cost has to be accepted.
For 100 and 1000 clients accuracy does not converge, and it stays well below the non-private performance, with 78% and 92% accuracy for those two settings. Accuracy here is limited by the training budget, since training was halted once the delta threshold was reached. The authors argue that these accuracies still beat what a client could reach by training on its own data, which they do not measure in the paper, and they name hospitals as a domain with a few hundred participants.
For 10000 clients the differentially private model almost reaches the non-private accuracy, which the authors read as little cost in performance when many parties take part. The authors also argue that the observed improvement suggests that adapting the differential privacy mechanism during training is beneficial, in contrast to centralized training with differential privacy.
Between clients variance in non-private training
Figure 2 tracks accuracy, between clients variance and update scale over the rounds of a non-private run with 100 clients. The measurements come only from this non-private run, so they describe the update statistics without added noise.
The authors connect the run to the two training phases described by Shwartz-Ziv and Tishby, a label fitting phase and a data fitting phase. In the label fitting phase the client updates look alike, so the between clients variance is low, while the update scale is high because large updates move the randomly initialized weights. In the data fitting phase the between clients variance rises as each client fits its own data, and the update scale shrinks as the model approaches a local optimum.
From this the authors conclude that small client subsets may still give a representative average early in training, whereas later a larger and balanced fraction of clients is needed. They also conclude that a high update scale makes early updates less vulnerable to noise.
Limitations
Accuracy for 100 and 1000 clients did not converge within the privacy-limited training, and it stayed below the non-private level. The median used for the clipping bound is not produced by a randomized mechanism, and its privacy leakage has not been measured.
The experiments use only MNIST with the two-shards split per client, and no other dataset appears. The non-private benchmark is reported only for 100 clients, so the comparison at 1000 and 10000 clients has no matched non-private run. The lower bound on the number of sampled clients is not estimated, and the authors leave deriving optimal bounds to future work.
Paper info
- Authors
- Robin C. Geyer, Tassilo Klein, Moin Nabi
- Venue
- arXiv · Preprint
- First published
- 2017-12-20
- Added
- 2026-11-13
- Updated
- 2018-3-1
- Version
- v2
- arXiv
- 1712.07557
- Category
- cs.CR · cs.LG · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Robin C. Geyer, Tassilo Klein, Moin Nabi (2017). Differentially Private Federated Learning: A Client Level Perspective. arXiv:1712.07557v2. https://arxiv.org/abs/1712.07557v2
BibTeX
@misc{geyer2017differentially,
title = {{Differentially Private Federated Learning: A Client Level Perspective}},
author = {Robin C. Geyer and Tassilo Klein and Moin Nabi},
year = {2017},
eprint = {1712.07557},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1712.07557v2}
}