TRANSMISSION // 2608.17067v2

A Prompt-Level Safety Net for Image Generators

Source published

DiSCO searches for prompt suffixes that steer image generators away from unsafe outputs, using small pools of safe and unsafe images from each system. Tests show lower detected attack success rates, but also reveal costs and limits.

AI-generated conceptual illustration for A Prompt-Level Safety Net for Image Generators
AI-generated conceptual illustration; not documentary evidence.

A text-to-image system can produce an unsafe image even when a prompt looks harmless or has passed existing safeguards. DiSCO, a proposed black-box defense, tries to address these leftover failures by changing the prompt—not the generator itself.

The problem: when safeguards miss

Text-to-image generators turn written prompts into images. Their safety systems may filter prompts, alter model behavior or inspect outputs, yet some unsafe images can still get through. The paper calls these “residual adversarial outputs.” They may follow explicit attacks, but can also arise from linguistically benign prompts because of patterns in a model’s learned output distribution.

Many existing defenses require access to a model’s weights or internal workings. That is difficult or impossible with proprietary services. The authors ask whether a defense can instead use only the system’s input and output: could it adjust a prompt based on images the target system itself produces?

How DiSCO works

DiSCO is a prompt-optimization module placed in front of an image generator. It does not retrain or edit the generator. For each system, the researchers first create a reference set of 25 images labeled safe and 25 labeled unsafe by people. The images come from prompts in the I2P benchmark and are generated by the system being tested, so the references reflect that system’s outputs, including any existing defenses.

When an initial image is flagged as unsafe, DiSCO searches for extra words to append to the original prompt. A language model proposes possible continuations, and a beam-search procedure keeps promising candidates. To score them, DiSCO compares each candidate’s generated image with the safe and unsafe reference images using CLIP, a model that maps text and images into a shared representation. The search favors candidates whose images resemble the safe pool and differ from the unsafe pool. Prompts that are not flagged pass through without this optimization.

This is “black-box” in the sense that DiSCO needs no access to model parameters, gradients or internal activations. But it still needs to query the target system repeatedly. With the paper’s default search settings, that means 180 candidate image generations for each flagged prompt, followed by a final generation.

What the tests found

The researchers tested four generators—Stable Diffusion 1.4, Stable Diffusion 2.0, Stable Diffusion 3 and Flux—against four red-teaming attacks. They also added DiSCO to four existing defenses. The attacks in the main evaluation targeted nudity, and the principal safety measure was NudeNet, an automated nudity detector.

Across the tested attack prompts, the paper reports that average NudeNet attack success rate fell from 32.9% to 18.8% with DiSCO. The authors report relative reductions of 37.3% for undefended models and 52.5% when DiSCO was combined with existing defenses. These are results within the study’s chosen models, attacks and evaluation setup—not a guarantee that all unsafe images will be prevented.

The authors also tested two prompt collections not used to build the reference pools, SneakyPrompt and SafeGen. They report lower detected attack success rates there as well. On benign COCO captions, CLIP scores—a proxy for how well images match prompts—declined by 4.7% on undefended systems and 5.6% on defended systems when DiSCO was applied to every prompt. The paper’s supplementary analysis also found that prompt-embedding similarity remained high, though the authors note that suffixes can sometimes introduce a visually dominant concept that shifts an image’s meaning or style.

What remains uncertain

The safety results depend on NudeNet’s classifications, which are not the same as a comprehensive human judgment of image safety. The main attack tests focused on nudity; supplementary tests cover additional I2P harm categories, but neither establishes performance across every kind of misuse, model or real-world deployment. The study evaluates four named generators and particular versions of several defenses, so results may not transfer unchanged to other systems.

The method also has practical costs: repeated image generation can make searches slow, particularly for systems where each image is expensive to produce. Its safety signal depends on the reference images and their labels, and its optimization can trade fidelity for safety. The authors explicitly describe cases where added suffixes lead to safe but semantically shifted images. They also note a dual-use risk: reversing the scoring objective could steer outputs toward unsafe references.

This work is an arXiv preprint. Its findings should be read as research claims rather than settled evidence; the supplied source does not establish peer review. DiSCO offers a tested approach to a real gap in image-generation safeguards, but the reported reductions do not show that prompt-level search can replace broader safety measures or eliminate unsafe outputs.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • AUTEUR tests the gap between text filters and AI-generated sound

    Supporting evidence: Both papers identify a gap between prompt text and generated-content safety: DiSCO’s authors describe textually benign prompts that can elicit harmful images, while AUTEUR’s authors report that text-screened descriptions can still produce harmful audio. This is a bounded cross-modal connection, not evidence that the mechanisms or measured rates are comparable; the studies evaluate different modalities and systems.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2608.17067v2 — Original paper

      Excerpt reference: static/papers/2608.17067v2.md:58-142
      Basis: Paper text
      Source SHA-256: 1020e36a41d2a9f91e1c1e809580db28966c48012100529fb0614784dd41faa5

    • 2611.09351v1 — Original paper

      Excerpt reference: static/papers/2611.09351v1.md:13-86
      Basis: Paper text
      Source SHA-256: 739a7304845e7ba5b36aab77dce68ee2c35f7dd618c419317cd43ddcf8ddcf48

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.