Skip to main content
QUICK REVIEW

[论文解读] Consistency Trajectory Models: Learning Probability Flow ODE Trajectory of Diffusion

Dongjun Kim, Chieh-Hsin Lai|arXiv (Cornell University)|Oct 1, 2023
Machine Learning and AlgorithmsComputer Science被引用 15
一句话总结

CTM 将基于分数的扩散模型和蒸馏扩散模型统一,通过学习概率流 ODE 路径,从而实现灵活、高质量、少 NFE 的采样以及遍历路径的新 gamma 采样方案。

ABSTRACT

Consistency Models (CM) (Song et al., 2023) accelerate score-based diffusion model sampling at the cost of sample quality but lack a natural way to trade-off quality for speed. To address this limitation, we propose Consistency Trajectory Model (CTM), a generalization encompassing CM and score-based models as special cases. CTM trains a single neural network that can -- in a single forward pass -- output scores (i.e., gradients of log-density) and enables unrestricted traversal between any initial and final time along the Probability Flow Ordinary Differential Equation (ODE) in a diffusion process. CTM enables the efficient combination of adversarial training and denoising score matching loss to enhance performance and achieves new state-of-the-art FIDs for single-step diffusion model sampling on CIFAR-10 (FID 1.73) and ImageNet at 64x64 resolution (FID 1.92). CTM also enables a new family of sampling schemes, both deterministic and stochastic, involving long jumps along the ODE solution trajectories. It consistently improves sample quality as computational budgets increase, avoiding the degradation seen in CM. Furthermore, unlike CM, CTM's access to the score function can streamline the adoption of established controllable/conditional generation methods from the diffusion community. This access also enables the computation of likelihood. The code is available at https://github.com/sony/ctm.

研究动机与目标

  • 在一个统一框架内连接基于分数的扩散模型和蒸馏扩散模型。
  • 使训练能够匹配 PF ODE 的无穷小分量(分数)和积分分量(轨迹)。
  • 允许在 PF ODE 轨迹上进行不受限制的遍历,以权衡质量与计算成本。
  • 引入对抗训练和重建/去噪损失以提升性能。
  • 引入 gamma-采样以在较长轨迹跳跃中实现可控随机性。

提出的方法

  • 将 G(x_t, t, s) 定义为 PF ODE 从时间 t 到 s 的解,并引入辅助量 g 以同时访问积分项和被积函数(引理 1)。
  • 将 G_theta(x_t, t, s) 参数化为 (s/t) x_t + (1 - s/t) g_theta(x_t, t, s),以同时访问轨迹和被积函数。
  • 通过软匹配 CTM 预测值与经验 PF ODE 轨迹,使用重构式损失和软一致性损失(Eq. 5)来训练 CTM。
  • 使用预训练的分数模型 D_phi 作为教师获得 Solver(x_t, t, u; phi) 以进行轨迹重构(Eq. 3)和软匹配(Eq. 5)。
  • 共同优化 L = L_CTM + lambda_DSM L_DSM + lambda_GAN L_GAN,将 CTM、去噪分数匹配和对抗训练融合。
  • 引入 gamma-采样,以在 PF ODE 轨迹上前向与后向遍历,使用可调的 gamma 来控制随机性(gamma ∈ [0,1])。

实验结果

研究问题

  • RQ1单个神经网络是否能够输出分数估计和基于轨迹的更新,以统一基于分数的采样和蒸馏采样?
  • RQ2学习 PF ODE 轨迹是否能够在采样速度与样本质量之间实现灵活权衡,而在不同 NFEs 下不退化?
  • RQ3gamma-采样如何影响在不同 NFEs 下的样本保真度和多样性?
  • RQ4CTM 是否能在 CIFAR-10 和 ImageNet 64×64 上用少量 NFEs 达到最先进的 FID 与似然度?
  • RQ5CTM 是否通过分数访问支持精确似然计算,并允许对轨迹的对抗性细化?

主要发现

  • CTM 通过训练单一网络输出分数和轨迹信息,在 CIFAR-10 的单步扩散采样上达到最先进 FID(1.73)以及 ImageNet 64×64 的 FID(2.06)。
  • CTM 通过利用分数访问和重构损失,在 CIFAR-10 上获得新的 SOTA 似然估计(NLL)。
  • CTM 结合 gamma-采样提供统一的采样框架,涵盖完全随机(gamma=1)、确定性(gamma=0)和中间随机性区间,在各 NFEs 下显示出更好的稳定性和质量。
  • CTM 在 NFE=1 时超越教师模型(EDM/CM),在 NFE=2 上在 CIFAR-10 获得优越结果,在 ImageNet 64×64 也如此,同时需要的训练迭代数量仅为 CM/EDM 的 10%。
  • CTM 通过分数访问实现精确似然计算,并允许对抗训练进一步提炼轨迹质量,在极少 NFEs 下达到具竞争力或更优的结果。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。