ARIBA: Towards Accurate and Robust Identification of Backdoor Attacks in Federated Learning

Yuxi Mi, Jihong Guan, Shuigeng Zhou · OpenReview

Abstract

The distributed nature and privacy-preserving characteristics of federated learning make it prone to the threat of poisoning attacks, especially backdoor attacks, where the adversary implants backdoors to misguide the model on certain attacker-chosen sub-tasks. In this paper, we present a novel method ARIBA to accurately and robustly identify backdoor attacks in federated learning. By empirical study, we observe that backdoor attacks are discernible by the filters of CNN layers. Based on this finding, we employ unsupervised anomaly detection to evaluate the pre-processed filters and calculate an anomaly score for each client. We then identify the most suspicious clients according to their anomaly scores. Extensive experiments are conducted, which show that our method ARIBA can effectively and robustly defend against multiple state-of-the-art attacks without degrading model performance.

TL;DR

ARIBA is a novel defense mechanism designed to protect Federated Learning (FL) systems from stealthy backdoor attacks. By decomposing model updates into smaller "fragments" and applying anomaly detection, ARIBA can precisely identify and prune malicious participants without compromising the overall performance of the global model.

What Problem Does This Paper Address?

Federated Learning allows multiple parties to train a shared model without ever sharing their raw data. While great for privacy, this decentralization creates a massive security loophole: the central server cannot audit the training process.

Attackers can exploit this by performing backdoor attacks. In these scenarios, a compromised participant submits "poisoned" model updates that look normal during standard tasks but cause the model to misbehave when it sees a specific trigger (e.g., misclassifying a "green car" as a "bicycle").

A backdoor attack in Federated Learning: a malicious participant implants a trigger that causes the finalized model to misclassify specific inputs.

Because these attacks are targeted and stealthy, traditional defenses that look at the overall "size" or "direction" of model updates often fail to catch them, especially when attackers use "model replacement" techniques to scale their updates and bypass simple filters.

Methods

The authors introduce ARIBA, which moves away from coarse, whole-vector metrics (like l2-norm or cosine similarity) in favor of a more granular statistical approach. The pipeline consists of three main steps:

  1. Segmentation: The server calculates the difference between the global model and each participant's update. It then performs "mean subtraction" to highlight disparities. Crucially, it breaks these updates into fragments—small subsets of parameters, such as the gradients of individual convolutional kernels.
  2. Anomaly Detection (Scoring): Instead of treating the update as one big vector, ARIBA treats each fragment as a data point in a hyperspace. It uses Mahalanobis distance to identify which fragments are statistical outliers. The idea is that while normal participants' fragments will cluster together, backdoored fragments will deviate due to the skewed data distribution used by the attacker.
  3. Pruning: The server counts how many "outlier fragments" each participant has. Participants with the highest number of outliers are flagged as malicious and pruned from the aggregation process.
ARIBA identifies backdoors by analyzing the statistical distribution of model fragments rather than relying on coarse gradient vectors.

Key Insights and Ideas

  • The "Fragment" Advantage: The most significant insight is that backdoors don't affect all model parameters equally. By looking at "fragments" (like kernels), the server can find the specific "fingerprints" of an attack that would otherwise be washed out if looking at the model as a whole.
  • Distributional Bias over Magnitude: Attackers can easily manipulate the magnitude of their gradients to "blend in" with honest users. However, it is much harder for them to hide the distributional bias created by training on poisoned data.
  • Layer Sensitivity: The authors found that "middle layers" of a neural network are often the best candidates for detection. These layers capture features that are complex enough to be affected by a backdoor but stable enough across honest participants to provide a clear baseline.

Key Results

  • Perfect Detection: In baseline tests across MNIST, Fashion-MNIST, and CIFAR-10, ARIBA achieved a 100% detection rate ($P_m\% = 1.0$), successfully identifying and pruning all compromised participants.
  • High Confidence: The "Confidence" score ($C$), which measures the distinguishability between malicious and normal fragments, remained high (often $>0.90$), indicating a very clear separation between attackers and honest users.
  • Robustness to Advanced Attacks: ARIBA remained effective even against "stealthy" attackers who intentionally tried to evade detection by adding anomalous terms to their loss functions or reducing their scaling factors.
  • Minimal Utility Impact: Even when the server "over-estimated" the number of attackers (pruning more participants than necessary), the final model's accuracy on its primary task remained high.

Limitations and Future Work

  • Estimating $k$: ARIBA requires the server to provide an estimated number of malicious participants ($\tilde{k}$). While the paper shows that over-estimating is safe, under-estimating can lead to failed defenses.
  • Layer Selection: Currently, the choice of which layer to segment into fragments is a manual hyperparameter. The authors suggest that identifying the "optimal" layer automatically is an interesting open problem.
  • Computational Overhead: Performing Mahalanobis distance calculations on thousands of fragments per round adds a computational cost to the server, which might scale poorly for extremely large models.

Summary updated

BibTeX
@inproceedings{mi2022ariba,
  author = {Yuxi Mi and Jihong Guan and Shuigeng Zhou},
  title = {{ARIBA: Towards Accurate and Robust Identification of Backdoor Attacks in Federated Learning}},
  booktitle = {APWeb/WAIM},
  year = {2022},
  doi = {10.48550/arxiv.2202.04311},
}
Figure