Abstract
Federated learning is a recent advance in privacy protection. In this context, a trusted curator aggregates parameters optimized in decentralized fashion by multiple clients. The resulting model is then distributed back to all clients, ultimately converging to a joint representative model without explicitly having to share the data. However, the protocol is vulnerable to differential attacks, which could originate from any party contributing during federated optimization. In such an attack, a client's contribution during training and information about their data set is revealed through analyzing the distributed model. We tackle this problem and propose an algorithm for client sided differential privacy preserving federated optimization. The aim is to hide clients' contributions during training, balancing the trade-off between privacy loss and model performance. Empirical studies suggest that given a sufficiently large number of participating clients, our proposed procedure can maintain client-level differential privacy at only a minor cost in model performance.
Introduction
Federated Learning (FL) is designed to train machine learning models on decentralized data without requiring raw data to leave the client's device. While this provides a baseline level of privacy, FL remains vulnerable to "differential attacks." By analyzing model updates (gradients) sent to a central server, an adversary can potentially reconstruct private data or determine if a specific individual participated in the training set.
Most existing Differential Privacy (DP) research focuses on record-level privacy, protecting individual data points. However, in federated settings where a single user may contribute thousands of records, this is insufficient. This paper addresses client-level privacy, ensuring that an observer cannot determine whether an entire client—and all their associated data—was part of the training process.
Methodology
The proposed framework integrates a randomized mechanism into the standard "Federated Averaging" protocol. The central server (curator) performs two primary operations to ensure privacy:
- Random Sub-sampling: In each communication round, the server selects a random subset of clients ($m_t$) from the total pool ($K$), providing a "privacy amplification" effect.
- Distorting Updates: To bound the influence of any single client, updates are clipped and then perturbed with noise.
As shown in the update rule above, the server "clips" the norm of each client's update to a threshold $S$. Gaussian noise, calibrated to this sensitivity $S$ and the desired privacy budget, is then added to the sum of these clipped updates. To track privacy leakage over time, the authors employ the Moments Accountant, which allows for more training rounds by providing tighter privacy guarantees than standard composition methods.
Experimental Setup
The approach was evaluated using the MNIST dataset with a non-IID (Independent and Identically Distributed) split to simulate realistic federated conditions. Data was divided into shards such that each client typically only saw two types of digits. The researchers tested scenarios with client pools of 100, 1,000, and 10,000, with each client holding 600 data points.
Results
The experiments reveal a significant relationship between the size of the client pool and the feasibility of maintaining high model utility under DP constraints.
As illustrated in the figure, the "privacy tax" is substantial for small groups (100 clients), where accuracy drops significantly to maintain privacy. However, as the number of clients increases, the noise required to hide a single client's contribution is spread across a larger aggregate. With 10,000 clients, the DP model achieved 96% accuracy, nearly matching the 97% accuracy of the non-private baseline.
| Scenario | Privacy ($\delta'$) | Accuracy (ACC) | Comm. Rounds (CR) |
|---|---|---|---|
| Non-DP (100 clients) | - | 0.97 | 380 |
| DP (100 clients) | $10^{-3}$ | 0.78 | 11 |
| DP (1,000 clients) | $10^{-5}$ | 0.92 | 54 |
| DP (10,000 clients) | $10^{-6}$ | 0.96 | 412 |
Discussion and Insights
- The Power of the Crowd: Client-level DP is highly effective at scale. For large-scale consumer applications involving millions of devices, the cost of privacy becomes negligible.
- Update Dynamics: The authors observed that early in training, updates have a high scale (the "label fitting" phase), making them naturally more robust to the noise added for DP. Increasing the number of participating clients ($m_t$) over time can further optimize performance.
- Limitations: A current limitation is the use of the median norm of unclipped updates to set the threshold $S$, which itself could theoretically leak information. Additionally, while successful on MNIST, further research is required to validate these results on more complex datasets and tasks like natural language processing.
Summary updated