Mitigating Byzantine Attacks in Federated Learning

Saurav Prakash, Amir Salman AvestimehrarXiv 2020

Introduction

Federated Learning (FL) enables collaborative model training across decentralized parties without requiring the exchange of raw data. However, real-world deployments face two critical challenges: privacy leakage from model updates and the presence of "Byzantine" or faulty clients. In large-scale systems, clients such as mobile devices or remote medical facilities often experience hardware or software malfunctions, leading to erroneous updates that can significantly degrade global model performance.

Existing fault-tolerant aggregation methods often assume independent and identically distributed (IID) data across clients. In practice, data is frequently non-IID—for instance, medical data varies significantly by region. Standard robust aggregators like Median or Krum often fail in these settings, misidentifying valid, unique updates as faults. To address this, we introduce DiverseFL, a framework designed to provide security and resilience in highly heterogeneous environments.

The DiverseFL Framework

DiverseFL leverages Trusted Execution Environments (TEEs), specifically Intel SGX, to perform secure fault detection and aggregation. The core innovation is a per-client verification mechanism that uses "guiding updates" to filter out Byzantine contributions without compromising privacy.

Overview of the DiverseFL workflow, from offline sample sharing to secure model aggregation.

The process consists of four primary stages:

  1. Offline Phase: Each client securely transmits a small, representative sample (1–3%) of their local data to the TEE enclave. This happens only once.
  2. Training Phase: While clients perform standard local training, the TEE enclave uses the stored samples to compute a "guiding update" ($\tilde{\Delta}_j$) specifically for each client $j$.
  3. Fault Identification: Upon receiving a client's update ($z_j$), the TEE compares it against the corresponding guiding update using two metrics: Direction Similarity ($C_1$) and Length Similarity ($C_2$).
  4. Secure Aggregation: Only updates that satisfy the similarity criteria are aggregated to update the global model. Since all computations occur within the TEE, the server administrator never accesses raw updates or data samples.

Experimental Evaluation

DiverseFL was evaluated on three standard benchmarks: MNIST, CIFAR-10, and CIFAR-100. To simulate realistic non-IID conditions, data was partitioned by class across clients.

Key Results

The framework demonstrates significant improvements over existing state-of-the-art robust aggregators, including Median, Bulyan, and FLTrust.

  • Accuracy Gains: In non-IID settings, DiverseFL achieved up to a 39% absolute improvement in test accuracy. As shown in the figure below, DiverseFL consistently tracks the performance of "OracleSGD"—a theoretical upper bound where the server has perfect knowledge of faulty nodes.
  • Robustness to Fault Types: The system remains resilient against various Byzantine behaviors, including Gaussian noise, sign-flip attacks, and same-value faults.
  • High Failure Tolerance: DiverseFL maintains stability even when up to 75% of participating nodes are faulty, a scenario where traditional methods typically collapse.
Test accuracy comparison across different fault types and datasets, demonstrating DiverseFL's near-oracle performance.

Discussion and Insights

A key takeaway from this work is that similarity in Federated Learning is relative. In a non-IID landscape, comparing one client's update to the global average is insufficient. Instead, DiverseFL compares a client's update to what is expected based on a tiny sample of their own data. Remarkably, sharing as little as 1% of local data is sufficient to generate accurate guiding updates.

Furthermore, the use of TEEs proves scalable. Timing analyses indicate that a single TEE can support over 300 clients concurrently with their local training, adding no significant latency to the overall training process.

Limitations and Future Directions

While effective against "honest-but-faulty" clients, future research is needed to evaluate DiverseFL against sophisticated malicious adversaries who might attempt to craft poisonous updates that mimic valid ones. Additionally, scaling to extremely large models (e.g., LLMs) will require addressing the memory constraints of current TEE hardware. Finally, while the data samples are small and secured, exploring synthetic or differentially private data for guiding updates could further enhance privacy for highly regulated industries.

Summary updated

BibTeX
@misc{prakash2020mitigating,
  author = {Saurav Prakash and Amir Salman Avestimehr},
  title = {{Mitigating Byzantine Attacks in Federated Learning}},
  year = {2020},
  eprint = {2010.07541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.07541},
}
Figure