Crimson AI NewsA CrimsonLingua Network service
EN ع
← Back to news
Research paper Hugging Face

DiSCO: A Black-Box Defense Against Unsafe Text-to-Image Generation

AI By Crimson AI Hugging Face Papers 19 August 2026 · 00:00 27 views
Share: X Telegram

Researchers propose DiSCO, a zero-shot, black-box defense that optimizes prompts to reduce harmful image generation without modifying the model, achieving significant reductions in attack success rate.

DiSCO: A Black-Box Defense Against Unsafe Text-to-Image Generation

Key points

As text-to-image models become more powerful, concerns about their potential to generate Not-Safe-For-Work (NSFW) content, such as violence and nudity, have intensified. These risks are further amplified by adversarial red-teaming attacks designed to bypass safety filters. Existing defenses often rely on white-box access, which is impractical for proprietary models.

To address this, researchers from Hugging Face have introduced DiSCO, a novel defense that operates entirely at the prompt level. DiSCO is a zero-shot, black-box module that requires no retraining, fine-tuning, or access to model internals, making it a plug-and-play solution for any text-to-image system.

The method works by expanding prompts with distribution-guided suffixes using beam search, then optimizing them through contrastive scoring over safe and unsafe image pools generated by the target model itself. This iterative process continues until safe content is produced, effectively countering what the authors call the 'benign adversarial' problem—prompts that are linguistically safe but still trigger harmful generation.

In experiments on the I2P benchmark under multiple red-teaming attacks, DiSCO reduced the Attack Success Rate (ASR) by 37.7% for undefended models and 25.13% for defended models, while maintaining semantic fidelity and improving image coherence. The approach is architecture-agnostic and can be readily applied to any text-to-image system without necessitating changes to the model itself.

MetricUndefended ModelDefended Model
ASR Reduction37.7%25.13%
Source
Hugging Face · Hugging Face Papers
Related news
Research paper
Hugging Face 15 Oct 2026

New Survey Maps How Multimodal AI Agents Remember and Evolve

A Hugging Face survey proposes a two-axis framework for multimodal agent memory, separating how information is formed and represen...

20
Research paper
Hugging Face 15 Oct 2026

CriticOPD Fixes On-Policy Distillation by Letting Teachers Critique Student Errors

Hugging Face researchers introduce CriticOPD, a method that restores the teacher's ability to recover from student mistakes during...

22
Research paper
Hugging Face 15 Oct 2026

ActionOPD: Distilling Agent Decisions, Not Tokens

A new Hugging Face paper proposes ActionOPD, an action-level on-policy distillation method that aligns a student agent's decisions...

22