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

Michal Balcerak, Tamaz Amiranashvili, Antonio Terpin, Suprosanna Shit, Lea Bogensperger +3 more
4/1/2025
39 citations
diffusion-flow

No official code found. Best implementation: m1balcerak/EnergyMatching (231 stars, Jupyter Notebook, MIT, last commit 2026-04-13).

Abstract

Current state-of-the-art generative models map noise to data distributions by matching flows or scores. A key limitation of these models is their inability to readily integrate available partial observations and additional priors.

Show full abstract

In contrast, energy-based models (EBMs) address this by incorporating corresponding scalar energy terms. Here, we propose Energy Matching, a framework that endows flow-based approaches with the flexibility of EBMs. Far from the data manifold, samples move from noise to data along irrotational, optimal transport paths. As they approach the data manifold, an entropic energy term guides the system into a Boltzmann equilibrium distribution, explicitly capturing the underlying likelihood structure of the data. We parameterize these dynamics with a single time-independent scalar field, which serves as both a powerful generator and a flexible prior for effective regularization of inverse problems. The present method substantially outperforms existing EBMs on CIFAR-10 and ImageNet generation in terms of fidelity, while retaining simulation-free training of transport-based approaches away from the data manifold. Furthermore, we leverage the flexibility of the method to introduce an interaction energy that supports the exploration of diverse modes, which we demonstrate in a controlled protein generation setting. This approach learns a scalar potential energy, without time conditioning, auxiliary generators, or additional networks, marking a significant departure from recent EBM methods. We believe this simplified yet rigorous formulation significantly advances EBMs capabilities and paves the way for their wider adoption in generative modeling in diverse domains.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2025] Official repository for "Energy Matching: Unifying Flow Matching and Energy-Based Models for Generative Modeling"

23111Jupyter Notebook, PythonMay 17, 20257 months agoMIT

Similar Papers

Cite this paper

@article{balcerak2025energy,
  title  = {Energy Matching: Unifying Flow Matching and Energy-Based Models for Generative Modeling},
  author = {Michal Balcerak and Tamaz Amiranashvili and Antonio Terpin and Suprosanna Shit and Lea Bogensperger and Sebastian Kaltenbach and P. Koumoutsakos and Bjoern H Menze},
  year   = {2025},
  eprint = {2504.10612},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2504.10612},
  url    = {https://doi.org/10.48550/arXiv.2504.10612},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.10612.svg)](https://codeofpaper.com/paper/2504.10612)

Discussion