cs.LGNov 24, 2026

Sounding the Black Box: Online Training of Embedded Neural Networks in Forward-Only Physical Simulators

Authors: Ruiqi Shu, Tianrun Gao, Haomin Wen, Xiaomeng Huang

Organizations: Department of Earth System Science, Tsinghua University, Beijing, China · School of Computing and Data Science, The University of Hong Kong, Hong Kong, China · Shanghai Innovation Institute, Shanghai, China

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.

Explore similar work

CardsList
  1. The Physics Is the Network: Fast, Training-Free Neural Emulation

    Oct 14, 2026Luka Todorovic, Kaushal Gianchandani, Sai RavelaNeural PDE SolversNeural Surrogate Modeling

  2. Posterior-First Neural PDE Simulation: Inferring What Downstream Tasks Need from a Single Field

    May 5, 2026Wenshuo Wang, Fan ZhangNeural PDE SolversPDE Surrogate Modeling

  3. From Numerical Simulators of PDEs to Neural Emulators and Back

    Aug 25, 2026Felix KoehlerPDE Surrogate ModelingPDE Solving