{"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/astral-training-physics-informed-neural","title":"Astral: training physics-informed neural networks with error majorants","arxiv_id":"2406.02645","date":"2024-06-04","proceeding":null,"authors":["Vladimir Fanaskov","Tianchi Yu","Alexander Rudikov","Ivan Oseledets"],"abstract":"The primal approach to physics-informed learning is a residual minimization. We argue that residual is, at best, an indirect measure of the error of approximate solution and propose to train with error majorant instead. Since error majorant provides a direct upper bound on error, one can reliably estimate how close PiNN is to the exact solution and stop the optimization process when the desired accuracy is reached. We call loss function associated with error majorant $\\textbf{Astral}$: neur$\\textbf{A}$l a po$\\textbf{ST}$erio$\\textbf{RI}$ function$\\textbf{A}$l Loss. To compare Astral and residual loss functions, we illustrate how error majorants can be derived for various PDEs and conduct experiments with diffusion equations (including anisotropic and in the L-shaped domain), convection-diffusion equation, temporal discretization of Maxwell's equation, and magnetostatics problem. The results indicate that Astral loss is competitive to the residual loss, typically leading to faster convergence and lower error (e.g., for Maxwell's equations, we observe an order of magnitude better relative error and training time). We also report that the error estimate obtained with Astral loss is usually tight enough to be informative, e.g., for a highly anisotropic equation, on average, Astral overestimates error by a factor of $1.5$, and for convection-diffusion by a factor of $1.7$.","url_abs":"https://arxiv.org/abs/2406.02645v1","url_pdf":"https://arxiv.org/pdf/2406.02645v1.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":"abstracts"},"code_links":[],"tasks":[],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.02645","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.02645"}},"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":"deterministic:regex_extraction","url":"https://github.com/4gnskq5g2s-collab/Astral","reach":{"status":"ok","spdx":"Unlicense"}}],"summary":{"ran":10,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":13,"ran":11,"repositories":1}},"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":"6c0464c49f680fda","entry":"draw_coefficients","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/Convection_Diffusion.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/Convection_Diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"6c0464c49f680fda"}},{"code_sha256_prefix":"bc6fc65a144102d4","entry":"gamma","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/elastoplasticity.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/elastoplasticity.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"bc6fc65a144102d4"}},{"code_sha256_prefix":"276bb5432f460935","entry":"get_basis","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/L_shaped.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/L_shaped.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"276bb5432f460935"}},{"code_sha256_prefix":"d3a0f8d6286b9f45","entry":"get_coefficients","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/L_shaped.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/L_shaped.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"d3a0f8d6286b9f45"}},{"code_sha256_prefix":"3d70b75be6df62eb","entry":"get_dataset","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/magnetostatics.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/magnetostatics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"3d70b75be6df62eb"}},{"code_sha256_prefix":"77d4bfafd1b02272","entry":"get_eigvalues","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/Convection_Diffusion.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/Convection_Diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"77d4bfafd1b02272"}},{"code_sha256_prefix":"476c537d47b2e48b","entry":"get_sample","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/magnetostatics.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/magnetostatics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"476c537d47b2e48b"}},{"code_sha256_prefix":"afa8720aaf616f2c","entry":"get_weights","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/Convection_Diffusion.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/Convection_Diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"afa8720aaf616f2c"}},{"code_sha256_prefix":"4667b36ac01d0832","entry":"get_weights_and_frequencies","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/L_shaped.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/L_shaped.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"4667b36ac01d0832"}},{"code_sha256_prefix":"1e3b2f680e75fd0a","entry":"np_random_cos","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/magnetostatics.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/magnetostatics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"1e3b2f680e75fd0a"}},{"code_sha256_prefix":"e1a5662398f9030a","entry":"np_random_sin","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/Anisotropic_diffusion.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/Anisotropic_diffusion.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"e1a5662398f9030a"}},{"code_sha256_prefix":"e58daaccc40792ed","entry":"sigma_11","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/elastoplasticity.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/elastoplasticity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"e58daaccc40792ed"}},{"code_sha256_prefix":"7c404994e2c9b9be","entry":"sigma_22","repo":"4gnskq5g2s-collab/Astral","repo_kind":"found_in_text","path":"datasets/elastoplasticity.py","file_url":"https://github.com/4gnskq5g2s-collab/Astral/blob/HEAD/datasets/elastoplasticity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Unlicense","inline_ok":true,"mcp_get_code":{"code_sha256":"7c404994e2c9b9be"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}