Metraipolis › archive › dc_c86437a6e926

InGuard: Towards Generalized Inner Guardrail for Safe Text-to-Image Generation — arXiv:2609.27620

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.27620
License (as archived)
CC0-1.0
Archived
2026-10-08T09:12:51.544Z
SHA-256 of the archived text
0efd6c576133204a90e1485a80d18204f9e8663b46970ecc3efdf9065c831567
Stable URL of this page
https://metraipolis.com/documento/dc_c86437a6e926

How to cite

InGuard: Towards Generalized Inner Guardrail for Safe Text-to-Image Generation — arXiv:2609.27620 — arXiv (en), https://arxiv.org/abs/2609.27620 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_c86437a6e926 (Metraipolis archive dc_c86437a6e926, sha256 0efd6c576133204a90e1485a80d18204f9e8663b46970ecc3efdf9065c831567)
BibTeX
@misc{dcc86437a6e926,
  title = {InGuard: Towards Generalized Inner Guardrail for Safe Text-to-Image Generation — arXiv:2609.27620},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.27620},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_c86437a6e926; sha256 0efd6c576133204a90e1485a80d18204f9e8663b46970ecc3efdf9065c831567},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.27620. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Modern text-to-image (T2I) models generate high-quality images from arbitrary user prompts, yet they can just as easily produce not-safe-for-work (NSFW) content. Conventional outer guardrails consist of two components: a prompt classifier that checks for risk before generation, and a post-hoc image classifier that checks the fully generated image. In this design, both classifiers operate outside the generation pipeline and do not use the model's own representations. This separation can limit prompt-screening accuracy, while the image-side check runs only after the full generation cost has been spent. Moreover, a flagged prompt can only be rejected, even when it could be adjusted to produce a safe image. In this work, we propose the Inner Guardrail (InGuard), a safety framework that works inside the pipeline on the model's own representations, leaving base-model parameters untouched. First, a risk classifier grades each prompt as unsafe, risky, or benign based on the text encoder's embeddings, with no external language model. Second, SAGE (Soft-gated Asymmetric Guardrail for Embeddings) modifies the embeddings of risky prompts, aiming to return a safe image instead of a refusal. Third, a latent detector checks the one-step clean latent estimate midway through denoising, reaching nearly image-level performance and halting generation when risk is detected. We also construct the RevGen Safety Benchmark to evaluate T2I safety under realistic conditions: 10,000 prompts built through real-image reverse generation, with a rewriting step that supplies controlled intellectual-property (IP) characters, covering graded porn/gore risks, categorical IP risks, and benign negatives. Across five open-weight T2I models, InGuard reaches 97.9-98.8% safety rate, matching or exceeding the outer guardrail, with 57.5-73.5% less benign disturbance, ~3.7x fewer parameters, and 50-55.6% of denoising steps skipped.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-24 in cs.AI).
Categorie arXiv: Computer Vision and Pattern Recognition (cs.CV) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2609.27620 — 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-08T08:13:26.698Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-24?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).