{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/enforcing-analytic-constraints-in-neural","title":"Enforcing Analytic Constraints in Neural-Networks Emulating Physical Systems","arxiv_id":"1909.00912","date":"2019-09-03","proceeding":null,"authors":["Tom Beucler","Michael Pritchard","Stephan Rasp","Jordan Ott","Pierre Baldi","Pierre Gentine"],"abstract":"Neural networks can emulate nonlinear physical systems with high accuracy, yet they may produce physically-inconsistent results when violating fundamental constraints. Here, we introduce a systematic way of enforcing nonlinear analytic constraints in neural networks via constraints in the architecture or the loss function. Applied to convective processes for climate modeling, architectural constraints enforce conservation laws to within machine precision without degrading performance. Enforcing constraints also reduces errors in the subsets of the outputs most impacted by the constraints.","url_abs":"https://arxiv.org/abs/1909.00912v5","url_pdf":"https://arxiv.org/pdf/1909.00912v5.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"enforcing-analytic-constraints-in-neural","repo_url":"https://github.com/raspstephan/CBRAIN-CAM","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"enforcing-analytic-constraints-in-neural","repo_url":"https://github.com/tbeucler/CBRAIN-CAM","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"enforcing-analytic-constraints-in-neural","repo_url":"https://github.com/eyringmlclimategroup/behrens22james_SPCAM_VED","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"enforcing-analytic-constraints-in-neural","repo_url":"https://github.com/gunnarbehrens/cbrain-cam","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1909.00912","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1909.00912"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/eyringmlclimategroup/behrens22james_SPCAM_VED","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gunnarbehrens/cbrain-cam","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tbeucler/CBRAIN-CAM","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/raspstephan/CBRAIN-CAM","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":14},"by_repo_kind":{"official":{"samples":8,"ran":0,"repositories":1},"listed":{"samples":6,"ran":0,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"11520a2864c629c0","entry":"act_layer","repo":"gunnarbehrens/cbrain-cam","repo_kind":"listed","path":"cbrain/models.py","file_url":"https://github.com/gunnarbehrens/cbrain-cam/blob/HEAD/cbrain/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"11520a2864c629c0"}},{"code_sha256_prefix":"413e979484c437c6","entry":"act_layer","repo":"raspstephan/CBRAIN-CAM","repo_kind":"official","path":"cbrain/legacy/models.py","file_url":"https://github.com/raspstephan/CBRAIN-CAM/blob/HEAD/cbrain/legacy/models.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"413e979484c437c6"}},{"code_sha256_prefix":"e9f309bf8b97e534","entry":"compute_dP_tilde","repo":"raspstephan/CBRAIN-CAM","repo_kind":"official","path":"cbrain/layers.py","file_url":"https://github.com/raspstephan/CBRAIN-CAM/blob/HEAD/cbrain/layers.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e9f309bf8b97e534"}},{"code_sha256_prefix":"578387cb2e2e14a8","entry":"conv_model","repo":"raspstephan/CBRAIN-CAM","repo_kind":"official","path":"cbrain/legacy/models.py","file_url":"https://github.com/raspstephan/CBRAIN-CAM/blob/HEAD/cbrain/legacy/models.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"578387cb2e2e14a8"}},{"code_sha256_prefix":"cf815b29dcf62479","entry":"ent_res","repo":"raspstephan/CBRAIN-CAM","repo_kind":"official","path":"cbrain/losses.py","file_url":"https://github.com/raspstephan/CBRAIN-CAM/blob/HEAD/cbrain/losses.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cf815b29dcf62479"}},{"code_sha256_prefix":"4358d72d442b2993","entry":"fc_model","repo":"gunnarbehrens/cbrain-cam","repo_kind":"listed","path":"cbrain/models.py","file_url":"https://github.com/gunnarbehrens/cbrain-cam/blob/HEAD/cbrain/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4358d72d442b2993"}},{"code_sha256_prefix":"12ddccc3bed4b967","entry":"get_jacobian","repo":"raspstephan/CBRAIN-CAM","repo_kind":"official","path":"cbrain/model_diagnostics.py","file_url":"https://github.com/raspstephan/CBRAIN-CAM/blob/HEAD/cbrain/model_diagnostics.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"12ddccc3bed4b967"}},{"code_sha256_prefix":"d5d4134a4e35adb3","entry":"get_mean_sounding","repo":"raspstephan/CBRAIN-CAM","repo_kind":"official","path":"cbrain/model_diagnostics.py","file_url":"https://github.com/raspstephan/CBRAIN-CAM/blob/HEAD/cbrain/model_diagnostics.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d5d4134a4e35adb3"}},{"code_sha256_prefix":"e9165703f5137ba8","entry":"load_olr_and_highpass_filter","repo":"eyringmlclimategroup/behrens22james_SPCAM_VED","repo_kind":"listed","path":"AED_clim_clim_conv_tropics_OLR_1_year_wheeler_kiladis.py","file_url":"https://github.com/eyringmlclimategroup/behrens22james_SPCAM_VED/blob/HEAD/AED_clim_clim_conv_tropics_OLR_1_year_wheeler_kiladis.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e9165703f5137ba8"}},{"code_sha256_prefix":"2984babb28096fb0","entry":"mass_res","repo":"raspstephan/CBRAIN-CAM","repo_kind":"official","path":"cbrain/losses.py","file_url":"https://github.com/raspstephan/CBRAIN-CAM/blob/HEAD/cbrain/losses.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2984babb28096fb0"}},{"code_sha256_prefix":"bc565c66808294e2","entry":"schedule","repo":"eyringmlclimategroup/behrens22james_SPCAM_VED","repo_kind":"listed","path":"AED_clim_clim_conv_train.py","file_url":"https://github.com/eyringmlclimategroup/behrens22james_SPCAM_VED/blob/HEAD/AED_clim_clim_conv_train.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bc565c66808294e2"}},{"code_sha256_prefix":"50288d49d80cc6b4","entry":"smth121","repo":"eyringmlclimategroup/behrens22james_SPCAM_VED","repo_kind":"listed","path":"AED_clim_clim_conv_tropics_OLR_1_year_wheeler_kiladis.py","file_url":"https://github.com/eyringmlclimategroup/behrens22james_SPCAM_VED/blob/HEAD/AED_clim_clim_conv_tropics_OLR_1_year_wheeler_kiladis.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"50288d49d80cc6b4"}},{"code_sha256_prefix":"b193ae60554ffdfb","entry":"smth5","repo":"eyringmlclimategroup/behrens22james_SPCAM_VED","repo_kind":"listed","path":"AED_clim_clim_conv_tropics_OLR_1_year_wheeler_kiladis.py","file_url":"https://github.com/eyringmlclimategroup/behrens22james_SPCAM_VED/blob/HEAD/AED_clim_clim_conv_tropics_OLR_1_year_wheeler_kiladis.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b193ae60554ffdfb"}},{"code_sha256_prefix":"6b3770a41781c107","entry":"total_error","repo":"raspstephan/CBRAIN-CAM","repo_kind":"official","path":"cbrain/legacy/losses.py","file_url":"https://github.com/raspstephan/CBRAIN-CAM/blob/HEAD/cbrain/legacy/losses.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6b3770a41781c107"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}