Skip to content

Not Safe for All: Auditing the Dialect Penalty in Text-to-Image Safety Pipelines

Aug 2026 · 0 citations · 42 references
Computer Science

TL;DR

Text-to-image safety guardrails fail to generalize equitably to non-standard dialects, formalized as the dialect penalty, where filters trigger based on linguistic surface features rather than semantic intent, and is mitigable via group-balanced retraining.

Abstract

Text-to-image (T2I) safety guardrails fail to generalize equitably to non-standard dialects. Evaluating 23,080 paired prompts across five English dialects, we formalize this failure as the dialect penalty, where filters trigger based on linguistic surface features rather than semantic intent. Text-level filters fail in opposing directions: NSFW-T over-flags benign dialect prompts and LatentGuard over-flags toxic ones (bias gaps up to +28.29 pp), while the OpenAI Moderation API under-detects them. A controlled typo ablation confirms this penalty originates from flagging dialectal features, not generic out-of-distribution sensitivity. The pixel-level generator is largely dialect-agnostic; the penalty enters at text processing and cascades unevenly to post-hoc guardrails. We show this bias tracks training data imbalance and is mitigable via group-balanced retraining, with an ablation attributing the gain to balanced exposure rather than to the worst-group objective of GroupDRO (group distributionally robust optimization). Current pipelines systematically fail dialect speakers, an equity failure masked by mean accuracy benchmarks. Our official code and dataset are publicly available at https://github.com/minguinho26/dialect-penalty-t2i. Content Warning: This paper contains offensive, toxic, or disturbing text prompts and generated images.

View source

Similar papers

#artificial intelligence Preprint Oct 2026

Keep It CALM: Analyzing the Limits of Global Unsafety in Text-to-Image Generation

Training-free safeguards for text-to-image generation often rely on a reusable safety signal, such as an unsafe direction or global toxic subspace, applied broadly across prompts. We provide a controlled geometric analysis of this global-unsafety assumption and reveal a consistent coverage-selectivity trade-off: compac...

Nahyeon Park, Minhyun Lee, Hyunjung Shim · 0 citations
#artificial intelligence Preprint Sep 2026

InGuard: Towards Generalized Inner Guardrail for Safe Text-to-Image Generation

The Inner Guardrail (InGuard) is proposed, a safety framework that works inside the pipeline on the model's own representations, leaving base-model parameters untouched and the RevGen Safety Benchmark to evaluate T2I safety under realistic conditions.

Ze-Yu Wang, Xiao-Dan Li, Zhi-Wen Li et al. · 0 citations
Preprint Aug 2026

DiSCO: Defending text-to-image generation through distribution-guided contrastive prompt optimization

DiSCO is proposed, a zero-shot, strictly black-box defense that operates entirely at the prompt level as a plug-and-play module, requiring no model retraining, fine-tuning, or access to model internals, and can be readily applied to any text-to-image system without necessitating any changes to the model itself.

Tong Zhang, M. Alfarra, Carlos Hinojosa et al. · 0 citations
Preprint Aug 2026

DefaultShift: Auditing Semantic Default Shift in Accelerated Text-to-Image Models

Few-step text-to-image models increasingly replace slower generators, yet acceleration can silently change distributions over unspecified attributes even when individual outputs remain plausible and aligned. We call these distributions semantic defaults and their change under replacement semantic default shift. Existin...

Xuan-Hua Yin, Chuanzhi Xu, Shunqi Mao et al. · 2 citations
Preprint Sep 2026

Automatic Red Teaming for Implicit Vulnerabilities of Text-to-Image Models

Adversarial Probing for Implicit VulnErabilities (AdvPIE), a multimodal agentic framework to expose implicit vulnerabilities without requiring access to the parameters of target models, is proposed.

Chang-Sha Ma, Junlin Han, Shuo Chen et al. · 0 citations

Related blog posts

Hugging Face Blog Oct 20, 2026

MPS in PyTorch 2.15

We’re on a journey to advance and democratize artificial intelligence through open source and open science.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.