# Federated Learning with Differential Privacy: Algorithms and Performance Analysis

NbAFL adds calibrated noise to federated learning updates for differential privacy

Kang Wei, Jun Li, Ming Ding, Chuan Ma, Howard H. Yang, Farokhi Farhad and 3 more · arXiv · 2019-11-1

- **Problem** Uploaded client parameters can still leak private information in federated learning. Earlier differential privacy designs did not protect the upload step or analyse convergence theoretically.
- **Method** NbAFL clips each client's trained parameters and adds Gaussian noise before upload. The server adds more noise before broadcasting the aggregated parameters.
- **Results** With 50 clients, the training loss of NbAFL falls as the privacy parameter ǫ increases.

## Why uploaded parameters leak data

Federated learning keeps raw data on the clients, yet the parameters each client uploads can still reveal information about its training data. Adversaries can exploit the differences between the uploaded parameters, and in the downlink the broadcast global parameters can also be analysed. Earlier DP-based FL designs did not protect the parameter upload stage, and their results were simulation-based without a theoretical convergence analysis.

NbAFL therefore perturbs each client's trained parameters before upload and the aggregated parameters before broadcast, and then studies how this noise affects convergence.

## Noise at the clients and at the server

Each client first updates its local parameters with a proximal term that keeps them close to the previous global parameters, which is the step given by the local update rule below. \\\[ w\_i^{(t)} = \\arg\\min\_{w\_i}\\left(F\_i(w\_i) + \\frac{\\mu}{2}\\lVert w\_i - w^{(t-1)}\\rVert^2\\right) \\\] The client then clips the parameters so that their norm is at most the threshold C, which bounds the sensitivity used later.

Gaussian noise with standard deviation σ\_U = cL Δs\_U / ǫ is added before upload, where Δs\_U = 2C/m and L counts the uplink exposures. The server forms the weighted sum of the noised uploads with weights p\_i equal to the data share of each client, and then adds server noise n\_D before broadcasting. The constant c must satisfy c ≥ √(2 ln(1.25/δ)) for ǫ in (0, 1), which fixes the Gaussian mechanism used for both noise layers.

## Calibrating the server-side noise

The sensitivity of the aggregation step is 2C/(mN) when every client has weight 1/N, so choosing equal weights keeps the downlink sensitivity small. Theorem 1 states the server noise deviation needed for (ǫ, δ)-DP over T downlink broadcasts. \\\[ \\sigma\_D = \\frac{2cC\\sqrt{T^2 - L^2N}}{mN\\epsilon} \\quad \\text{for } T \> L\\sqrt{N}, \\qquad \\sigma\_D = 0 \\text{ for } T \\le L\\sqrt{N} \\\] Appendix B obtains this as the square root of σ\_A² minus N times σ\_U², so the server adds only the part of the noise the clients' uplink noise does not already supply.

The dependence on T and N has a clear reading: more rounds raise the leakage risk, while more clients help hide each one's contribution.

## Convergence bound under the noise

The analysis assumes each local loss is convex, satisfies the Polyak-Lojasiewicz condition with parameter l, and is β-Lipschitz and ρ-smooth, and that gradient divergence between clients is bounded by ε\_i. The B-dissimilarity lemma bounds the expected squared local gradient norm by the squared global gradient norm times B², which captures heterogeneity across clients.

Lemma 3 bounds the expected increase of the loss between consecutive aggregations by a term in the squared gradient norm, a term in the noise norm times the gradient norm, and a term in the squared noise norm. Theorem 2 combines this recursion with the Polyak-Lojasiewicz inequality and gives the bound below, with P = 1 + 2lλ\_2 depending on the proximal weight μ through λ\_2.

