Kaijing Ma

Concept Removal Guidance: Evidence-Calibrated Negative Guidance for Safe Diffusion Sampling

Original note, sentence-aligned / 原创笔记逐句对照。Not a full-paper translation / 不是论文全文翻译。

English / 中文 · Source / 原文

Estimate surplus concept evidence

估计超额概念证据

CRG aims to suppress a target image concept only when estimated evidence exceeds a threshold.

CRG 旨在仅当估计证据超过阈值时抑制目标图像概念。

Its concept-presence score is built from the diffusion model's own conditional, unconditional, and negative-concept noise predictions.

概念存在分数由扩散模型自身的条件、无条件和负概念噪声预测构建。

It is an evidence score, not a calibrated probability in [0,1].

它是证据分数,不是 [0,1] 内的校准概率。

The derivation drops the concept prior and approximates likelihood discrepancies with noise-prediction discrepancies.

推导省略概念先验,并以噪声预测差异近似似然差异。

CP ≈ E[κ_t (||ε_c − ε_u||² − ||ε_c − ε_-||²)]

A prompt has higher evidence when its predicted generation is closer to the negative concept than to the unconditional reference in this comparison.

在这一比较中,若提示所预测的生成相较无条件参考更接近负概念,其证据就更高。

Turn evidence into a half-space constraint

将证据转为半空间约束

The online estimator combines accumulated trajectory evidence with a Gaussian look-ahead approximation around a Tweedie clean-image estimate.

在线估计器结合已累积轨迹证据,以及围绕 Tweedie 干净图像估计的高斯前瞻近似。

The variance scale k controls the look-ahead term and remains a hyperparameter.

方差尺度 k 控制前瞻项,仍是一个超参数。

With the current negative direction and past evidence fixed, the surrogate constraint is affine in the new noise prediction.

固定当前负向方向和历史证据后,代理约束对新的噪声预测是仿射的。

minimize_e ½||e − ε_c||² subject to CP_k(e) ≤ τ

If the current point is feasible, the optimal update is zero.

若当前点可行,最优更新为零。

Otherwise the minimum-distance projection moves along the negative-guidance direction.

否则,最小距离投影沿负向引导方向移动。

ε* = ε_c − [(CP_k(ε_c) − τ)/(k||Δε||²)] Δε, when CP_k(ε_c) > τ

This is exact for the affine surrogate, not for true visual concept absence.

这对仿射代理问题是精确的,但不对真实视觉概念缺失提供精确保证。

A zero direction needs explicit handling: if the constraint is violated and its normal is zero, this projection formula is undefined.

零方向需要显式处理:若约束被违反而法向为零,该投影公式无定义。

The practical amplification λ₀ > 1 moves past the minimum-distance boundary and therefore changes the optimization interpretation.

实用放大系数 λ₀ > 1 会越过最小距离边界,因此改变优化解释。

What the experiments support

实验支持什么

The main setting uses Stable Diffusion v1.4 with 50 DDPM steps and adversarial prompt suites.

主设置使用 Stable Diffusion v1.4、50 步 DDPM 以及对抗提示套件。

In Table 1, CRG has P4D ASR 0.026 versus 0.225 for DNG and 0.338 for static negative prompting.

表 1 中,CRG 的 P4D ASR 为 0.026,DNG 为 0.225,静态负提示为 0.338。

On MMA-Diff, CRG is 0.164 while DNG is 0.139, so CRG is not best on every attack.

在 MMA-Diff 上,CRG 为 0.164,DNG 为 0.139,因此 CRG 并非每种攻击上最佳。

The benign FID reference is images from the original model, with 1,000 COCO prompts used for quality evaluation.

正常内容 FID 以原模型生成图像为参考,质量评估使用 1,000 个 COCO 提示。

A lower value measures preservation relative to that reference, not universal photorealism.

较低值衡量相对该参考的保留程度,而不是通用照片真实感。

Additional tests cover SDXL, SD v3, deterministic sampling, violence, and artist-style removal.

额外测试覆盖 SDXL、SD v3、确定性采样、暴力内容和艺术家风格移除。

For human-rated Van Gogh style removal, target-style accuracy is 0.259 and unrelated-style accuracy is 0.820.

在人工评估的 Van Gogh 风格移除中,目标风格准确率为 0.259,其他风格准确率为 0.820。

Limits and reproduction

局限与复现

The CP approximation, detector labels, negative prompt, and threshold all contribute to the observed safety-quality tradeoff.

CP 近似、检测器标签、负提示和阈值共同影响观察到的安全与质量权衡。

Sequential projection does not guarantee that later model dynamics cannot reintroduce a concept.

逐步投影不保证后续模型动力学不会重新引入概念。

A reproduction should log constraint surplus, direction norm, intervention frequency, and final independently assessed concept presence.

复现应记录约束超额量、方向范数、干预频率,以及最终独立评估的概念存在情况。

The inspected arXiv version has a distribution-only license, so the deliverable here is an original bilingual note and its aligned edition.

所检查 arXiv 版本仅有分发许可,因此这里交付原创双语笔记及其对照版。