Flow Matching比扩散模型更快更稳,适合低算力设备实时生成图像。
Efficiency vs. Fidelity: A Comparative Analysis of Diffusion Probabilistic Models and Flow Matching on Low-Resource Hardware
- 用相同网络结构对比两种生成模型,聚焦推理效率差异。
- 仅需10次计算就能保持高质量,而扩散模型在此时已崩溃。
- 向量场接近线性,可用简单求解器,适合边缘设备部署。
去噪扩散概率模型(DDPM)在图像生成上达到新高度,但推理时需多达1,000步迭代,计算开销大。本文通过共享时间条件U-Net架构,在MNIST数据集上严谨对比了DDPM与新兴的流匹配(修正流)方法。结果表明,流匹配在效率上显著优于扩散模型:其轨迹曲率约1.02,近乎最优;而扩散路径曲率约为3.45,随机且曲折。我们还确立了效率前沿点在N=10次函数评估处——此时流匹配仍保持高保真度,而扩散模型已崩溃。数值敏感性分析显示,学习到的向量场足够线性,无需高阶微分方程求解器(如四阶龙格-库塔),验证了轻量级欧拉求解器在边缘部署中的可行性。结论:流匹配是资源受限环境下实时生成任务的更优选择。
原文摘要 · Abstract (English)
Denoising Diffusion Probabilistic Models (DDPMs) have established a new state-of-the-art in generative image synthesis, yet their deployment is hindered by significant computational overhead during inference, often requiring up to 1,000 iterative steps. This study presents a rigorous comparative analysis of DDPMs against the emerging Flow Matching (Rectified Flow) paradigm, specifically isolating their geometric and efficiency properties on low-resource hardware. By implementing both frameworks on a shared Time-Conditioned U-Net backbone using the MNIST dataset, we demonstrate that Flow Matching significantly outperforms Diffusion in efficiency. Our geometric analysis reveals that Flow Matching learns a highly rectified transport path (Curvature $\mathcal{C} \approx 1.02$), which is near-optimal, whereas Diffusion trajectories remain stochastic and tortuous ($\mathcal{C} \approx 3.45$). Furthermore, we establish an ``efficiency frontier'' at $N=10$ function evaluations, where Flow Matching retains high fidelity while Diffusion collapses. Finally, we show via numerical sensitivity analysis that the learned vector field is sufficiently linear to render high-order ODE solvers (Runge-Kutta 4) unnecessary, validating the use of lightweight Euler solvers for edge deployment. \textbf{This work concludes that Flow Matching is the superior algorithmic choice for real-time, resource-constrained generative tasks.}
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。