SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.00446 · NeurIPS · 2025

ToxicTextCLIP: Text-Based Poisoning and Backdoor Attacks on CLIP Pre-training

Jiawei Guo, Xin Yao, Haiyang Zhao, Yimin Chen, Kecheng Huang, Ming Zhao

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2511.00446.json · badge: /api/ran/2511.00446.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
xinyaocse/ToxicTextCLIP canonical (classifier label)
classifier basis: census
5 ran · 4 no recorded run
FunctionStatusWhere it lives
disabled_train Ran
ran, violated the contract we drafted
xinyaocse/ToxicTextCLIP/models/model_decode_use_image_as_context.py
pointer only (licence: NONE) · get_code("4cb732f513d69dfd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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.

distinct_n Ran
ran, honoured the contract we drafted
xinyaocse/ToxicTextCLIP/Background_aware_target_text_telector_and_victim_model/evaluate/distinct_n_grams.py
pointer only (licence: NONE) · get_code("705cc64ec77cf270")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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_clones Ran
ran; our contract draft was wrong, not the code
xinyaocse/ToxicTextCLIP/models/decode_model.py
pointer only (licence: NONE) · get_code("288a87cd381a7d1b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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_ngrams Ran
ran; our contract draft was wrong, not the code
xinyaocse/ToxicTextCLIP/Background_aware_target_text_telector_and_victim_model/evaluate/distinct_n_grams.py
pointer only (licence: NONE) · get_code("8948fe53984d658d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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_images Ran
ran; our contract draft was wrong, not the code
xinyaocse/ToxicTextCLIP/Background_aware_target_text_telector_and_victim_model/experiment/get_img_from_cc12m.py
pointer only (licence: NONE) · get_code("03d2384364600a06")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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.

evaluate Not yet run
unverified (harvested, no recorded run)
xinyaocse/ToxicTextCLIP/Background_aware_target_text_telector_and_victim_model/src/evaluate.py
pointer only (licence: NONE) · get_code("d9bb188ab15dfa4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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_validation_metrics Not yet run
unverified (harvested, no recorded run)
xinyaocse/ToxicTextCLIP/Background_aware_target_text_telector_and_victim_model/src/evaluate.py
pointer only (licence: NONE) · get_code("0de4ca51614b6e84")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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_zeroshot_metrics Not yet run
unverified (harvested, no recorded run)
xinyaocse/ToxicTextCLIP/Background_aware_target_text_telector_and_victim_model/src/evaluate.py
pointer only (licence: NONE) · get_code("3273b611e02f5586")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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.

load_my_model Not yet run
unverified (harvested, no recorded run)
xinyaocse/ToxicTextCLIP/models/mymodel.py
pointer only (licence: NONE) · get_code("59156115e60a52a2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinyaocse/ToxicTextCLIP 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 1 later) and 6 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
disabled_train 173 other papers
165 dated earlier, 1 the same month, 7 later · 5 only as an assembly brick
2012.09841 (2020-12)
Taming Transformers for High-Resolution Image Synthesis
2102.05379 (2021-02)
Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
and 170 more not named here
get_clones 2 other papers
2 dated earlier
1706.03762 (2017-06)
Attention Is All You Need
aaai_30436 (2024 (year only))
Rethinking Attention: Exploring Shallow Feed-Forward Neural Networks as an Alternative to Attention Layers in Transformers (Student Abstract)
get_zeroshot_metrics 1 other paper
1 dated earlier
2310.05862 (2023-10)
Better Safe than Sorry: Pre-training CLIP against Targeted Data Poisoning and Backdoor Attacks

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-23.

Repositories linked to this paper

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

Abstract

The Contrastive Language-Image Pretraining (CLIP) model has significantly advanced vision-language modeling by aligning image-text pairs from large-scale web data through self-supervised contrastive learning. Yet, its reliance on uncurated Internet-sourced data exposes it to data poisoning and backdoor risks. While existing studies primarily investigate image-based attacks, the text modality, which is equally central to CLIP's training, remains underexplored. In this work, we introduce ToxicTextCLIP, a framework for generating high-quality adversarial texts that target CLIP during the pre-training phase. The framework addresses two key challenges: semantic misalignment caused by background inconsistency with the target class, and the scarcity of background-consistent texts. To this end, ToxicTextCLIP iteratively applies: 1) a background-aware selector that prioritizes texts with background content aligned to the target class, and 2) a background-driven augmenter that generates semantically coherent and diverse poisoned samples. Extensive experiments on classification and retrieval tasks show that ToxicTextCLIP achieves up to 95.83% poisoning success and 98.68% backdoor Hit@1, while bypassing RoCLIP, CleanCLIP and SafeCLIP defenses. The source code can be accessed via https://github.com/xinyaocse/ToxicTextCLIP/.

For agents

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

get_harvested_code_for_paper("2511.00446")
get_code_for_paper("2511.00446")
have("2511.00446")

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

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

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

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

Connect an agent — have() is free.