\\\[ \\mathbb{E}\\{F(\\tilde w^{(T)}) - F(w^\*)\\} \\le P^T\\Theta + \\left(\\frac{\\kappa\_1 T}{\\epsilon} + \\frac{\\kappa\_0 T^2}{\\epsilon^2}\\right)(1 - P^T) \\\] The first term is the initial gap Θ decayed by P^T, while the second term grows with T and carries the noise contribution, so the bound trades off the number of rounds against the noise. A better convergence performance corresponds to a lower protection level, and the bound decreases as ǫ increases.

Treating T as continuous, the bound is convex in T only when N and ǫ are large enough that κ\_1 and κ\_0 are small.

## K-random client selection

With K-random scheduling, each of the K selected clients adds the same uplink noise as in the all-client case, because each client protects only its own uplink data. The downlink noise changes, since the sampling probability K/N alters how often a client's contribution appears across rounds. Lemma 4 gives the server noise deviation for K-random scheduling through two quantities b and γ that depend on T, ǫ, K and N.

Theorem 3 gives the convergence upper bound for K-random scheduling after T aggregations, with its own contraction factor Q and noise constants α\_0 and α\_1. From Theorem 3 the authors conclude that some K strictly between 0 and N gives better convergence than full participation with a suitable K.

## Simulation setup on MNIST

The experiments use the MNIST handwritten digit dataset, with 60000 training examples and 10000 testing examples of 28 × 28 gray-level images. The baseline is a multi-layer perceptron with a single hidden layer of 256 hidden units, ReLU activations, a softmax over 10 classes and cross-entropy loss. The optimizer uses a learning rate of 0.002, and the constants ρ, β, l and B are estimated values taken from the loss function in use.

## Effect of the protection level

The loss values of NbAFL fall as ǫ increases, which the authors read as a consequence of smaller noise variance. The text describes testing accuracy as rising when the privacy parameter falls, which points the opposite way from the loss trend just described, so the figures should be checked directly for this comparison.

## Effect of the number of clients

The authors attribute the observed differences to Remark 3: more clients give larger global datasets and reduce the standard deviation of the aggregated noise.

## Effect of the number of aggregation rounds

The theoretical upper bound is plotted against the maximum number of aggregation times at ǫ = 50, 60 and 100 for 50 clients, and dotted and solid curves are compared at ǫ = 60 and 100. Under lower privacy, meaning larger ǫ, the convergence improves more, because the noise standard deviation falls, and the optimum T increases almost with ǫ.

The simulated loss is a convex function of T for a fixed protection level, which the authors take as support for the existence of an optimal T.

## Effect of the number of chosen clients

With N = 50 clients and K chosen at random per iteration, the loss is plotted across K at several protection levels, together with the non-private approach. The authors report an optimal K for each protection level, reflecting a trade-off between stronger privacy protection and larger global training datasets per round. The text for this experiment lists ǫ = 80 among the levels, while the figure caption lists ǫ = 100, so the protection levels for this plot are not consistent between the text and the caption.

## Limitations

The simulations use one MLP on MNIST, and no other dataset or model is reported. The convergence analysis assumes convex, Polyak-Lojasiewicz and smooth local losses, and the constants ρ, β, l and B are estimated values rather than measured quantities. The convexity in T is shown only when N and ǫ are large enough, so the existence of an optimal T is not established for all settings.

The threat model assumes an honest server and that uplink channels are more secure than downlink broadcasts. The simulation descriptions give no repeated-run counts or confidence intervals, so the reported curves are single results.

## Paper info

