Energy-Guided Transport for Projection-Free Physics-Informed Flow Matching

Giuliano Galadini, Aurelio Uncini, Danilo Comminiello

TL;DR

Energy-Guided Transport (EGT) is a novel zero-shot framework for physics-informed Flow Matching that replaces rigid, unstable algebraic projections with a smooth, continuous "dissipative force." By treating physical constraints as a potential energy landscape, EGT achieves stable, high-fidelity generation for complex systems like the Navier-Stokes equations with $\mathcal{O}(N)$ complexity and up to 130x speedups over existing projection-based methods.

What Problem Does This Paper Address?

Deep generative models, such as Flow Matching and Diffusion, have become powerful surrogates for simulating complex physical systems. However, these models are primarily statistical; they are excellent at mimicking the look of data but often violate the underlying laws of physics (e.g., conservation of mass, boundary conditions).

To fix this, researchers typically use "zero-shot" guidance during inference. The current state-of-the-art involves explicit algebraic projections, which essentially "snap" the model's predictions back to a physically valid state at each step of the simulation. While precise, this approach has three major flaws:

  1. Computational Cost: It often requires materializing large Jacobian matrices, leading to $\mathcal{O}(N^2)$ memory bottlenecks that make high-dimensional 2D or 3D simulations impossible.
  2. Instability: In non-linear regimes (like chaotic fluid flow), these rigid corrections can cause the numerical solver to diverge.
  3. The "Waterbed Effect": Forcing a sample to perfectly satisfy a discrete physical stencil can pull it away from the learned data manifold, introducing high-frequency artifacts and degrading overall quality.

Methods

The authors introduce Energy-Guided Transport (EGT) to steer the generative process rather than interrupt it.

The Core Idea: Dissipative Guidance

Instead of projecting, EGT formulates the physical PDE residual as a smooth potential energy landscape $E(u) = \frac{1}{2} \|h(u)\|^2$, where $h(u)$ represents the physics violations. They then augment the generative vector field with a "dissipative force"—the gradient of this energy:

$$\bar{v}_t(u) = v_\theta(u, t) - \gamma(t)\nabla_u E(u)$$

As shown in the conceptual comparison below, this force smoothly nudges the trajectory toward the physical manifold throughout the entire integration process.

Figure 1: Conceptual comparison of generative probability flows. (a) Algebraic projections interrupt continuous integration, potentially displacing trajectories from the learned data manifold. (b) Our dissipative guidance smoothly steers the trajectory along the data manifold towards the physical equilibrium.

Efficiency via VJPs

To keep the method scalable, EGT evaluates the dissipative force implicitly using reverse-mode automatic differentiation (Vector-Jacobian Products). This avoids the dreaded $\mathcal{O}(N^2)$ memory cost, maintaining a strict $\mathcal{O}(N)$ complexity that allows the method to scale to high-resolution 2D fluids.

Transient Scheduling

The framework uses a "transient" sine-based schedule for the guidance strength $\gamma(t)$. This allows the model to first establish the macroscopic structure of the field from noise before gradually applying the strongest physical corrections mid-way through the generation.

Datasets

The authors rigorously evaluated EGT against five state-of-the-art baselines (including PCFM and ProFlow) across four physical systems:

  • 1D Heat Equation: A basic linear diffusion test.
  • 1D Reaction-Diffusion: A non-linear system featuring pattern formation.
  • 1D Inviscid Burgers’ Equation: A challenging test for resolving sharp shock fronts.
  • 2D Navier-Stokes: Chaotic fluid dynamics in vorticity form.

They also tested the impact of different generative priors, comparing standard White Noise against Smooth Gaussian Random Fields (GRFs), which provide a more differentiable starting point for physics operators.

