Skip to main content
QUICK REVIEW

[Paper Review] dNNsolve: an efficient NN-based PDE solver

Veronica Guidetti, Francesco Muia|arXiv (Cornell University)|Jan 1, 2021
Model Reduction and Neural NetworksPhysics and Astronomy54 references6 citations
TL;DR

dNNsolve is a novel physics-informed neural network solver that uses dual neural networks with sine and sigmoidal activation functions to efficiently solve a broad range of ODEs and PDEs in 1D, 2D, and 3D without requiring fine-tuning of hyperparameters. It achieves high accuracy—below 10⁻⁵ for 1D problems and below 10⁻⁶ for 2D and 3D cases—by leveraging a specialized architecture that adaptively combines periodic and non-periodic basis functions for optimal solution representation.

ABSTRACT

Neural Networks (NNs) can be used to solve Ordinary and Partial Differential Equations (ODEs and PDEs) by redefining the question as an optimization problem. The objective function to be optimized is the sum of the squares of the PDE to be solved and of the initial/boundary conditions. A feed forward NN is trained to minimise this loss function evaluated on a set of collocation points sampled from the domain where the problem is defined. A compact and smooth solution, that only depends on the weights of the trained NN, is then obtained. This approach is often referred to as PINN, from Physics Informed Neural Network~\cite{raissi2017physics_1, raissi2017physics_2}. Despite the success of the PINN approach in solving various classes of PDEs, an implementation of this idea that is capable of solving a large class of ODEs and PDEs with good accuracy and without the need to finely tune the hyperparameters of the network, is not available yet. In this paper, we introduce a new implementation of this concept - called dNNsolve - that makes use of dual Neural Networks to solve ODEs/PDEs. These include: i) sine and sigmoidal activation functions, that provide a more efficient basis to capture both secular and periodic patterns in the solutions; ii) a newly designed architecture, that makes it easy for the the NN to approximate the solution using the basis functions mentioned above. We show that dNNsolve is capable of solving a broad range of ODEs/PDEs in 1, 2 and 3 spacetime dimensions, without the need of hyperparameter fine-tuning.

Motivation & Objective

  • To develop a neural network-based PDE solver that efficiently handles diverse ODEs and PDEs without requiring extensive hyperparameter tuning.
  • To improve solution accuracy and representation efficiency by combining sine and sigmoidal activation functions in a dual-network architecture.
  • To address convergence issues from local minima in loss landscapes caused by sine activations through adaptive weighting of loss components.
  • To reduce memory and computational costs compared to traditional finite difference and finite element methods by storing only network weights and architecture.
  • To enable robust, general-purpose solution of ODEs and PDEs across multiple spacetime dimensions with minimal user intervention.

Proposed method

  • dNNsolve employs two parallel neural network branches: one using sine activations to capture periodic patterns and another using sigmoidal activations for secular or non-periodic behavior.
  • The outputs of the two branches are combined via element-wise multiplication to form a richer, adaptive basis for solution representation.
  • A custom network architecture is designed to allow the network to learn which basis functions (sine, sigmoid, or their product) are most relevant for a given problem.
  • The loss function combines the squared residual of the PDE in the domain, initial conditions, and boundary conditions, with adjustable weights α₀ and α∂Ω to balance contributions and improve convergence.
  • Training is performed via backpropagation to minimize the total loss, with the final solution encoded entirely in the trained network weights.
  • The method is evaluated on 1D, 2D, and 3D ODEs and PDEs, including harmonic oscillators, Burgers’ equation, heat and wave equations, and the vorticity equation.

Experimental results

Research questions

  • RQ1Can a dual-NN architecture with sine and sigmoidal activations effectively represent both periodic and secular solution components in ODEs and PDEs?
  • RQ2Does dNNsolve achieve high accuracy across diverse ODEs and PDEs in 1D, 2D, and 3D without requiring fine-tuning of hyperparameters?
  • RQ3How does the use of adaptive loss weighting (α₀, α∂Ω) affect convergence and solution quality in problems with complex boundary conditions?
  • RQ4To what extent can dNNsolve outperform standard PINN approaches in terms of accuracy and memory efficiency for benchmark PDEs?
  • RQ5Can dNNsolve solve challenging problems such as boundary value problems (e.g., oscillon profile) and 3D PDEs with high fidelity and minimal user input?

Key findings

  • dNNsolve achieves root mean squared errors below 10⁻⁵ for 1D problems such as the harmonic oscillator and its damped variant, with the oscillon profile solution reaching accuracy below 10⁻⁵.
  • For 2D PDEs, including the heat and wave equations, dNNsolve achieves accuracies below 10⁻⁶ in favorable cases, with all results below 10⁻⁴ except for the heat equation.
  • In 3D, dNNsolve successfully solves the vorticity equation and other PDEs with accuracies below 10⁻⁴, though optimal hyperparameters α₀ and α∂Ω had to be selected per case, indicating mild tuning is needed in higher dimensions.
  • The network dynamically utilizes both sine and sigmoid branches, with redundant neurons contributing noise that slightly degrades accuracy—highlighting a need for pruning or regularization in future work.
  • dNNsolve demonstrates robust convergence across a wide range of problems, including stiff and delayed ODEs, and boundary value problems typically solved via shooting methods.
  • The method reduces memory complexity to just the network architecture and trained weights, offering a significant advantage over traditional FD/FEM solvers that store large discretized grids.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.