← Latest papers
🤖 AI

Inference-Only Prompt Projection for Safe Text-to-Image Generation with TV Guarantees

This paper introduces SPOT, an inference-time framework that selectively projects unsafe prompts toward a "tau safe set" using an LLM and a safeguard VLM to significantly reduce inappropriate image generation while preserving the behavior of benign prompts without retraining the diffusion model.

Original authors: Minhyuk Lee, Hyekyung Yoon, Myungjoo Kang

Published 2026-05-13
📖 4 min read☕ Coffee break read

Original authors: Minhyuk Lee, Hyekyung Yoon, Myungjoo Kang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a magical, frozen art machine (a Text-to-Image AI) that can draw anything you describe. It's incredibly talented, but sometimes, if you give it a tricky or dangerous prompt, it might accidentally draw something inappropriate.

The problem is: if you try to "fix" the machine itself to stop drawing bad things, you often accidentally break its ability to draw good things too. It's like trying to stop a chef from cooking spicy food by removing their knife; suddenly, they can't chop vegetables for a salad either.

This paper introduces a new method called SPOT (Selective Prompt Projection) that acts like a smart editor sitting before the machine, rather than trying to rebuild the machine itself.

Here is how it works, using simple analogies:

1. The "Frozen Machine" Rule

The authors decided not to touch the art machine at all. They kept it exactly as it was (frozen). Why? Because if you change the machine, you change its personality. They wanted to keep the machine's "good" behavior exactly the same, only stopping the "bad" behavior.

2. The "Safety Map" (The τ Safe Set)

Imagine a map where some areas are "Green Zones" (safe to draw) and others are "Red Zones" (unsafe).

  • The Goal: If you ask for something in a Green Zone, the editor leaves your request alone. The machine draws exactly what you asked for.
  • The Problem: If you ask for something in a Red Zone, the editor must intervene. But instead of just saying "No," it tries to find the nearest Green Zone that still looks like your original request.

3. The Two-Stage Detective Team

SPOT uses a two-step process to handle risky requests, acting like a security team with a cheap scanner and a strict inspector.

  • Stage 1: The Quick Scanner (The LLM)
    When a risky prompt comes in, a fast, text-only AI (the LLM) acts as a scout. It quickly generates a few "rewritten" versions of your prompt. It asks: "If I change this word to that word, does it look safer?"

    • It picks the version that is closest to your original idea but moves it out of the Red Zone and into the Green Zone.
    • This is fast and cheap because it only looks at words, not pictures.
  • Stage 2: The Strict Inspector (The VLM)
    Once the editor picks the best rewritten prompt, the actual art machine draws the picture. Then, a second AI (a Vision-Language Model) looks at the actual image that was created.

    • It asks: "Is this picture actually safe?"
    • If the picture is safe, it gets the green light.
    • If the picture is still unsafe (maybe the machine misunderstood the new prompt), the system goes back to Stage 1, tries a different rewrite, and draws again.

4. The "Safety vs. Creativity" Trade-off

The paper makes a very important mathematical point: You cannot make an AI safer without changing its output slightly.
Think of it like a river. If you want to divert a dangerous flood (unsafe images) away from a village, you have to build a new channel. That new channel changes the water's path.

  • SPOT's trick: It only builds a new channel for the dangerous flood. If the water is already flowing safely (benign prompts), it leaves the river exactly where it is. This ensures that when you ask for a "cute cat," you still get a "cute cat," not a "cartoon cat" or a "black screen."

5. The Results

The authors tested this on four different sets of data and three different art machines.

  • Safety: It successfully reduced the number of inappropriate images by a lot (between 14% and 44% better than other methods).
  • Creativity: It kept the "good" images looking almost exactly the same as they would have without any safety filters.
  • Speed: Because the first stage (the text scanner) is so fast, the whole process is much quicker than methods that check every single image idea before drawing it.

Summary

SPOT is like a bouncer at a club who doesn't change the music or the DJ (the AI model). Instead, if someone tries to say something rude at the door, the bouncer gently suggests they rephrase it to something polite. If the rephrased sentence gets them in, they enter. If they keep trying to be rude, they don't get in. But if they were polite to begin with, they walk right in without being touched.

This ensures the club stays safe without ruining the experience for the good guests.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →