Papers › ToViLaG: Your Visual-Language Generative Model is Also An Evildoer

ToViLaG: Your Visual-Language Generative Model is Also An Evildoer

13 Dec 2023arXiv:2312.11523archive 2025-07-28

Xinpeng Wang, Xiaoyuan Yi, Han Jiang, Shanlin Zhou, Zhihua Wei, Xing Xie

Warning: this paper includes model outputs showing offensive content. Recent large-scale Visual-Language Generative Models (VLGMs) have achieved unprecedented improvement in multimodal image/text generation. However, these models might also generate toxic content, e.g., offensive text and pornography images, raising significant ethical risks. Despite exhaustive studies on toxic degeneration of language models, this problem remains largely unexplored within the context of visual-language generation. This work delves into the propensity for toxicity generation and susceptibility to toxic data across various VLGMs. For this purpose, we built ToViLaG, a dataset comprising 32K co-toxic/mono-toxic text-image pairs and 1K innocuous but evocative text that tends to stimulate toxicity. Furthermore, we propose WInToRe, a novel toxicity metric tailored to visual-language generation, which theoretically reflects different aspects of toxicity considering both input and output. On such a basis, we benchmarked the toxicity of a diverse spectrum of VLGMs and discovered that some models do more evil than expected while some are more vulnerable to infection, underscoring the necessity of VLGMs detoxification. Therefore, we develop an innovative bottleneck-based detoxification method. Our method could reduce toxicity while maintaining comparable generation quality, providing a promising initial solution to this line of research.

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

Code

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

By repository: official repository: 7 samples from 1 repository, 6 ran; found in paper text by Syntology: 11 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.

victorup/ToViLaG officialmentioned 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

18 samples harvested; 15 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.

1ran · violated contract
2ran · our draft was wrong
3ran · fixture could not drive it
9ran
3unverified

Licence: 7 of the 18 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

autocontrast_func victorup/ToViLaG/method/BLIP/transform/randaugment.py official repository ran · fixture could not drive it no licence file found · pointer only · 78ca1debd9c4ed87 · report
compute_acc victorup/ToViLaG/method/BLIP/utils.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · aa81d03f07735ab8 · report
compute_n_params victorup/ToViLaG/method/BLIP/utils.py official repository ran · our draft was wrong no licence file found · pointer only · ad12a494674d23fb · report
equalize_func victorup/ToViLaG/method/BLIP/transform/randaugment.py official repository ran · fixture could not drive it no licence file found · pointer only · 4c53169f63a1fcef · report
identity_func victorup/ToViLaG/method/BLIP/transform/randaugment.py official repository ran · violated contract fingerprinted no licence file found · pointer only · 1dd2ab205689d45b · report
interpolate_pos_embed victorup/ToViLaG/method/BLIP/models/vit.py official repository ran · our draft was wrong no licence file found · pointer only · c6ec173f19f5c34d · report
detect victorup/ToViLaG/metrics/toxicity/inference_imgclf.py official repository unverified no licence file found · pointer only · daa6e468bb6841f2 · report
blank_caption_function borisdayma/dalle-mini/src/dalle_mini/data.py found in paper text by Syntology ran Apache-2.0 (permissive) · b46bc8a69ab97b12 · report
deepnet_init borisdayma/dalle-mini/src/dalle_mini/model/modeling.py found in paper text by Syntology ran Apache-2.0 (permissive) · e254827ef156f929 · report
fix_html borisdayma/dalle-mini/src/dalle_mini/model/text.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 848d81c889bb92eb · report
norm borisdayma/dalle-mini/src/dalle_mini/model/modeling.py found in paper text by Syntology ran Apache-2.0 (permissive) · 405ba2d3a0e6b5b3 · report
normalize_function borisdayma/dalle-mini/src/dalle_mini/data.py found in paper text by Syntology ran Apache-2.0 (permissive) · a2d6ee58be3c306d · report
replace_person_token borisdayma/dalle-mini/src/dalle_mini/model/text.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 745c9aa603dc8439 · report
replace_punctuation_with_commas borisdayma/dalle-mini/src/dalle_mini/model/text.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 8af7dc10bc707987 · report
shift_tokens_right borisdayma/dalle-mini/src/dalle_mini/data.py found in paper text by Syntology ran Apache-2.0 (permissive) · 45e195f64c082f0e · report
smelu borisdayma/dalle-mini/src/dalle_mini/model/modeling.py found in paper text by Syntology ran Apache-2.0 (permissive) · 9914ba32442bd58d · report
get_images_from_backend borisdayma/dalle-mini/app/gradio/backend.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6189300424354113 · report
get_model_version borisdayma/dalle-mini/app/gradio/backend.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7d648505413976ce · report

Tasks

Text Generation

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