arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.11075cs.LG
收藏

探索流匹配的奖励反向传播设计空间

Exploring the Design Space of Reward Backpropagation for Flow Matching

Westlake University(西湖大学);Tencent Hunyuan(腾讯混元);University of Sydney(悉尼大学);The Hong Kong University of Science and Technology(香港科技大学)

Ruoyu Wang, Boye Niu, Xiangxin Zhou, Yushi Huang, Tongliang Liu, Chi Zhang

AI总结:

针对文本到图像流匹配模型,提出统一代理轨迹框架FlowBP,通过设计反向轨迹(稀疏重建、桥耦合、拉格朗日积分)解决直接奖励反向传播中的内存和梯度爆炸问题,在多个模型和指标上优于基线。

摘要:

通过直接奖励反向传播将文本到图像流匹配模型与人类偏好对齐是样本高效的,但受到两个众所周知的问题的阻碍:在现代模型规模下,激活值无法在整个采样轨迹上存储,并且跨步骤的链式雅可比乘积使得奖励梯度在传播回早期索引时膨胀。基于连接器的方法,如LeapAlign,通过用短的固定路径替换完整的反向轨迹来解决这些问题,突出了采样和优化之间的有用解耦。然而,所得梯度的质量取决于该短路径对完整展开的近似精度,尤其是在长间隔上。我们提出FlowBP,一个统一的代理轨迹框架,将反向轨迹本身视为设计对象。FlowBP保留一个无梯度的缓存展开用于采样,然后从缓存和选择性重新前向的速度中构建一个轻量级的反向代理。这个视角分离了四个选择:奖励模型输入、活动集、积分权重和桥耦合,并将先前的直接梯度方法恢复为特定设置。在此框架内,我们实例化了三个变体:FlowBP-Sparse使用稀疏欧拉重建,FlowBP-Bridge添加受控桥耦合,FlowBP-Lagrange提高跳跃求积的阶数。所有三个变体都将内存限制在活动集大小,并将梯度链限制在最多一个雅可比因子。在SD3.5-M、FLUX.1-dev和FLUX.2-Klein-base上,针对偏好、质量和组合指标,这三个变体在大多数指标上优于直接梯度基线。

英文摘要:

Aligning text-to-image flow matching models with human preferences via direct reward backpropagation is sample-efficient but hampered by two well-known pathologies: activations cannot be stored across the full sampling trajectory at modern model scale, and chained Jacobian products across steps inflate the reward gradient as it travels back to early indices. Connector-based methods, such as LeapAlign, address these issues by replacing the full backward trajectory with a short pinned path, highlighting a useful decoupling between sampling and optimization. However, the quality of the resulting gradient depends on how accurately this short path approximates the full rollout, especially over long intervals. We propose FlowBP, a unified surrogate-trajectory framework that treats the backward trajectory itself as the design object. FlowBP keeps a no-gradient cached rollout for sampling, then builds a lightweight backward surrogate from cached and selectively re-forwarded velocities. This view separates four choices: the reward-model input, active set, integration weights, and bridge coupling, and recovers prior direct-gradient methods as particular settings. Within this framework, we instantiate three variants: FlowBP-Sparse uses sparse Euler reconstruction, FlowBP-Bridge adds controlled bridge coupling, and FlowBP-Lagrange raises the order of leap quadrature. All three bound memory by the active-set size and limit gradient chaining to at most one Jacobian factor. Across SD3.5-M, FLUX.1-dev, and FLUX.2-Klein-base on preference, quality, and compositional metrics, the three variants improve over direct-gradient baselines on most metrics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