Efficient physics-informed neural networks using hash encoding
arXiv:2302.13397 · doi:10.1016/j.jcp.2024.112760
Abstract
Physics-informed neural networks (PINNs) have attracted a lot of attention in scientific computing as their functional representation of partial differential equation (PDE) solutions offers flexibility and accuracy features. However, their training cost has limited their practical use as a real alternative to classic numerical methods. Thus, we propose to incorporate multi-resolution hash encoding into PINNs to improve the training efficiency, as such encoding offers a locally-aware (at multi resolution) coordinate inputs to the neural network. Borrowed from the neural representation field community (NeRF), we investigate the robustness of calculating the derivatives of such hash encoded neural networks with respect to the input coordinates, which is often needed by the PINN loss terms. We propose to replace the automatic differentiation with finite-difference calculations of the derivatives to address the discontinuous nature of such derivatives. We also share the appropriate ranges for the hash encoding hyperparameters to obtain robust derivatives. We test the proposed method on three problems, including Burgers equation, Helmholtz equation, and Navier-Stokes equation. The proposed method admits about a 10-fold improvement in efficiency over the vanilla PINN implementation.
References in corpus (9)
- Instant Neural Graphics Primitives with a Multiresolution Hash Encoding
- DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operators
- Artificial Neural Networks for Solving Ordinary and Partial Differential Equations
- Bayesian Deep Convolutional Encoder-Decoder Networks for Surrogate Modeling and Uncertainty Quantification
- On the eigenvector bias of Fourier feature networks: From regression to solving multi-scale PDEs with physics-informed neural networks
- A comprehensive study of non-adaptive and residual-based adaptive sampling for physics-informed neural networks
- Real-time Neural Radiance Caching for Path Tracing
- PINNup: Robust neural network wavefield solutions using frequency upscaling and neuron splitting
- Accelerated Training of Physics-Informed Neural Networks (PINNs) using Meshless Discretizations