通过随机速度采样提升扩散模型的多样性与效率
Flow Diverse and Efficient: Learning Momentum Flow Matching via Stochastic Velocity Field Sampling
- 将直线路径拆分为可变速度子路径,引入速度噪声增强采样空间
- 在多个数据集上实现高质量、高多样性的生成结果
- 适合追求高效且多样图像生成的研究者和开发者
最近,修正流(Rectified Flow, RF)因其在直线路径采样上的高效性,成为基于流的扩散模型的新基准,如 Flux 1.0 和 SD 3.0 生成了令人惊叹的图像。尽管直线路径直观、快速且易于优化,但仍存在两个问题:一是路径覆盖采样空间有限,导致多样性不足;二是仅需优化恒定速度场 $\bm v$,难以建模多尺度噪声。本文提出离散化修正流(Discretized-RF),一种新的修正流家族(又称动量流模型),将直线路径分解为一系列可变速度子路径(即“动量场”),以扩大搜索空间,尤其是在接近噪声分布 $p_\text{noise}$ 时。不同于以往直接在数据 $\bm x$ 上叠加噪声,本方法在子路径的速度 $\bm v$ 上引入噪声,改变其方向,从而提升多样性和多尺度噪声建模能力。实验表明,通过随机速度场采样学习动量流匹配,能生成既多样又高效的轨迹,并在多个代表性数据集上持续产出高质量、多样化结果。代码已开源:https://github.com/liuruixun/momentum-fm。
原文摘要 · Abstract (English)
Recently, the rectified flow (RF) has emerged as the new state-of-the-art among flow-based diffusion models due to its high efficiency advantage in straight path sampling, especially with the amazing images generated by a series of RF models such as Flux 1.0 and SD 3.0. Although a straight-line connection between the noisy and natural data distributions is intuitive, fast, and easy to optimize, it still inevitably leads to: 1) Diversity concerns, which arise since straight-line paths only cover a fairly restricted sampling space. 2) Multi-scale noise modeling concerns, since the straight line flow only needs to optimize the constant velocity field $\bm v$ between the two distributions $\bmπ_0$ and $\bmπ_1$. In this work, we present Discretized-RF, a new family of rectified flow (also called momentum flow models since they refer to the previous velocity component and the random velocity component in each diffusion step), which discretizes the straight path into a series of variable velocity field sub-paths (namely ``momentum fields'') to expand the search space, especially when close to the distribution $p_\text{noise}$. Different from the previous case where noise is directly superimposed on $\bm x$, we introduce noise on the velocity $\bm v$ of the sub-path to change its direction in order to improve the diversity and multi-scale noise modeling abilities. Experimental results on several representative datasets demonstrate that learning momentum flow matching by sampling random velocity fields will produce trajectories that are both diverse and efficient, and can consistently generate high-quality and diverse results. Code is available at https://github.com/liuruixun/momentum-fm.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。