Two Sides of the Same Coin: Learning the Backdoor to Remove the Backdoor

Qi Zhao, Christian Wressnegger
7/7/2026
cs.LG

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

The community has recently developed various training-time defenses to counter neural backdoors introduced through data poisoning. In light of the observation that a model learns poisonous samples responsible for the backdoor easier than benign samples, these approaches either use a fixed threshold of the training loss for splitting or iteratively learn a reference model as an oracle for identifying benign samples. In particular, the latter has proven effective for anti-backdoor learning. Our method, HARVEY, leverages a similar yet crucially different technique: learning an oracle for poisonous rather than benign samples. Learning a backdoored reference model is significantly easier than learning a reference model on benign data. Consequently, we can identify poisonous samples much more accurately than related work identifies benign samples. This crucial difference enables near-perfect backdoor removal as we demonstrate in our evaluation. HARVEY substantially outperforms related approaches across attack types, datasets, and architectures, lowering the attack success rate to the very minimum at a negligible loss in natural accuracy. The figure below shows an overview of our methods working principle.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2026sides,
  title  = {Two Sides of the Same Coin: Learning the Backdoor to Remove the Backdoor},
  author = {Qi Zhao and Christian Wressnegger},
  year   = {2026},
  eprint = {2607.05748},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.05748v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.05748.svg)](https://codeofpaper.com/paper/2607.05748)

Discussion