Poster: Brave: Byzantine-Resilient and Privacy-Preserving Peer-to-Peer Federated Learning

Zhangchen Xu, Fengqing Jiang, Luyao Niu, Jinyuan Jia, Radha Poovendran

Introduction

Federated Learning (FL) has emerged as a cornerstone of privacy-preserving machine learning, allowing multiple participants to collaboratively train models without sharing their raw datasets. Traditionally, this process relies on a central parameter server to aggregate local updates. However, this centralized architecture introduces a single point of failure and a high-value target for security breaches. Peer-to-Peer (P2P) Federated Learning offers a decentralized alternative, where participants communicate directly to update the global model.

While P2P FL enhances decentralization, it introduces a "double-whammy" of security risks. First, "honest-but-curious" participants can perform Membership Inference Attacks on the model updates they receive from neighbors, potentially reconstructing private training data. Second, "Byzantine" attackers can intentionally send malicious updates—such as flipped signs or random noise—to prevent the model from converging or to degrade its accuracy. The Brave protocol addresses these twin challenges simultaneously, providing a robust framework for secure, decentralized AI.

The Brave Protocol

The core innovation of Brave is its ability to perform Byzantine-resilient aggregation—specifically a "trimmed mean" approach—without ever revealing the individual model weights to other participants. The protocol operates in four distinct stages:

1. Cryptographic Commitment

To prevent attackers from adapting their malicious updates based on what honest nodes send, every participant must first "lock" their local model using a Pedersen Commitment. This cryptographic primitive ensures that once a value is committed, it cannot be changed later. This "lock-in" strategy is crucial for maintaining the integrity of the subsequent sorting and aggregation steps.

2. Privacy-Preserving Comparison

Byzantine resilience often requires identifying and discarding outliers. Brave achieves this coordinate-wise by comparing model updates using masked values. By leveraging additive homomorphic properties, participants can determine the relative order of updates (i.e., which value is larger or smaller) for every dimension of the model without learning the actual numerical values.

3. Sorting and Trimming

Once the relative order is established, the network identifies the $f$ largest and $f$ smallest values for each dimension. These outliers are discarded to mitigate the impact of malicious updates. To ensure all honest participants agree on which updates to ignore, Brave utilizes a Byzantine Fault Tolerant (BFT) broadcast mechanism. This prevents an attacker from "splitting" the network by sending different information to different peers.

4. Aggregation and Verification

The remaining "clean" updates are summed using Secure Multi-Party Computation (MPC). Finally, the protocol includes a verification step to ensure that the final aggregated result is consistent with the initial Pedersen commitments, catching any participants who attempted to cheat during the comparison or aggregation phases.

Experimental Evaluation

The researchers evaluated Brave using the MNIST (handwritten digits) and CIFAR-10 (image classification) datasets. The protocol was tested against three primary attack vectors: Label Flipping, Sign Flipping, and Gaussian Noise Injection.

The results demonstrate that Brave is highly effective at maintaining model performance under duress. In a Sign Flipping attack on the MNIST dataset—where malicious nodes send the negative of the correct gradient—a standard P2P FL system saw its accuracy drop to a mere 11.35%. In contrast, Brave maintained an accuracy of 97.02%. Across most test cases, Brave achieved classification accuracy within 1-3% of a "clean" model trained without any adversaries.

Furthermore, the protocol proved stable as the network scaled. Tests conducted with participant counts ranging from $N=10$ to $N=20$ showed consistent performance, provided the number of Byzantine nodes $f$ satisfied the condition $N > 3f + 2$.

Discussion and Limitations

Brave represents a significant advancement in securing decentralized learning, but it comes with trade-offs. The multi-stage cryptographic process, particularly the coordinate-wise comparisons, introduces significant computational overhead compared to simple averaging. Additionally, the requirement for multiple rounds of communication and BFT consensus may lead to high latency in real-world environments like mobile or IoT networks.

Future work will focus on optimizing the protocol's complexity and exploring its performance in asynchronous communication settings, where network delays are more prevalent. Despite these challenges, Brave provides a mathematically grounded path toward truly private and resilient peer-to-peer AI.

Reference: Zhangchen Xu, et al. "Brave: Byzantine-Resilient and Privacy-Preserving Peer-to-Peer Federated Learning." arXiv:2401.05562v1, 2024.

Summary updated

BibTeX
@inproceedings{xu2024poster,
  author = {Zhangchen Xu and Fengqing Jiang and Luyao Niu and Jinyuan Jia and Radha Poovendran},
  title = {{Poster: Brave: Byzantine-Resilient and Privacy-Preserving Peer-to-Peer Federated Learning}},
  booktitle = {AsiaCCS},
  year = {2024},
  url = {https://openreview.net/forum?id=mlCAgt5i3C},
}
Figure