arXiv:2611.06711cs.LGNov 2026

Manuscript Offprint

arXiv:2611.06711

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

Giuliano Galadini, Aurelio Uncini, Danilo Comminiello

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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, 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 O(N)\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.

1 Introduction

The accurate simulation of complex spatiotemporal dynamics has traditionally relied on computationally expensive numerical solvers. To bypass the curse of dimensionality inherent in high-dimensional PDEs, deep neural networks were initially introduced as direct physics solvers [1, 2]. Building on this foundation, deep generative models, ranging from Score-Based Diffusion [3, 4] to Flow Matching frameworks [5, 6], have recently emerged as scalable data-driven surrogates for modeling physical systems [7–10]. These models have achieved breakthrough successes in global weather forecasting and fluid dynamics [11–16].

By learning the intrinsic data manifold from high-fidelity solvers, these generative architectures offer unprecedented scalability, producing complex, high-dimensional physical states in a fraction of the time required by traditional simulators [8, 11, 12]. However, standard generative models remain purely statistical; they synthesize visually convincing fields but lack an inherent understanding of the governing physics. This purely statistical nature often leads to severe violations of conservation laws, boundary conditions, and internal dynamic consistencies [17]. Ultimately, violations of these

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

(a) Explicit Hard Projections

Figure

(b) EGT-FFM (Ours)

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.

macroscopic constraints severely degrade out-of-distribution generalization [18] and the reliability of foundation models for PDEs [19].

To bridge this gap, historical techniques attempted injecting physical priors into the generative process. Early approaches primarily focused on data-driven inverse problems and inpainting [20–22]. In these settings, models rely heavily on dense interior observations (e.g., sparse sensor data) to anchor the generative trajectory, reducing the physics problem to a conditioned interpolation task. While highly effective for data assimilation, these observation-dependent methods fail to act as rigorous, independent PDE solvers. Consequently, the field recently shifted toward Zero-Shot Physics Guidance, a much stricter paradigm. In this regime, a pre-trained base model is guided exclusively by the analytical PDE and its formal Boundary/Initial Conditions (BC/IC) during inference, without access to interior ground-truth data or computationally prohibitive retraining.

Despite the theoretical elegance of zero-shot inference, modern guidance architectures suffer from critical structural and computational limitations. Existing approaches often face trade-offs between numerical stability and computational scalability: gradient-based approximations can become unstable in non-linear regimes, while explicit algebraic projections (e.g., PCFM [23]), though effective for sparse boundary conditions, incur significant computational overhead and may perturb the generative trajectory when applied to dense, full-domain PDE constraints.

To address these limitations, we propose Energy-Guided Transport (EGT), a continuous guidance framework for physics-informed Functional Flow Matching. Rather than relying on unstable approximations or discrete geometric projections that intermittently halt the generative process, we formulate the physical PDE residual as a smooth potential energy landscape. Central to our approach are the Dissipation properties of Flow Matching, which proves that modulating the generative vector field with the gradient of this physical energy applies a Lyapunov-like dissipative force. As conceptualized in Figure 1, this allows our guidance to natively harmonize with the probability flow: it smoothly counteracts physical violations along the trajectory, steering samples toward the true physical manifold without the structural discontinuities or O(N2)\mathcal{O}(N^2) memory bottlenecks of exact algebraic projections.

To empirically validate our theoretical claims, we conduct an exhaustive experimental campaign across four distinct physical systems of increasing non-linearity and dimensionality: the 1D Heat equation, 1D Reaction-Diffusion (RD), 1D Burgers' equation, and the chaotic 2D Navier-Stokes equations. Most importantly, for each physical system, we rigorously evaluate our framework under two distinct regimes: partial physics guidance (enforcing only boundary and initial conditions) and a highly constrained full-PDE stress test. Furthermore, we provide extensive ablation studies investigating the hyperparameter dynamics of the dissipative force and the structural impact of generative priors, comparing standard White Noise against spatially correlated Gaussian Random Fields (Smooth Kernels).

Our primary contributions are summarized as follows:

  • Theoretical Formulation of Dissipative Guidance: we establish the dissipation properties of Flow Matching, demonstrating via a Lagrangian perspective how a continuous dissipative force ensures the minimization of physical energy functionals. By steering the vector field natively rather than interrupting the ODE to compute discrete projections, our framework seamlessly preserves the foundational continuity of Flow Matching.

  • Analysis of Projection-Based Guidance: we provide a rigorous empirical analysis exposing the structural limitations of explicit projection methods. We demonstrate that enforcing rigid algebraic constraints can disrupt the generative flow, highlighting the trade-off between exact boundary matching and internal physical coherence (the waterbed effect).

  • Computational Scalability: by completely avoiding explicit Jacobian materialization and employing VJP-based dissipative guidance coupled with gradient norm clipping, our method circumvents the O(N2)\mathcal{O}(N^2) memory bottlenecks, enabling scalable full-PDE guidance on 2D fluid dynamics.

  • Favorable Speed–Stability–Accuracy Trade-Off: through a strict zero-shot evaluation protocol across four benchmark datasets, our method is capable of maintaining consistent numerical stability (100% success rate) while delivering competitive distributional fidelity and low physical residuals at up to two orders of magnitude faster inference speeds than explicit projection methods.

References (56)