Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints

📅 2025-06-04
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Pretrained flow-based generative models often fail to strictly satisfy nonlinear physical constraints—such as conservation laws or exact PDE solutions—due to inherent approximation errors. To address this, we propose Physics-Constrained Flow Matching (PCFM), a zero-shot framework that enforces hard physical constraints without model retraining or soft penalty terms. During continuous-time ODE sampling, PCFM dynamically injects exact constraint corrections via physics-driven intermediate-state projection and PDE-residual-guided gradient refinement. This is the first method to achieve zero-shot, uncompromising, and pointwise exact satisfaction of arbitrary nonlinear physical constraints throughout the entire generation process. Evaluated on diverse PDE modeling tasks featuring shocks, discontinuities, and sharp gradients, PCFM consistently outperforms unconstrained and soft-constrained baselines: it guarantees 100% hard-constraint compliance in final solutions while simultaneously improving sampling fidelity and physical consistency.

Technology Category

Application Category

📝 Abstract
Deep generative models have recently been applied to physical systems governed by partial differential equations (PDEs), offering scalable simulation and uncertainty-aware inference. However, enforcing physical constraints, such as conservation laws (linear and nonlinear) and physical consistencies, remains challenging. Existing methods often rely on soft penalties or architectural biases that fail to guarantee hard constraints. In this work, we propose Physics-Constrained Flow Matching (PCFM), a zero-shot inference framework that enforces arbitrary nonlinear constraints in pretrained flow-based generative models. PCFM continuously guides the sampling process through physics-based corrections applied to intermediate solution states, while remaining aligned with the learned flow and satisfying physical constraints. Empirically, PCFM outperforms both unconstrained and constrained baselines on a range of PDEs, including those with shocks, discontinuities, and sharp features, while ensuring exact constraint satisfaction at the final solution. Our method provides a general framework for enforcing hard constraints in both scientific and general-purpose generative models, especially in applications where constraint satisfaction is essential.
Problem

Research questions and friction points this paper is trying to address.

Enforcing hard physical constraints in generative models
Guaranteeing exact satisfaction of nonlinear conservation laws
Improving sampling accuracy for PDEs with sharp features
Innovation

Methods, ideas, or system contributions that make the work stand out.

Enforces arbitrary nonlinear constraints in pretrained models
Guides sampling with physics-based corrections
Ensures exact constraint satisfaction in solutions
🔎 Similar Papers
No similar papers found.
U
Utkarsh Utkarsh
Massachusetts Institute of Technology
P
Pengfei Cai
Massachusetts Institute of Technology
Alan Edelman
Alan Edelman
Professor of Applied Mathematics, Member Computer Science AI LABS, MIT
CorgisRandom Matrix TheoryJuliaNumerical Linear AlgebraParallel Computing
R
Rafael Gomez-Bombarelli
Massachusetts Institute of Technology
C
Christopher Rackauckas
Massachusetts Institute of Technology