{"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/challenges-in-training-pinns-a-loss-landscape","title":"Challenges in Training PINNs: A Loss Landscape Perspective","arxiv_id":"2402.01868","date":"2024-02-02","proceeding":null,"authors":["Pratik Rathore","Weimu Lei","Zachary Frangella","Lu Lu","Madeleine Udell"],"abstract":"This paper explores challenges in training Physics-Informed Neural Networks (PINNs), emphasizing the role of the loss landscape in the training process. We examine difficulties in minimizing the PINN loss function, particularly due to ill-conditioning caused by differential operators in the residual term. We compare gradient-based optimizers Adam, L-BFGS, and their combination Adam+L-BFGS, showing the superiority of Adam+L-BFGS, and introduce a novel second-order optimizer, NysNewton-CG (NNCG), which significantly improves PINN performance. Theoretically, our work elucidates the connection between ill-conditioned differential operators and ill-conditioning in the PINN loss and shows the benefits of combining first- and second-order optimization methods. Our work presents valuable insights and more powerful optimization strategies for training PINNs, which could improve the utility of PINNs for solving difficult partial differential equations.","url_abs":"https://arxiv.org/abs/2402.01868v2","url_pdf":"https://arxiv.org/pdf/2402.01868v2.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":"challenges-in-training-pinns-a-loss-landscape","repo_url":"https://github.com/pratikrathore8/opt_for_pinns","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[{"method_slug":"adam","method_name":"Adam"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2402.01868","atlas_url":"https://app.syntology.ai/?focus=2402.01868","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.01868"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/pratikrathore8/opt","reach":{"status":"gone","observed_at":"2026-09-17","how":"tree_404+repo_404"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pratikrathore8/opt_for_pinns","reach":null}],"summary":{"ran":1,"ran_violates":1,"ran_draft_wrong":1,"ran_fixture":1},"by_repo_kind":{"official":{"samples":4,"ran":4,"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":4,"samples":[{"code_sha256_prefix":"0cab5061cf5c8ae0","entry":"NysNewtonCG","repo":"pratikrathore8/opt_for_pinns","repo_kind":"official","path":"src/opts/nys_newton_cg.py","file_url":"https://github.com/pratikrathore8/opt_for_pinns/blob/HEAD/src/opts/nys_newton_cg.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0cab5061cf5c8ae0"}},{"code_sha256_prefix":"870df12fd421fe69","entry":"_apply_nys_precond_inv","repo":"pratikrathore8/opt_for_pinns","repo_kind":"official","path":"src/opts/nys_newton_cg.py","file_url":"https://github.com/pratikrathore8/opt_for_pinns/blob/HEAD/src/opts/nys_newton_cg.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"870df12fd421fe69"}},{"code_sha256_prefix":"d24bf82479b6b5b2","entry":"_armijo","repo":"pratikrathore8/opt_for_pinns","repo_kind":"official","path":"src/opts/nys_newton_cg.py","file_url":"https://github.com/pratikrathore8/opt_for_pinns/blob/HEAD/src/opts/nys_newton_cg.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d24bf82479b6b5b2"}},{"code_sha256_prefix":"94801a707320d7ab","entry":"_nystrom_pcg","repo":"pratikrathore8/opt_for_pinns","repo_kind":"official","path":"src/opts/nys_newton_cg.py","file_url":"https://github.com/pratikrathore8/opt_for_pinns/blob/HEAD/src/opts/nys_newton_cg.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"94801a707320d7ab"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}