Abstract
Training neural networks with differentiable physics is notoriously slow because iterative solvers require many steps to converge. PRDP (Progressively Refined Differentiable Physics) dramatically speeds up this process by starting with "cheap," low-accuracy physics and only increasing solver iterations when the model's performance plateaus. This approach ultimately achieves full accuracy with up to 62% less training time by leveraging the inherent noise tolerance of stochastic gradient descent.
Introduction
Differentiable Physics (DP) is a powerful framework that allows machine learning models to "look inside" classical physics solvers to compute gradients. This is essential for building hybrid models that combine neural networks with fluid simulators or for solving complex inverse problems. However, a massive computational bottleneck exists: most physics solvers are iterative. To obtain an accurate solution and gradient, one might need hundreds or thousands of iterations (e.g., Jacobi or GMRES steps). Differentiating through these iterations—whether by unrolling them in memory or using implicit differentiation—is incredibly expensive.
Traditionally, researchers assumed that the physics solver must be fully converged to provide useful gradients. PRDP challenges this assumption, asking whether perfect physics is necessary to train a model that is already dealing with noisy stochastic gradients.
Methods
PRDP is an adaptive algorithm that manages the "fidelity" of the physics solver during training. Instead of running a solver to a tight tolerance, PRDP treats the number of solver iterations ($K$) as a tunable hyperparameter that evolves over time.
Key components include:
- Progressive Refinement (PR): Training starts with very coarse physics (sometimes just $K=1$). This allows the network to learn the "broad strokes" of the problem very cheaply.
- Adaptive Stepping: The algorithm monitors validation error. When the error stops improving (a plateau), PRDP automatically increments the number of solver iterations ($\Delta K$).
- Incomplete Convergence (IC) Savings: Models often reach peak accuracy using solvers that are nowhere near "fully converged." PRDP identifies this "adequate" level of refinement and stops increasing $K$, saving massive amounts of compute in later training stages.
- Differentiation Agnostic: The method works with both Unrolled and Implicit Differentiation.
Key Results and Insights
The researchers evaluated PRDP on several classic partial differential equation (PDE) problems, including the Poisson, Heat, Burgers’, and Navier-Stokes equations. The results demonstrate that it is possible to achieve faster training with no loss in final model accuracy.
- Efficiency Gains: In Navier-Stokes simulations, PRDP reduced total training time by 62% and total solver iterations by 81%. For the 3D Heat Equation, it achieved a 78% reduction in wall-clock training time.
- Accuracy Parity: In every test case, the final validation error of the PRDP-trained model was identical to (or occasionally better than) the baseline trained with fully converged physics.
- The "Good Enough" Gradient: Deep learning optimizers like Adam are inherently noisy due to mini-batching. A "coarse" gradient from an unconverged solver is often sufficient to point the optimizer in the right direction, especially early in training.
Limitations and Future Work
PRDP is specifically designed for iterative linear solvers and may not directly apply to purely explicit numerical schemes or spectral methods. Current experiments focused on uniform Cartesian grids; applying PRDP to unstructured meshes or more complex multi-physics simulations remains a frontier. Future directions include exploring "multi-resolution" refinement, where the spatial or temporal resolution of the grid is increased alongside the solver iterations.
Summary updated