English

FLARE: Toward Universal Dataset Purification against Backdoor Attacks

Cryptography and Security 2025-06-24 v3 Artificial Intelligence Computer Vision and Pattern Recognition Machine Learning

Abstract

Deep neural networks (DNNs) are susceptible to backdoor attacks, where adversaries poison datasets with adversary-specified triggers to implant hidden backdoors, enabling malicious manipulation of model predictions. Dataset purification serves as a proactive defense by removing malicious training samples to prevent backdoor injection at its source. We first reveal that the current advanced purification methods rely on a latent assumption that the backdoor connections between triggers and target labels in backdoor attacks are simpler to learn than the benign features. We demonstrate that this assumption, however, does not always hold, especially in all-to-all (A2A) and untargeted (UT) attacks. As a result, purification methods that analyze the separation between the poisoned and benign samples in the input-output space or the final hidden layer space are less effective. We observe that this separability is not confined to a single layer but varies across different hidden layers. Motivated by this understanding, we propose FLARE, a universal purification method to counter various backdoor attacks. FLARE aggregates abnormal activations from all hidden layers to construct representations for clustering. To enhance separation, FLARE develops an adaptive subspace selection algorithm to isolate the optimal space for dividing an entire dataset into two clusters. FLARE assesses the stability of each cluster and identifies the cluster with higher stability as poisoned. Extensive evaluations on benchmark datasets demonstrate the effectiveness of FLARE against 22 representative backdoor attacks, including all-to-one (A2O), all-to-all (A2A), and untargeted (UT) attacks, and its robustness to adaptive attacks. Codes are available at \href{https://github.com/THUYimingLi/BackdoorBox}{BackdoorBox} and \href{https://github.com/vtu81/backdoor-toolbox}{backdoor-toolbox}.

Keywords

Cite

@article{arxiv.2411.19479,
  title  = {FLARE: Toward Universal Dataset Purification against Backdoor Attacks},
  author = {Linshan Hou and Wei Luo and Zhongyun Hua and Songhua Chen and Leo Yu Zhang and Yiming Li},
  journal= {arXiv preprint arXiv:2411.19479},
  year   = {2025}
}

Comments

15 pages, This paper is accepted and will appear in TIFS (CCF-A)

R2 v1 2026-06-28T20:16:27.355Z