Lune

NeurIPS2025Top-tier venue

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

Utkarsh Utkarsh, Pengfei Cai, Alan Edelman, Rafael Gómez-Bombarelli, Christopher Rackauckas

Abstract

Deep generative models have recently been applied to physical systems governed by partial differential equations (PDEs), offering scalable simulation and uncertaintyaware 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 flexible framework for enforcing hard constraints in both scientific and general-purpose generative models, especially in applications where constraint satisfaction is essential. Order decided by coin toss.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Gauge Flow Matching: Efficient Constrained Generative Modeling over General Convex Set and Beyond cites Mirror Flow Matching with Heavy-Tailed Priors for Generative Modeling on Convex Domains
  • Gauge Flow Matching: Efficient Constrained Generative Modeling over General Convex Set and Beyond cites Denoising Diffusion Probabilistic Models
  • Strictly Constrained Generative Modeling via Split Augmented Langevin Sampling cites Denoising Diffusion Probabilistic Models
  • Physics vs Distributions: Pareto Optimal Flow Matching with Physics Constraints cites Denoising Diffusion Probabilistic Models
  • Physics vs Distributions: Pareto Optimal Flow Matching with Physics Constraints cites Characterizing possible failure modes in physics-informed neural networks
  • End-to-End Probabilistic Framework for Learning with Hard Constraints cites Fourier Neural Operator for Parametric Partial Differential Equations
  • End-to-End Probabilistic Framework for Learning with Hard Constraints cites Characterizing possible failure modes in physics-informed neural networks
  • Diffusion Models Beat GANs on Image Synthesis cites Language Models are Few-Shot Learners
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Physics vs Distributions: Pareto Optimal Flow Matching with Physics ConstraintsGiacomo Baldan, Qiang Liu, Alberto Guardone, Nils ThuereyICLR 2026 · 31 citations
  2. End-to-End Probabilistic Framework for Learning with Hard ConstraintsUtkarsh Utkarsh, Danielle C. Maddix, Ruijun Ma, Michael W. Mahoney et al.ICLR 2026 · 13 citations
  3. Mirror Flow Matching with Heavy-Tailed Priors for Generative Modeling on Convex DomainsYunrui Guan, Krishna Balasubramanian, Shiqian MaICLR 2026 · 10 citations
  4. Strictly Constrained Generative Modeling via Split Augmented Langevin SamplingMatthieu Blanke, Yongquan Qu, Sara Shamekh, Pierre GentineICLR 2026 · 7 citations
  5. Gauge Flow Matching: Efficient Constrained Generative Modeling over General Convex Set and BeyondXinpeng Li, Enming Liang, Minghua ChenICLR 2026

Builds on25

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  3. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  4. Fourier Neural Operator for Parametric Partial Differential EquationsZongyi Li, Nikola Borislavov Kovachki, Kamyar Azizzadenesheli, Burigede Liu et al.ICLR 2021 · 3,911 citations
  5. Characterizing possible failure modes in physics-informed neural networksAditi S. Krishnapriyan, Amir Gholami, Shandian Zhe, Robert M. Kirby et al.NeurIPS 2021 · 1,421 citations

Related papers

  1. Gradient-Free Generation for Hard-Constrained SystemsChaoran Cheng, Boran Han, Danielle C. Maddix, Abdul Fatir Ansari et al.ICLR 2025
  2. Physics-Constrained Fine-Tuning of Flow-Matching Models for Generation and Inverse ProblemsJan Tauberschmidt, Sophie Fellenz, Sebastian Josef Vollmer, Andrew B. DuncanICLR 2026 · 11 citations
  3. Physically-Informed Flow Matching with Graph Neural Networks for Complex Fluid DynamicsXiaozhuang Song, Tianshu YuAAAI 2026
  4. PolyFlow: Safe and Efficient Polytope-Constrained Flow Matching with Constraint Embedding and Projection-free UpdateJianming Ma, Qiyue Yang, Yang Zhang, Liyun Yan et al.ICML 2026 · 1 citation
  5. Guaranteed Conservation of Momentum for Learning Particle-based Fluid DynamicsLukas Prantl, Benjamin Ummenhofer, Vladlen Koltun, Nils ThuereyNeurIPS 2022 · 54 citations
Dusk over the sea between two cliffs drawn in fine vertical lines