Sounding the Black Box: Online Training of Embedded Neural Networks in Forward-Only Physical Simulators
Ruiqi Shu, Tianrun Gao, Haomin Wen, Xiaomeng Huang
Key points
From the paper's conclusion- We introduce FORGE (Forward-Only Response and Gauss-Newton Estimation), an online framework that trains embedded networks from forward runs alone by decoupling exact network derivatives from black-box simulator dynamics.
Abstract
Hybrid physics-neural simulators embed neural networks in partial differential equation (PDE) solvers to model unresolved subgrid dynamics while preserving resolved physics and conservation laws. Because closure outputs feed back across time steps, single-step offline regression does not directly minimize multi-step rollout error, motivating online trajectory optimization. Solver backpropagation through time (BPTT) is the standard online solution when solver derivatives are available, yet many operational Fortran and C/C++ simulators expose only non-differentiable, forward-only interfaces. We introduce FORGE (Forward-Only Response and Gauss-Newton Estimation), an online framework that trains embedded networks from forward runs alone by decoupling exact network derivatives from black-box simulator dynamics. Stage I warms up the rollout via a low-dimensional Gauss-Newton step along output-orthonormal weight directions, canceling multi-layer feature drift via a final-layer correction. Stage II perturbs spatial output fields to fit a gain-bounded causal linear response operator across rollout steps, solves for regularized target outputs, and updates all weights via network backpropagation. Across five 2D and 3D benchmarks spanning phase separation, reaction-diffusion, fluid and MHD turbulence, and ocean circulation, FORGE outperforms gradient-free, reinforcement-learning, and emulator-based baselines, cutting coarse-solver test mean squared error (MSE) by 50%-96% in 2D and 70% in 3D, outperforming the strongest forward-only baseline by 16%-69%, and recovering 88%-98% of Solver BPTT's gains. Code is available at https://github.com/ChiyodaMomo01/FORGE.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Gradient‐Free Online Learning of Subgrid‐Scale Dynamics With Neural EmulatorsJournal of Advances in Modeling Earth Systems · 2026
- Deep neural ODE operator networks for PDEsMathematical Models and Methods in Applied Sciences · 2026
- Learning Implicit Solves for Dynamic SimulationsarXiv · 2026
- Learning Autoregressive Neural Operators on Solver-Defined Physical Constraint ManifoldsarXiv · 2026
- PINNMorph: Evolving Online Adaptation Policies for Physics-Informed Neural NetworksarXiv · 2026
- Dynamic SBI: round-free sequential simulation-based inference with adaptive datasetsMachine Learning Science and Technology · 2026