Identifying Backdoor Attacks in Federated Learning via Anomaly Detection

Yuxi Mi, Yiheng Sun, Jihong Guan, Shuigeng Zhou · DOI

TL;DR

This paper introduces ARIBA, a novel defense mechanism for federated learning that identifies and prunes participants engaging in backdoor attacks. By analyzing the statistical distribution of model gradient "fragments," ARIBA effectively detects malicious updates with minimal impact on overall model performance.

What Problem Does This Paper Address?

Federated learning (FL) enables collaborative model training across multiple devices without sharing raw data, thus preserving privacy. However, this distributed nature creates a challenge: the server cannot directly audit local training data. This opacity makes FL vulnerable to "backdoor attacks," where a malicious participant subtly poisons the global model. The poisoned model behaves normally most of the time but exhibits incorrect behavior when presented with a specific "trigger" input. These attacks are stealthy and difficult to detect, as their impact is often minimized to avoid raising suspicion. Existing defenses struggle to reliably distinguish between normal and malicious updates, especially against sophisticated attackers.

Methods

The core of ARIBA lies in analyzing the gradients of model updates. The authors observe that backdoor attacks, by altering local data distributions and training objectives, cause the gradients of compromised participants to deviate from those of honest participants.

Instead of looking at the entire gradient vector, ARIBA breaks down the gradients into smaller "fragments" (representing gradients of specific model components like convolutional kernels). The key idea is that the statistical distribution of these fragments will reveal a clear disparity between normal and backdoored participants.

The process involves:

  1. Segmenting Local Updates: Extracting gradient fragments from each participant's model update.
  2. Identifying Outliers: Using unsupervised anomaly detection (specifically, Mahalanobis distance) to identify fragments that deviate significantly from the norm. Participants with a high number of outlier fragments are flagged.
  3. Pruning Backdoored Participants: Based on the outlier scores, ARIBA prunes the suspected malicious participants by excluding their updates from the aggregation process.

Datasets

The paper evaluates ARIBA on three common image classification datasets:

  • MNIST
  • Fashion MNIST
  • CIFAR-10

Key Insights and Ideas

  • Gradients as a Fingerprint: Backdoor attacks leave a discernible "fingerprint" in the model's gradients, reflecting the altered training process.
  • Fragments Over Full Gradients: Analyzing the statistical distribution of subsets of gradients (fragments) is more robust for detecting backdoors than examining the entire gradient vector's magnitude or orientation. This is because malicious influences can be subtle and spread across many parameters.
  • Anomaly Detection for Stealthy Attacks: Unsupervised anomaly detection is well-suited to identify deviations from normal behavior, making it effective against stealthy backdoor attacks where malicious updates aim to blend in.
  • Pruning as a Defense: Effectively identifying and removing malicious participants before aggregation is a powerful defense strategy that doesn't require understanding the exact attack mechanism.

Key Results

  • ARIBA effectively mitigates state-of-the-art backdoor attacks across three common datasets and model architectures (4-layer model for MNIST/Fashion MNIST, ResNet18 for CIFAR-10).
  • The defense achieves high confidence (C) and successfully prunes 100% of compromised participants (Pm%) in their default experimental setup (50 participants, 5 malicious, server estimates 10).
  • The model retains high task utility (test accuracy) even with the pruning of suspected participants, indicating minimal impact on performance.
  • ARIBA demonstrates robustness against advanced attackers, including those using anomalous countermeasures or reduced scaling factors for stealth.
  • Overestimating the number of malicious participants (k > k) has a minor impact on model performance, while underestimation is detrimental.

Limitations and Future Work

  • Server's Estimation of k: The defense relies on the server's estimation of the number of malicious participants (k). While the paper shows that overestimation is acceptable, underestimation is problematic. Future work could explore more adaptive methods for estimating k.
  • Choice of Layers for Fragments: The paper uses convolutional layers in the middle of the network for fragment extraction. While effective, the authors suggest that the influence of attackers on model weights might differ across layers, and this could be leveraged for more detailed detection clues. Exploring optimal layer choices or using fragments from multiple layers is a potential future direction.
  • Generalizability to Other FL Settings: While tested on common datasets, further validation on more diverse FL scenarios and model architectures would be beneficial.

Summary updated

BibTeX
@inproceedings{mi2022identifying,
  author = {Yuxi Mi and Yiheng Sun and Jihong Guan and Shuigeng Zhou},
  title = {{Identifying Backdoor Attacks in Federated Learning via Anomaly Detection}},
  booktitle = {APWeb/WAIM},
  year = {2022},
  doi = {10.48550/arxiv.2202.04311},
}
Figure