NestyNet. I. Physics Functions Are Hard to Fit with Neural Networks: A Framework for Accurate Surrogates and Analytic Derivatives
Rodrigo Ibata, Wassim Tenachi, Foivos Diakogiannis, Neil Ibata, Anirudh Shankar
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× for function values, 1\,400× for first derivatives, and 780× 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×, 450×, and 250×. Owing to the analytic design it is up to ≈ 44× 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.
Create a lesson
Related papers
Characterization of the CSST Survey Camera CCDs: I. basic electro-optical performance
Zun Luo, Hu Zhan, Youhua Xu et al.
The Nancy Grace Roman Space Telescope Coronagraph Community Participation Program
Dmitry Savransky, Vanessa P. Bailey, Schuyler G. Wolff et al.
Supporting users in their observation preparation - the ESO ObsPrep tool
Monika G. Petr-Gotzens, Vincenzo Forchi, Andrea Mehner et al.
The GOTO Telescope Control System
Martin J. Dyer, Vik S. Dhillon, Stuart Littlefair et al.
cosmokdtree: a flexible OpenMP-parallelized k-d tree for computational astrophysics applications
Óscar Monllor-Berbegal, David Vallés-Pérez, Susana Planelles et al.
Transitioning from ADS to SciX to Serve 21st Century Astronomy
Jennifer Lynn Bartlett, Suze Kundu, Alberto Accomazzi et al.