MUDGUARD: Taming Malicious Majorities in Federated Learning using Privacy-Preserving Byzantine-Robust Clustering

Rui Wang, Xingkai Wang, Huanhuan Chen, Stjepan Picek, Zhen Liu, Kaitai Liang, Liang, KaitaiarXiv 2022 · DOI

Abstract

Byzantine-robust Federated Learning (FL) aims to counter malicious clients and train an accurate global model while maintaining an extremely low attack success rate. Most existing systems, however, are only robust when most of the clients are honest. To tackle this problem, we propose MUDGUARD, a novel Byzantine-robust and privacy-preserving FL system that can operate under malicious minority or majority on both the server and client sides. Based on DBSCAN, we design a new method for extracting features from model updates via pairwise adjusted cosine similarity to boost clustering accuracy. To thwart attacks from a malicious majority, we develop "Model Segmentation," which aggregates updates only within a cluster and sends the resulting model only to the clients of that corresponding cluster. We leverage multiple cryptographic tools to conduct clustering without sacrificing training correctness or update confidentiality.

The Challenge of Malicious Majorities

Federated Learning allows multiple parties to train a shared model without exchanging raw data. However, it is highly vulnerable to Byzantine attacks, where malicious clients send "poisoned" updates to degrade the model's accuracy or insert backdoors.

Existing defenses face a "triple threat" of limitations:

  1. Honest Majority Assumption: Most systems (like FLAME or EIFFeL) break down if more than 50% of clients are malicious.
  2. Privacy Leaks: Some robust methods (like FLTrust) require the server to hold a "clean" auxiliary dataset to verify updates, which is often impossible or violates privacy.
  3. Computational Overhead: Protecting update confidentiality using Secure Multi-Party Computation (MPC) often makes clustering and aggregation prohibitively slow.
Comparison of MUDGUARD against existing Byzantine-robust aggregation strategies.

MUDGUARD aims to provide Byzantine robustness under a malicious majority, maintain update confidentiality, and remain computationally efficient, filling a critical gap in the current landscape of robust FL.

Technical Innovations

The MUDGUARD framework introduces three key technical innovations to achieve its goals:

1. Pairwise Adjusted Cosine Similarity

To group updates, the server needs to know which ones are "similar." MUDGUARD computes an adjusted cosine similarity (subtracting the mean) between updates. This feature extraction makes it much easier to distinguish between benign and malicious updates, especially in "non-iid" scenarios where honest clients have very different local datasets. Standard cosine similarity often fails as models converge because the "signal" of the update becomes noisy; adjusting the similarity allows for high clustering accuracy throughout the entire training process.

2. Model Segmentation

This is the core defensive strategy. Instead of forcing all updates into a single global model, MUDGUARD uses the DBSCAN algorithm to cluster updates. It then aggregates updates within each cluster separately. Benign clients receive an aggregate of honest updates, while malicious clients are effectively "sandboxed" into their own poisoned model. The fundamental idea is that even if malicious clients are in their majority, their poisoned updates cannot harm benign clients if they are confined only within the malicious cluster.

3. Cryptographic Optimization

To keep updates private, MUDGUARD uses Binary Secret Sharing and SignSGD (which only considers the sign of the gradient). This allows the server to perform complex clustering logic using simple bit-wise XOR operations, significantly reducing the heavy math usually required by MPC.

Optimization of adjusted cosine similarity calculation to bit-XOR operations using SignSGD.

By leveraging SignSGD, the system turns a high-dimensional floating-point problem into a binary one. This is a massive win for privacy-preserving computation, as XORing bits is orders of magnitude faster than performing encrypted floating-point arithmetic. Additionally, Homomorphic Hash Functions (HHF) are used to ensure the server does not maliciously miscalculate the clusters.

Evaluation and Results

The system was evaluated using standard computer vision benchmarks (MNIST, FMNIST, and CIFAR-10) using LeNet and ResNet-18 architectures.

  • Robustness: MUDGUARD maintained a testing accuracy gap of only ~0.8% compared to a "perfect" no-attack baseline. Unlike competitors like FLAME or EIFFeL, MUDGUARD’s accuracy did not collapse when the malicious proportion exceeded 50%.
  • Attack Resistance: Under targeted "backdoor" attacks, the Attack Success Rate (ASR) was kept between 0% and 5%, even when 60-90% of the clients were malicious.
  • Efficiency: The optimized cryptographic design reduced communication overhead by 67%–89% and runtime by 66%–68% compared to unoptimized MPC approaches. For example, training ResNet-18 on CIFAR-10 saw training time drop from 95 seconds to 48 seconds per round.

Conclusion

MUDGUARD shifts the goal of Byzantine defense from filtering bad actors to isolating them. While highly effective, challenges remain regarding "Edge-case" attacks (which target rare data samples) and the potential for adaptive attackers to attempt to blend into benign clusters. Nonetheless, MUDGUARD represents a significant step forward in enabling secure, private Federated Learning in environments where the majority of participants cannot be trusted.

Summary updated

BibTeX
@misc{wang2022mudguard,
  author = {Rui Wang and Xingkai Wang and Huanhuan Chen and Stjepan Picek and Zhen Liu and Kaitai Liang and Liang, Kaitai},
  title = {{MUDGUARD: Taming Malicious Majorities in Federated Learning using Privacy-Preserving Byzantine-Robust Clustering}},
  year = {2022},
  eprint = {2208.10161},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.10161},
}
Figure