Papers › Transferring Backdoors between Large Language Models by Knowledge Distillation

Transferring Backdoors between Large Language Models by Knowledge Distillation

19 Aug 2024arXiv:2408.09878links table onlyarchive 2025-07-28

Pengzhou Cheng, Zongru Wu, Tianjie Ju, Wei Du, Zhuosheng Zhang Gongshen Liu

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

Backdoor Attacks have been a serious vulnerability against Large Language Models (LLMs). However, previous methods only reveal such risk in specific models, or present tasks transferability after attacking the pre-trained phase. So, how risky is the model transferability of a backdoor attack? In this paper, we focus on whether existing mini-LLMs may be unconsciously instructed in backdoor knowledge by poisoned teacher LLMs through knowledge distillation (KD). Specifically, we propose ATBA, an adaptive transferable backdoor attack, which can effectively distill the backdoor of teacher LLMs into small models when only executing clean-tuning. We first propose the Target Trigger Generation (TTG) module that filters out a set of indicative trigger candidates from the token list based on cosine similarity distribution. Then, we exploit a shadow model to imitate the distilling process and introduce an Adaptive Trigger Optimization (ATO) module to realize a gradient-based greedy feedback to search optimal triggers. Extensive experiments show that ATBA generates not only positive guidance for student models but also implicitly transfers backdoor knowledge. Our attack is robust and stealthy, with over 80% backdoor transferability, and hopes the attention of security.

PaperPDFCodeCode 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="2408.09878")

Code

Syntology Ran 12 of 13 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhou-cybersecurity-ai/atba officialmentioned in papermentioned 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; 12 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12ran
1unverified

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 zhou-cybersecurity-ai/atba. “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.

HiddenStatesGeneration zhou-cybersecurity-ai/atba/TTG/TTG_BERT.py official repository ran no licence file found · pointer only · 7f54d3e1ec00900b · report
accuracy zhou-cybersecurity-ai/atba/ATO/ATO_BERT.py official repository ran no licence file found · pointer only · ad4e0e410c8fd12d · report
cosine_similarity zhou-cybersecurity-ai/atba/TTG/TTG_BERT.py official repository ran fingerprinted no licence file found · pointer only · a1876380521844c6 · report
encode zhou-cybersecurity-ai/atba/TTG/TTG_GPT.py official repository ran no licence file found · pointer only · 4a6e68636de7823e · report
get_embedding_weight zhou-cybersecurity-ai/atba/ATO/ATO_BERT.py official repository ran no licence file found · pointer only · fb2faf007cdea49e · report
get_embedding_weight zhou-cybersecurity-ai/atba/ATO/ATO_GPT.py official repository ran no licence file found · pointer only · 25ae3f124e60313c · report
get_embedding_weight zhou-cybersecurity-ai/atba/ATO/ATO_OPT.py official repository ran no licence file found · pointer only · 2b9ab6ac698ff9ff · report
hotflip_attack zhou-cybersecurity-ai/atba/Utils/utils.py official repository ran no licence file found · pointer only · 68516ad250d5a7bd · report
readTheTargetingTrigger zhou-cybersecurity-ai/atba/ATO/ATO_BERT.py official repository ran no licence file found · pointer only · 1f1161824b3fd37b · report
readTheTargetingTrigger zhou-cybersecurity-ai/atba/KD/KD_BERT.py official repository ran no licence file found · pointer only · a21f801fee9617a2 · report
sampleCandidatesAreTaken zhou-cybersecurity-ai/atba/TTG/TTG_BERT.py official repository ran no licence file found · pointer only · 04711ec160575edc · report
wrap_dataset zhou-cybersecurity-ai/atba/KD/KD_BERT.py official repository ran no licence file found · pointer only · 66662efba08dd56f · report
get_average_grad zhou-cybersecurity-ai/atba/Utils/utils.py official repository unverified no licence file found · pointer only · 5f09b79dca76f68a · 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