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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext e9d221b1-b42b-4daa-93b9-ad5a9264fd03Cited 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
