Personalization Improves Privacy-Accuracy Tradeoffs in Federated Learning

Alberto Bietti, Chen-Yu Wei, Miroslav Dudík, John Langford, Zhiwei Steven Wu

TL;DR

Personalization in federated learning isn't just useful for tailoring models to individual users—it is also a powerful tool for protecting user privacy. By introducing a tunable parameter that balances local and private global learning, this paper demonstrates both theoretically and empirically that personalization can significantly improve the harsh tradeoffs typically found between model accuracy and differential privacy.

What Problem Does This Paper Address?

Federated learning (FL) allows multiple clients (like mobile phones or hospitals) to collaboratively train a machine learning model without sharing their raw data with a central server. However, simply keeping data local isn't enough to guarantee privacy; private information can still leak through the shared model updates.

To prevent this, researchers use user-level Differential Privacy (DP), which injects mathematical noise into the global training process to ensure that an adversary cannot deduce whether a specific user's data was used. Unfortunately, this noise introduces a steep "privacy tax": more privacy means less accurate global models.

The authors address a key question: Can we leverage model personalization to improve this privacy–accuracy tradeoff? The intuition is elegant: since purely local learning happens entirely on-device, it is perfectly private and requires no added noise. By blending local and global learning, can we shield users from the destructive effects of privacy noise?

Methods

The paper introduces Personalized-Private-SGD (PPSGD), a personalized federated learning framework that splits the model parameters into two parts:

  1. A global parameter ($w$): Shared across all users to capture common structures.
  2. Local parameters ($\theta_i$): Kept securely on each user $i$'s device to capture individual preferences.

The core innovation is the introduction of a personalization parameter, $\alpha$, which acts as the relative step-size ratio between global and local updates.

  • When $\alpha = 0$, the system defaults to purely local learning (perfect privacy, but low data efficiency).
  • When $\alpha = \infty$, it becomes purely global learning (high data efficiency, but high privacy cost).

To guarantee privacy, PPSGD operates under the billboard model of Joint Differential Privacy (JDP). During training, clients compute gradients for both local and global parameters. The global gradients are clipped to bound their impact and aggregated by the server with added Gaussian noise, while the local updates remain untouched on-device.

Datasets

The authors evaluated their approach on three distinct setups:

  • Synthetic Dataset: A simulated linear regression problem with 1,000 users where some coordinates are shared globally and others vary locally.
  • Stackoverflow Tag Prediction: A real-world text dataset consisting of 500 users, where the task is to predict question tags based on a bag-of-words representation.
  • Federated EMNIST: An image classification dataset consisting of 1,000 users. The authors tested both a linear model and a non-convex 4-layer Convolutional Neural Network (CNN).

Key Insights and Ideas

  • The Privacy Buffer: Local learning acts as a buffer against privacy noise. If the global model becomes too noisy due to strict privacy constraints, a small $\alpha$ value allows the local model to do the heavy lifting, compensating for the global model's accuracy loss.
  • Geometry of Optimization: Tuning $\alpha$ changes the geometry of the optimization landscape. In environments with high privacy noise, restricting the global step size (small $\alpha$) prevents the noisy global updates from destabilizing the local models.
  • Sample Size Thresholds: The paper mathematically proves a threshold for sample sizes ($n$). If a user has enough local data to surpass this threshold, prioritizing local learning (smaller $\alpha$) is always mathematically superior to forcing a noisy global model.

Key Results

The theoretical generalization bounds show that the "privacy cost" term scales with $\alpha$ but is completely independent of the number of samples per user ($n$). This means that as users accumulate more data, the statistical error drops while the privacy cost remains bounded.

Empirically, the benefits of tuning $\alpha$ are starkly visible across different privacy regimes:

Figure 1. Test performance of PP-SGD on the synthetic, Stackoverflow, and EMNIST datasets. Each plot shows curves for different levels of personalization α for fixed privacy noise σ and clipping parameter C. In the private setting, the green dashed line displays the privacy guarantee ϵ at iteration T for all curves in each plot (except α = 0 which is always fully private). Q is the number of sampled users and m the number of samples per user in each round. The choice αQ = 1 equalizes the variance of global and local updates due to samples.

As shown in the experimental results (Figure 1/3 above), when there is no privacy noise ($\sigma = 0.0$), global or intermediate learning ($\alpha \ge 1.0$) converges rapidly. However, when high privacy noise is introduced ($\sigma = 1.0$ or $\sigma = 10.0$), large values of $\alpha$ cause performance to crater. Instead, smaller values of $\alpha$ (closer to local learning) achieve the highest overall accuracy.

Ultimately, optimizing over the personalization space allows practitioners to trace a much better accuracy-privacy frontier than standard global training allows.

Limitations and Future Work

  • Convexity Constraints: The theoretical guarantees provided in the paper strictly hold for convex loss functions. Although the authors showed empirical success on a non-convex CNN (EMNIST CNN), extending formal proofs to deep neural networks remains an open challenge.
  • Algorithmic Simplification: The analysis is built around mini-batch SGD rather than "Local SGD" (like Federated Averaging / FedAvg), which is more common in commercial cross-device FL deployments.
  • Static Personalization: The parameter $\alpha$ is fixed throughout training. A compelling direction for future work is developing adaptive algorithms that dynamically adjust the level of personalization as training progresses.

Summary updated

BibTeX
@inproceedings{bietti2022personalization,
  author = {Alberto Bietti and Chen-Yu Wei and Miroslav Dudík and John Langford and Zhiwei Steven Wu},
  title = {{Personalization Improves Privacy-Accuracy Tradeoffs in Federated Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=4_Q0xxgGz8r},
}
Figure