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

EnfoPath: Energy-Informed Analysis of Generative Trajectories in Flow Matching

Ziyun Li, Ben Dai, Huancheng Hu, Henrik Boström, Soon Hoe Lim · DOI

Introduction

While most research evaluates generative models based on final outputs, EnfoPath examines the sampling trajectory itself. By introducing Kinetic Path Energy (KPE)—a physics-inspired metric measuring the "effort" of a trajectory—the authors demonstrate that semantically rich and rare samples require significantly more kinetic energy to generate than generic ones. This perspective shifts the focus from endpoint metrics like FID to the dynamics of the generation process.

Methodology

The researchers draw an analogy from classical mechanics, defining Kinetic Path Energy (KPE) as the integral of the squared magnitude of the learned velocity field along the generation path. Essentially, if a model must "push" harder or move faster to reach a specific point in the data manifold, that path incurs a higher KPE. This diagnostic can be calculated during standard ODE sampling with negligible computational overhead.

To validate this metric, the study utilizes:

  • CLIP Scores and Margins: To measure semantic alignment and feature distinctness.
  • Density Estimation (k-NN and KDE): To assess whether samples reside in "crowded" or sparse regions of the data distribution.

Experimental Setup

Experiments were conducted on two standard benchmarks:

  • CIFAR-10: 60,000 low-resolution images across 10 classes.
  • ImageNet-256: High-resolution images across 1,000 categories, using state-of-the-art models like DiT (Diffusion Transformer) and SiT (Scalable Interpolant Transformer).

Analysis of Generative Trajectories

The study reveals that reaching semantically "sharp" targets—such as a macaw with vibrant, distinct feathers—requires sustained, directed force, resulting in higher velocities and KPE. These high-quality samples typically reside in the "sparse frontier" of the data distribution. Because the model must travel "further" from the noise origin to reach these atypical regions, it incurs a higher kinetic cost. Thus, KPE acts as a dual indicator of both semantic strength and sample rarity.

Key Results

The paper provides robust evidence for the correlation between trajectory energy and sample quality.

Semantic Quality

Quantitative analysis shows a clear positive correlation between trajectory energy and semantic metrics. As illustrated in Figure 1, images categorized into the "High Energy" bin consistently outperform those in the "Low Energy" bin across various Classifier-Free Guidance (CFG) scales.

Figure 1: Trajectory energy (E) positively correlates with CLIP score across multiple CFG settings.

This trend is further supported by CLIP Margin analysis. Figure 2 shows that for a CFG scale of 1.5, higher energy trajectories correspond to higher margins, indicating more distinct and well-defined semantic features in the generated images.

Figure 2: CLIP Margin vs. Energy bins at CFG = 1.5, showing increased feature distinctness for high-energy paths.

Data Density and Visual Detail

Beyond semantic scores, the authors found a strong negative correlation (Spearman’s $\rho \approx -0.63$) between energy and data density. As kinetic energy increases, the log-density of the resulting sample decreases, confirming that high-energy paths lead to rarer, more informative data points. Qualitatively, high-KPE trajectories produce images with significantly richer details, sharper textures, and more vibrant colors compared to low-energy counterparts.

Conclusion

EnfoPath demonstrates that the sampling trajectory is a rich source of information. While currently focused on deterministic ODE-based samplers, future work could extend this energy-informed view to stochastic (SDE) samplers. This could lead to new training objectives or real-time filtering mechanisms that manage the "kinetic cost" of generation to improve model efficiency and sample diversity.

Summary updated

BibTeX
@inproceedings{li2025enfopath,
  author = {Ziyun Li and Ben Dai and Huancheng Hu and Henrik Boström and Soon Hoe Lim},
  title = {{EnfoPath: Energy-Informed Analysis of Generative Trajectories in Flow Matching}},
  booktitle = {PriGM @ EurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=Ru9MwT0zTM},
}
Figure