LLLMWIKI
正文研究地图阅读入口元数据

来源笔记 · 更新于 2026-07-12

BoxDiff无训练的框约束扩散生成

一句话结论

BoxDiff 把 box/scribble 转成 Inner、Outer、Corner 三类 cross-attention 约束,无需更新权重即可显著提高位置/尺度遵循:Stable Diffusion 的 AP 从 2.8 升至 22.3;它是 spatial guidance 的直接证据,不是语义理解或闭环纠错证据。

论文定位

BoxDiff 是 test-time latent guidance。它使用 Stable Diffusion v1.4 的 16×16 token attention,不训练 condition branch;也能叠加到 GLIGEN。输入必须由用户给出目标 token 与框/scribble。

问题定义

监督式 layout-to-image 依赖 paired layout-image data 和固定类别。BoxDiff 试图直接利用预训练 T2I diffusion 的开放词汇先验,让简单空间条件在采样时生效。

方法概述

  • Inner-Box:提高框内 top-$P$ attention。
  • Outer-Box:压低框外 top-$P$ attention。
  • Corner:匹配 x/y attention 投影与框边界,避免对象只占框内一小块。
  • 总损失对当前 latent 求梯度;representative sampling 避免全像素强约束破坏语义/画质。
  • scribble 可先转框,并增加 scribble 点 objectness constraint。

核心实验与结果

自建零样本 layout 集含 9 animals、18 objects、4,274 个框、189 个 prompts+boxes:

方法Layout dataT2I-SimAPAP50AP75
Stable DiffusionNone0.35112.89.21.1
SD + BoxDiffNone0.351322.346.820.2
GLIGENCOCO-Stuff0.348929.745.833.9
GLIGEN + BoxDiffCOCO-Stuff0.351140.262.046.2

BoxDiff 使 SD AP +19.5pp;叠加 GLIGEN 再 +10.5pp。最强绝对结果是 GLIGEN+BoxDiff,而不是纯 training-free SD+BoxDiff。

关键消融

  • SD:0.3511 T2I-Sim / 2.8 AP。
  • +Inner:0.3516 / 9.8。
  • +Inner+Outer:0.3518 / 20.2。
  • +Corner:0.3513 / 22.3。
  • 全像素 sampling 达更高 AP 24.8,但 T2I-Sim 降至 0.3489;top-k 为 0.3513/22.3,是质量—定位折中。
  • top-$P=80\%$ 为作者选择;100% 虽 AP 更高,T2I-Sim 更低。

局限或疑问

  1. 16×16 attention 限制定位精度。
  2. car+basin、giraffe flying、mountain underwater 等低共现/罕见空间条件会失真或不服从框。
  3. 数据收集与评估均依赖 YOLOv4,且只有 27 类,存在检测器偏差。
  4. AP 不等于写实性、关系正确或像素级 box adherence。
  5. compound noun 常只选 dominant token,tokenizer/语义拆分可能失败。
  6. training-free 仍需每步反向优化,论文未给主表时延。

对当前 Wiki 判断的影响

判断证据分类边界
attention control强直接支持约束与 sampling 有定量消融
spatial guidance强直接支持box AP/AP50/AP75;类别和 detector 有限
semantic completeness间接支持任务目标是位置/尺度,不是语义覆盖 benchmark
closed-loop correction当前不应引用无输出检测—规划循环
支持 DiT当前不应引用只验证 SD/GLIGEN cross-attention
支持“理解”压力测试用户已给框;罕见关系仍失败

原始链接

相关页面