Papers › Towards Stable Backdoor Purification through Feature Shift Tuning

Towards Stable Backdoor Purification through Feature Shift Tuning

3 Oct 2023NeurIPS 2023 11arXiv:2310.01875archive 2025-07-28

Rui Min, Zeyu Qin, Li Shen, Minhao Cheng

It has been widely observed that deep neural networks (DNN) are vulnerable to backdoor attacks where attackers could manipulate the model behavior maliciously by tampering with a small set of training samples. Although a line of defense methods is proposed to mitigate this threat, they either require complicated modifications to the training process or heavily rely on the specific model architecture, which makes them hard to deploy into real-world applications. Therefore, in this paper, we instead start with fine-tuning, one of the most common and easy-to-deploy backdoor defenses, through comprehensive evaluations against diverse attack scenarios. Observations made through initial experiments show that in contrast to the promising defensive results on high poisoning rates, vanilla tuning methods completely fail at low poisoning rate scenarios. Our analysis shows that with the low poisoning rate, the entanglement between backdoor and clean features undermines the effect of tuning-based defenses. Therefore, it is necessary to disentangle the backdoor and clean features in order to improve backdoor purification. To address this, we introduce Feature Shift Tuning (FST), a method for tuning-based backdoor purification. Specifically, FST encourages feature shifts by actively deviating the classifier weights from the originally compromised weights. Extensive experiments demonstrate that our FST provides consistently stable performance under different attack settings. Without complex parameter adjustments, FST also achieves much lower tuning costs, only 10 epochs. Our codes are available at https://github.com/AISafety-HKUST/stable_backdoor_purification.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.01875")

Code

Syntology Ran 10 of 13 code samples harvested from 2 repositories linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 6 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 7 ran; community: 1 sample from 1 repository, 1 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

aisafety-hkust/stable_backdoor_purification officialmentioned in papermentioned on GitHubpytorchNOASSERTION report
aisafety-hkust/backdoor_safety_tuning mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 10 ran; 2 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · our draft was wrong
1ran · fixture could not drive it
6ran
3unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_common_attack_args AISafety-HKUST/stable_backdoor_purification/attack/badnet.py official repository ran · our draft was wrong no licence file found · pointer only · efd3b8b851a0f5e7 · report
add_common_attack_args AISafety-HKUST/stable_backdoor_purification/attack/badnet_bypass.py official repository ran licence not identified · pointer only · 5cfe5054c2c74fce · report
generalize_to_lower_pratio AISafety-HKUST/stable_backdoor_purification/attack/wanet.py official repository ran no licence file found · pointer only · 1e9b4bedd9340fe0 · report
generate_single_target_attack_train_pidx AISafety-HKUST/stable_backdoor_purification/utils/backdoor_generate_pindex.py official repository ran licence not identified · pointer only · ee9472dc60824bd5 · report
generate_single_target_attack_train_poison_index AISafety-HKUST/stable_backdoor_purification/utils/backdoor_generate_poison_index.py official repository ran licence not identified · pointer only · ad7ac1c21671d465 · report
is_valid_file AISafety-HKUST/stable_backdoor_purification/for_imagenet/generate_poison_val_badnet.py official repository ran no licence file found · pointer only · ea3c60ddf40d46bc · report
test aisafety-hkust/stable_backdoor_purification/fine_tune/BTIDBF/btidbfp.py official repository ran licence not identified · pointer only · 5840d4aeba85a839 · report
generate_pidx_from_label_transform AISafety-HKUST/stable_backdoor_purification/utils/backdoor_generate_pindex.py official repository unverified licence not identified · pointer only · 83953e32e89f7c00 · report
generate_poison_index_from_label_transform AISafety-HKUST/stable_backdoor_purification/utils/backdoor_generate_poison_index.py official repository unverified licence not identified · pointer only · 3c55a855cc155090 · report
purify aisafety-hkust/stable_backdoor_purification/fine_tune/BTIDBF/btidbfp.py official repository unverified licence not identified · pointer only · ca2a104dfcdcd492 · report
test kr-anonymous/ngf-animus/Purification_NGF.py community ran · fixture could not drive it no licence file found · pointer only · 0044d4606bb15d8c · report
test identical code first harvested elsewhere ran · honoured contract licence of this copy not recorded · f634daea78f08e78 · report
train identical code first harvested elsewhere ran · honoured contract licence of this copy not recorded · 1042d89ceda24cdb · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections