Papers › Learning Physical Models that Can Respect Conservation Laws

Learning Physical Models that Can Respect Conservation Laws

21 Feb 2023arXiv:2302.11002archive 2025-07-28

Derek Hansen, Danielle C. Maddix, Shima Alizadeh, Gaurav Gupta, Michael W. Mahoney

Recent work in scientific machine learning (SciML) has focused on incorporating partial differential equation (PDE) information into the learning process. Much of this work has focused on relatively "easy" PDE operators (e.g., elliptic and parabolic), with less emphasis on relatively "hard" PDE operators (e.g., hyperbolic). Within numerical PDEs, the latter problem class requires control of a type of volume element or conservation constraint, which is known to be challenging. Delivering on the promise of SciML requires seamlessly incorporating both types of problems into the learning process. To address this issue, we propose ProbConserv, a framework for incorporating conservation constraints into a generic SciML architecture. To do so, ProbConserv combines the integral form of a conservation law with a Bayesian update. We provide a detailed analysis of ProbConserv on learning with the Generalized Porous Medium Equation (GPME), a widely-applicable parameterized family of PDEs that illustrates the qualitative properties of both easier and harder PDEs. ProbConserv is effective for easy GPME variants, performing well with state-of-the-art competitors; and for harder GPME variants it outperforms other approaches that do not guarantee volume conservation. ProbConserv seamlessly enforces physical conservation constraints, maintains probabilistic uncertainty quantification (UQ), and deals well with shocks and heteroscedasticities. In each case, it achieves superior predictive performance on downstream tasks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2302.11002")

Code

Syntology Ran 10 of 14 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

amazon-science/probconserv officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 10 ran; 1 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran · fixture could not drive it
5ran
4unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from amazon-science/probconserv. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Attention amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran Apache-2.0 (permissive) · bf3079228b4b66f8 · report
DeterministicEncoder amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran Apache-2.0 (permissive) · 5db7fd66cc15d4fe · report
LatentEncoder amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran Apache-2.0 (permissive) · 868f64d33b0f779e · report
Linear amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran Apache-2.0 (permissive) · 0c114347b4d5b3e6 · report
MultiheadAttention amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran Apache-2.0 (permissive) · fc456591ed6ce764 · report
_get_second_deriv_mat amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · f90ab48d1192a606 · report
_get_second_derivative_var amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 5edc3fc22a03e116 · report
apply_non_linear_ineq_constraint amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 862c973a482ccbe4 · report
get_cov_tilde_as_projection amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · ebfa11fc11be9ee2 · report
get_mu_tilde_as_projection amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · d80230f4a8355b1f · report
ANP amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository unverified Apache-2.0 (permissive) · cf283110e1c4d57c · report
Decoder amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository unverified Apache-2.0 (permissive) · 4d1194aa0f452075 · report
PhysNP amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository unverified Apache-2.0 (permissive) · 8ac5d2eae63272ef · report
_apply_g amazon-science/probconserv/deep_pdes/attentive_neural_process/probconserv.py official repository unverified Apache-2.0 (permissive) · cb5f9cc3ba938241 · report

Tasks

Uncertainty Quantification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections