Rethinking Negative Prompting for Concept Suppression: Unconditional Anchoring and Localized Guidance

Anubhav Jain, Takashi Shibuya, Yuya Kobayashi, Yuhta Takida, Nasir Memon, Julian Togelius, Yuki MitsufujiTMLR 2026

TL;DR

Text-to-image diffusion models can be tricked by "jailbreak" prompts into generating banned concepts (like nudity or violence), even when standard negative prompting is turned on. This paper diagnoses why—a failure mode called guidance collapse—and introduces TraSCE, a training-free, inference-time fix that steers the generation toward a neutral fallback whenever a prompt tries to sneak past the filter.

What Problem Does This Paper Address?

Deploying text-to-image models (like Stable Diffusion or FLUX) safely means keeping them from generating harmful content (nudity, violence) or copyrighted artistic styles. Retraining models from scratch is too expensive, and weight-editing methods require curating concept-specific data and are hard to reverse once deployed.

That leaves negative prompting—the go-to inference-time tool. Normally, negative prompting works by taking the model's prediction for the negative prompt (e.g., "nude") and pushing the generation away from it toward the user's prompt.

The catch? Adversaries can craft jailbreak prompts—often weird, semantically garbled strings of tokens—that don't mention the banned word explicitly, yet still trick the model's internal denoising predictions into aligning with the negative concept. When the prompt prediction ($\hat{\epsilon}_{\text{p}}$) and negative-prompt prediction ($\hat{\epsilon}_{\text{np}}$) become nearly identical, the difference between them vanishes. The guidance collapses, and standard negative prompting degenerates into outputting the negative prompt's prediction itself—the exact thing you were trying to suppress!

Methods

The authors propose TraSCE (Trajectory Steering for ConcEpt Suppression), a training-free, inference-time method with two complementary pieces:

  1. Unconditional Anchoring: Instead of anchoring the guidance update at the negative-prompt prediction ($\hat{\epsilon}_{\text{np}}$), TraSCE anchors it at the neutral unconditional prediction ($\hat{\epsilon}_{\emptyset}$, i.e., an empty prompt): $$\hat{\epsilon} \leftarrow \hat{\epsilon}_{\emptyset} + s(\hat{\epsilon}_{\text{p}} - \hat{\epsilon}_{\text{np}})$$ Now, when guidance collapses ($\hat{\epsilon}_{\text{p}} \approx \hat{\epsilon}_{\text{np}}$), the output safely falls back to a neutral, prompt-agnostic image rather than the suppressed concept.

  2. Alignment-Localized Steering: Even with unconditional anchoring, a clever jailbreak prompt can still leave a small residual difference ($\hat{\epsilon}_{\text{p}} - \hat{\epsilon}_{\text{np}}$) that steers the image toward unsafe territory. To stop this without ruining normal, benign prompts, TraSCE adds a gradient step on the latent state $x_t$ using a Gaussian-shaped loss: $$\mathcal{L}_t = -\exp\left(-\frac{\|\hat{\epsilon}_{\text{p}} - \hat{\epsilon}_{\text{np}}\|_2^2}{2\sigma^2}\right)$$ This acts as a soft gate: when the prompt and negative prompt are far apart (benign prompts), the gate is closed and nothing happens. When they get close (near guidance collapse), the gate opens, deliberately pulling the predictions together and forcing the sample into the safe unconditional fallback.

Datasets

No training datasets are needed, as TraSCE is entirely training-free. For evaluation, the authors use:

  • Nudity jailbreaks: Ring-A-Bell, MMA-Diffusion (black-box attacks), P4D, UnLearnDiffAtk (white-box attacks), and I2P (inappropriate image prompts), evaluated with NudeNet.
  • Violence jailbreaks: Ring-A-Bell-Union, evaluated with the Q16 detector.
  • Artistic style & object suppression: Suppressing "Van Gogh" and "Kelly McKernan" while preserving unrelated styles (classified by GPT-4o), plus object erasure on Imagenette (10 ImageNet classes).
  • General image quality: 10,000 prompts from COCO-30K (measuring FID and CLIP scores).

Key Insights and Ideas

  • Guidance collapse is the hidden culprit: Standard negative prompting fails on jailbreaks not because the model ignores the negative prompt, but because the adversarial prompt's denoising prediction converges to the negative prompt's prediction, causing the repulsion term to vanish.
  • Turning a bug into a feature: Rather than trying to prevent guidance collapse, TraSCE deliberately induces it for suspicious prompts—because under unconditional anchoring, collapse means falling back to a harmless, neutral image.
  • Soft gating beats hard thresholds: A Gaussian-shaped loss smoothly localizes the intervention to the small-gap regime where jailbreaks live, avoiding the discontinuous switching and quality drops of hard-threshold gating.

Key Results

  • Nudity (SDv1.4): On Ring-A-Bell (K77/K38/K16), TraSCE slashes the Attack Success Rate (ASR) from 17.89% / 28.42% / 34.74% (standard negative prompting) down to 1.05% / 2.10% / 2.10%. On P4D and UnLearnDiffAtk, ASR drops from 24.00% and 7.80% to 3.97% and 0.70%. Meanwhile, COCO-30K FID stays virtually unchanged (17.41 vs. 16.71 for base SDv1.4).
  • Violence (SDv1.4): ASR on Ring-A-Bell-Union drops from 94.8% (standard negative prompting) to 50.0%.
  • Generalization to FLUX.1-dev: TraSCE is model-agnostic. On FLUX.1-dev, it cuts Ring-A-Bell nudity ASR from ~82–83% down to 3.16%–9.47%, and reduces explicit I2P images from 605 to 10.
  • Styles & Objects: It effectively suppresses target styles (e.g., Van Gogh) while preserving unrelated ones, and achieves near-zero erased-class accuracy (0.06%) on Imagenette.
Impact of removing Van Gogh style on unrelated artistic styles

Limitations and Future Work

  • Inference-time overhead: Because TraSCE requires an extra unconditional forward pass and a gradient computation at every denoising step, it is slower—taking 14.29s per image on SDv1.4 (vs. 5.45s for standard negative prompting on an A100) and 47.58s on FLUX.1-dev (vs. 29.62s on an H100). Future work could speed this up via gradient approximation or intermittent/detector-based gating.
  • Residual leakage & quality trade-offs: While TraSCE drastically reduces unsafe outputs, it doesn't eliminate them completely (e.g., 50% ASR on violence). On Imagenette object erasure, non-target class accuracy also drops from 78.2% to 55.8%, a steeper trade-off than weight-editing methods that use explicit preservation sets.

Summary updated

BibTeX
@article{jain2026rethinking,
  author = {Anubhav Jain and Takashi Shibuya and Yuya Kobayashi and Yuhta Takida and Nasir Memon and Julian Togelius and Yuki Mitsufuji},
  title = {{Rethinking Negative Prompting for Concept Suppression: Unconditional Anchoring and Localized Guidance}},
  journal = {Accepted by TMLR},
  year = {2026},
  url = {https://openreview.net/forum?id=RgdWbRqviu},
}
Figure