# An End-to-End PyTorch Interface for Differentiable PDE Solvers: A RANS Model-Correction Study

arXiv: https://arxiv.org/abs/2605.28858 · HTML: https://mlsanity.com/paper/2605.28858/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 12 of its 65 references that are in the map.
- First posted on arXiv 19 May 2026.

## Builds on (most cited first, 12 of 12)

- [An overview of gradient descent optimization algorithms](https://mlsanity.com/paper/1609.04747/) (2016)
- [Deep Equilibrium Models](https://mlsanity.com/paper/1909.01377/) (2019)
- [An Introduction to Convolutional Neural Networks](https://mlsanity.com/paper/1511.08458/) (2015)
- [MMGP: a Mesh Morphing Gaussian Process-based machine learning method for regression of physical problems under non-parameterized geometrical variability](https://mlsanity.com/paper/2305.12871/) (2023)
- [Towards scalable surrogate models based on Neural Fields for large scale aerodynamic simulations](https://mlsanity.com/paper/2505.14704/) (2025)
- [A Robust Multi-Batch L-BFGS Method for Machine Learning](https://mlsanity.com/paper/1707.08552/) (2017)
- [Universal Approximation Theorem for Neural Networks](https://mlsanity.com/paper/2102.10993/) (2021)
- [A data-driven learned discretization approach in finite volume schemes for hyperbolic conservation laws and varying boundary conditions](https://mlsanity.com/paper/2412.07541/) (2024)
- [Volume-Preserving Transformers for Learning Time Series Data with Structure](https://mlsanity.com/paper/2312.11166/) (2023)
- [Mean flow data assimilation using physics-constrained Graph Neural Networks](https://mlsanity.com/paper/2411.09476/) (2024)
- [A Regularized Limited Memory BFGS method for Large-Scale Unconstrained Optimization and its Efficient Implementations](https://mlsanity.com/paper/2101.04413/) (2021)
- [Data-Driven Adaptive Gradient Recovery for Unstructured Finite Volume Computations](https://mlsanity.com/paper/2507.16571/) (2025)

## Abstract (arXiv)

This work presents an end-to-end strategy for solving inverse problems constrained by Partial Differential Equations within a fully differentiable Machine Learning framework. The proposed formulation provides a unified and user-friendly methodology applicable to a wide range of problems, from data assimilation to closure modeling. Our approach combines a baseline differentiable PDE solver, which predicts the state w from the nonlinear system R(w) = 0, with a generic additive, parametrized, and differentiable correction fφ(w), with trainable parameters φ. We show how to optimize phi within a fully differentiable Python workflow by reformulating the PDE as an implicit layer, enabling its integration into arbitrary objective functions, while leveraging PyTorch's automatic differentiation graph. The method is demonstrated on the Reynolds-Averaged Navier-Stokes equations for compressible flows, where the closure term, or a portion of it, is modeled using trainable parameters or a Neural Network. The first application considers the 2D NASA Wall-Mounted Hump test case, where a production-term parameter is optimized against time-averaged LES data. A second application is carried out on the VKI LS-59 turbine blade, where the Spalart-Allmaras eddy viscosity field is reconstructed through the optimization of a trainable spatial field. A dataset is generated starting from the VKI LS-59 turbine blade geometry using the differentiable BROADCAST solver with the Spalart-Allmaras turbulence model. The results highlight the flexibility of the framework, showing its applicability beyond turbulence modeling to a broader class of physics-informed PDE-constrained problems with data-driven components.
