Optimizing Variational Physics-Informed Neural Networks Using Least Squares

Variational Physics-Informed Neural Networks often suffer from poor convergence when using stochastic gradient-descent-based optimizers. By introducing a least squares solver for the weights of the last layer of the neural network, we improve the convergence of the loss during training in most practical scenarios. This work analyzes the computational cost of the resulting hybrid least-squares/gradient-descent optimizer and explains how to implement it efficiently. In particular, we show that a traditional implementation based on backward-mode automatic differentiation leads to a prohibitively expensive algorithm. To remedy this, we propose using either forward-mode automatic differentiation or an ultraweak-type scheme that avoids the differentiation of trial functions in the discrete weak formulation. The proposed alternatives are up to one hundred times faster than the traditional one, recovering a computational cost-per-iteration similar to that of a conventional gradient-descent-based optimizer alone. To support our analysis, we derive computational estimates and conduct numerical experiments in one- and two-dimensional problems.

Authors

Institutions

Publication Details

Journal
Computers & Mathematics with Applications
Published
2025-03-01
DOI
https://doi.org/10.1016/j.camwa.2025.02.022
Citations
6
Primary Topic
Model Reduction and Neural Networks
Type
article
Field-Weighted Citation Impact
7.94
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing Variational Physics-Informed Neural Networks Using Least Squares

Carlos Uriarte, Sergio Rojas, Manuela Bastidas Olivares, Jamie M. Taylor et al.
6 citations
Computers & Mathematics with Applications
Model Reduction and Neural Networks
7.94
article

Optimizing Variational Physics-Informed Neural Networks Using Least Squares

Carlos Uriarte, Sergio Rojas, Manuela Bastidas Olivares, Jamie M. Taylor, David Pardo
article en
6 citations

Abstract

Variational Physics-Informed Neural Networks often suffer from poor convergence when using stochastic gradient-descent-based optimizers. By introducing a least squares solver for the weights of the last layer of the neural network, we improve the convergence of the loss during training in most practical scenarios. This work analyzes the computational cost of the resulting hybrid least-squares/gradient-descent optimizer and explains how to implement it efficiently. In particular, we show that a traditional implementation based on backward-mode automatic differentiation leads to a prohibitively expensive algorithm. To remedy this, we propose using either forward-mode automatic differentiation or an ultraweak-type scheme that avoids the differentiation of trial functions in the discrete weak formulation. The proposed alternatives are up to one hundred times faster than the traditional one, recovering a computational cost-per-iteration similar to that of a conventional gradient-descent-based optimizer alone. To support our analysis, we derive computational estimates and conduct numerical experiments in one- and two-dimensional problems.

Computers & Mathematics with ApplicationsVol. 185
Ikerbasque (ES), University of the Basque Country (ES), Basque Center for Applied Mathematics (ES), Universidad Nacional de Colombia (CO), CUNEF Universidad, Monash University (AU)
Openalex Percentile: Top 3%
Model Reduction and Neural Networks
7.94
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Optimizing Variational Physics-Informed Neural Networks Using Least Squares — Carlos Uriarte, Sergio Rojas, et al. · Computers & Mathematics with Applications (2025) | TGRS Research Map | TGRS