扩展在线最优传输小批量以实现流匹配

·

研究论文 · 2026/10/15

流模型扩展的核心挑战在于训练和积分过程中的稳定性。在流匹配中,这种稳定性关键取决于源样本与数据如何配对。独立随机配对引入了大量随机性,促使采用小批量最优传输(OT)来构建在线源-目标耦合以减少这种随机性(Tong et al., 2024)。然而,随着应用扩展到更大、更高维的数据集,小批量可能限制这些优势,而在每次迭代中将耦合扩展到显著更大的小批量在计算上不可行。此外,OT耦合如何影响完整随机梯度和积分在理论上仍未解决。在这项工作中,我们开发了一种可扩展的在线熵OT近似,能够在保持OT优势的同时实现显著更大的源-目标耦合。我们通过证明相对于独立配对,完整随机梯度方差和积分误差的严格减少,弥补了无正则化和熵OT的理论空白,并进一步刻画了这些改进如何随着在线耦合小批量的增长而增强。在单细胞基因插值流和图像流训练上的实验验证了这些预测,表明更大的在线耦合持续改善了训练稳定性和最终生成性能。

该工作解决了流匹配中在线最优传输耦合的理论空白,并提供了可扩展的实用方法,有望提升大规模生成模型的训练稳定性和性能。

A central challenge in scaling flow models is maintaining stability in training and integration. In flow matching, this stability depends critically on how source samples are paired with data. Independent random pairing introduces substantial stochasticity, motivating minibatch optimal transport (OT) to construct online source-target couplings that reduce this randomness (Tong et al., 2024). However, as applications extend to larger and higher-dimensional datasets, small minibatches can limit these benefits, while scaling the coupling to substantially larger minibatches at every iteration is computationally prohibitive. Moreover, how OT coupling affects the full stochastic gradient and integration remains theoretically unresolved. In this work, we develop a scalable online entropic OT approximation that enables substantially larger source-target couplings while preserving the benefits of OT. We close the theoretical gap for both unregularized and entropic OT by proving strict reductions in full stochastic-gradient variance and integration error relative to independent pairing, and further characterize how these improvements strengthen as the online coupling minibatch grows. Experiments on single-cell gene interpolation-flow and image-flow training validate these predictions, showing that larger online couplings consistently improve training stability and final generation performance.

阅读原文

参与讨论