Constant Acceleration Flow

Dogyun Park, Sojin Lee, Sihyeon Kim, Taehoon Lee, Youngjoon Hong, Hyunwoo J. Kim

In the race to make generative models faster, the community has shifted from the slow, iterative denoising of traditional diffusion models toward "flow-based" methods. The gold standard in this domain has been Rectified Flow, which attempts to connect noise and data using the simplest path possible: a straight line with constant velocity. But what if a straight line isn't enough to capture complex data distributions?

A new paper, "Constant Acceleration Flow (CAF)," suggests that by upgrading our physical modeling from constant velocity to constant acceleration, we can achieve state-of-the-art image generation in just a single step.

The Problem: Flow Crossing and Constant Velocity

Most modern fast-generation models rely on Ordinary Differential Equations (ODEs) to transform a simple Gaussian distribution (noise) into a complex data distribution (images). Rectified Flow "straightens" these ODE trajectories by assuming a sample moves from noise to image at a constant velocity.

However, this introduces a major hurdle: Flow Crossing. During training, different noise-image pairs might have trajectories that intersect at a specific time step. When a neural network (like a U-Net) encounters these intersection points, it receives conflicting signals about which direction to go. This ambiguity leads to "curved" flows and approximation errors, forcing the use of more sampling steps to generate a high-quality image. While a process called "reflow" helps by rewiring these pairs to be more deterministic, it doesn't fully solve the underlying lack of expressiveness inherent in a constant-velocity model.

Comparison of flow crossing in Rectified Flow vs. Constant Acceleration Flow

The Solution: Constant Acceleration Flow (CAF)

To overcome these limitations, the authors propose Constant Acceleration Flow (CAF), which generalizes the Rectified Flow framework by incorporating a second-order kinematic term.

  1. The Acceleration Equation: Instead of relying solely on constant velocity ($x_t = x_0 + vt$), CAF uses the standard kinematic equation: $x_t = x_0 + v(x_0)t + \frac{1}{2}a(x_t)t^2$. By assuming acceleration is constant over the trajectory, the authors derive a closed-form solution that allows for precise, one-step sampling.
  2. Initial Velocity Conditioning (IVC): To solve the flow crossing problem, CAF feeds the predicted initial velocity into the acceleration model. Think of it like a GPS: if two cars are at the same intersection, knowing their starting direction helps predict their next move. This auxiliary information helps the model distinguish between crossing trajectories and break ambiguity.
  3. Reflow for Velocity: The authors apply the "reflow" procedure specifically to improve the learning of the initial velocity field, ensuring the "starting push" of the trajectory is as accurate as possible.

Key Insights

  • Acceleration as a Control Knob: The hyperparameter $h$ (which scales initial velocity) acts as a throttle. The authors found that negative acceleration ($h > 1$) is particularly effective for images. It allows the model to "slow down" as it approaches the data distribution, enabling finer tuning of the final image features.
  • Superior Inversion: Because CAF models the flow more accurately, it is significantly better at "inversion"—taking a real image, mapping it back to its specific noise representation, and reconstructing it. This has major implications for downstream tasks like image editing and inpainting.

State-of-the-Art Results

CAF sets a new benchmark for few-step and one-step generation across standard datasets:

  • One-Step SOTA: On CIFAR-10 (conditional), CAF achieved an impressive FID of 1.39, outperforming strong baselines like CTM and Rectified Flow.
  • ImageNet Performance: On the more complex ImageNet $64\times64$ dataset, it reached an FID of 1.69, surpassing recent distillation-based methods.
  • Coupling Preservation: In qualitative tests, CAF was far more successful than Rectified Flow at preserving the mapping between specific noise inputs and image outputs, leading to much lower reconstruction errors (46.68 PSNR for CAF vs. 33.34 for Rectified Flow).
Quantitative results comparing CAF against GANs, Diffusion, and Rectified Flow models

Limitations and Future Work

The primary trade-off with CAF is the computational cost per step. Because the method requires computing both an initial velocity and an acceleration at each step, the Number of Function Evaluations (NFE) is $N+1$ for $N$ steps, whereas Rectified Flow requires only $N$. However, the massive jump in one-step generation quality largely offsets this minor cost.

For future work, the authors suggest exploring ways to jointly predict velocity and acceleration in a single model pass to reduce NFE. They also see significant potential for CAF in more complex domains like 3D generation and video synthesis, where motion trajectories are naturally non-linear and would benefit greatly from second-order modeling.

Summary updated

BibTeX
@inproceedings{park2024constant,
  author = {Dogyun Park and Sojin Lee and Sihyeon Kim and Taehoon Lee and Youngjoon Hong and Hyunwoo J. Kim},
  title = {{Constant Acceleration Flow}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=hsgNvC5YM9},
}
Figure