- **Authors**: Kang Wei, Jun Li, Ming Ding, Chuan Ma, Howard H. Yang, Farokhi Farhad, Shi Jin, Tony Q. S. Quek, H. Vincent Poor
- **Venue**: arXiv · Preprint
- **First published**: 2019-11-1
- **Added**: 2026-11-12
- **Updated**: 2019-11-8
- **Version**: v2
- **arXiv**: 1911.00222
- **Category**: cs.LG · cs.NI
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1911.00222v2) · [PDF ↗](https://arxiv.org/pdf/1911.00222v2)

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

Kang Wei, Jun Li, Ming Ding, Chuan Ma, Howard H. Yang, Farokhi Farhad, Shi Jin, Tony Q. S. Quek, H. Vincent Poor (2019). Federated Learning with Differential Privacy: Algorithms and Performance Analysis. arXiv:1911.00222v2. https://arxiv.org/abs/1911.00222v2

**BibTeX**

```
@misc{wei2019federated,
  title = {{Federated Learning with Differential Privacy: Algorithms and Performance Analysis}},
  author = {Kang Wei and Jun Li and Ming Ding and Chuan Ma and Howard H. Yang and Farokhi Farhad and Shi Jin and Tony Q. S. Quek and H. Vincent Poor},
  year = {2019},
  eprint = {1911.00222},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.00222v2}
}
```

## Other paper commentary

- [Tabular Data: Deep Learning is Not All You Need](https://refivu.com/en/papers/0cc42765-172d-4179-95b3-7ecf786ac425-tabular-data-deep-learning-is-not-all-you.md)
- [A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification](https://refivu.com/en/papers/f99c2916-c5f5-45e3-8503-ed9342776182-a-gentle-introduction-to-conformal-prediction-and.md)
- [European Union regulations on algorithmic decision-making and a "right to explanation"](https://refivu.com/en/papers/8d7d2fe1-f155-44ca-8f0a-551e154b6b3a-european-union-regulations-on-algorithmic-decision-making.md)
- [Robust Physical-World Attacks on Deep Learning Models](https://refivu.com/en/papers/07947804-f6f2-481e-a0c5-1e222ca2e06f-robust-physical-world-attacks-on-deep-learning-models.md)
- [Invariant Risk Minimization](https://refivu.com/en/papers/7f6a0d34-8d04-4205-b5c5-1e73e1c91b62-invariant-risk-minimization.md)
- [Equality of Opportunity in Supervised Learning](https://refivu.com/en/papers/97e846bf-1b27-4e7b-934a-caa8326bd5e9-equality-of-opportunity-in-supervised-learning.md)
- [Deep Learning for 3D Point Clouds: A Survey](https://refivu.com/en/papers/ac14ada0-64c3-463e-b921-6ac08239ba22-deep-learning-for-3d-point-clouds-a-survey.md)
- [On the Convergence of Adam and Beyond](https://refivu.com/en/papers/0071643a-b21a-4f45-ab31-5fa27e061226-on-the-convergence-of-adam-and-beyond.md)
- [H-DenseUNet: Hybrid Densely Connected UNet for Liver and Tumor Segmentation from CT Volumes](https://refivu.com/en/papers/baba5f05-45fc-4d5b-84cb-c78d65c377a5-h-denseunet-hybrid-densely-connected-unet-for-liver.md)
- [Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet](https://refivu.com/en/papers/55385708-c65a-43d7-b2e0-c4751a8d2757-tokens-to-token-vit-training-vision-transformers-from.md)
- [Recurrent Neural Networks for Multivariate Time Series with Missing Values](https://refivu.com/en/papers/04779a68-ae30-4f73-bc85-9bae7235eaaf-recurrent-neural-networks-for-multivariate-time-series-with.md)
- [Learning deep representations by mutual information estimation and maximization](https://refivu.com/en/papers/0ecc4e49-5a6d-49c7-a22d-0464db0ce259-learning-deep-representations-by-mutual-information.md)

## Terms in this paper

- [MNIST](https://refivu.com/en/terms/28b9bb66d1c6-mnist)
- [Federated Learning](https://refivu.com/en/terms/c6fc55e6f812-federated-learning)
- [differential privacy](https://refivu.com/en/terms/7f2cc899605c-differential-privacy)
- [Gaussian mechanism](https://refivu.com/en/terms/62d7b5c74c65-gaussian-mechanism)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/159abc6e-c571-4ed4-b7d1-e630e54b4510-federated-learning-with-differential-privacy-algorithms-and)
