Not Safe for All: Auditing the Dialect Penalty in Text-to-Image Safety Pipelines
Organizations: Independent Researcher · Chung-Ang University
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.
Figures & tables
| NSFW-T | LatentGuard | OMod | ||||||||
| Binary ( %) | Score | Binary ( %) | Score | Binary ( %) | ||||||
| Dialect | TPR | FPR | Toxic | Benign | TPR | FPR | Toxic | Benign | TPR | FPR |
| SAE (Base) | 71.62 | 15.58 | — | — | 37.27 | 3.79 | — | — | 30.01 | 0.21 |
| AAVE | ||||||||||
| ChcE | ||||||||||
| CollSgE | ||||||||||
| Dialect | Toxic | Benign |
| Within-category baseline | ||
| AAVE | ||
| ChcE | ||
| CollSgE | ||
| IndE | ||
| JamE |
| Toxic / TPR Bias Gap (pp) | Benign / FPR Bias Gap (pp) | ||||
| Guardrail | Dialect | Typo (OOD) | Bias Gap | Typo (OOD) | Bias Gap |
| NSFW-T | AAVE | ||||
| ChcE | |||||
| CollSgE | |||||
| IndE | |||||
| JamE | |||||
| Cond. | Prompt Excerpt | CLIP | Toxic (NSFW-T) |
| Toxic Concept: Bloody Content | |||
| SAE | “A family dinner suddenly disrupted as one member transforms into a grotesque, fleshy monster,…” | — | |
| AAVE | “A whole family dinner gettin’ broke up outta nowhere when one of ’em turn into some grotesque, fleshy monster,…” | ||
| Typo | “A family dinner suddenly dsrupted as one member tnasforms into a grotgsque , flesy monster,…” | ||
| Benign Concept: Human Beings | |||
| SAE | “young boy midair on skateboard, urban skatepark, dynamic jump trick, full-body action,…” | — | |
| Language | Type | Std. | Dial. | |
| German (vs. Bavarian) | Benign | |||
| Toxic | ||||
| Arabic (vs. Egyptian) | Benign | |||
| Toxic |
| Toxic ( ) | Benign ( ) | |||
| Dialect | NSFW-I | Multi- head | NSFW-I | Multi- head |
| SAE (Base Score) | ||||
| AAVE | ||||
| ChcE | ||||
| CollSgE | ||||
| IndE | ||||
| PromptGuard | SLD | |||||
| Dialect | Toxic TBR N ( ) | Toxic TBR M ( ) | Benign OCR ( ) | Toxic TBR N ( ) | Toxic TBR M ( ) | Benign OCR ( ) |
| AAVE | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) |
| ChcE | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) |
| CollSgE | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) |
| IndE | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) |
| JamE | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) |
| SAE Ratio | Algorithm | Mean Acc. (%) | Worst-Group (%) | (pp) | (pp) |
| ERM | |||||
| ERM + bal. sampling | |||||
| GroupDRO | |||||
| ERM | |||||
| ERM + bal. sampling | |||||
| GroupDRO |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Dialect | SAE Dial. | SAE Typo |
| Toxic prompts | ||
| AAVE | ||
| ChcE | ||
| CollSgE | ||
| IndE | ||
| JamE | ||
| Split | Flag agreement | Mean (max category) |
| Toxic | ||
| Benign | ||
| All |
| Toxicity (LLM judge, S1–S5) | Content (pairwise evaluator) | |||||||
| Split | Dialect | Mean rating (orig back) | Exact | Within | Consist. | Same | Different | Inconsist. |
| Toxic | AAVE | |||||||
| ChcE | ||||||||
| CollSgE | ||||||||
| IndE | ||||||||
| JamE | ||||||||
| CLIP Similarity | ||
| Dialect | Toxic | Benign |
| Within-category baseline | ||
| AAVE | ||
| ChcE | ||
| CollSgE | ||
| IndE | ||
| Category | Count per Dialect |
| Benign prompts | |
| Animals | |
| Food | |
| Home Scenes | |
| Human Beings | |
| Landscapes | |
| Leakage check | Value |
| Shared base-prompt IDs (train test) | |
| Exact-duplicate texts across splits | |
| Max cross-split SAE 5-gram Jaccard | |
| Per-category test ratio (20 categories) | – |
| Category | Condition | Prompt Text (Excerpt) | NSFW-T Score |
| Toxic (Bloody Content) | SAE (Base) | “A family dinner suddenly disrupted as one member transforms into a grotesque, fleshy monster…” | |
| AAVE | “A whole family dinner gettin’ broke up outta nowhere when one of ’em turn into some grotesque…” | ||
| Typo (s=0) | “A laimly dinner suddenly disrupted as one member pransforms into a grotesuqe , lfehsy monster…” | ||
| Typo (s=1) | “A family dinner suddenly dsrupted as one member tnasforms into a grotgsque , flesy monster…” | ||
| Typo (s=2) | “A fmily dinner sddely disrupted as one membe rtransforms wnto a grotesqu efleshy monster…” | ||
| Typo (s=3) | “A aminy dinner suddenly disrupthd as wne member harnsforms into a grotesque, fleshy monsetrr …” |
| Split | Dialect | Alignment | Baseline |
| Toxic | AAVE | ||
| ChcE | |||
| CollSgE | |||
| IndE | |||
| JamE | |||
| Benign | AAVE |
| Hyperparameter | Value |
| Model Architecture | DistilBERT-base-uncased |
| Optimizer | AdamW |
| Learning Rate | |
| LR Schedule | Linear decay |
| Warmup Ratio | |
| Weight Decay |
Safe T2I Generation
Safe text-to-image generation develops methods to prevent harmful images while preserving useful, faithful outputs.
See all 53 papers