{"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/physics-informed-neural-networks-minimizing","title":"Physics-Informed Neural Networks: Minimizing Residual Loss with Wide Networks and Effective Activations","arxiv_id":"2405.01680","date":"2024-05-02","proceeding":null,"authors":["Nima Hosseini Dashtbayaz","Ghazal Farhani","Boyu Wang","Charles X. Ling"],"abstract":"The residual loss in Physics-Informed Neural Networks (PINNs) alters the simple recursive relation of layers in a feed-forward neural network by applying a differential operator, resulting in a loss landscape that is inherently different from those of common supervised problems. Therefore, relying on the existing theory leads to unjustified design choices and suboptimal performance. In this work, we analyze the residual loss by studying its characteristics at critical points to find the conditions that result in effective training of PINNs. Specifically, we first show that under certain conditions, the residual loss of PINNs can be globally minimized by a wide neural network. Furthermore, our analysis also reveals that an activation function with well-behaved high-order derivatives plays a crucial role in minimizing the residual loss. In particular, to solve a $k$-th order PDE, the $k$-th derivative of the activation function should be bijective. The established theory paves the way for designing and choosing effective activation functions for PINNs and explains why periodic activations have shown promising performance in certain cases. Finally, we verify our findings by conducting a set of experiments on several PDEs. Our code is publicly available at https://github.com/nimahsn/pinns_tf2.","url_abs":"https://arxiv.org/abs/2405.01680v2","url_pdf":"https://arxiv.org/pdf/2405.01680v2.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":[{"paper_slug":"physics-informed-neural-networks-minimizing","repo_url":"https://github.com/nimahsn/pinns_tf2","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2405.01680","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.01680"}},"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/nimahsn/pinns_tf2","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/nimahsn/pinns","reach":{"status":"gone","observed_at":"2026-09-17","how":"tree_404+repo_404"}}],"summary":{"ran":7,"unverified":1},"by_repo_kind":{"official":{"samples":8,"ran":7,"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":"99208346b28d260e","entry":"create_dense_model","repo":"nimahsn/pinns_tf2","repo_kind":"official","path":"modules/models.py","file_url":"https://github.com/nimahsn/pinns_tf2/blob/HEAD/modules/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"99208346b28d260e"}},{"code_sha256_prefix":"d05f6cd21794edca","entry":"get_train_plot_name","repo":"nimahsn/pinns_tf2","repo_kind":"official","path":"modules/utils.py","file_url":"https://github.com/nimahsn/pinns_tf2/blob/HEAD/modules/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d05f6cd21794edca"}},{"code_sha256_prefix":"6e9b2fde08308631","entry":"load_mat_data","repo":"nimahsn/pinns_tf2","repo_kind":"official","path":"modules/utils.py","file_url":"https://github.com/nimahsn/pinns_tf2/blob/HEAD/modules/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6e9b2fde08308631"}},{"code_sha256_prefix":"4f54163d268a0e14","entry":"plot_wave_model_slider","repo":"nimahsn/pinns_tf2","repo_kind":"official","path":"modules/plots.py","file_url":"https://github.com/nimahsn/pinns_tf2/blob/HEAD/modules/plots.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4f54163d268a0e14"}},{"code_sha256_prefix":"35ff247081adb369","entry":"simulate_burgers","repo":"nimahsn/pinns_tf2","repo_kind":"official","path":"modules/data.py","file_url":"https://github.com/nimahsn/pinns_tf2/blob/HEAD/modules/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"35ff247081adb369"}},{"code_sha256_prefix":"d4c418fa17abf950","entry":"simulate_heat","repo":"nimahsn/pinns_tf2","repo_kind":"official","path":"modules/data.py","file_url":"https://github.com/nimahsn/pinns_tf2/blob/HEAD/modules/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d4c418fa17abf950"}},{"code_sha256_prefix":"f0d83de3292aa3f2","entry":"simulate_wave","repo":"nimahsn/pinns_tf2","repo_kind":"official","path":"modules/data.py","file_url":"https://github.com/nimahsn/pinns_tf2/blob/HEAD/modules/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f0d83de3292aa3f2"}},{"code_sha256_prefix":"c63585033cb0f861","entry":"get_id","repo":"nimahsn/pinns_tf2","repo_kind":"official","path":"modules/utils.py","file_url":"https://github.com/nimahsn/pinns_tf2/blob/HEAD/modules/utils.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":"c63585033cb0f861"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}