FORGE:在仅前向物理模拟器中在线训练嵌入式神经网络
Sounding the Black Box: Online Training of Embedded Neural Networks in Forward-Only Physical Simulators
FORGE 是一个仅依赖前向运行的在线训练框架,可将神经网络嵌入 Fortran 和 C/C++ 等不可微分模拟器,无需 BPTT。它分两阶段:先用低维 Gauss-Newton 步沿输出正交权重方向预热 rollout,再扰动空间输出场拟合增益有界的因果线性响应算子并更新全部权重。
arXiv:2611.31964v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org