Papers › Taught Well Learned Ill: Towards Distillation-conditional Backdoor Attack

Taught Well Learned Ill: Towards Distillation-conditional Backdoor Attack

28 Sep 2025NeurIPSarXiv:2509.23871added by Syntology

Yukun Chen, Boheng Li, Yu Yuan, Leyi Qi, Yiming Li, Tianwei Zhang, Zhan Qin, Kui Ren

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Knowledge distillation (KD) is a vital technique for deploying deep neural networks (DNNs) on resource-constrained devices by transferring knowledge from large teacher models to lightweight student models. While teacher models from third-party platforms may undergo security verification (\eg, backdoor detection), we uncover a novel and critical threat: distillation-conditional backdoor attacks (DCBAs). DCBA injects dormant and undetectable backdoors into teacher models, which become activated in student models via the KD process, even with clean distillation datasets. While the direct extension of existing methods is ineffective for DCBA, we implement this attack by formulating it as a bilevel optimization problem and proposing a simple yet effective method (\ie, SCAR). Specifically, the inner optimization simulates the KD process by optimizing a surrogate student model, while the outer optimization leverages outputs from this surrogate to optimize the teacher model for implanting the conditional backdoor. Our SCAR addresses this complex optimization utilizing an implicit differentiation algorithm with a pre-optimized trigger injection function. Extensive experiments across diverse datasets, model architectures, and KD techniques validate the effectiveness of our SCAR and its resistance against existing backdoor detection, highlighting a significant yet previously overlooked vulnerability in the KD process. Our code is available at https://github.com/WhitolfChen/SCAR.

PaperPDFCode 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="2509.23871")

Code

Syntology Ran 4 of 14 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · violated contract.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

WhitolfChen/SCAR found in paper text by Syntology report

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

14 samples harvested; 4 ran; 2 honoured the contract we drafted; 10 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
2ran · violated contract
10unverified

Licence: 14 of the 14 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 WhitolfChen/SCAR. “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.

cat_list_to_tensor WhitolfChen/SCAR/SCAR/SCAR.py found in paper text by Syntology ran · honoured contract no licence file found · pointer only · 10c118d4f7e163de · report
cosine_similarity WhitolfChen/SCAR/core/dist_kd.py found in paper text by Syntology ran · violated contract fingerprinted no licence file found · pointer only · b5f44526e6cc6a9d · report
inter_class_relation WhitolfChen/SCAR/core/dist_kd.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · f26d395fbb7834a6 · report
pearson_correlation WhitolfChen/SCAR/core/dist_kd.py found in paper text by Syntology ran · violated contract fingerprinted no licence file found · pointer only · 8eb964c14770de5c · report
channel_shuffle WhitolfChen/SCAR/core/nets/shufflenetv2.py found in paper text by Syntology unverified no licence file found · pointer only · 66a6a08afa5e4819 · report
get_acc_results WhitolfChen/SCAR/core/utils.py found in paper text by Syntology unverified no licence file found · pointer only · 8e098f89f2675f0b · report
get_asr_results WhitolfChen/SCAR/core/utils.py found in paper text by Syntology unverified no licence file found · pointer only · cfdfbae00a0aa978 · report
get_dataloader WhitolfChen/SCAR/core/datasets.py found in paper text by Syntology unverified no licence file found · pointer only · 28ab2aa01ef45ca6 · report
get_dataset WhitolfChen/SCAR/core/datasets.py found in paper text by Syntology unverified no licence file found · pointer only · 9847c58f5ec1a14a · report
get_random_subset_indices WhitolfChen/SCAR/SCAR/SCAR.py found in paper text by Syntology unverified no licence file found · pointer only · 68d0dc2f0500db5b · report
get_transform WhitolfChen/SCAR/core/datasets.py found in paper text by Syntology unverified no licence file found · pointer only · f52fa7a6cf7865b5 · report
resnet18 WhitolfChen/SCAR/core/nets/resnet_cifar.py found in paper text by Syntology unverified no licence file found · pointer only · a60a3cc334abc667 · report
resnet34 WhitolfChen/SCAR/core/nets/resnet_cifar.py found in paper text by Syntology unverified no licence file found · pointer only · 2fb30f94ea70d9fe · report
resnet50 WhitolfChen/SCAR/core/nets/resnet_cifar.py found in paper text by Syntology unverified no licence file found · pointer only · cdc6a3c4d8fe34d1 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2509.23871, was issued in September 2025, after that date, so the archive has no leaderboard rows for it.

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