Skip to main content
QUICK REVIEW

[Paper Review] Backdoor Defense in Federated Learning Using Differential Testing and Outlier Detection

Yein Kim, Huili Chen|arXiv (Cornell University)|Feb 21, 2022
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

DifFense is a novel backdoor defense framework for federated learning that uses differential testing to generate adversarial inputs that amplify behavioral differences among models and applies two-step MAD outlier detection to identify malicious updates. It achieves near-zero false negative rates and reduces backdoor accuracy below 4% while maintaining global model accuracy comparable to FedAvg, even under diverse attack scenarios without prior knowledge of attack patterns.

ABSTRACT

The goal of federated learning (FL) is to train one global model by aggregating model parameters updated independently on edge devices without accessing users' private data. However, FL is susceptible to backdoor attacks where a small fraction of malicious agents inject a targeted misclassification behavior in the global model by uploading polluted model updates to the server. In this work, we propose DifFense, an automated defense framework to protect an FL system from backdoor attacks by leveraging differential testing and two-step MAD outlier detection, without requiring any previous knowledge of attack scenarios or direct access to local model parameters. We empirically show that our detection method prevents a various number of potential attackers while consistently achieving the convergence of the global model comparable to that trained under federated averaging (FedAvg). We further corroborate the effectiveness and generalizability of our method against prior defense techniques, such as Multi-Krum and coordinate-wise median aggregation. Our detection method reduces the average backdoor accuracy of the global model to below 4% and achieves a false negative rate of zero.

Motivation & Objective

  • To address the limitations of existing federated learning defenses, which often require prior knowledge of attack scenarios or suffer from high false positive/negative rates.
  • To develop a generalizable defense mechanism that works under minimal assumptions, particularly that benign clients outnumber malicious ones.
  • To enable detection of backdoor attacks without access to local model parameters or weights, enhancing compatibility with encrypted or privacy-preserving FL systems.
  • To reduce false positive rates in model update filtering while ensuring all malicious updates are detected, preserving global model accuracy.
  • To provide a robust, automated defense framework that maintains convergence and performance across varying numbers of adversaries and data distributions.

Proposed method

  • Differential testing is used to generate synthetic inputs that magnify differences in model predictions across clients, creating 'test statistics' based on local model outputs.
  • The method computes prediction differences on these differential inputs to detect anomalies indicative of backdoor behavior.
  • Two-step MAD outlier detection is introduced: first, a modified MAD algorithm identifies potential outliers; second, a refined thresholding step reduces false positives.
  • The framework operates before aggregation, filtering out malicious updates based on statistical deviation in differential test responses.
  • It does not require access to model weights or gradients, making it compatible with encrypted FL systems.
  • The approach is designed to be agnostic to data distribution and attack patterns, enhancing generalizability across non-IID and unbalanced FL settings.

Experimental results

Research questions

  • RQ1Can a defense mechanism detect backdoor attacks in federated learning without prior knowledge of attack patterns or access to model parameters?
  • RQ2How effective is differential testing in amplifying behavioral differences between benign and malicious models for backdoor detection?
  • RQ3Can two-step MAD outlier detection reduce false positive and false negative rates compared to standard MAD variants in FL settings?
  • RQ4How does the performance of DifFense compare to FedAvg, Multi-Krum, and CooMed under varying numbers of malicious clients?
  • RQ5Does the number and class distribution of differential images affect detection accuracy and model convergence?

Key findings

  • DifFense reduces the average backdoor accuracy of the global model to below 4%, significantly outperforming FedAvg, Multi-Krum, and CooMed.
  • The method achieves a false negative rate of zero across all tested scenarios, ensuring all malicious updates are detected.
  • With a mean false positive rate below 7%, DifFense maintains high global model accuracy comparable to FedAvg, even under multiple adversaries.
  • The two-step MAD outlier detection achieves zero false negatives and suppresses false positives to under 7%, outperforming single and double MAD variants.
  • Performance remains stable regardless of the number of differential images or the number of classes they are drawn from, with global accuracy consistently above 89%.
  • Sensitivity analysis shows that even with only 20 differential images from a single class, DifFense maintains a false positive rate below 9% and a false negative rate of zero.

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.