Diff-NekRS: A Scalable Differentiable Framework for Multi-Timestep Solver-in-the-Loop Training
Junoh Jung, Riccardo Balin, Bethany Lusch, Emil Constantinescu
Key points
From the paper's conclusion- These results establish a verified and scalable path for multi-timestep solver-in-the-loop training that improves coarse-grid trajectory accuracy while retaining a speed advantage over the high-order reference
Abstract
Hybrid physics-machine-learning solvers improve under-resolved simulations by embedding trainable corrections into the time integration. During autoregressive inference, repeated solver-model interactions can amplify small errors, motivating multi-timestep solver-in-the-loop training. However, production solvers rarely expose the derivatives needed to backpropagate through such rollouts. We introduce Diff-NekRS, a scalable differentiable framework that embeds neural corrections directly in the GPU-accelerated NekRS incompressible-flow solver. NekRS computes the authoritative forward trajectory, a manually implemented exact discrete adjoint differentiates the supported fully discrete timestep, and LibTorch supplies neural vector-Jacobian products and parameter gradients. End-to-end Taylor and centered finite-difference tests verify the assembled gradient for two-dimensional cylinder flow (2Dcyl) and the three-dimensional Taylor-Green vortex (3DTGV) across five horizons and 12-1,020 MPI ranks. At 1,020 ranks, optimizer-enabled post-setup training updates retain 54.5%-78.0% and 80.7%-81.9% weak-scaling efficiency for 2Dcyl and 3DTGV, respectively. In 200-step autoregressive inference, the M = 50 model reduces the three-seed median terminal relative L2 velocity error by 59.2% for 2Dcyl and 12.1% for 3DTGV relative to the uncorrected coarse-grid P = 2 baseline, and retains wall-clock speedups of 5.38x and 2.49x, respectively, relative to the corresponding P = 7 configurations for equal simulated-time intervals. These results establish a verified and scalable path for multi-timestep solver-in-the-loop training that improves coarse-grid trajectory accuracy while retaining a speed advantage over the high-order reference
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Learning Implicit Solves for Dynamic SimulationsarXiv · 2026
- Neural Operator Splitting for Fluid Dynamics in Complex GeometryarXiv · 2026
- Transferability of Learned States in Neural PDE SolversarXiv · 2026
- NOWS: Neural Operator Warm Starts for accelerating iterative solversComputer Methods in Applied Mechanics and Engineering · 2026
- Sounding the Black Box: Online Training of Embedded Neural Networks in Forward-Only Physical SimulatorsarXiv · 2026
- AdjointFlow: Accelerating Scientific Inverse Problems with Physics-Based TransportarXiv · 2026