ABC-FL: Anomalous and Benign client Classification in Federated Learning

Hyejun Jeong, Joonyong Hwang, Tai-Myung ChungarXiv 2021

Abstract

Federated Learning is a distributed machine learning framework designed for data privacy preservation i.e., local data remain private throughout the entire training and testing procedure. Federated Learning is gaining popularity because it allows one to use machine learning techniques while preserving privacy. However, it inherits the vulnerabilities and susceptibilities raised in deep learning techniques. For instance, Federated Learning is particularly vulnerable to data poisoning attacks that may deteriorate its performance and integrity due to its distributed nature and inaccessibility to the raw data. In addition, it is extremely difficult to correctly identify malicious clients due to the non-Independently and/or Identically Distributed (non-IID) data. The real-world data can be complex and diverse, making them hardly distinguishable from the malicious data without direct access to the raw data. Prior research has focused on detecting malicious clients while treating only the clients having IID data as benign. In this study, we propose a method that detects and classifies anomalous clients from benign clients when benign ones have non-IID data. Our proposed method leverages feature dimension reduction, dynamic clustering, and cosine similarity-based clipping. The experimental results validates that our proposed method not only classifies the malicious clients but also alleviates their negative influences from the entire procedure. Our findings may be used in future studies to effectively eliminate anomalous clients when building a model with diverse data.

Introduction

Federated Learning (FL) allows multiple devices to train a shared model without ever sending their raw data to a central server. While this architecture is excellent for privacy, its "black box" nature makes FL highly vulnerable to poisoning attacks. An attacker can submit malicious model updates to install a "backdoor"—for example, causing a self-driving car to misidentify a stop sign with a specific sticker as a speed limit sign.

The primary challenge in FL security is identifying these malicious clients. In real-world deployments, legitimate users often possess very different data distributions (non-IID). For instance, one user might write the number "7" with a crossbar, while another does not. Previous defense methods frequently mistook these legitimate, diverse users for attackers, leading to high false-positive rates and the exclusion of valuable data from the global model. ABC-FL (Anomalous and Benign client Classification) is designed to solve this by distinguishing between truly malicious attackers and "benign but different" clients.

The ABC Module Architecture

The core innovation of this research is the ABC Module, a three-stage pipeline that executes on the server side to filter client contributions:

  1. Dimension Reduction (PCA): The server collects weight updates from all clients. Since these updates are massive vectors, the module uses Principal Component Analysis (PCA) to project them into a 2D space. This simplification preserves the most significant behavioral differences while filtering out high-dimensional noise.
  2. Dynamic Hierarchical Clustering: Instead of forcing clients into a pre-set number of groups, the system utilizes agglomerative hierarchical clustering. This allows the server to group clients based on update similarity without prior knowledge of how many client types (IID, non-IID, or malicious) are participating.
  3. Cosine Similarity & ReLU Clipping: The server calculates the cosine similarity between each client's update and the current global model. It then applies a cluster-wide judgment: if more than 50% of the clients in a specific cluster show negative or unusually low similarity to the global model, the entire cluster is flagged as malicious and excluded.
System architecture of ABC-FL, illustrating the interaction between the global server and diverse clients, and the internal workflow of the ABC Module.

Experimental Methodology

To evaluate ABC-FL in a complex environment, the researchers utilized two primary datasets:

  • MNIST: A standard benchmark of handwritten digits (0-9) representing "normal" IID data.
  • Fingers Digits 0-5: A dataset of hand images showing fingers. This was used to represent non-IID data (concept drift); while the labels are the same (0-5), the visual features are fundamentally different from handwritten digits.
  • Backdoor Trigger: Malicious data was created by inserting a small "grey-cross" sign into MNIST images and flipping their labels to a target class.
Examples of the Fingers Digits dataset, representing the non-IID data challenge in Federated Learning.

Key Insights and Results

Analysis of the Defense

  • Cluster-Based Detection: By shifting from individual to cluster-based detection, the system significantly reduces the likelihood of accidentally banning a single "outlier" benign user.
  • PCA as a Filter: The authors found that 2D projection highlights the starkest deviations caused by malicious poisoning, whereas high-dimensional space contains too much noise from non-IID data variance.
  • Zero-Knowledge Defense: The ABC module requires no "clean" dataset on the server, strictly adhering to FL privacy principles.

Performance Metrics

  • High Detection Accuracy: Across various mixtures of IID, non-IID, and malicious clients, ABC-FL achieved an average detection accuracy of 96.94%.
  • Low False Positives: The False Positive Rate (FPR) was maintained at 3.56%, ensuring legitimate users were rarely excluded.
  • Backdoor Neutralization: In scenarios with 10% to 40% malicious participants, ABC-FL reduced the backdoor success rate by 84% to 96%.

Limitations and Future Work

While effective, the current method assumes that malicious clients constitute less than 50% of the total participants; a majority-attacker scenario would likely compromise the clustering logic. Additionally, the study focused on a single backdoor task. Future research will explore "multi-backdooring" attempts and the system's resilience against "stealthier" attackers who use minimal amounts of poisoned data to evade detection.

Summary updated

BibTeX
@misc{jeong2021abc,
  author = {Hyejun Jeong and Joonyong Hwang and Tai-Myung Chung},
  title = {{ABC-FL: Anomalous and Benign client Classification in Federated Learning}},
  year = {2021},
  eprint = {2108.04551},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.04551},
}
Figure