Lune

CVPR2024Top-tier venue

Backdoor Defense via Test-Time Detecting and Repairing

Jiyang Guan, Jian Liang, Ran He

Abstract

Deep neural networks have played a crucial part in many critical domains, such as autonomous driving, face recognition, and medical diagnosis. However, deep neural networks are facing security threats from backdoor attacks and can be manipulated into attacker-decided behaviors by the backdoor attacker. To defend the backdoor, prior research has focused on using clean data to remove backdoor attacks before model deployment. In this paper, we investigate the possibility of defending against backdoor attacks by utilizing test-time partially poisoned data to remove the backdoor from the model. To address the problem, a twostage method TTBD is proposed. In the first stage, we propose a backdoor sample detection method DDP to identify poisoned samples from a batch of mixed, partially poisoned samples. Once the poisoned samples are detected, we employ Shapley estimation to calculate the contribution of each neuron's significance in the network, locate the poisoned neurons, and prune them to remove backdoor in the models. Our experiments demonstrate that TTBD removes the backdoor successfully with only a batch of partially poisoned data across different model architectures and datasets against different types of backdoor attacks.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Protecting Model Adaptation from Trojans in the Unlabeled Data cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • Protecting Model Adaptation from Trojans in the Unlabeled Data cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Protecting Model Adaptation from Trojans in the Unlabeled Data cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • BDefects4NN: A Backdoor Defect Database for Controlled Localization Studies in Neural Networks cites Invisible Backdoor Attack with Sample-Specific Triggers
  • BDefects4NN: A Backdoor Defect Database for Controlled Localization Studies in Neural Networks cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • Invisible Backdoor Attack with Sample-Specific Triggers cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • Invisible Backdoor Attack with Sample-Specific Triggers cites Input-Aware Dynamic Backdoor Attack
  • FFCBA: Feature-based Full-target Clean-label Backdoor Attacks cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • Input-Aware Dynamic Backdoor Attack cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
  • Tent: Fully Test-Time Adaptation by Entropy Minimization cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Test-Time Attention Purification for Backdoored Large Vision Language Models cites Invisible Backdoor Attack with Sample-Specific Triggers
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Test-Time Attention Purification for Backdoored Large Vision Language ModelsZhifang Zhang, Bojun Yang, Shuo He, Weitong Chen et al.CVPR 2026 · 7 citations
  2. FFCBA: Feature-based Full-target Clean-label Backdoor AttacksYangxu Yin, Honglong Chen, Yudong Gao, Peng Sun et al.ACM MM 2025 · 1 citation
  3. Protecting Model Adaptation from Trojans in the Unlabeled DataLijun Sheng, Jian Liang, Ran He, Zilei Wang et al.AAAI 2025
  4. BDefects4NN: A Backdoor Defect Database for Controlled Localization Studies in Neural NetworksYisong Xiao, Aishan Liu, Xinwei Zhang, Tianyuan Zhang et al.ICSE 2025
  5. Test-Time Backdoor Detection for Object Detection ModelsHangtao Zhang, Yichen Wang, Shihui Yan, Chenyu Zhu et al.CVPR 2025

Builds on19

  1. Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural NetworksBolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li et al.S&P 2019 · 1,801 citations
  2. Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
  3. Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain AdaptationJian Liang, Dapeng Hu, Jiashi FengICML 2020 · 1,624 citations
  4. Invisible Backdoor Attack with Sample-Specific TriggersYuezun Li, Yiming Li, Baoyuan Wu, Longkang Li et al.ICCV 2021 · 639 citations
  5. Input-Aware Dynamic Backdoor AttackTuan Anh Nguyen, Anh Tuan TranNeurIPS 2020 · 601 citations

Related papers

  1. Few-shot Backdoor Defense Using Shapley EstimationJiyang Guan, Zhuozhuo Tu, Ran He, Dacheng TaoCVPR 2022 · 36 citations
  2. Backdoor Defense via Enhanced Splitting and Trap IsolationHongrui Yu, Lu Qi, Wanyu Lin, Jian Chen et al.ICCV 2025 · 5 citations
  3. Reconstructive Neuron Pruning for Backdoor DefenseYige Li, Xixiang Lyu, Xingjun Ma, Nodens Koren et al.ICML 2023 · 86 citations
  4. Beating Backdoor Attack at Its Own GameMin Liu, Alberto L. Sangiovanni-Vincentelli, Xiangyu YueICCV 2023 · 19 citations
  5. Backdoor Defense via Decoupling the Training ProcessKunzhe Huang, Yiming Li, Baoyuan Wu, Zhan Qin et al.ICLR 2022 · 253 citations
Dusk over the sea between two cliffs drawn in fine vertical lines