Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints
Fuente:
arXiv
Guardado en:
| Autores principales: | , , , , |
|---|---|
| Formato: | Preprint |
| Publicado: |
2025
|
| Materias: | |
| Acceso en línea: | |
| Etiquetas: |
Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
|
| _version_ | 1866911287053647872 |
|---|---|
| author | Utkarsh, Utkarsh Cai, Pengfei Edelman, Alan Gomez-Bombarelli, Rafael Rackauckas, Christopher Vincent |
| author_facet | Utkarsh, Utkarsh Cai, Pengfei Edelman, Alan Gomez-Bombarelli, Rafael Rackauckas, Christopher Vincent |
| contents | 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 flexible framework for enforcing hard constraints in both scientific and general-purpose generative models, especially in applications where constraint satisfaction is essential. |
| format | Preprint |
| id |
arxiv_https___arxiv_org_abs_2506_04171 |
| institution | arXiv |
| publishDate | 2025 |
| record_format | arxiv |
| spellingShingle | Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints Utkarsh, Utkarsh Cai, Pengfei Edelman, Alan Gomez-Bombarelli, Rafael Rackauckas, Christopher Vincent Machine Learning Artificial Intelligence Computational Engineering, Finance, and Science Numerical Analysis 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 flexible framework for enforcing hard constraints in both scientific and general-purpose generative models, especially in applications where constraint satisfaction is essential. |
| title | Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints |
| topic | Machine Learning Artificial Intelligence Computational Engineering, Finance, and Science Numerical Analysis |
| url | https://arxiv.org/abs/2506.04171 |