Composing Flow-Matching Energies with Known Physics: Generation, OOD Detection, and Inversion on PDE Fields
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
Probabilistic modeling of physical fields benefits from both a data-driven prior and known physical structure such as the governing equations. Energy-based models (EBMs) are a natural fit since energies compose additively, which enables augmenting physics information during inference. However, EBMs have been difficult to train and sample from due to the intractable partition function. We show in this work that flow matching models with a potential-induced velocity yield an explicit scalar energy at all transport times, whose gradient is exactly the converted learned score and which recovers the marginal negative log-density at the population optimum. The time-dependent energy functions are obtained purely from the matching regression objective on an independent linear Gaussian interpolation, without a variational form or additional MCMC steps, and the sampling retains the flow ODE. Access to the energy function from a trained model serves three roles: energy-corrected data generation, energy as a scoring function for out-of-distribution (OOD) detection, and energy compositional posterior sampling for inverse problems. In particular, we show the explicit energy permits general MCMC samplers in the predictor-corrector sampling framework, reducing PDE residual and spectral distance compared to the flow ODE baseline. Furthermore, we demonstrate utilizing the data energy and physics-based energy (e.g., PDE residuals) as complementary mechanisms to improve detection accuracy for OOD tasks. In addition, we explore the connection to MCMC-based inference for inverse problems by composing the energy with a quadratic observational likelihood that yields a posterior energy, used as an explicitly chosen family of inference-time targets.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 30 of its 47 references that are in the map. First posted on arXiv 18 Aug 2026.
Builds on
30 of 47 references.
Closest ancestors · 11
Same direction, newest first
- 2025Chance-constrained Flow Matching for High-Fidelity Constraint-aware Generation29 Sep
- 2025Flow marching for a generative PDE foundation model23 Sep
- 2025Energy-Based Flow Matching for Generating 3D Molecular Structure26 Aug
- 2025Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints4 Jun
- 2025Energy Matching: Unifying Flow Matching and Energy-Based Models for Generative Modeling14 Apr
- 2025Generative Latent Neural PDE Solver using Flow Matching28 Mar
- 2025FlowDPS: Flow-Driven Posterior Sampling for Inverse Problems11 Mar
- 2024Gradient-Free Generation for Hard-Constrained Systems2 Dec
- 2023Practical and Asymptotically Exact Conditional Sampling in Diffusion Models30 Jun
- 2023Functional Flow Matching26 May
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow7 Sep
Other references · 19
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
- 2018Neural Ordinary Differential Equationscited by 3,779
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2022Diffusion Posterior Sampling for General Noisy Inverse Problemscited by 1,416
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2020Watch your Up-Convolution: CNN Based Generative Deep Neural Networks are Failing to Reproduce Spectral Distributionscited by 280
- 2023Reduce, Reuse, Recycle: Compositional Generation with Energy-Based Diffusion Models and MCMCcited by 220
- 2019Generalized Sliced Wasserstein Distancescited by 208
- 2020Learning Energy-Based Models by Diffusion Recovery Likelihoodcited by 123
- 2019On the Anatomy of MCMC-Based Maximum Likelihood Learning of Energy-Based Modelscited by 105
7 more
- 2022Statistical Efficiency of Score Matching: The View from Isoperimetrycited by 64
- 2023From Zero to Turbulence: Generative Modeling for 3D Flow Simulationcited by 49
- 2024Learning Iterative Reasoning through Energy Diffusioncited by 36
- 2016Deep Directed Generative Models with Energy-Based Probability Estimationcited by 34
- 2019Learning Energy-Based Models in High-Dimensional Spaces with Multi-scale Denoising Score Matchingcited by 26
- 2025Energy-based models for inverse imaging problemscited by 4
- 2023An energy-based model approach to rare event probability estimationcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Physics-Constrained Fine-Tuning of Flow-Matching Models for Generation and Inverse Problems
- 2024Iterated Energy-based Flow Matching for Sampling from Boltzmann Densities
- 2026A Kinetic Energy Perspective of Flow Matching
- 2026Guided Flow Matching for Forward and Inverse PDE Problems with Sparse Observations: Algorithm and Theory
- 2025Energy-Weighted Flow Matching: Unlocking Continuous Normalizing Flows for Efficient and Scalable Boltzmann Sampling
- 2026Physical Fidelity Reconstruction via Improved Consistency-Distilled Flow Matching for Dynamical Systems
- 2026D-Flow SGLD: Source-Space Posterior Sampling for Scientific Inverse Problems with Flow Matching
- 2025Physics vs Distributions: Pareto Optimal Flow Matching with Physics Constraints