paper-with-me

홈 › Papers

Beautiful Images, Toxic Words: Understanding and Addressing Offensive Text in Generated Images

2025-02-07 · Aditya Kumar, Tom Blanchard, Adam Dziedzic, Franziska Boenisch

State-of-the-art visual generation models, such as Diffusion Models (DMs) and Vision Auto-Regressive Models (VARs), produce highly realistic images. While prior work has successfully mitigated Not Safe For Work (NSFW) content in the visual domain, we identify a novel threat: the generation of NSFW text embedded within images. This includes offensive language, such as insults, racial slurs, and sexually explicit terms, posing significant risks to users. We show that all state-of-the-art DMs (e.g., SD3, Flux, DeepFloyd IF) and VARs (e.g., Infinity) are vulnerable to this issue. Through extensive experiments, we demonstrate that existing mitigation techniques, effective for visual content, fail to prevent harmful text generation while substantially degrading benign text generation. As an initial step toward addressing this threat, we explore safety fine-tuning of the text encoder underlying major DM architectures using a customized dataset. Thereby, we suppress NSFW generation while preserving overall image and text generation quality. Finally, to advance research in this area, we introduce ToxicBench, an open-source benchmark for evaluating NSFW text generation in images. ToxicBench provides a curated dataset of harmful prompts, new metrics, and an evaluation pipeline assessing both NSFW-ness and generation quality. Our benchmark aims to guide future efforts in mitigating NSFW text generation in text-to-image models and is available at https://github.com/sprintml/ToxicBench

📄 PDF Abstract BibTeX arXiv:2502.05066

Code (1)

sprintml/toxicbench 공식 구현 pytorch

Tasks

Text Generation

Methods 이 논문이 사용한 방법론

Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

Addressing Biases in the Texts using an End-to-End Pipeline Approach

2023-03-13 · Shaina Raza, Syed Raza Bashir, Sneha, Urooj Qamar

The concept of fairness is gaining popularity in academia and industry. Social media is especially vulnerable to media biases and toxic language and comments. We propose a fair ML pipeline that takes a text as input and …

FairnessWord Embeddings

Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Experts

2022-12-20 · Skyler Hallinan, Alisa Liu, Yejin Choi, Maarten Sap

Text detoxification has the potential to mitigate the harms of toxicity by rephrasing text to remove offensive meaning, but subtle toxicity remains challenging to tackle. We introduce MaRCo, a detoxification algorithm th…

Aesthetics Without Semantics

2025-05-08 · C. Alejandro Parraga, Olivier Penacchio, Marcos Muňoz Gonzalez, Bogdan Raducanu 외

While it is easy for human observers to judge an image as beautiful or ugly, aesthetic decisions result from a combination of entangled perceptual and cognitive (semantic) factors, making the understanding of aesthetic j…

Finding Beautiful and Happy Images for Mental Health and Well-being Applications

2024-04-28 · Ruitao Xie, Connor Qiu, Guoping Qiu

This paper explores how artificial intelligence (AI) technology can contribute to achieve progress on good health and well-being, one of the United Nations' 17 Sustainable Development Goals. It is estimated that one in t…

BeautifulPrompt: Towards Automatic Prompt Engineering for Text-to-Image Synthesis

2023-11-12 · Tingfeng Cao, Chengyu Wang, Bingyan Liu, Ziheng Wu 외

Recently, diffusion-based deep generative models (e.g., Stable Diffusion) have shown impressive results in text-to-image synthesis. However, current text-to-image models often require multiple passes of prompt engineerin…

Image GenerationPrompt EngineeringText to Image GenerationText-to-Image Generation