Researchers have introduced DiSCO, a zero-shot, black-box defense mechanism designed to prevent text-to-image models from generating Not-Safe-For-Work (NSFW) content, specifically addressing the "benign adversarial" problem where linguistically safe prompts trigger harmful imagery. Unlike existing white-box methods that require weight editing or access to model internals, DiSCO operates exclusively at the prompt level as a plug-and-play module. The method utilizes distribution-guided suffix expansion via beam search, employing a contrastive scoring technique against safe and unsafe image pools generated by the target model. This process uses iterative adaptive feedback to refine the prompt until safe outputs are secured. The effectiveness of DiSCO was evaluated using the I2P benchmark under various red-teaming attacks. Results indicate that DiSCO significantly enhances safety, achieving a 37.7% reduction in Attack Success Rate (ASR) for undefended models and a 25.13% reduction for already defended models. Crucially, the approach maintains semantic fidelity and improves image coherence without requiring any retraining, fine-tuning, or architectural modifications to the underlying generative system, making it a highly scalable solution for proprietary, closed-source models.

Read original