cd /news/artificial-intelligence/disco-defending-text-to-image-genera… · home topics artificial-intelligence article
[ARTICLE · art-102423] src=arxiv.org ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

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

Researchers propose DiSCO, a zero-shot, black-box defense for text-to-image models that reduces Not-Safe-For-Work (NSFW) content generation by 37.7% on undefended models and 25.13% on defended models under red-teaming attacks, according to a preprint on arXiv (2608.17067v1). DiSCO operates entirely at the prompt level via distribution-guided suffix expansion and contrastive scoring, requiring no model access or retraining.

read1 min views1 publishedAug 19, 2026

arXiv:2608.17067v1 Announce Type: new Abstract: As text-to-image generative models advance, they raise critical safety concerns, particularly the generation of Not-Safe-For-Work (NSFW) content such as violence and nudity, further exacerbated by red-teaming adversarial attacks. Existing defenses predominantly operate under white-box assumptions, relying on text encoder optimization, weight editing, or inference-time intervention, and fundamentally cannot scale to proprietary models. Black-box alternatives based on LLM prompt rewriting offer broader applicability, yet fail in a critical regime we identify as the \textit{benign adversarial} problem: prompts that are linguistically safe but still trigger harmful generation due to the model's learned data distribution. We propose DiSCO, 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. DiSCO performs distribution-guided suffix expansion via beam search, optimized through contrastive scoring over safe and unsafe image pools generated by the target model itself, with iterative adaptive feedback until safe content is produced. We demonstrate that DiSCO consistently enhances the safety of both undefended and defended models on the I2P benchmark under multiple red-teaming attacks, achieving 37.7% and 25.13% ASR reduction, respectively, while maintaining semantic fidelity and improving image coherence. As a black-box, architecture-agnostic module, DiSCO can be readily applied to any text-to-image system without necessitating any changes to the model itself.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @disco 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/disco-defending-text…] indexed:0 read:1min 2026-08-19 ·