Robust Aggregation for Federated Learning

Krishna Pillutla, Sham M. Kakade, Zaïd Harchaoui

Introduction

Federated Learning (FL) has emerged as a transformative paradigm for training machine learning models on decentralized data sources, such as mobile devices or medical sensors, without requiring the transfer of raw data to a central server. The standard approach, Federated Averaging (FedAvg), aggregates local model updates using a weighted arithmetic mean. While efficient, this method is fundamentally fragile. This paper introduces Robust Federated Aggregation (RFA), a novel framework designed to protect global models from malicious or faulty updates while maintaining privacy and communication efficiency.

The Vulnerability of Standard Aggregation

The primary weakness of FedAvg lies in the statistical properties of the arithmetic mean. In robust statistics, the "breakdown point" of an estimator is the proportion of incorrect observations an estimator can handle before giving an arbitrarily large result. The arithmetic mean has a breakdown point of zero, meaning a single corrupted update—whether caused by a hardware failure or a sophisticated adversarial attack—can completely derail the training process and ruin the global model.

Securing these updates is further complicated by the requirement for Secure Multi-Party Computation (SMPC). SMPC ensures that the central server cannot inspect individual device updates, only the aggregate. However, SMPC is primarily optimized for linear operations like addition. Computing robust, non-linear aggregates (like a median) securely and efficiently over a network remains a significant technical challenge.

Robust Federated Aggregation (RFA)

To address these vulnerabilities, the authors propose replacing the arithmetic mean with the Geometric Median (GM). Unlike the standard mean, the GM has an optimal breakdown point of 0.5, meaning the global model remains stable even if up to half of the participating devices provide corrupted data.

The Smoothed Weiszfeld Algorithm

The technical core of RFA is the Smoothed Weiszfeld Algorithm, a numerically stable, iterative method used to approximate the geometric median. This algorithm is particularly suited for FL because it decomposes the non-linear GM calculation into a short sequence of re-weighted linear averages.

Because each iteration is essentially a linear aggregation, RFA can be implemented using standard, off-the-shelf SMPC protocols. This allows for robust aggregation without sacrificing the privacy guarantees that make FL attractive. The authors also propose two variants:

  • One-step RFA: A single-iteration version that provides significant robustness with zero additional communication cost compared to FedAvg.
  • Personalized RFA: A variant that maintains local, device-specific parameters to better manage the tension between outlier resistance and data heterogeneity.

Experimental Evaluation

The researchers evaluated RFA using the LEAF benchmark, simulating realistic, non-i.i.d. (heterogeneous) data distributions across three tasks:

  1. EMNIST: Image classification of handwritten characters (62 classes).
  2. Shakespeare: Character-level language modeling based on speaking roles in plays.
  3. Sent140: Sentiment analysis of 1.6 million tweets partitioned by user.

Performance Under Attack

In scenarios involving an "omniscient" adversary where 25% of the network weight was corrupted, FedAvg's performance collapsed, with EMNIST accuracy dropping to near 0%. In contrast, RFA demonstrated remarkable resilience, maintaining over 40% accuracy for linear models and over 60% for convolutional neural networks (ConvNets) under the same conditions.

Efficiency and Clean Performance

RFA is highly efficient; the Smoothed Weiszfeld algorithm typically converges in just three iterations, resulting in a modest 3x communication overhead. Furthermore, in "clean" settings without malicious actors, RFA performs nearly as well as FedAvg, with only marginal accuracy drops (e.g., <0.4% on the Shakespeare dataset) caused by the inherent trade-off between robustness and data heterogeneity.

Conclusion and Future Directions

RFA provides a practical path forward for secure, robust federated learning. By linearizing a non-linear robust estimator, the authors bridge the gap between cryptographic privacy and statistical resilience.

While the empirical results are strong, several areas remain for future exploration. The current theoretical convergence guarantees are focused on least-squares estimation; extending these proofs to the non-convex landscapes of deep neural networks is a priority. Additionally, further research is needed to account for the effects of integer discretization in cryptographic implementations and to formalize the convergence theory for the personalized variant of the algorithm.

Summary updated

BibTeX
@article{pillutla2019robust,
  author = {Krishna Pillutla and Sham M. Kakade and Zaïd Harchaoui},
  title = {{Robust Aggregation for Federated Learning}},
  journal = {IEEE Trans. Signal Process.},
  year = {2019},
  doi = {10.1109/tsp.2022.3153135},
}
Figure