{"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/das-a-deep-adaptive-sampling-method-for","title":"DAS-PINNs: A deep adaptive sampling method for solving high-dimensional partial differential equations","arxiv_id":"2112.14038","date":"2021-12-28","proceeding":null,"authors":["Kejun Tang","Xiaoliang Wan","Chao Yang"],"abstract":"In this work we propose a deep adaptive sampling (DAS) method for solving partial differential equations (PDEs), where deep neural networks are utilized to approximate the solutions of PDEs and deep generative models are employed to generate new collocation points that refine the training set. The overall procedure of DAS consists of two components: solving the PDEs by minimizing the residual loss on the collocation points in the training set and generating a new training set to further improve the accuracy of current approximate solution. In particular, we treat the residual as a probability density function and approximate it with a deep generative model, called KRnet. The new samples from KRnet are consistent with the distribution induced by the residual, i.e., more samples are located in the region of large residual and less samples are located in the region of small residual. Analogous to classical adaptive methods such as the adaptive finite element, KRnet acts as an error indicator that guides the refinement of the training set. Compared to the neural network approximation obtained with uniformly distributed collocation points, the developed algorithms can significantly improve the accuracy, especially for low regularity and high-dimensional problems. We demonstrate the effectiveness of the proposed DAS method with numerical experiments.","url_abs":"https://arxiv.org/abs/2112.14038v2","url_pdf":"https://arxiv.org/pdf/2112.14038v2.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":"das-a-deep-adaptive-sampling-method-for","repo_url":"https://github.com/MJfadeaway/DAS","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2112.14038","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2112.14038"}},"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/MJfadeaway/DAS","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":8,"ran":0,"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":"d69662768b811616","entry":"a_diff_v1","repo":"MJfadeaway/DAS","repo_kind":"official","path":"pde_model.py","file_url":"https://github.com/MJfadeaway/DAS/blob/HEAD/pde_model.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":"d69662768b811616"}},{"code_sha256_prefix":"37a086f92558ae8e","entry":"compute_div","repo":"MJfadeaway/DAS","repo_kind":"official","path":"pde_model.py","file_url":"https://github.com/MJfadeaway/DAS/blob/HEAD/pde_model.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":"37a086f92558ae8e"}},{"code_sha256_prefix":"58d77fe8695b02ba","entry":"compute_grads","repo":"MJfadeaway/DAS","repo_kind":"official","path":"pde_model.py","file_url":"https://github.com/MJfadeaway/DAS/blob/HEAD/pde_model.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":"58d77fe8695b02ba"}},{"code_sha256_prefix":"a7a0b5eb2f885c61","entry":"entry_stop_gradients","repo":"MJfadeaway/DAS","repo_kind":"official","path":"BR_lib/BR_layers.py","file_url":"https://github.com/MJfadeaway/DAS/blob/HEAD/BR_lib/BR_layers.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":"a7a0b5eb2f885c61"}},{"code_sha256_prefix":"2f166976ae48eba7","entry":"gen_2d_Gaussian_w_hole","repo":"MJfadeaway/DAS","repo_kind":"official","path":"BR_lib/BR_data.py","file_url":"https://github.com/MJfadeaway/DAS/blob/HEAD/BR_lib/BR_data.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":"2f166976ae48eba7"}},{"code_sha256_prefix":"273f81576fb98ecc","entry":"gen_2d_Logistic_w_hole","repo":"MJfadeaway/DAS","repo_kind":"official","path":"BR_lib/BR_data.py","file_url":"https://github.com/MJfadeaway/DAS/blob/HEAD/BR_lib/BR_data.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":"273f81576fb98ecc"}},{"code_sha256_prefix":"a2fc939647419e5b","entry":"gen_xd_Logistic_w_2d_hole","repo":"MJfadeaway/DAS","repo_kind":"official","path":"BR_lib/BR_data.py","file_url":"https://github.com/MJfadeaway/DAS/blob/HEAD/BR_lib/BR_data.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":"a2fc939647419e5b"}},{"code_sha256_prefix":"f51133612478e78c","entry":"sin_act","repo":"MJfadeaway/DAS","repo_kind":"official","path":"nn_model.py","file_url":"https://github.com/MJfadeaway/DAS/blob/HEAD/nn_model.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":"f51133612478e78c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}