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

Energy Matching: Unifying Flow Matching and Energy-Based Models for Generative Modeling

Michal Balcerak, Tamaz Amiranashvili, Antonio Terpin, Suprosanna Shit, Lea Bogensperger, Sebastian Kaltenbach, Petros Koumoutsakos, Bjoern Menze

Introduction

Generative modeling has historically been divided between two primary philosophies. On one side, Flow Matching and Diffusion Models offer high efficiency in transforming noise into data, yet they often operate as "black boxes" regarding the underlying data likelihood. On the other side, Energy-Based Models (EBMs) provide a theoretically elegant framework by modeling data density through a scalar energy function, but they have traditionally struggled with training stability and sample quality in high-dimensional spaces.

In their NeurIPS 2025 paper, "Energy Matching: Unifying Flow Matching and Energy-Based Models for Generative Modeling," Michal Balcerak and colleagues introduce Energy Matching (EM). This framework reconciles these two worlds by learning a single, time-independent scalar potential that drives both efficient optimal transport flows and stable density modeling.

The Energy Matching Framework

The core innovation of Energy Matching is the use of a single time-independent scalar potential $V_\theta(x)$ to parameterize the generative dynamics. This approach is grounded in the Jordan–Kinderlehrer–Otto (JKO) scheme, which describes the evolution of a probability distribution as a gradient flow minimizing a functional of transport cost, potential energy, and internal energy (entropy).

Two-Regime Training Strategy

Energy Matching operates through a dual-regime dynamics system:

  1. Flow-like Regime (Global Guidance): When samples are far from the data manifold (mostly noise), the model acts as an optimal transport flow. It learns a velocity field defined by the negative gradient of the potential ($-\nabla_x V_\theta(x)$), pushing noise toward the data along efficient, straight paths.
  2. EBM-like Regime (Local Precision): As samples approach the data manifold, the model transitions into a Langevin dynamics regime. Here, the potential $V_\theta(x)$ shapes a Boltzmann-like distribution, explicitly capturing the log-likelihood of the data and allowing for fine-grained exploration of the manifold.

By combining these regimes, EM achieves the global convergence speed of flow matching with the local representational power of EBMs.

Key Insights and Applications

Time-Independence and Irrotational Flows

Unlike standard diffusion models that require a specific time input, EM utilizes a time-independent field. This allows samples to navigate the data manifold indefinitely, which is essential for exploring different modes or styles without restarting the generation process. Furthermore, because the velocity is the gradient of a scalar potential, the flow is naturally irrotational, ensuring the most efficient path from noise to data according to optimal transport theory.

Manifold Geometry and Inverse Problems

Because EM is energy-based, it allows for the direct computation of the Hessian (the curvature of the energy landscape). This provides a more accurate estimate of the data's Local Intrinsic Dimension (LID) than diffusion-based methods. Additionally, the framework simplifies solving inverse problems—such as reconstructing a face from a blurry image—by allowing the addition of "interaction energies" or repulsion terms to ensure diversity in the generated solutions.

Experimental Evaluation

The researchers evaluated Energy Matching across diverse domains, demonstrating its versatility:

  • Image Synthesis: On CIFAR-10, EM achieved a state-of-the-art EBM performance with an FID of 3.34, outperforming previous EBMs and rivaling top-tier flow-matching models. On ImageNet 32x32, it reached an FID of 6.64, a significant improvement over previous EBM attempts.
  • Scientific Discovery: In protein fitness optimization (AAV protein segments), EM provided a superior trade-off between the "fitness" of the protein and the "diversity" of the generated sequences compared to leading score-based methods.
  • Inverse Problems: Using CelebA (64x64), the model successfully demonstrated face inpainting, using interaction energies to generate multiple plausible completions for masked regions.

Limitations and Future Work

While Energy Matching offers significant advantages, it introduces some computational overhead. Training requires computing gradients with respect to the input, which increases GPU memory usage by approximately 20–40%. Additionally, while Hessian-based geometric analysis is highly accurate, its $O(d^3)$ complexity makes it expensive for high-resolution images, suggesting the need for iterative solvers in future iterations. The next frontier for this research is scaling the time-independent scalar potential to high-resolution (e.g., 1024x1024) synthesis.

Conclusion

Energy Matching provides a principled bridge between flow-based efficiency and energy-based flexibility. By unifying these paradigms, the framework offers a robust tool for high-fidelity generative modeling, accurate geometric analysis, and the solution of complex inverse problems in both computer vision and scientific discovery.

Summary updated

BibTeX
@inproceedings{balcerak2025energy,
  author = {Michal Balcerak and Tamaz Amiranashvili and Antonio Terpin and Suprosanna Shit and Lea Bogensperger and Sebastian Kaltenbach and Petros Koumoutsakos and Bjoern Menze},
  title = {{Energy Matching: Unifying Flow Matching and Energy-Based Models for Generative Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=WYSCCw7mCe},
}
Figure