Certified Robustness in Federated Learning

Motasem Alfarra, Juan C. Pérez, Egor Shulgin, Peter Richtárik, Bernard Ghanem

TL;DR

This paper investigates how Federated Learning (FL) and model personalization affect certified robustness—theoretical guarantees that a model's prediction won't change under specific input transformations. The authors demonstrate that federated training significantly outperforms local training in building robust models when data is scarce, and that local personalization is a highly efficient strategy for "robustifying" models against realistic deformations like rotation and translation.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously brittle; tiny, imperceptible perturbations (adversarial attacks) or simple semantic changes (like rotating an image by a few degrees) can flip a model's prediction. While "empirical" defenses exist, they often fail against new types of attacks. Certified robustness offers a solution by providing mathematical proof that a model's output remains constant within a certain "radius" of the input.

While certified robustness is well-studied in centralized settings, its interplay with Federated Learning (FL)—where models are trained across decentralized devices to preserve privacy—remains under-explored. The authors tackle three main questions:

  1. Does collaborating in a federated setup help or hurt a model's certified robustness?
  2. Can "personalization" (fine-tuning a global model on local data) improve robustness for individual clients?
  3. How do mixtures of global and local models behave under a robustness lens?

Methods

The researchers employ Randomized Smoothing (RS), a scalable technique that creates a "smoothed" version of a classifier by averaging its predictions over inputs subjected to noise.

  • Standard RS: Certifies against pixel-intensity perturbations (e.g., Gaussian noise).
  • DeformRS: An extension used here to certify against spatial deformations, such as rotation and translation.

They evaluate these methods within the standard Federated Averaging (FedAvg) framework and explore two personalization regimes:

  1. Simple Personalization: Fine-tuning the converged global model on local data.
  2. Mixture of Models: Minimizing a regularized loss function that balances local performance with a penalty for diverging too far from the global average model.

Datasets

The study uses two benchmark computer vision datasets:

  • CIFAR-10: A collection of 60,000 small color images in 10 classes.
  • MNIST: A dataset of 70,000 grayscale images of handwritten digits.

Data was split across clients (varying from 4 to 100) in a random, non-overlapping fashion to simulate different data-availability regimes.

Key Insights and Ideas

  • The "Wisdom of the Crowd" for Robustness: In scenarios where individual clients have limited data (the "few-local-data regime"), federated training doesn't just improve accuracy—it provides a massive boost to certified robustness (over 20% improvement) compared to training only on local data.
  • Personalization as a Robustness Shortcut: A particularly striking finding is that a global model trained without any robust augmentations can be effectively "robustified" through local personalization. This is much faster and computationally cheaper than training a robust model from scratch.
  • The Divergence Penalty: When using mixture models, the authors found that robustness generally degrades as the local model diverges from the global average. Staying "close" to the global model (a low personalization parameter $\lambda$) yielded the best certified results.
  • Reliability through Collaboration: Local training exhibits high variance; some clients end up with much worse models than others. Federated training and personalization significantly narrow this gap, providing a more reliable experience for all participants.

Key Results

  • FedAvg vs. Local: As shown in Figure 1, as the number of clients increases (meaning each client has less data), the performance of local training (green line) collapses, while Federated (blue) and Personalized (red) models maintain high certified accuracy.
Figure 1: Certified Accuracy against rotation. We plot the certified accuracy curves for rotation deformation with σ = 0.1. We vary the number of clients on which we divide the dataset. Left: 4 clients, middle: 10 clients, right: 20 clients. As the number of clients increases, performance of local training worsens.
  • Personalization Gains: Personalization consistently outperformed local training across pixel perturbations, rotations, and translations. This held true even when the global model was trained on different types of augmentations than the ones the client cared about (see Figure 4 in the paper).
  • Mixture Models: In Figure 3, the authors show that for both rotation and translation, the Average Certified Radius (ACR) is highest when the personalization parameter $\lambda$ is small (around 0.1), indicating that the global model provides a strong foundation for robustness.

Limitations and Future Work

  • Homogeneous Splits: The authors acknowledge that their data split was homogeneous (each client had the same amount and types of data). In the real world, data is often "non-IID" (heterogeneous), which might change the dynamics of these findings.
  • Algorithm Scope: The study focused on the standard Federated Averaging technique. Benchmarking other FL frameworks (like FedProx or Scaffold) for certified robustness remains an open area.
  • Robust-Specific Mixtures: The current mixture models balance accuracy and distance from the global model. The authors suggest that future work could develop mixture models specifically designed to optimize for robustness.

Summary updated

BibTeX
@misc{alfarra2022certified,
  author = {Motasem Alfarra and Juan C. Pérez and Egor Shulgin and Peter Richtárik and Bernard Ghanem},
  title = {{Certified Robustness in Federated Learning}},
  year = {2022},
  eprint = {2206.02535},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.02535},
}
Figure