Papers › Backdoor Contrastive Learning via Bi-level Trigger Optimization

Backdoor Contrastive Learning via Bi-level Trigger Optimization

11 Apr 2024arXiv:2404.07863links table onlyarchive 2025-07-28

Weiyu Sun, Xinyu Zhang, Hao Lu, Yingcong Chen, Ting Wang, Jinghui Chen, Lu Lin

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.

Contrastive Learning (CL) has attracted enormous attention due to its remarkable capability in unsupervised representation learning. However, recent works have revealed the vulnerability of CL to backdoor attacks: the feature extractor could be misled to embed backdoored data close to an attack target class, thus fooling the downstream predictor to misclassify it as the target. Existing attacks usually adopt a fixed trigger pattern and poison the training set with trigger-injected data, hoping for the feature extractor to learn the association between trigger and target class. However, we find that such fixed trigger design fails to effectively associate trigger-injected data with target class in the embedding space due to special CL mechanisms, leading to a limited attack success rate (ASR). This phenomenon motivates us to find a better backdoor trigger design tailored for CL framework. In this paper, we propose a bi-level optimization approach to achieve this goal, where the inner optimization simulates the CL dynamics of a surrogate victim, and the outer optimization enforces the backdoor trigger to stay close to the target throughout the surrogate CL procedure. Extensive experiments show that our attack can achieve a higher attack success rate (e.g., 99% ASR on ImageNet-100) with a very low poisoning rate (1%). Besides, our attack can effectively evade existing state-of-the-art defenses. Code is available at: https://github.com/SWY666/SSL-backdoor-BLTO.

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="2404.07863")

Code

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

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

swy666/ssl-backdoor-blto officialmentioned in paperpytorch 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

11 samples harvested; 8 ran; 0 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 · our draft was wrong
4ran · fixture could not drive it
2ran
3unverified

Licence: 11 of the 11 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 SWY666/SSL-backdoor-BLTO. “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.

D SWY666/SSL-backdoor-BLTO/Dirty_code_for_attack/models/simsiam.py official repository ran · fixture could not drive it no licence file found · pointer only · b2429807c9efa3f7 · report
D_PCA SWY666/SSL-backdoor-BLTO/Dirty_code_for_attack/models/simsiam.py official repository ran no licence file found · pointer only · b7925a42dfb0fae6 · report
NT_XentLoss SWY666/SSL-backdoor-BLTO/Dirty_code_for_attack/models/simclr.py official repository ran fingerprinted no licence file found · pointer only · 5dec8f84e0dfd0c0 · report
apply_generatorG swy666/ssl-backdoor-blto/Trigger/Generator_from_TTA/Generate_CIAFR10_using_TTA_origin.py official repository ran · fixture could not drive it no licence file found · pointer only · a12eecb0fd926bd4 · report
apply_generatorG swy666/ssl-backdoor-blto/Dirty_code_for_attack/Simsiam_backdoor_eval.py official repository ran · fixture could not drive it no licence file found · pointer only · e78b4c1f05d87a86 · report
normalize swy666/ssl-backdoor-blto/Dirty_code_for_attack/Simsiam_backdoor_eval.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 5e6a53c98adae9a5 · report
optimize_netG swy666/ssl-backdoor-blto/Dirty_code_for_attack/Simsam_min_min_Official_finetune_target_EoT.py official repository ran · our draft was wrong no licence file found · pointer only · 25735bb58aee10b7 · report
step_iteration swy666/ssl-backdoor-blto/Dirty_code_for_attack/Simsiam_backdoor_eval.py official repository ran · our draft was wrong no licence file found · pointer only · 82bfd431649f7cb2 · report
get_args SWY666/SSL-backdoor-BLTO/Dirty_code_for_attack/arguments.py official repository unverified no licence file found · pointer only · ca84b508354783c3 · report
get_args_multidistribute SWY666/SSL-backdoor-BLTO/Dirty_code_for_attack/arguments.py official repository unverified no licence file found · pointer only · 184bc3aa05cbcb7f · report
get_ctrl_offline SWY666/SSL-backdoor-BLTO/Dataset/CTRL_offline.py official repository unverified no licence file found · pointer only · baeed5164d5bb57f · 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