Key Insights and Ideas

  • Steering is better than Snapping: Continuous guidance is inherently more stable than discrete projections. By treating physics as a "basin of attraction," EGT avoids the numerical shocks that cause other methods to crash.
  • Manifold Preservation: EGT respects the "data manifold." Because the guidance is smooth, the generated samples retain the statistical textures learned from training data while still obeying physical laws.
  • Solving the Waterbed Effect: The authors identify that "over-enforcing" physics on a discrete grid can actually hurt accuracy. EGT's "softer" approach achieves a better balance between physical residuals and distributional fidelity.
  • Prior Synergy: Using smooth kernels (GRFs) as priors significantly improves the stability of physics-informed guidance, as it ensures the energy landscape is well-defined from the very first step ($t=0$).

Key Results

  • Global Stability: EGT achieved a 100% success rate across all benchmarks, whereas projection methods like PCFM frequently suffered from numerical divergence (0% success rate on several "stress tests").
  • Massive Speedups: On the 2D Navier-Stokes task, EGT was 130x faster than PCFM, generating high-quality vorticity fields in roughly 1 second per sample.
  • Qualitative Superiority: In the Burgers' equation stress test, EGT accurately resolved sharp shock fronts where other methods produced significant high-frequency noise or blurred results.
Figure 2: Qualitative evaluation on the 1D Burgers’ equation (Full-PDE Stress Test). Spatiotemporal velocity fields u(x, t) generated from the same initial conditions. Explicit algebraic projections (PCFM) can be sensitive to solver step sizes under non-linear shock dynamics, leading to numerical instabilities and high-frequency artifacts. In comparison, continuous Energy-Guided Transport pro- vides smooth updates along the trajectory, accurately resolving sharp shockfronts while maintaining distributional fidelity.

Limitations and Future Work

While EGT is a major step forward, the authors note a few limitations:

  • No Hard Guarantees: As a dissipative mechanism, EGT doesn't guarantee a zero residual at the end of the flow (though their "Hybrid" variant with a tiny bit of post-hoc refinement solves this).
  • Stiffness: Very large guidance scales can make the underlying ODE "stiff," requiring more careful integration.
  • Pointwise Focus: The current energy functional minimizes pointwise residuals. Future work could incorporate spectral penalties to better capture macroscopic statistics like energy spectra in turbulence.

Overall, EGT provides a highly scalable and robust blueprint for building generative models that don't just look like physics—they act like it, too.

Summary updated

Abstract

Deep generative models, particularly Flow Matching frameworks, have emerged as powerful tools for synthesizing complex physical systems. However, standard architectures remain purely statistically driven and agnostic to the underlying governing equations, often violating fundamental physical constraints during inference. Existing zero-shot approaches designed to enforce these constraints typically rely on rigid algebraic projections. While effective for sparse boundary conditions, applying such discrete geometric corrections to dense, full-domain PDEs may disrupt the probability path, \rev{potentially deviating from the learned manifold and introducing substantial computational overhead}. To address these challenges, we introduce Energy-Guided Transport, a novel training-free framework that formulates non-linear physical constraints as a smooth potential energy landscape. Rather than interrupting the ODE integration, our method applies a continuous dissipative force directly to the intermediate generative states, steering them toward the physical manifold. By evaluating this force implicitly via reverse-mode automatic differentiation, our framework preserves the natural dynamics of the flow while maintaining an efficient $\mathcal{O}(N)$ algorithmic complexity. We extensively evaluate our framework across various 1D and 2D physical systems, including the chaotic Navier-Stokes equations. Our method achieves stable generation without structural divergence, significantly improves the stability-accuracy trade-off compared to state-of-the-art methods, and substantially accelerates inference with respect to exact projection strategies. Code available at: https://github.com/ispamm/Projection-free-energy-guided-flow-matching.
BibTeX
@inproceedings{galadini2026energy,
  author = {Giuliano Galadini and Aurelio Uncini and Danilo Comminiello},
  title = {{Energy-Guided Transport for Projection-Free Physics-Informed Flow Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9UPtcUT0hz},
}
Figure