SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.23871 · NeurIPS · 2025

Taught Well Learned Ill: Towards Distillation-conditional Backdoor Attack

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

arXiv · PDF · Open in the Atlas

Code that ran

12 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2509.23871.json · badge: /api/ran/2509.23871.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
WhitolfChen/SCAR canonical (classifier label)
classifier basis: census
12 ran · 2 no recorded run
FunctionStatusWhere it lives
cat_list_to_tensor Ran
ran, honoured the contract we drafted
WhitolfChen/SCAR/SCAR/SCAR.py
pointer only (licence: NONE) · get_code("10c118d4f7e163de")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

channel_shuffle Ran
ran; our contract draft was wrong, not the code
WhitolfChen/SCAR/core/nets/shufflenetv2.py
pointer only (licence: NONE) · get_code("66a6a08afa5e4819")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cosine_similarity Ran
ran, violated the contract we drafted
WhitolfChen/SCAR/core/dist_kd.py
pointer only (licence: NONE) · get_code("b5f44526e6cc6a9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_acc_results Ran
ran, honoured the contract we drafted
WhitolfChen/SCAR/core/utils.py
pointer only (licence: NONE) · get_code("8e098f89f2675f0b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_asr_results Ran
ran, honoured the contract we drafted
WhitolfChen/SCAR/core/utils.py
pointer only (licence: NONE) · get_code("cfdfbae00a0aa978")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_random_subset_indices Ran
ran, honoured the contract we drafted
WhitolfChen/SCAR/SCAR/SCAR.py
pointer only (licence: NONE) · get_code("68d0dc2f0500db5b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_transform Ran
ran; our contract draft was wrong, not the code
WhitolfChen/SCAR/core/datasets.py
pointer only (licence: NONE) · get_code("f52fa7a6cf7865b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

inter_class_relation Ran
ran, honoured the contract we drafted
WhitolfChen/SCAR/core/dist_kd.py
pointer only (licence: NONE) · get_code("f26d395fbb7834a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pearson_correlation Ran
ran, violated the contract we drafted
WhitolfChen/SCAR/core/dist_kd.py
pointer only (licence: NONE) · get_code("8eb964c14770de5c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resnet18 Ran
ran; our contract draft was wrong, not the code
WhitolfChen/SCAR/core/nets/resnet_cifar.py
pointer only (licence: NONE) · get_code("a60a3cc334abc667")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resnet34 Ran
ran; our contract draft was wrong, not the code
WhitolfChen/SCAR/core/nets/resnet_cifar.py
pointer only (licence: NONE) · get_code("2fb30f94ea70d9fe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resnet50 Ran
ran; our contract draft was wrong, not the code
WhitolfChen/SCAR/core/nets/resnet_cifar.py
pointer only (licence: NONE) · get_code("cdc6a3c4d8fe34d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_dataloader Not yet run
unverified (harvested, no recorded run)
WhitolfChen/SCAR/core/datasets.py
pointer only (licence: NONE) · get_code("28ab2aa01ef45ca6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_dataset Not yet run
unverified (harvested, no recorded run)
WhitolfChen/SCAR/core/datasets.py
pointer only (licence: NONE) · get_code("9847c58f5ec1a14a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WhitolfChen/SCAR when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 3 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
inter_class_relation 5 other papers
4 dated earlier, 1 later
2204.02557 (2022-04)
MixFormer: Mixing Features across Windows and Dimensions
2205.10536 (2022-05)
Knowledge Distillation from A Stronger Teacher
2305.15032 (2023-05)
How to Distill your BERT: An Empirical Study on the Impact of Weight Initialisation and Distillation Objectives
and 2 more not named here
pearson_correlation 3 other papers
3 dated earlier
2204.02557 (2022-04)
MixFormer: Mixing Features across Windows and Dimensions
2205.10536 (2022-05)
Knowledge Distillation from A Stronger Teacher
2405.14124 (2024-05)
Mixture of Experts Meets Prompt-Based Continual Learning
resnet18 3 other papers
2 dated earlier, 1 later
2202.14026 (2022-02)
Robust Training under Label Noise by Over-parameterization
2404.10824 (2024-04)
Decoupled Weight Decay for Any $p$ Norm
2605.28420 (2026-05)
Conveyance: A Versatile Framework for Learning in Structured Class Spaces
cosine_similarity 2 other papers
2 dated earlier
2205.10536 (2022-05)
Knowledge Distillation from A Stronger Teacher
2405.14124 (2024-05)
Mixture of Experts Meets Prompt-Based Continual Learning
resnet34 2 other papers
1 dated earlier, 1 later
2202.14026 (2022-02)
Robust Training under Label Noise by Over-parameterization
2605.28420 (2026-05)
Conveyance: A Versatile Framework for Learning in Structured Class Spaces
cat_list_to_tensor 1 other paper
1 dated earlier
2110.03735 (2021-10)
Adversarial Unlearning of Backdoors via Implicit Hypergradient

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 (e.g., 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 (i.e., 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.23871")
get_code_for_paper("2509.23871")
have("2509.23871")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2509.23871.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2509.23871.svg)](https://syntology.ai/paper/2509.23871)

Connect an agent — have() is free.