Skip to main content
QUICK REVIEW

[Paper Review] RFLBAT: A Robust Federated Learning Algorithm against Backdoor Attack

Yongkang Wang, Di‐Hua Zhai|arXiv (Cornell University)|Jan 11, 2022
Network Security and Intrusion DetectionComputer Science9 citations
TL;DR

RFLBAT is a novel robust federated learning algorithm that defends against backdoor attacks using PCA and K-means clustering to detect and exclude malicious gradients without prior knowledge of attacker count or data distribution. It outperforms state-of-the-art methods across diverse attack scenarios, including non-IID data, varying numbers of clients, and distributed backdoor attacks, even when malicious clients outnumber benign ones.

ABSTRACT

Federated learning (FL) is a distributed machine learning paradigm where enormous scattered clients (e.g. mobile devices or IoT devices) collaboratively train a model under the orchestration of a central server (e.g. service provider), while keeping the training data decentralized. Unfortunately, FL is susceptible to a variety of attacks, including backdoor attack, which is made substantially worse in the presence of malicious attackers. Most of algorithms usually assume that the malicious at tackers no more than benign clients or the data distribution is independent identically distribution (IID). However, no one knows the number of malicious attackers and the data distribution is usually non identically distribution (Non-IID). In this paper, we propose RFLBAT which utilizes principal component analysis (PCA) technique and Kmeans clustering algorithm to defend against backdoor attack. Our algorithm RFLBAT does not bound the number of backdoored attackers and the data distribution, and requires no auxiliary information outside of the learning process. We conduct extensive experiments including a variety of backdoor attack types. Experimental results demonstrate that RFLBAT outperforms the existing state-of-the-art algorithms and is able to resist various backdoor attack scenarios including different number of attackers (DNA), different Non-IID scenarios (DNS), different number of clients (DNC) and distributed backdoor attack (DBA).

Motivation & Objective

  • Address the critical vulnerability of federated learning to backdoor attacks, especially under realistic conditions where the number of malicious clients and data non-IID distribution are unknown.
  • Overcome the limitations of existing robust aggregation methods that rely on strong assumptions, such as fewer malicious clients than benign ones or IID data distributions.
  • Develop a defense mechanism that can detect and exclude backdoored model updates without access to training or test data, ensuring privacy preservation.
  • Ensure robustness in extreme scenarios, including when malicious clients dominate the training process or when attacks are distributed across multiple clients.
  • Provide a scalable, unsupervised defense that leverages gradient structure to distinguish benign from poisoned updates using PCA and clustering.

Proposed method

  • Apply Principal Component Analysis (PCA) to reduce the dimensionality of client model updates and reveal underlying gradient structures, enabling clearer separation between benign and backdoored gradients.
  • Use K-means clustering on the PCA-reduced gradients to group similar updates, where benign gradients naturally form a tight cluster while backdoored gradients form distinct outliers.
  • Employ cosine similarity between gradient vectors to identify and select the most representative benign gradients for global model aggregation.
  • Aggregate only the selected benign gradients using a weighted average to construct the updated global model, effectively excluding malicious updates.
  • Dynamically adjust the scale factor in PCA to enhance the separability of benign and backdoored gradients, improving detection accuracy under varying attack intensities.
  • Operate in a fully unsupervised manner—no labeled data, no auxiliary models, and no assumptions about the number of attackers or data distribution.

Experimental results

Research questions

  • RQ1Can a robust aggregation algorithm detect and exclude backdoored gradients without prior knowledge of the number of malicious clients?
  • RQ2How effective is RFLBAT in defending against backdoor attacks under non-IID data distributions, where existing methods often fail?
  • RQ3Can RFLBAT maintain high model accuracy and robustness when the number of participating clients or attackers varies significantly?
  • RQ4How does RFLBAT perform against distributed backdoor attacks, where multiple clients collaboratively inject triggers across different data subsets?
  • RQ5Does RFLBAT remain effective when malicious clients outnumber benign clients, a scenario that breaks the assumptions of most prior defenses?

Key findings

  • RFLBAT achieves significantly higher test accuracy than state-of-the-art defenses under all evaluated backdoor attack scenarios, including different numbers of attackers (DNA), non-IID data (DNS), varying client counts (DNC), and distributed backdoor attacks (DBA).
  • In the distributed backdoor attack (DBA) scenario, RFLBAT maintains high performance even when backdoored clients amplify their gradients, demonstrating resilience to gradient manipulation.
  • Visualization of PCA-reduced gradients shows that at a scale factor of λ=100, benign and backdoored gradients are clearly separable into distinct clusters, enabling accurate detection and exclusion.
  • At λ=1, gradients are too scattered for reliable clustering, resulting in partial exclusion of benign gradients; however, at λ=100, all benign gradients are successfully captured in a single cluster.
  • RFLBAT outperforms existing methods like Krum, Bulyan, and FoolsGold in both accuracy and robustness, especially in high-attack-rate and non-IID settings.
  • The algorithm remains effective even when the number of malicious clients exceeds that of benign clients, a regime where most prior defenses fail due to their underlying assumptions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.