基于对比轨迹排斥的更平滑流匹配 Smoother Flow Matching via Contrastive Trajectory Repulsion 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-01
👁️ 预览文献
💡 AI 中文简介
流匹配模型在生成图像时,不同样本的生成轨迹容易交叉,导致速度场不平滑,影响少步推理效果。本文提出CoFlow方法,从随机微分方程角度引入排斥项,让不同轨迹在训练中主动互相远离,从而降低速度场的局部利普希茨常数。在ImageNet 256x256上,仅需20步推理就能显著降低FID,且不增加训练开销。
领域生成模型 / 扩散模型与流匹配
适合谁读需要一定专业背景(熟悉扩散模型、流匹配和随机微分方程)
核心贡献1. 首次从网络学习角度指出轨迹交叉导致速度场局部利普希茨常数过大,引发谱偏差和数值积分误差;2. 提出CoFlow框架,通过SDE注入排斥漂移项并推导等价随机插值形式,显式排斥轨迹以平滑速度场。
关键数据在ImageNet 256x256上,20步推理时FID显著低于标准流匹配,且无额外训练开销。
推荐理由如果你关注生成模型少步推理的瓶颈,这篇论文用对比学习思路巧妙平滑了速度场,简单有效且代码开源,值得一读。
关键词["流匹配", "对比学习", "轨迹交叉", "随机微分方程", "少步推理", "生成模型"]

原文摘要

查看英文原文摘要

Trajectory crossing remains a critical bottleneck in Flow Matching (FM), and previous works typically view these crossings from a theoretical optimization perspective causing velocity averaging. They attempt to address it indirectly by post-hoc distillation or endpoint coupling, without explicitly regulating the intermediate trajectories. In this paper, we introduce a new network learning perspective: crossing points inherently induce large local Lipschitz constants in the target velocity field, leading to two drawbacks. First, high Lipschitz constants correspond to high-frequency signals in the velocity field that neural networks struggle to fit due to spectral bias. Second, they also imply drastic velocity variations, leading to severe numerical integration errors in few-step inference. To alleviate this, we propose CoFlow, a framework that introduces the contrastive learning paradigm into FM to explicitly repel trajectories during training, thereby lowering the local Lipschitz constants of the velocity field. Specifically, we formulate CoFlow from a Stochastic Differential Equation (SDE) perspective by injecting a repulsive drift term. This drift actively guides the forward process of positive samples away from negative trajectories, effectively reducing the local Lipschitz constant. Furthermore, we derive an equivalent stochastic interpolant formulation from this SDE, providing a simple and tractable design space to control the influence of negative samples. Extensive experiments on ImageNet 256x256 demonstrate that CoFlow significantly reduces FID compared to standard FM in few-step inference (e.g., 20 steps), with no added training overhead. The code can be accessed at: https://github.com/HKUST-LongGroup/CoFlow