Skip to main content
QUICK REVIEW

[Paper Review] BayBFed: Bayesian Backdoor Defense for Federated Learning

Kavita Kumari, Phillip Rieger|arXiv (Cornell University)|Jan 23, 2023
Privacy-Preserving Technologies in DataComputer Science6 citations
TL;DR

BayBFed proposes a novel Bayesian backdoor defense for federated learning that uses probabilistic modeling of client updates to detect and filter malicious updates without relying on assumptions about data distribution or attack patterns. By leveraging a Hierarchical Beta-Bernoulli Process and a novel CRP-Jensen clustering algorithm, it achieves robust detection across diverse datasets while preserving benign model accuracy.

ABSTRACT

Federated learning (FL) allows participants to jointly train a machine learning model without sharing their private data with others. However, FL is vulnerable to poisoning attacks such as backdoor attacks. Consequently, a variety of defenses have recently been proposed, which have primarily utilized intermediary states of the global model (i.e., logits) or distance of the local models (i.e., L2-norm) from the global model to detect malicious backdoors. However, as these approaches directly operate on client updates, their effectiveness depends on factors such as clients' data distribution or the adversary's attack strategies. In this paper, we introduce a novel and more generic backdoor defense framework, called BayBFed, which proposes to utilize probability distributions over client updates to detect malicious updates in FL: it computes a probabilistic measure over the clients' updates to keep track of any adjustments made in the updates, and uses a novel detection algorithm that can leverage this probabilistic measure to efficiently detect and filter out malicious updates. Thus, it overcomes the shortcomings of previous approaches that arise due to the direct usage of client updates; as our probabilistic measure will include all aspects of the local client training strategies. BayBFed utilizes two Bayesian Non-Parametric extensions: (i) a Hierarchical Beta-Bernoulli process to draw a probabilistic measure given the clients' updates, and (ii) an adaptation of the Chinese Restaurant Process (CRP), referred by us as CRP-Jensen, which leverages this probabilistic measure to detect and filter out malicious updates. We extensively evaluate our defense approach on five benchmark datasets: CIFAR10, Reddit, IoT intrusion detection, MNIST, and FMNIST, and show that it can effectively detect and eliminate malicious updates in FL without deteriorating the benign performance of the global model.

Motivation & Objective

  • To address the limitations of existing backdoor defenses in federated learning that depend on direct manipulation of client model weights or restrictive assumptions about data or attack strategies.
  • To develop a generic representation of client updates that captures all adjustments due to local training strategies, independent of data heterogeneity or client-specific optimization.
  • To design a detection mechanism that leverages a probabilistic measure of updates to robustly identify and filter poisoned models.
  • To maintain high benign model accuracy while effectively mitigating targeted backdoor attacks across diverse and real-world datasets.

Proposed method

  • BayBFed computes a probabilistic measure over client model updates using a Hierarchical Beta-Bernoulli Process, which models the likelihood of parameter changes across clients.
  • It employs a novel clustering algorithm, CRP-Jensen, derived from the Chinese Restaurant Process, to group updates based on their probabilistic measure for anomaly detection.
  • The defense framework operates on the probabilistic representation rather than raw weights, making it resilient to adversarial strategies that manipulate L2-norm or cosine similarity.
  • BayBFed does not require validation data or assumptions about data distribution, client label diversity, or attack timing, enhancing its generality.
  • The method detects malicious updates by identifying clusters that deviate significantly from the dominant distribution of benign updates in the probabilistic space.
  • It filters out suspicious updates during aggregation, preserving the global model’s performance on benign data.

Experimental results

Research questions

  • RQ1Can a probabilistic representation of client updates be constructed that encapsulates all local training-induced variations without relying on raw weight values?
  • RQ2Can such a probabilistic measure enable robust detection of backdoor attacks across diverse data distributions and attack strategies?
  • RQ3Does a Bayesian non-parametric clustering approach like CRP-Jensen outperform existing distance-based or norm-based detection methods in detecting poisoned updates?
  • RQ4Can the defense maintain high benign model accuracy while effectively mitigating targeted backdoor attacks in non-IID and real-world settings?

Key findings

  • BayBFed effectively detects and filters malicious updates in federated learning without requiring assumptions about data distribution, client label diversity, or attack timing.
  • The defense maintains high benign model accuracy across all evaluated datasets, including CIFAR10, MNIST, FMNIST, Reddit, and IoT intrusion detection.
  • BayBFed resists advanced backdoor attacks that manipulate L2-norm or cosine similarity, which bypass traditional defenses.
  • The CRP-Jensen clustering algorithm successfully identifies malicious updates even when they are carefully hidden within the distribution of benign updates.
  • Empirical evaluation confirms that the adversary cannot bypass BayBFed while simultaneously maintaining effective backdoor functionality.
  • The use of Bayesian non-parametric modeling enables a generic, robust, and scalable defense mechanism applicable to diverse FL settings.

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.