画像生成の途中で危険を検知・調整する内部ガードレール
InGuard: Towards Generalized Inner Guardrail for Safe Text-to-Image Generation
この論文をやさしく読む
ひとことで言うと
画像生成モデルの内部表現を使い、危険な指示や生成途中の画像を検知・調整する方法である。
何に役立つ?
画像生成サービスでの安全対策や、生成費用をかける前のリスク検出の設計に役立つ可能性がある。
この研究の面白いところ
危険度によって埋め込みの調整と途中停止を使い分け、実画像由来の一万件の指示で評価した。
どこまで分かった?
安全率などは五種類の公開重みモデルと構築したベンチマークでの結果であり、全ての画像生成環境での安全性を保証しない。
v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。
アブストラクトの日本語訳
現在の文章から画像を生成するモデルは、任意の指示から高品質な画像を作れる一方、職場で不適切な内容も生成し得る。従来の外部ガードレールは、生成前にリスクを確認する文章分類器と、完成後の画像分類器からなる。どちらも生成処理の外で動き、モデル自身の表現を使わない。この分離は指示文の判定精度を制限し得るうえ、画像側の検査は生成費用を全て費やした後にしか行えない。また、危険と判定された指示文は、安全な画像を作れるように調整できる場合でも拒否されるだけである。 本研究は、基盤モデルのパラメータを変えず、生成の内部でモデル自身の表現を使う安全枠組みInGuardを提案する。第一に、外部の言語モデルを使わず、テキストエンコーダーの埋め込みから各指示を危険、リスクあり、問題なしの三段階に分類する。第二に、SAGEという埋め込み向けのソフトゲート付き非対称ガードレールが、リスクのある指示の埋め込みを変更し、拒否の代わりに安全な画像を返すことを目指す。第三に、潜在表現の検出器がノイズ除去の途中で一段階の清浄な潜在表現の推定値を調べ、完成画像の検査に近い性能で危険を検知すると生成を止める。 現実的な条件で安全性を評価するため、実画像からの逆生成による一万件の指示文と、制御された知的財産上のキャラクターを与える書き換え工程を含むRevGen Safety Benchmarkも構築した。段階的な性的・残酷な内容のリスク、カテゴリー別の知的財産リスク、問題のない負例を対象とする。公開重みの画像生成モデル五種類で、InGuardの安全率は97.9~98.8%で、外部ガードレールと同等以上だった。問題のない指示への影響は57.5~73.5%少なく、パラメータ数は約3.7分の1で、ノイズ除去の工程の50~55.6%を省略した。
v1の要旨から自動生成。本文の精読・人による確認は未実施。
- 初稿
- 2026-09-23(UTC)
- 最新改訂
- 2026-09-23 · v1
- 査読・掲載
- 査読状況未確認
更新履歴
- v1 2026-09-23 この版を読む
取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。
原文の要旨
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.
arXiv ID: 2609.27620 / 要約の誤りについて