Certifiably-Robust Federated Adversarial Learning via Randomized Smoothing

Cheng Chen, Bhavya Kailkhura, Ryan A. Goldhahn, Yi Zhou · DOI

TL;DR

This paper introduces Fed-SmoothAdv, the first framework to bring certifiable adversarial robustness to Federated Learning (FL). By integrating randomized smoothing with federated adversarial training, the authors produce distributed models that are nearly as robust as centralized ones, while offering a "one-point" gradient estimation method that speeds up training by 2–3×.

What Problem Does This Paper Address?

Federated Learning allows multiple devices (like smartphones or IoT sensors) to collaboratively train a model without sharing their raw data. While this protects privacy, these models remain highly vulnerable to adversarial attacks—tiny, intentional perturbations to input data that cause the model to make wrong predictions.

Most existing defenses in FL are heuristic, meaning they work against specific known attacks but offer no formal guarantees. If a model is deployed in a safety-critical area like autonomous driving, we need certifiable robustness: a mathematical guarantee that the model’s prediction will not change within a certain "safety radius" (an $\ell_2$ ball) around an input. Achieving this in a distributed setting is challenging due to data heterogeneity (non-IID data) across devices and the limited computational power of edge hardware.

Methods

The authors propose Fed-SmoothAdv, which combines three key components:

  1. Randomized Smoothing (RS): Instead of classifying a single point $x$, the system classifies a "smoothed" version $G(x)$ by adding Gaussian noise to $x$ and taking the average prediction. This allows for a provable robustness radius based on the properties of the Normal distribution.
  2. Federated Adversarial Training: During the local training phase, each device doesn't just train on clean data; it generates adversarial examples specifically designed to fool the smoothed classifier and trains against them.
  3. One-Point Gradient Estimation: Standard adversarial training is computationally expensive because it requires multiple backpropagation steps to find an adversarial example. The authors implement a "one-point" estimator that uses only forward passes (function evaluations) to estimate gradients. This is significantly lighter for resource-constrained edge devices.

The overall workflow follows the standard FedAvg structure: the server sends a global model to a subset of devices, they perform local robust training, and the server aggregates the results to update the global model.

Datasets

The researchers evaluated their approach using:

  • CIFAR-10: A standard image classification benchmark.
  • AlexNet: The base neural network architecture used for training.
  • Simulated Heterogeneity: They simulated 1,000 edge devices with varying levels of data heterogeneity ($\gamma_{device}$), where some devices were heavily biased toward specific classes to mimic real-world non-IID conditions.

Key Insights and Ideas

  • The "Free" Speedup: One of the most surprising findings is that the one-point gradient estimator performs almost identically to the much more expensive stochastic estimator in terms of certified accuracy, despite having higher variance. This makes certifiable robustness much more practical for edge computing.
  • Robustness is "Transferable" to FL: The gap between centralized training (where all data is in one place) and federated training is remarkably small. Fed-SmoothAdv delivers models that are nearly as robust as those trained in a centralized fashion.
  • Resilience to Heterogeneity: Data heterogeneity—a common "killer" of FL performance—does not significantly degrade the certified accuracy of the smoothed models.
  • The Necessity of Both: The ablation study (Figure 3) reveals that neither randomized smoothing nor adversarial training is sufficient on its own. You need the synergy of both to achieve high certified accuracy at larger radii.

Key Results

  • Performance Parity: Fed-SmoothAdv achieves certified accuracy levels very close to centralized SmoothAdv across various noise levels ($\sigma$).
  • Efficiency: The one-point estimator approach is 2–3× faster than the stochastic estimator approach without a noticeable drop in robustness.
  • Ablation Success: As shown in the figure below, standard training and simple adversarial training (without smoothing) fail to provide meaningful certified robustness, whereas Fed-SmoothAdv maintains accuracy even as the adversarial perturbation radius increases.
Ablation study showing that combining adversarial training with smoothing is critical for certified accuracy.
  • Visualizing the Trade-off: Figures 1 and 2 demonstrate that while a larger smoothing parameter ($\sigma$) might lower the initial accuracy on clean data, it allows the model to remain robust over a much wider range of adversarial perturbations.
Comparison of estimators and centralized vs. federated performance at σ = 0.25.

Limitations and Future Work

While a major step forward, the paper notes a few areas for further exploration:

  • Scalability: The experiments were conducted on CIFAR-10 with AlexNet. Testing on larger datasets (like ImageNet) and more complex architectures (like ResNets or Transformers) remains for future work.
  • Theoretical Depth: While empirical results are strong, the authors aim to theoretically study the convergence properties of Fed-SmoothAdv in future iterations.
  • Complex FL Frameworks: The current work uses standard FedAvg; applying these techniques to more advanced federated frameworks (e.g., those involving clustering or asynchronous updates) is a promising next step.

Summary updated

BibTeX
@misc{chen2021certifiably,
  author = {Cheng Chen and Bhavya Kailkhura and Ryan A. Goldhahn and Yi Zhou},
  title = {{Certifiably-Robust Federated Adversarial Learning via Randomized Smoothing}},
  year = {2021},
  eprint = {2103.16031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.16031},
}
Figure