Metraipolis › archive › dc_97e124b9d783
DiSCO: Defending text-to-image generation through distribution-guided contrastive prompt optimization — arXiv:2608.17067
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.17067
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-18T14:28:28.545Z
- SHA-256 of the archived text
c4a2bb825e8330d6b4db9d8061e8ef535cbbfc248d927fd9d3d04b3da7f5ce25- Stable URL of this page
https://metraipolis.com/documento/dc_97e124b9d783
How to cite
DiSCO: Defending text-to-image generation through distribution-guided contrastive prompt optimization — arXiv:2608.17067 — arXiv (en), https://arxiv.org/abs/2608.17067 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_97e124b9d783 (Metraipolis archive dc_97e124b9d783, sha256 c4a2bb825e8330d6b4db9d8061e8ef535cbbfc248d927fd9d3d04b3da7f5ce25)
BibTeX
@misc{dc97e124b9d783,
title = {DiSCO: Defending text-to-image generation through distribution-guided contrastive prompt optimization — arXiv:2608.17067},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.17067},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_97e124b9d783; sha256 c4a2bb825e8330d6b4db9d8061e8ef535cbbfc248d927fd9d3d04b3da7f5ce25},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.17067. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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.
Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-19 in cs.AI).
Categorie arXiv: Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2608.17067 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T14:27:54.234Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-19?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).