返回列表
论文卡
vanilla 与 Boundary RF 在 toy 分布上的 Euler/SDE 轨迹、边界速度和 score 场对比。
边界条件抑制端点 velocity error 被 score 公式放大,从而稳定随机采样并保持目标分布结构。 原文图源 ↗

论文详情

Improving Rectified Flow with Boundary Conditions

用边界条件改进 Rectified Flow

Xixi Hu、Runlong Liao、Keyang Xu、Bo Liu、Yeqing Li、Eugene Ie、Hongliang Fei、Qiang Liu · 预印本 · arXiv:2506.15864 · 论文原文 ↗

Rectified Flow 用 unconstrained neural field \(v_{\mathrm{theta}}\)(\(x\),\(t\)) 逼近线性插值速度。有限数据/网络下,它可能违反 \(t=0\) 或 \(t=1\) 的解析 boundary conditions;ODE 采样尚可容忍,但从 velocity 转 score 的除法会在边界放大误差。

正式评级:未评级

研究问题

  • Rectified Flow 用 unconstrained neural field \(v_{\mathrm{theta}}\)(\(x\),\(t\)) 逼近线性插值速度。有限数据/网络下,它可能违反 \(t=0\) 或 \(t=1\) 的解析 boundary conditions;ODE 采样尚可容忍,但从 velocity 转 score 的除法会在边界放大误差。
  • 论文问能否用最小代码改动把端点条件写进参数化,使确定性 ODE 和带随机性的 SDE/overshooting sampler 都更稳定。

背景

  • 在线性 interpolation \(x_{t}\)=(1-\(t\))\(x_{0}\)+\(t\) \(x_{1}\) 下,端点 conditional velocity 有已知结构。vanilla network 对全时间域自由拟合,不保证边界极限;score reconstruction 常含 1/\(t\) 或 1/(1-\(t\)) 因子。
  • 边界约束类似 numerical PDE 中的 hard ansatz:用 time-dependent mask 或 subtract boundary residual,让网络只学习满足端点后剩余的自由函数。

模型与方法

  • Mask-based model 用 \(f\)(\(t\)),\(g\)(\(t\)),\(h\)(\(t\)) 组合已知端点项与可学习 \(m_{\mathrm{theta}}\),使 \(t=0\)/1 自动满足;subtraction-based model 从 vanilla prediction 减去在边界的违反量,保持架构和训练流程基本不变。
  • toy mixture 显示 vanilla score near boundary 发散;Boundary RF field 保持正确终点。CIFAR-10/ImageNet-256/512 比较 ODE Euler、SDE 与 overshooting samplers。
  • 消融单边/双边约束、不同 boundary functions、step counts 和 stochasticity c;FLUX.1-dev 端点预测用于说明 pretrained large flow 也存在 violation,但论文没有重训 FLUX。

核心结果与证据

  • Figure 2 把 Euler、stochastic trajectory、\(t=1\) velocity field 与 score function 并列:vanilla 在边界形成异常流和发散 score,Boundary RF 保持目标几何并允许更强随机采样。
  • ImageNet 上相对 vanilla,作者报告 ODE FID 改善 8.01%,SDE FID 改善 8.98%;多 step counts 与 256/512 设置总体一致。改善应看 absolute FID、precision/recall 与相同训练 seed,而不只百分比。
  • Figure 4/7 的 paired samples 显示边界模型的结构和细节更清楚;Table 3 随 overshooting noise c 增大时,boundary variants 更稳,支持“边界误差被随机采样放大”的机制。
Figure 2 · Boundary RF 去除边界奇异行为。 物理解读:stochastic sampler exposes errors that may remain less visible in deterministic ODE trajectories. 来源:paper.pdf \(p\). 4, Figure 2

有效性与局限

  • 硬约束正确的前提是 interpolation/noise convention 与解析 boundary condition 完全匹配;更换 path、data preprocessing 或 prediction target 后必须重推,错误约束会引入系统偏差。
  • FID 改善来自有限模型/数据和作者 recipe;相同随机 seed 增强可比性但不能替代多 seed uncertainty。FLUX violation 只是诊断,不证明修改能无代价提升该模型。
  • boundary ansatz 约束端点,不能保证 interior velocity、continuity equation 或 likelihood 全局正确。该卡 no independent reproduction performed。

复现与资源

  • 原文:https://arxiv.org/abs/2506.15864;PDF:https://arxiv.org/pdf/2506.15864。全文 SHA-256:3c303db371f192730a153b688a1c17f4d45ead013f048e5bde41499f7e7f1275;15 页。
  • 复现需固定 interpolation、velocity/score formula、boundary functions、network/optimizer、sampler/NFE、overshooting c、EMA、CFG、ImageNet preprocessing、FID/IS/precision/recall sample sets 与 seeds。
  • Evidence status: full-text verified; no independent reproduction performed.

阅读指南

  • 先在 toy model 手算端点 velocity/score,再读两种 constrained parameterization;用 Figure 2 验证机制,再看 Tables 1/3 与 step-count ablation 判断收益是否来自稳定性。
  • 物理上这是奇异坐标变换的 regularity 条件:velocity 的小端点误差在转成 score 时乘上发散系数,hard boundary condition 消除了这个相关奇点。

Discussion

评论与讨论

在 GitHub 查看

评论公开保存在 GitHub Discussions;阅读无需登录,发表评论需要 GitHub 账号。