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

Xinpeng Wang, Xiaoyuan Yi, Han Jiang, Shanlin Zhou, Zhihua Wei +1 more
12/13/2023
cs.CLcs.AI

No official code found. Best implementation: victorup/ToViLaG (10 stars, last commit 2023-12-24).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

victorup/ToViLaGCommunity100%

Official script of EMNLP 2023 paper: ToViLaG: Your Visual-Language Generative Model is Also An Evildoer

101PythonOct 20, 20232 years ago

Similar Papers

Cite this paper

@article{wang2023tovilag,
  title  = {ToViLaG: Your Visual-Language Generative Model is Also An Evildoer},
  author = {Xinpeng Wang and Xiaoyuan Yi and Han Jiang and Shanlin Zhou and Zhihua Wei and Xing Xie},
  year   = {2023},
  eprint = {2312.11523},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.11523v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.11523.svg)](https://codeofpaper.com/paper/2312.11523)

Discussion