{"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/pinnfluence-influence-functions-for-physics","title":"PINNfluence: Influence Functions for Physics-Informed Neural Networks","arxiv_id":"2409.08958","date":"2024-09-13","proceeding":null,"authors":["Jonas R. Naujoks","Aleksander Krasowski","Moritz Weckbecker","Thomas Wiegand","Sebastian Lapuschkin","Wojciech Samek","René P. Klausen"],"abstract":"Recently, physics-informed neural networks (PINNs) have emerged as a flexible and promising application of deep learning to partial differential equations in the physical sciences. While offering strong performance and competitive inference speeds on forward and inverse problems, their black-box nature limits interpretability, particularly regarding alignment with expected physical behavior. In the present work, we explore the application of influence functions (IFs) to validate and debug PINNs post-hoc. Specifically, we apply variations of IF-based indicators to gauge the influence of different types of collocation points on the prediction of PINNs applied to a 2D Navier-Stokes fluid flow problem. Our results demonstrate how IFs can be adapted to PINNs to reveal the potential for further studies. The code is publicly available at https://github.com/aleks-krasowski/PINNfluence.","url_abs":"https://arxiv.org/abs/2409.08958v2","url_pdf":"https://arxiv.org/pdf/2409.08958v2.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":"pinnfluence-influence-functions-for-physics","repo_url":"https://github.com/aleks-krasowski/PINNfluence","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"pinnfluence-influence-functions-for-physics","repo_url":"https://github.com/aleks-krasowski/pinnfluence_resampling","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.08958","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.08958"}},"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/aleks-krasowski/pinnfluence_resampling","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aleks-krasowski/PINNfluence","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":6,"unverified":5},"by_repo_kind":{"official":{"samples":11,"ran":6,"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":11,"samples":[{"code_sha256_prefix":"25f8c12140a911b1","entry":"get_X_y_true","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/utils/io.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/utils/io.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"25f8c12140a911b1"}},{"code_sha256_prefix":"c836d29fb6089248","entry":"get_correlation","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/utils/indicators.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/utils/indicators.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c836d29fb6089248"}},{"code_sha256_prefix":"89b31071ec219bf8","entry":"get_influence_scores","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/utils/io.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/utils/io.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"89b31071ec219bf8"}},{"code_sha256_prefix":"9ab50b7dc3a5e730","entry":"get_min_max_from_geom","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/utils/common.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/utils/common.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"9ab50b7dc3a5e730"}},{"code_sha256_prefix":"b1197215b3d24dfc","entry":"scale_x","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/utils/common.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/utils/common.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b1197215b3d24dfc"}},{"code_sha256_prefix":"8a57fd63b314245f","entry":"scaled_rbf_kernel","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/utils/common.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/utils/common.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8a57fd63b314245f"}},{"code_sha256_prefix":"8870d93ffbd07c19","entry":"compute_single_influence","repo":"aleks-krasowski/pinnfluence","repo_kind":"official","path":"pinnfluence/precalculate_influences.py","file_url":"https://github.com/aleks-krasowski/pinnfluence/blob/HEAD/pinnfluence/precalculate_influences.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8870d93ffbd07c19"}},{"code_sha256_prefix":"4fa37e957e571a35","entry":"instantiate_IF","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/utils/influence.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/utils/influence.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4fa37e957e571a35"}},{"code_sha256_prefix":"f89d12e5d7483405","entry":"instantiate_grad_dot","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/utils/influence.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/utils/influence.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"f89d12e5d7483405"}},{"code_sha256_prefix":"4d40d73cd634b67e","entry":"load_checkpoint","repo":"aleks-krasowski/PINNfluence","repo_kind":"official","path":"pinnfluence/problem_factory.py","file_url":"https://github.com/aleks-krasowski/PINNfluence/blob/HEAD/pinnfluence/problem_factory.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4d40d73cd634b67e"}},{"code_sha256_prefix":"b6160bd12c82c84a","entry":"parse_loss_term","repo":"aleks-krasowski/pinnfluence","repo_kind":"official","path":"pinnfluence/precalculate_influences.py","file_url":"https://github.com/aleks-krasowski/pinnfluence/blob/HEAD/pinnfluence/precalculate_influences.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b6160bd12c82c84a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}