Papers › ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users

ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users

24 May 2024arXiv:2405.19360archive 2025-07-28

Guanlin Li, Kangjie Chen, Shudong Zhang, Jie Zhang, Tianwei Zhang

Large-scale pre-trained generative models are taking the world by storm, due to their abilities in generating creative content. Meanwhile, safeguards for these generative models are developed, to protect users' rights and safety, most of which are designed for large language models. Existing methods primarily focus on jailbreak and adversarial attacks, which mainly evaluate the model's safety under malicious prompts. Recent work found that manually crafted safe prompts can unintentionally trigger unsafe generations. To further systematically evaluate the safety risks of text-to-image models, we propose a novel Automatic Red-Teaming framework, ART. Our method leverages both vision language model and large language model to establish a connection between unsafe generations and their prompts, thereby more efficiently identifying the model's vulnerabilities. With our comprehensive experiments, we reveal the toxicity of the popular open-source text-to-image models. The experiments also validate the effectiveness, adaptability, and great diversity of ART. Additionally, we introduce three large-scale red-teaming datasets for studying the safety risks associated with text-to-image models. Datasets and models can be found in https://github.com/GuanlinLee/ART.

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

Code

Syntology Ran 9 of 12 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · our draft was wrong; 6 ran with no contract checked.

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

guanlinlee/art officialmentioned in paperpytorchMIT 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

12 samples harvested; 9 ran; 2 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 · honoured contract
1ran · our draft was wrong
6ran
3unverified

Licence: 0 of the 12 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 GuanlinLee/ART. “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.

build_custom_prompt GuanlinLee/ART/prompt_utils_for_llamaguard.py official repository ran MIT (permissive) · 2edce6f7b993b57d · report
create_conversation GuanlinLee/ART/prompt_utils_for_llamaguard.py official repository ran MIT (permissive) · 36902b4e02b9c5b5 · report
get_img_detect_result GuanlinLee/ART/summarize_results.py official repository ran MIT (permissive) · 99d0987d1d2adf13 · report
get_prompt_detect_result GuanlinLee/ART/summarize_results.py official repository ran MIT (permissive) · cc03fc7ad96b8a2f · report
infererence_sd guanlinlee/art/generate_images.py official repository ran · honoured contract MIT (permissive) · 4ccf94a830b3dbbf · report
load_images guanlinlee/art/generate_images.py official repository ran · honoured contract MIT (permissive) · 536c088dcbe9fc5d · report
load_json GuanlinLee/ART/parse_comprehensive_results.py official repository ran MIT (permissive) · 46eea92fab94e361 · report
parse_img_detector_results GuanlinLee/ART/parse_comprehensive_results.py official repository ran MIT (permissive) · 2aef95d6fafac83d · report
select_a_prompt guanlinlee/art/craft_vlm_dataset.py official repository ran · our draft was wrong MIT (permissive) · 8effea0d46b99125 · report
build_default_prompt GuanlinLee/ART/prompt_utils_for_llamaguard.py official repository unverified MIT (permissive) · c3b47216606831e2 · report
build_llama GuanlinLee/ART/run_agents.py official repository unverified MIT (permissive) · 8ff8b72148aa79ff · report
select_a_prompt GuanlinLee/ART/craft_llm_dataset.py official repository unverified MIT (permissive) · 98e2d79d448913e2 · report

Tasks

DiversityLanguage ModelingLanguage ModellingLarge Language ModelRed Teaming

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

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