CIFAR-10 Generative Dynamics Baselines (OT-CFM / Rectified Flow / Score SDE)
ReproducingContinuous-Time Generative Dynamics Benchmark
This project implements a unified PyTorch training and ODE/SDE evaluation harness on CIFAR-10 (32×32) so that OT-CFM, 2-Rectified Flow, and VP-SDE share identical UNet capacity, EMA decay, and FID evaluation splits. The goal is to isolate transport straightness and low-NFE discretization error from architectural differences.
Governing Equations
For Optimal-Transport Conditional Flow Matching (OT-CFM) and Rectified Flow, samples evolve along a deterministic probability flow ODE driven by a learned velocity field $v_\theta(x_t, t)$:
In contrast, Variance-Preserving Score SDE (VP-SDE) integrates a reverse-time stochastic differential equation with drift and score correction:
Method Comparison Matrix
| Family | Dynamics | Regression Target | Coupling Strategy | Low-NFE Strength (4–16 steps) |
|---|---|---|---|---|
| OT-CFM | Deterministic ODE | Conditional velocity $x_1 - x_0$ | Minibatch optimal transport $\pi^*(x_0, x_1)$ | High trajectory straightness, crisp 8–16 NFE |
| 2-Rectified Flow | Deterministic ODE | Reflow velocity $x_1^{(1)} - x_0^{(1)}$ | Iterative synthetic $(x_0, \Phi_1(x_0))$ reflow | Minimal path curvature, strong 1–4 NFE |
| VP-SDE | Reverse-time SDE | Noise / score $\epsilon_\theta(x_t, t)$ | Independent Gaussian coupling | Stochastic Langevin error healing at high NFE |
Training & Evaluation Architecture
See foundational derivations in Flow Matching for Generative Modeling and Rectified Flow (Reflow).