Skip to main content
QUICK REVIEW

[Paper 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 Science15 citations
TL;DR

CTM unifies score-based and distillation diffusion models by learning the Probability Flow ODE trajectory, enabling flexible, high-quality, few-NFE sampling and new gamma-sampling schemes that traverse the trajectory.

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.

Motivation & Objective

  • Bridge score-based and distillation diffusion models within a single framework.
  • Enable training to match both infinitesimal (score) and integral (trajectory) components of the PF ODE.
  • Allow unrestricted traversal along PF ODE trajectories to trade off quality and computation.
  • Incorporate adversarial training and reconstruction/denoising losses to improve performance.
  • Introduce gamma-sampling to navigate long trajectory jumps with controllable stochasticity.

Proposed method

  • Define G(x_t, t, s) as the PF ODE solution from time t to s, and introduce an auxiliary g to access both the integral and integrand (Lemma 1).
  • Parametrize G_theta(x_t, t, s) = (s/t) x_t + (1 - s/t) g_theta(x_t, t, s) to enable both trajectory and integrand access.
  • Train CTM by soft matching CTM predictions to the empirical PF ODE trajectory using a reconstruction-like loss and a soft consistency loss (Eq. 5).
  • Use a pre-trained score model D_phi as teacher to obtain Solver(x_t, t, u; phi) for trajectory reconstruction (Eq. 3) and soft matching (Eq. 5).
  • Jointly optimize L = L_CTM + lambda_DSM L_DSM + lambda_GAN L_GAN to fuse CTM, denoising score matching, and adversarial training.
  • Introduce gamma-sampling to traverse forward and backward along the PF ODE trajectory with a tunable gamma to control stochasticity (gamma in [0,1]).

Experimental results

Research questions

  • RQ1Can a single neural network output both score estimates and trajectory-based updates to unify score-based and distillation sampling?
  • RQ2Does learning the PF ODE trajectory enable flexible trading between sampling speed and sample quality without degradation across NFEs?
  • RQ3How does gamma-sampling affect sample fidelity and diversity across different NFEs?
  • RQ4Can CTM achieve state-of-the-art FID and likelihood with few NFEs on CIFAR-10 and ImageNet 64×64?
  • RQ5Does CTM support exact likelihood computation via score access and enable adversarial refinement of trajectories?

Key findings

  • CTM achieves state-of-the-art FIDs for single-step diffusion sampling on CIFAR-10 (FID 1.73) and ImageNet 64×64 (FID 2.06) by training a single network to output both scores and trajectory information.
  • CTM attains new SOTA likelihood estimates (NLL) on CIFAR-10 by leveraging score access and the reconstruction loss.
  • CTM with gamma-sampling provides a unified sampling framework that encompasses fully stochastic (gamma=1), deterministic (gamma=0), and intermediate stochastic regimes, showing improved stability and quality across NFEs.
  • CTM outperforms teacher models (EDM/CM) at NFE=1 and achieves superior results with NFE=2 on CIFAR-10, and on ImageNet 64×64, while requiring substantially fewer training iterations (10% of CM/EDM).
  • CTM enables exact likelihood computation through score access and allows adversarial training to further refine trajectory quality, achieving competitive or superior results with minimal NFEs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.