Robust Knowledge Distillation in Federated Learning: Counteracting Backdoor Attacks

Ebtisaam Alharbi, Leandro Soriano Marcolino, Qiang Ni, Antonios Gouglidis

Abstract

Federated Learning (FL) enables decentralized model training while preserving data privacy, yet it remains highly susceptible to backdoor attacks. Traditional defenses often struggle in heterogeneous (Non-IID) data environments, where malicious updates can be indistinguishable from legitimate, diverse client data. This paper introduces Robust Knowledge Distillation (RKD), a multi-tiered defense framework that combines similarity-based clustering with ensemble-based knowledge distillation. RKD effectively filters malicious updates, maintaining high model accuracy and keeping attack success rates below 17%, even when a majority of clients are compromised.

Introduction

In Federated Learning, the server aggregates updates from multiple clients to train a global model. This architecture is vulnerable to backdoor attacks, where malicious participants inject triggers into the training process to cause specific misclassifications. The primary challenge in defending against these attacks is data heterogeneity. In Non-IID settings, a benign client's unique data may produce model updates that appear as outliers, leading traditional defenses to mistakenly block legitimate users or allow stealthy attacks to pass. RKD addresses this by focusing on the angular deviation of updates and utilizing knowledge distillation as a functional filter.

Methodology

RKD implements a robust pipeline designed to identify and neutralize malicious contributions through four primary stages:

1. Dimensionality Reduction and Clustering

Rather than analyzing high-dimensional model weights directly, RKD computes the cosine similarity between each client's update and the current global model. This reduces the complexity to a scalar score, mitigating the "curse of dimensionality." These scores are then processed using the HDBSCAN algorithm to identify dense clusters of benign updates.

Algorithm 2: Automated Clustering Algorithm used in RKD to identify benign client updates.

2. Robust Model Selection

Within the identified benign cluster, the system calculates the L1-norm distance of each model to the group's median. Only models closest to this central tendency are selected for the trusted ensemble, further refining the selection against sophisticated, near-median attackers.

3. Knowledge Distillation (KD)

To ensure the final global model is "clean," RKD employs knowledge distillation. The server uses the trusted ensemble to generate pseudo-labels on a small, unlabeled proxy dataset. A new "student" global model is then trained to mimic the ensemble's logic. This process acts as a filter, as the distillation focuses on the collective consensus, making it difficult for niche backdoor triggers to propagate to the final model.

4. Adaptive Response Strategies

The framework supports two response modes: Exclusion, where flagged clients are blocked, and Perturbation, where flagged clients receive a noisy version of the global model to prevent them from detecting the defense and adapting their attack strategy.

Experimental Evaluation

RKD was evaluated on CIFAR-10, EMNIST, and Fashion-MNIST datasets under varying levels of Non-IID data (simulated via Dirichlet distribution). The framework was tested against five state-of-the-art attacks, including DBA and TSBA.

Key Results

  • High Resilience: RKD maintained a Main Task Accuracy (MTA) above 80% while keeping the Attack Success Rate (ASR) below 17%, even with up to 60% malicious clients.
  • Robustness to Heterogeneity: Unlike baseline defenses like FoolsGold or FLAME, RKD remained stable in extreme heterogeneity scenarios ($\alpha = 0.1$).
  • Efficiency: RKD demonstrated significant computational advantages, with a defense time of approximately 42 seconds, compared to over 140 seconds for other distillation-based methods like FedDF.

Discussion and Limitations

While RKD offers a robust defense, it requires a small, unlabeled proxy dataset at the server level, which may be a constraint in highly specialized domains. Furthermore, while the perturbation strategy enhances stealth, future research must consider adaptive attackers who may attempt to mimic the median more precisely. RKD represents a significant step forward in securing Federated Learning against adversarial threats in realistic, messy data environments.

Summary updated

BibTeX
@inproceedings{alharbi2025robust,
  author = {Ebtisaam Alharbi and Leandro Soriano Marcolino and Qiang Ni and Antonios Gouglidis},
  title = {{Robust Knowledge Distillation in Federated Learning: Counteracting Backdoor Attacks}},
  booktitle = {SaTML},
  year = {2025},
  doi = {10.1109/satml64287.2025.00018},
}
Figure