potentialpaper

Red-Teaming NSFW Image Classifiers as Text-to-Image Safeguards

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 18:48 UTC · 01230f0acc44 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,29 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "KsxSp2LMlo"
- }
- ],
- "title": "Red-Teaming NSFW Image Classifiers as Text-to-Image Safeguards",
- "authors": [
- "Tinghao Xie",
- "Yueqi Xie",
- "Alireza Zareian",
- "Shuming Hu",
- "Felix Juefei-Xu",
- "Xiaowen Lin",
- "Ankit Jain",
- "Prateek Mittal",
- "Li Chen"
- ],
- "abstract": "Not Safe for Work (NSFW) image classifiers play a critical role in safeguarding text-to-image (T2I) systems. However, a concerning phenomenon has emerged in T2I systems -- changes in text prompts that manipulate benign image elements can result in failed detection by NSFW classifiers -- dubbed \"*context shifts*.\" For instance, while a NSFW image of *a nude person in an empty scene* can be easily blocked by most NSFW classifiers, a stealthier one that depicts *a nude person blending in a group of dressed people* may evade detection. How to systematically reveal NSFW image classifiers' failure against context shifts? \n\nTowards this end, we present an automated red-teaming framework that leverages a set of generative AI tools. We propose an **exploration-exploitation** approach: First, in the *exploration* stage, we synthesize a diverse and massive 36K NSFW image dataset that facilitates our study of context shifts. We find that varying fractions (e.g., $4.1$% to $36$% nude and sexual content) of the dataset are misclassified by NSFW image classifiers like GPT-4o and Gemini. Second, in the *exploitation* stage, we leverage these failure cases to train a specialized LLM that rewrites unseen seed prompts into more evasive versions, increasing the likelihood of detection evasion by up to 6 times. Alarmingly, we show **these failures translate to real-world T2I(V) systems**, including DALL-E 3, Sora, Gemini, and Grok, beyond the open-weight image generators used in our red-teaming pipeline. For example, querying DALL-E 3 and Imagen 3 with prompts rewritten by our approach increases the chance of obtaining NSFW images from $0$ to over $44$%.",
- "year": 2026,
- "venue": "ICLR 2026 submission",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "6cefec11-5088-49a1-b6e7-15222e2d082f"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,19 @@
+{
+ "title": "Red-Teaming NSFW Image Classifiers as Text-to-Image Safeguards",
+ "authors": [
+ "Tinghao Xie",
+ "Yueqi Xie",
+ "Alireza Zareian",
+ "Shuming Hu",
+ "Felix Juefei-Xu",
+ "Xiaowen Lin",
+ "Ankit Jain",
+ "Prateek Mittal",
+ "Li Chen"
+ ],
+ "abstract": "Not Safe for Work (NSFW) image classifiers play a critical role in safeguarding text-to-image (T2I) systems. However, a concerning phenomenon has emerged in T2I systems -- changes in text prompts that manipulate benign image elements can result in failed detection by NSFW classifiers -- dubbed \"*context shifts*.\" For instance, while a NSFW image of *a nude person in an empty scene* can be easily blocked by most NSFW classifiers, a stealthier one that depicts *a nude person blending in a group of dressed people* may evade detection. How to systematically reveal NSFW image classifiers' failure against context shifts? \n\nTowards this end, we present an automated red-teaming framework that leverages a set of generative AI tools. We propose an **exploration-exploitation** approach: First, in the *exploration* stage, we synthesize a diverse and massive 36K NSFW image dataset that facilitates our study of context shifts. We find that varying fractions (e.g., $4.1$% to $36$% nude and sexual content) of the dataset are misclassified by NSFW image classifiers like GPT-4o and Gemini. Second, in the *exploitation* stage, we leverage these failure cases to train a specialized LLM that rewrites unseen seed prompts into more evasive versions, increasing the likelihood of detection evasion by up to 6 times. Alarmingly, we show **these failures translate to real-world T2I(V) systems**, including DALL-E 3, Sora, Gemini, and Grok, beyond the open-weight image generators used in our red-teaming pipeline. For example, querying DALL-E 3 and Imagen 3 with prompts rewritten by our approach increases the chance of obtaining NSFW images from $0$ to over $44$%.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}