NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Kinetic-Energy Perspective of Flow Matching

Ziyun Li, Huancheng Hu, Soon Hoe Lim, Xuyu Li, Fei Gao, Enmao Diao, Zezhen Ding, Michalis Vazirgiannis, Henrik Bostrom

Abstract

Flow-based generative models can be viewed through a physics lens: sampling transports a particle from noise to data by integrating a time-varying velocity field, and each sample corresponds to a trajectory with its own dynamical effort. Motivated by classical mechanics, we introduce Kinetic Path Energy (KPE), an action-like, per-sample diagnostic that measures the accumulated kinetic effort along an Ordinary Differential Equation (ODE) trajectory. Empirically, KPE exhibits two robust correspondences: (i) higher KPE predicts stronger semantic fidelity; (ii) high-KPE trajectories terminate on low-density manifold frontiers. We further provide theoretical guarantees linking trajectory energy to data density. Paradoxically, this correlation is non-monotonic. At sufficiently high energy, generation can degenerate into memorization. Leveraging the closed-form of empirical flow matching, we show that extreme energies drive trajectories toward near-copies of training examples. This yields a Goldilocks principle and motivates Kinetic Trajectory Shaping (KTS), a training-free two-phase inference strategy that boosts early motion and enforces a late-time soft landing, reducing memorization and improving generation quality across benchmark tasks.

Introduction

Flow matching and continuous-time diffusion models have revolutionized generative modeling by learning a velocity field that steers particles from noise to data. However, our understanding of these models remains largely "trajectory-blind." Standard evaluation metrics like FID focus solely on the final distribution of samples, ignoring the dynamics of the generation process itself. This lack of granular insight makes it difficult to understand why individual samples vary in quality or why models occasionally "memorize" training data.

Measuring the Effort of Generation

To bridge this gap, we propose viewing flow matching through the lens of classical mechanics. We define Kinetic Path Energy (KPE) as the time-integral of the squared velocity along an ODE trajectory:

$$E = \frac{1}{2} \int_{0}^{1} \|v_\theta(x(t), t)\|^2 dt$$

This metric measures the total "effort" expended by the model to transport a noise particle to its final destination. Crucially, KPE is computationally inexpensive to calculate during standard sampling.

Energy as a Proxy for Quality and Rarity

Our empirical analysis reveals that KPE is a powerful diagnostic for sample characteristics. We identify two primary correspondences:

1. Semantic Fidelity

Trajectories that expend more kinetic energy tend to produce images with sharper, more class-specific semantic features. Synthesizing precise structures requires sustained high velocity, whereas low-energy paths often result in more generic or blurry outputs.

Visualizing the relationship between Kinetic Path Energy (E) and semantic fidelity (CLIP score). Higher energy trajectories often result in images with more distinct features and higher alignment with text prompts.

2. Manifold Rarity

High-KPE trajectories consistently terminate in low-density (rare) regions of the data manifold. Theoretical analysis confirms that instantaneous kinetic energy is inversely proportional to the log-density of the data. This suggests that the model must "work harder" to reach the frontiers of the data distribution.

Correlation between trajectory energy and data density. Higher energy paths tend to terminate in lower-density regions of the data manifold, suggesting energy as a proxy for sample rarity.

The Goldilocks Principle and Memorization

While higher energy generally correlates with better quality, this relationship is non-monotonic. We uncover a structural singularity in optimal flow matching: if a trajectory attempts to perfectly hit a discrete training point (memorization), the required terminal velocity approaches infinity. Extreme late-stage energy spikes are thus the mechanical driver of memorization. This leads to a "Goldilocks Principle": moderate energy yields high-quality, rare samples, but excessive terminal energy leads to regurgitation.

Kinetic Trajectory Shaping (KTS)

Leveraging these insights, we introduce Kinetic Trajectory Shaping (KTS), a training-free inference strategy. KTS rescales the velocity field in two phases:

  1. Kinetic Launch: Boosts velocity early in the process to encourage exploration of the manifold.
  2. Kinetic Soft-Landing: Dampens velocity late in the process to prevent terminal energy spikes and reduce memorization.

On CelebA, KTS reduced memorization rates by 16% while simultaneously improving FID from 16.68 to 14.35, demonstrating that controlling the dynamics of the path directly translates to better generative performance.

Summary updated

BibTeX
@inproceedings{li2026kinetic,
  author = {Ziyun Li and Huancheng Hu and Soon Hoe Lim and Xuyu Li and Fei Gao and Enmao Diao and Zezhen Ding and Michalis Vazirgiannis and Henrik Bostrom},
  title = {{A Kinetic-Energy Perspective of Flow Matching}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=d6IyHrX48y},
}
Figure