Learning differentiable solvers for systems with hard constraints
Geoffrey Négiar, Michael W. Mahoney, Aditi S. Krishnapriyan
Abstract
We introduce a practical method to enforce partial differential equation (PDE) constraints for functions defined by neural networks (NNs), with a high degree of accuracy and up to a desired tolerance. We develop a differentiable PDE-constrained layer that can be incorporated into any NN architecture. Our method leverages differentiable optimization and the implicit function theorem to effectively enforce physical constraints. Inspired by dictionary learning, our model learns a family of functions, each of which defines a mapping from PDE parameters to PDE solutions. At inference time, the model finds an optimal linear combination of the functions in the learned family by solving a PDE-constrained optimization problem. Our method provides continuous solutions over the domain of interest that accurately satisfy desired physical constraints. Our results show that incorporating hard constraints directly into the NN architecture achieves much lower test error when compared to training on an unconstrained objective.
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.
15 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Scaling physics-informed hard constraints with mixture-of-experts cites Efficient and Modular Implicit Differentiation
- Scaling physics-informed hard constraints with mixture-of-experts cites DC3: A learning method for optimization with hard constraints
- Scaling physics-informed hard constraints with mixture-of-experts cites Characterizing possible failure modes in physics-informed neural networks
- Learning Physical Models that Can Respect Conservation Laws cites Characterizing possible failure modes in physics-informed neural networks
- Efficient and Modular Implicit Differentiation cites JAX MD: A Framework for Differentiable Physics
- Harnessing the Power of Neural Operators with Automatically Encoded Conservation Laws cites Learning Physical Models that Can Respect Conservation Laws
- Earthformer: Exploring Space-Time Transformers for Earth System Forecasting cites Characterizing possible failure modes in physics-informed neural networks
- Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints cites Learning Physical Models that Can Respect Conservation Laws
- Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints cites DC3: A learning method for optimization with hard constraints
- Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraints cites Characterizing possible failure modes in physics-informed neural networks
- Characterizing possible failure modes in physics-informed neural networks cites DC3: A learning method for optimization with hard constraints
Cited by top-tier papers15
- Earthformer: Exploring Space-Time Transformers for Earth System ForecastingZhihan Gao, Xingjian Shi, Hao Wang, Yi Zhu et al.NeurIPS 2022 · 410 citations
- Learning Physical Models that Can Respect Conservation LawsDerek Hansen, Danielle C. Maddix, Shima Alizadeh, Gaurav Gupta et al.ICML 2023 · 73 citations
- Physics-Constrained Flow Matching: Sampling Generative Models with Hard ConstraintsUtkarsh Utkarsh, Pengfei Cai, Alan Edelman, Rafael Gómez-Bombarelli et al.NeurIPS 2025 · 60 citations
- Scaling physics-informed hard constraints with mixture-of-expertsNithin Chalapathi, Yiheng Du, Aditi S. KrishnapriyanICLR 2024 · 29 citations
- Harnessing the Power of Neural Operators with Automatically Encoded Conservation LawsNing Liu, Yiming Fan, Xianyi Zeng, Milan Klöwer et al.ICML 2024 · 20 citations
Builds on5
- 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
- Solver-in-the-Loop: Learning from Differentiable Physics to Interact with Iterative PDE-SolversKiwon Um, Robert Brand, Yun (Raymond) Fei, Philipp Holl et al.NeurIPS 2020 · 398 citations
- Efficient and Modular Implicit DifferentiationMathieu Blondel, Quentin Berthet, Marco Cuturi, Roy Frostig et al.NeurIPS 2022 · 386 citations
- JAX MD: A Framework for Differentiable PhysicsSamuel S. Schoenholz, Ekin Dogus CubukNeurIPS 2020 · 195 citations
- DC3: A learning method for optimization with hard constraintsPriya L. Donti, David Rolnick, J. Zico KolterICLR 2021 · 64 citations
Related papers
- DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization LayersShraman Pal, Can LiICML 2026
- Neural Fields with Hard Constraints of Arbitrary Differential OrderFangcheng Zhong, Kyle Fogarty, Param Hanji, Tianhao Wu et al.NeurIPS 2023 · 10 citations
- Bi-level Physics-Informed Neural Networks for PDE Constrained Optimization using Broyden's HypergradientsZhongkai Hao, Chengyang Ying, Hang Su, Jun Zhu et al.ICLR 2023 · 2 citations
- A Unified Hard-Constraint Framework for Solving Geometrically Complex PDEsSongming Liu, Zhongkai Hao, Chengyang Ying, Hang Su et al.NeurIPS 2022 · 47 citations
- Guiding continuous operator learning through Physics-based boundary constraintsNadim Saad, Gaurav Gupta, Shima Alizadeh, Danielle C. MaddixICLR 2023 · 4 citations
