Disentangling Sampling from Loss Weighting in Physics-Informed Neural Networks
DOI:
https://doi.org/10.56158/jcosml.2026.1.1.3Abstract
Interventions on the collocation set enlarging it, or drawing it from a residual-based adaptive distribution are among the most widely adopted means of improving physics-informed neural networks, and the resulting gains are routinely attributed to where the points are placed. We observe that such interventions cannot change the sampling geometry alone: because the residual loss is an empirical mean, the magnitude of its stochastic gradient carries an inflation term tr(Σr)/Nr, so any change to the number or the distribution of collocation points silently rescales the residual term relative to the boundary and initial-condition terms. Reported gains therefore confound two mechanisms that the literature treats as distinct: sampling and loss weighting. We measure the confound directly and find it to be real but moderate, shifting the interior-to-constraint gradient balance by 20 to 40 per cent when the interior batch is enlarged sixteenfold. We then separate the two mechanisms with a matched-control design in which a control arm reproduces, to machine precision, the effective-balance trajectory of an intervention while leaving the collocation set untouched. On the one benchmark where enlarging the collocation set clearly helps viscous Burgers, where it reduces the error five fold the control recovers none of the gain, giving an attribution ratio of A = −0.10 with a bootstrap interval of [−0.90,0.22] that excludes the reweighting explanation. Matching the balance through the weights alone is in fact harmful: across problems the control arms are 1.1 to 1.7 times worse than the baseline they start from. Sampling gains in this setting are therefore geometric, and an alternative explanation that had never been excluded can now be set aside. We also report that seed variance in this regime is large enough to require tens of seeds per arm, and we release a verified implementation with the pre-registered analysis plan.
References
[1] Maziar Raissi, Paris Perdikaris, and George E. Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378: 686–707, 2019. doi: 10.1016/j.jcp.2018.10.045.
[2] George Em Karniadakis, Ioannis G. Kevrekidis, Lu Lu, Paris Perdikaris, Sifan Wang, and Liu Yang. Physics-informed machine learning. Nature Reviews Physics, 3(6):422–440, 2021. doi: 10.1038/s42254-021-00314-5.
[3] Lu Lu, Xuhui Meng, Zhiping Mao, and George Em Karniadakis. DeepXDE: A deep learning library for solving differential equations. SIAM Review, 63(1):208–228, 2021. doi: 10.1137/19M1274067.
[4] Chenxi Wu, Min Zhu, Qinyang Tan, Yadhu Kartha, and Lu Lu. A comprehensive study of non-adaptive and residual-based adaptive sampling for physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering, 403:115671, 2023. doi: 10.1016/j.cma.2022.115671.
[5] Sifan Wang, Yujun Teng, and Paris Perdikaris. Understanding and mitigating gradient flow pathologies in physics-informed neural networks. SIAM Journal on Scientific Computing, 43(5):A3055–A3081, 2021. doi: 10.1137/20M1318043.
[6] Sifan Wang, Xinling Yu, and Paris Perdikaris. When and why PINNs fail to train: A neural tangent kernel perspective. Journal of Computational Physics, 449:110768, 2022. doi: 10.1016/j.jcp.2021.110768.
[7] Levi D. McClenny and Ulisses M. Braga-Neto. Self-adaptive physics-informed neural networks. Journal of Computational Physics, 474:111722, 2023. doi: 10.1016/j.jcp.2022.111722.
[8] Rafael Bischof and Michael Kraus. Multi-objective loss balancing for physics-informed deep learning, 2021. URL https: //arxiv.org/abs/2110.09813.
[9] Léon Bottou, Frank E. Curtis, and Jorge Nocedal. Optimization methods for large-scale machine learning. SIAM Review, 60(2): 223–311, 2018. doi: 10.1137/16M1080173.
[10] Sam McCandlish, Jared Kaplan, Dario Amodei, and OpenAI Dota Team. An empirical model of large-batch training, 2018. URL https://arxiv.org/abs/1812.06162.
[11] Arka Daw, Jie Bu, Sifan Wang, Paris Perdikaris, and Anuj Karpatne. Mitigating propagation failures in physics-informed neural networks using retain-resample-release (R3) sampling. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of PMLR, 2023.
[12] Mohammad Amin Nabian, Rini Jasmine Gladstone, and Hadi Meidani. Efficient training of physics-informed neural networks via importance sampling. Computer-Aided Civil and Infrastructure Engineering, 36(8):962–977, 2021. doi: 10.1111/mice.12685.
[13] Kejun Tang, Xiaoliang Wan, and Chao Yang. DAS-PINNs: A deep adaptive sampling method for solving high-dimensional partial differential equations. Journal of Computational Physics, 476:111868, 2023. doi: 10.1016/j.jcp.2022.111868.
[14] Zixue Xiang, Wei Peng, Xu Liu, and Wen Yao. Self-adaptive loss balanced physics-informed neural networks. Neurocomputing, 496:11–34, 2022. doi: 10.1016/j.neucom.2022.05.015.
[15] Sokratis J. Anagnostopoulos, Juan D. Toscano, Nikolaos Stergiopulos, and George E. Karniadakis. Residual-based attention and connection to information bottleneck theory in PINNs, 2023. URL https://arxiv.org/abs/2307.00379.
[16] Jiahao Song, Wenbo Cao, Fei Liao, and Weiwei Zhang. VW-PINNs: A volume weighting method for PDE residuals in physics-informed neural networks. Acta Mechanica Sinica, 41(3):324140, 2025. doi: 10.1007/s10409-024-24140-x.
[17] Aditi S. Krishnapriyan, Amir Gholami, Shandian Zhe, Robert M. Kirby, and Michael W. Mahoney. Characterizing possible failure modes in physics-informed neural networks. In Advances in Neural Information Processing Systems, volume 34, pages 26548–26560, 2021.
[18] Sifan Wang, Shyam Sankaran, Hanwen Wang, and Paris Perdikaris. An expert’s guide to training physics-informed neural networks, 2023. URL https://arxiv.org/abs/2308.08468.
[19] C. Basdevant, M. Deville, P. Haldenwang, J. M. Lacroix, J. Ouazzani, R. Peyret, P. Orlandi, and A. T. Patera. Spectral and finite difference solutions of the Burgers equation. Computers & Fluids, 14(1):23–41, 1986. doi: 10.1016/0045-7930(86)90036-8.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Rasim Çekik (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.