Physics vs Distributions: Pareto Optimal Flow Matching with Physics Constraints

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Baldan, Giacomo, Liu, Qiang, Guardone, Alberto, Thuerey, Nils
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908847981985792
author Baldan, Giacomo
Liu, Qiang
Guardone, Alberto
Thuerey, Nils
author_facet Baldan, Giacomo
Liu, Qiang
Guardone, Alberto
Thuerey, Nils
contents Physics-constrained generative modeling aims to produce high-dimensional samples that are both physically consistent and distributionally accurate, a task that remains challenging due to often conflicting optimization objectives. Recent advances in flow matching and diffusion models have enabled efficient generative modeling, but integrating physical constraints often degrades generative fidelity or requires costly inference-time corrections. Our work is the first to recognize the trade-off between distributional and physical accuracy. Based on the insight of inherently conflicting objectives, we introduce Physics-Based Flow Matching (PBFM) a method that enforces physical constraints at training time using conflict-free gradient updates and unrolling to mitigate Jensen's gap. Our approach avoids manual loss balancing and enables simultaneous optimization of generative and physical objectives. As a consequence, physics constraints do not impede inference performance. We benchmark our method across three representative PDE benchmarks. PBFM achieves a Pareto-optimal trade-off, competitive inference speed, and generalizes to a wide range of physics-constrained generative tasks, providing a practical tool for scientific machine learning. Code and datasets available at https://github.com/tum-pbs/PBFM.
format Preprint
id arxiv_https___arxiv_org_abs_2506_08604
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Physics vs Distributions: Pareto Optimal Flow Matching with Physics Constraints
Baldan, Giacomo
Liu, Qiang
Guardone, Alberto
Thuerey, Nils
Machine Learning
Artificial Intelligence
Computational Engineering, Finance, and Science
Numerical Analysis
Physics-constrained generative modeling aims to produce high-dimensional samples that are both physically consistent and distributionally accurate, a task that remains challenging due to often conflicting optimization objectives. Recent advances in flow matching and diffusion models have enabled efficient generative modeling, but integrating physical constraints often degrades generative fidelity or requires costly inference-time corrections. Our work is the first to recognize the trade-off between distributional and physical accuracy. Based on the insight of inherently conflicting objectives, we introduce Physics-Based Flow Matching (PBFM) a method that enforces physical constraints at training time using conflict-free gradient updates and unrolling to mitigate Jensen's gap. Our approach avoids manual loss balancing and enables simultaneous optimization of generative and physical objectives. As a consequence, physics constraints do not impede inference performance. We benchmark our method across three representative PDE benchmarks. PBFM achieves a Pareto-optimal trade-off, competitive inference speed, and generalizes to a wide range of physics-constrained generative tasks, providing a practical tool for scientific machine learning. Code and datasets available at https://github.com/tum-pbs/PBFM.
title Physics vs Distributions: Pareto Optimal Flow Matching with Physics Constraints
topic Machine Learning
Artificial Intelligence
Computational Engineering, Finance, and Science
Numerical Analysis
url https://arxiv.org/abs/2506.08604