Skip to content
Preprint

NestyNet. I. Physics Functions Are Hard to Fit with Neural Networks: A Framework for Accurate Surrogates and Analytic Derivatives

Aug 2026 · 0 citations · 9 references
Physics

TL;DR

NestyNet, a coupled model-and-optimizer framework capable of fitting difficult scientific surrogates to high accuracy while also delivering their gradients, Hessians, Laplacians, and antiderivatives analytically and at low cost, is presented.

Abstract

Many of the smooth functions that matter most in physics are precisely the ones that standard neural network methods struggle to fit accurately. Here we present NestyNet, a coupled model-and-optimizer framework capable of fitting such targets to high accuracy while also delivering their gradients, Hessians, Laplacians, and antiderivatives analytically and at low cost. This makes it a natural substrate for scientific machine learning tasks. The model is a deterministic segmented analytic surrogate, and its optimizer is a second-order Levenberg--Marquardt scheme whose damping and linear solves are tailored to the stiff, strongly correlated parameter geometries induced by multiscale and sharply structured targets typical in physics and other scientific applications. On the AI Feynman benchmark of 120 physics equations, NestyNet achieves median improvement factors of $2\,100\times$ for function values, $1\,400\times$ for first derivatives, and $780\times$ for second derivatives relative to standard neural networks trained with first-order optimization (Adam). Even after refining those fits with quasi-Newton (L-BFGS) optimization, the corresponding improvements are $540\times$, $450\times$, and $250\times$. Owing to the analytic design it is up to $\approx 44\times$ faster than vectorized automatic-differentiation (autograd) baselines, with a margin growing with model size. The same analytic-derivative framework also supports vector- and complex-valued targets, measurement uncertainties in both inputs and outputs, and constraints, and its modules can be composed flexibly to build scientifically useful model architectures, all without reverting to autograd. Together, these components provide a practical modular framework for fitting difficult scientific surrogates while delivering accurate differential operators for subsequent analysis.

View source

Similar papers

Preprint Aug 2026

NestyNet. IV. Laws Chosen by Nothing in Advance

NestyNet-DE addresses differential-equation discovery via two complementary DE search strategies, both employing analytic derivatives from segmented neural surrogates: a sparse-library route linear in the outer coefficients, and a new operator-factorized route that searches directly over equation structure rather than...

Rodrigo Ibata, Wassim Tenachi, F. Diakogiannis et al. · 0 citations
#diffusion models Open access Sep 2026

Novel analysis of physics-informed neural networks for solving Cahn-Allen, FitzHugh-Nagumo and Fisher–KPP Models

This paper presents a hybrid semi-analytical/deep-learning framework for nonlinear PDEs, combining the New Iterative Method (NIM) with Physics-Informed Neural Networks (PINNs). A truncated NIM series provides a closed-form baseline satisfying the initial condition exactly, while a neural network learns only the residua...

A. Alshehry, Saima Noor, Humaira Yasmin et al. · 0 citations
Aug 2026

Learning boson star solution families with physics-informed neural networks

Computing boson star families traditionally requires repeated solution of nonlinear eigenvalue boundary-value problems and careful numerical continuation through turning points. We develop a physics-informed neural network (PINN) that learns the map from the physical parameters and radial coordinate directly to the sca...

Ao Liu, Chen-Hao Hao, Cui-Hong Wen et al. · 1 citation
Preprint Sep 2026

Towards solving General Relativity with Physics-Informed Neural Networks

Physics-Informed Neural Networks (PINNs) are a machine-learning framework for approximating solutions to systems of partial differential equations by constraining neural networks to satisfy the underlying physical laws. The resulting continuous representation does not require a predefined computational mesh and can be...

J. A. Carretero, Jorge F. Urbán, F. Abalos et al. · 1 citation
Preprint Aug 2026

Robust training and rigorous error analysis of physics-informed neural networks for the $p$-Laplace equation

A robust training framework for PINNs solving nonlinear partial differential equations, together with a rigorous error analysis, is proposed and extended to a parametric setting in which the exponent, the source term, and the boundary condition may all vary with the parameters.

Kyueon Choi, Seungchan Ko, Dohyun Kwon · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.