Deep Learning-based Algebraic Reynolds Stress Closures for RANS Simulations of Turbulent Flows
Daniel Dehtyriov, Jonathan F. MacArt, Justin Sirignano
NeurIPS 2026
TL;DR. A physics-derived deep RANS closure that generalises across Reynolds number, geometry, and flow regime from one or two training cases; trained end-to-end through the coupled PDE solver via adjoints, where autodiff and implicit differentiation fail.
Abstract. Turbulence is ubiquitous in engineering, yet direct simulation is prohibitively expensive. The Reynolds-averaged Navier-Stokes (RANS) equations provide computational savings exceeding ten orders of magnitude but introduce unclosed terms requiring modelling. Existing machine-learning (ML) closures suffer distribution shift when trained offline on high-fidelity data, and ML models that bypass the governing equations often have limited capability to generalise. We develop a physics-derived deep learning closure for RANS, the Deep Algebraic Reynolds Stress Model (DARSM), which can be trained on one or two flow cases and generalise across an order of magnitude in Reynolds number, to unseen geometries, and across flow regimes. A neural network maps flow invariants to empirical parameters in an implicit algebraic Reynolds stress equation, derived from the Reynolds stress transport equations under the weak-equilibrium assumption, imposing significant physics-based structure on the ML closure. End-to-end optimisation through the governing PDEs and the coupled implicit closure eliminates distribution shift, but both unrolled and implicit automatic differentiation fail on the stiff coupled solver. We derive adjoint equations that exploit the solver's implicit-explicit structure to enable computationally efficient optimisation. On the canonical square-duct and periodic-hill benchmarks, DARSM reduces test velocity error as compared to the baseline RANS by - across Reynolds number, geometries, and flow regimes, with peak case-level reductions of . The model trained on attached, anisotropy-dominated flows (square duct) accurately generalises without retraining to separated flows (periodic hills), a regime change in the underlying turbulence physics. DARSM also outperforms established ML methods: offline training, tensor-basis neural networks, field-inversion machine learning, DeepONets, physics-informed neural networks, and an adjoint-trained source-term closure.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper introduces DARSM, a physics-derived neural algebraic Reynolds-stress closure trained end-to-end through a converged RANS solver. The paper addresses an important turbulence-closure problem and combines substantial physical structure with solver-in-the-loop learning. The scarce-data generalization results are promising. The hybrid adjoint is carefully derived, verified against finite differences, and shown to remain operational at grid sizes. I have read the authors' response and the subsequent discussion in full. My initial meta-review asked for four things, and in my assessment the response addressed all of them:
- Clarity of the IFT-Hybrid adjoint. The authors gave the step-by-step construction. Section 3.2 will be rewritten around, and Figure 6 moved into the main text.
- Application-level metrics. These are now computed across all five hill geometries (separation onset, reattachment, turbulent kinetic energy, wall-shear sign, duct anisotropy). Reviewer fNYW raised the score from borderline accept to accept on this basis.
- Novelty of the adjoint.
- Benchmark completeness and isolation. The full baseline set is now reported on the periodic hills, where DARSM is the only method improving on the default closure out of sample.
The paper's remaining limitations should be stated plainly (please note Reviewer s4J7 maintained a borderline-reject, holding that the response did not establish what Appendix C provides beyond the generic implicit-function-theorem adjoint and perhaps the contribution is more of interest to the fluid mechanics community rather than the generic ML community). I see this work positioning itself as ML for science and a step towards a better understanding of turbulence modeling, at a time when many papers in this venue are around simple canonical PDE models.
Final justification
Please see above.
- Final justification
- Please see above.
Read meta-review
Meta-review
The paper introduces DARSM, a physics-derived neural algebraic Reynolds-stress closure trained end-to-end through a converged RANS solver. The paper addresses an important turbulence-closure problem and combines substantial physical structure with solver-in-the-loop learning. The scarce-data generalization results are promising. The hybrid adjoint is carefully derived, verified against finite differences, and shown to remain operational at grid sizes. I have read the authors' response and the subsequent discussion in full. My initial meta-review asked for four things, and in my assessment the response addressed all of them:
- Clarity of the IFT-Hybrid adjoint. The authors gave the step-by-step construction. Section 3.2 will be rewritten around, and Figure 6 moved into the main text.
- Application-level metrics. These are now computed across all five hill geometries (separation onset, reattachment, turbulent kinetic energy, wall-shear sign, duct anisotropy). Reviewer fNYW raised the score from borderline accept to accept on this basis.
- Novelty of the adjoint.
- Benchmark completeness and isolation. The full baseline set is now reported on the periodic hills, where DARSM is the only method improving on the default closure out of sample.
The paper's remaining limitations should be stated plainly (please note Reviewer s4J7 maintained a borderline-reject, holding that the response did not establish what Appendix C provides beyond the generic implicit-function-theorem adjoint and perhaps the contribution is more of interest to the fluid mechanics community rather than the generic ML community). I see this work positioning itself as ML for science and a step towards a better understanding of turbulence modeling, at a time when many papers in this venue are around simple canonical PDE models.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies the Reynolds-averaged Navier-Stokes equations for practical simulation of turbulent fluids. Instead of modeling the Reynolds stresses directly through a neural network, the authors embed the neural network inside a classical algebraic Reynolds stress model. For training, they use a loss that is formulated directly in the space of the resulting physical velocity fields. When computing gradients during optimization, they use implicit differentiation wherever linear systems are solved during the forward pass. They evaluate on two fluid-flow systems (square duct, periodic hills) and compare to several baselines (e.g., PINNs, tensor-basis neural networks, ...).
Strengths and weaknesses
Strengths:
- The authors' approach is well motivated. They use a physics-derived closure model in hope of improving generalization.
- The paper is generally well written. The experimental setups are mostly clear.
Weaknesses:
- The conceptual novelty of the proposed approach is limited. All of the components, the closure ansatz, the basic idea of using ML to learn closure model parameters , solver-in-the-loop training, implicit differentiation for fixed-point iterations are prior work, as the authors correctly describe.
- The authors claim the derivation of a more efficient method for computing the gradient of their loss function. It appears that Appendix C is mostly a rederivation of the formulas for implicit differentiation. ML frameworks (Jax and others) already perform composition or nesting of fixed-point iterations in exactly the manner the authors describe when provided with a custom backpropagation formula for each building block. I think linalg solvers in Jax already use implicit differentiation by default.
- Even though the experiments suggest improvements, they feel incomplete. DARSM is trained on the same objective it is evaluated on. TBNN is not. Therefore, we cannot conclude that enforcing equivariance is harmful for turbulence modeling. More critical, the authors compare their method against the baselines only on square duct.
Questions
- Did you also train a TBNN using the same objective as DARSM?
- Why is pre-training required for DARSM?
Limitations
Yes
Final justification
The authors develop a steady-state RANS simulator by embedding a neural network directly inside a classical algebraic Reynolds stress model. While the authors presented additional experiments during the rebuttal and the paper is generally well written, I still stand by my initial criticism of one of the claimed contributions, namely the derivation of a novel adjoint method. Even though the authors responded to this point, they did not provide a specific answer to "what Appendix C provides for the implementation that is not already part of either (i) the forward pass or (ii) the generic adjoint formula for fixed-point solvers obtained from the implicit function theorem". While the work has value for the fluid community, I do not find the contributions sufficiently novel to warrant acceptance at an ML conference.
Formatting concerns
No concerns.
4 comments
Dear Authors,
Thank you for your detailed response.
Weakness 2 (Gradient Computation): I am not convinced by the authors' explanation. Could you explicitly explain what Appendix C provides for the implementation that is not already part of either (i) the forward pass or (ii) the generic adjoint formula for fixed-point solvers obtained from the implicit function theorem?
Weakness 3 (Experiments): Thank you for providing additional experimental data. This partially addresses my comment regarding incomplete experiments. Could you clarify:
- I thought the remaining difference between the TBNN (now trained end-to-end on the same objective function) and DARSM was only that TBNN has built-in equivariance. In your response, you mention that TBNN can produce negative viscosity values while DARSM cannot.
- Does TBNN end-to-end training stabilize with the use of pretraining or by decomposing into default constants and network correction as DARSM does?
In my opinion, a clean experimental documentation of whether networks with built-in equivariance can be as effectively trained or not as standard neural networks in an end-to-end training pipeline is the strongest potential contribution for an ML audience.
We thank the reviewer for the follow-up. We answer the gradient-computation question here and the two questions on the TBNN in a second comment.
Since dF/du is a large ill-conditioned matrix, its direct evaluation by automatic differentiation does not perform well in practice, as our numerical studies demonstrate. Computationally efficient evaluation of gradients requires the derivation of a series of discrete adjoint equations and their numerical solution with the appropriate numerical methods. The generic formula from the implicit function theorem requires solving a linear system involving a transposed Jacobian, but it does not state how that Jacobian is obtained, and for a RANS solver this is the entire difficulty. The forward pass does not supply it either. It solves each implicit block with its own matrix; the adjoint requires the transposed solve of that block, and a matrix-adjoint term (Equation 28) through which that matrix's own dependence on the state and the network enters the gradient. Neither is in the forward solver. The implicit differentiation methods used in the ML literature differentiate a single solver step by automatic differentiation and invert the resulting Jacobian, assuming that it is invertible (for example Bai 2019, Theorem 1 and Equations 8 and 11), which may not be appropriate for some PDE systems (e.g., the pressure Poisson equation with Neumann boundary conditions in Navier-Stokes/RANS is not invertible). That step contains iterative inner solves run to a finite tolerance, so automatic differentiation returns the transpose of a truncated solver rather than of the converged equations; this is IFT-AD in Table 1.
Appendix C provides the decomposition of that solve. It applies to any semi-implicit solver whose step is a sequence of implicit solves connected by explicit assembly. At each sub-step we derive the discrete adjoint, and we identify the structure of that transposed system. Depending on that structure we select the optimal numerical solver, for example a tridiagonal solver; for our ML-RANS PDE this is the solver already used in the forward sub-step. Treating these as generic linear systems, for example giving a transposed tridiagonal system to a Krylov solver, is computationally inefficient; reusing the forward solver reduces the cost of the exact gradient (from the adjoint equation) to the same cost as the forward solve. The explicit terms and the network are differentiated by reverse-mode automatic differentiation, and the sub-step adjoints compose in reverse. The pressure projection is treated in the adjoint exactly as in the forward solve, its adjoint being another Poisson system with the same symmetric operator, solved by the same method and treatment of the pressure constant.
The consequences are what we measure. In Table 1, unrolled differentiation exceeds available memory, and IFT-AD stagnates at the two largest grids and costs 2-5x more where it converges. Our gradient is exact at every grid size, matching finite differences to 4.2e-8 (Figure 7), and applies unchanged to a second PDE (Appendix D).
We agree that the construction is a natural one, but to our knowledge it has not been carried out before in this setting. Adjoint methods in steady RANS have so far learned scalar multipliers on the production term of a turbulence transport equation, or corrective momentum source terms, usually inferred per case and regressed offline (Parish 2016; Singh 2017; Holland 2019; Volpiani 2021). The one anisotropic closure trained through a steady solver on a separated flow used a derivative-free ensemble method (Zhang 2022), whose authors name adjoint development as the barrier. Duraisamy (2021) writes that model-consistent training requires adjoints, and that "given the intrusive nature of adjoints, this ... has proven to be a barrier for researchers to develop model-consistent ML augmentations". A recent review still gives "the relative ease of training (no differentiable solvers needed)" as an advantage of offline training (Sanderse 2025). Where a closure is trained through the solver in the ML literature, it is predominantly by unrolling an unsteady simulation in time, which Table 1 shows to be infeasible for a steady RANS solve.
With our method the closure trains with full steps of a second-order optimiser and transfers from the square duct to the periodic hills, to our knowledge the strongest out-of-sample transfer for a learned closure. We believe that both the method and the scientific insight into why the standard approaches fail, for example that the Jacobian matrix is ill-conditioned, are useful contributions to the ML literature, given the rapidly increasing interest in solver-coupled optimisation and the fact that stiff semi-implicit solvers of this class are what industrial CFD runs on.
Refs: Bai, NeurIPS 2019; Parish, JCP 2016; Singh, AIAA J 2017; Holland, AIAA 2019; Volpiani, PRF 2021; Zhang, JFM 2022; Duraisamy, PRF 2021; Sanderse, FoDS 7, 298, 2025.
Continuing from our previous comment, we answer the two questions on the TBNN.
Equivariance (Weakness 3, first question). Equivariance is not the remaining difference. DARSM is built on the same invariants and tensor basis as the TBNN, so both closures are frame-invariant. The difference is what the network outputs. The tensor basis is a mathematical completeness result, not a physical one. By the Cayley-Hamilton theorem it represents every frame-invariant pointwise map from the velocity gradient to the stress, and it contains no physics. The TBNN therefore reaches unphysical stresses as easily as physical ones, including stresses which act as a negative viscosity. DARSM derives the stress from the physics. The network outputs the empirical constants of an algebraic equation derived from the Reynolds stress transport equations, and the stress is the solution of that equation. Every output on the physical solution branch is a physical stress with a positive viscosity.
Pretraining and the decomposition (Weakness 3, second question). They allow training to start; they do not make it stay stable. On the duct, training without an anchor cannot start. Any small-output initialisation collapses the eddy viscosity 20-500x, and the first forward solve diverges. The same requirement appears in prior work, where random initialisation is reported to diverge the RANS solution and the network is pre-trained to an existing closure before training begins (Michelen-Strofer & Xiao 2021, Section 2.3). Anchored at the Boussinesq limit (the analogue of pretraining), training starts and the error falls to 8.8e-3, still above DARSM's 2.45e-3, before the optimiser exits the stable region. With DARSM's output treatment transplanted onto the TBNN head (default constants plus a bounded correction), divergence is delayed but not prevented. On the trained checkpoints we measured, cell by cell, whether the linearised learned stress acts as a negative viscosity larger at the grid scale than the viscous and eddy damping available. The fraction of such cells is 0.59-0.68 for the unconstrained stress and grows during training, because the loss cannot see the marching stability of the solver.
The same behaviour is documented in the literature. Zhang (2022) compares training methods for this closure on the periodic hills, and reports that the adjoint-based method of Michelen-Strofer & Xiao (2021) diverged, with only a linear model learned, and that their own gradient-based ensemble variant diverged as well. The method which succeeds in their comparison is a derivative-free ensemble Kalman method with damped and regularised updates. The damping has a cost. The coefficient functions it learns remain close to the linear baseline (their Figure 10), because larger updates destabilise the solver. Stability obtained by staying near the linear model is not trainability. Neither work has an exact adjoint of the coupled solver, and Zhang names the development of adjoint solvers as the barrier which motivated the derivative-free route. Appendix C closes that gap. With exact gradients and a parameterisation whose outputs keep the solver stable, DARSM trains the closure with full steps of a second-order optimiser.
We agree that this comparison is a contribution, and the takeaway is not specific to fluids. When a network is trained through a numerical solver, trainability is decided by whether its reachable outputs keep the solver stable. Equivariance does not constrain this. It fixes the symmetry of the function class, not the effect of the outputs on the solver. A physics-derived parameterisation builds the constraint in. The revision will add this comparison as a table, reporting for each initialisation and output treatment whether training starts, the best error reached, and the point of divergence, together with the discussion above.
Refs: Michelen Strofer & Xiao, Theor. Appl. Mech. Lett. 11, 100280, 2021; Zhang, JFM 2022.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses the problem of turbulence closure modelling in the Reynolds-averaged Navier-Stokes (RANS) equations. The authors propose embedding a neural network into an implicit algebraic Reynolds stress equation. The proposed approach achieves substantial reductions in velocity error and generalises to unseen flow regimes without retraining.
Strengths and weaknesses
Strengths
- Well-described methodology.
- Thorough comparison against existing approaches, both classical and machine-learning-based.
- Significant reduction in velocity error relative to other methods.
- Generalization to unseen flow cases.
Weaknesses
- Only 2D cases are considered.
- Generalisation is evaluated exclusively on periodic-hill case.
Questions
-
The paper does not report inference time for the evaluated models. Such information would provide valuable insight into the practical deployment cost of the proposed approach.
-
The reported training wall-time is 61 hours. Given the strong generalisation properties of DARSM (where a single trained model can be applied to unseen regimes via a single forward pass) training cost is of secondary importance. Nevertheless, 61 hours remains substantial. Do the authors have any intuition on how training time could be reduced?
-
Generalization is evaluated only on periodic-hill case. Do the authors expect similar cross-regime transfer to hold for other canonical configurations, such as the backward-facing step or forward-facing step?
Limitations
yes
Final justification
The author’s responses fully address the questions raised in the review. These responses have confirmed my score. I am also raising the Clarity score to 4.
Formatting concerns
2 comments
Rebuttal
We thank the reviewer for the supportive assessment. We address the three questions in turn. First, we measured the inference cost (Question 1): the network adds roughly 2% to the cost of a solver iteration, and deployment is otherwise a standard RANS calculation. Second, we identify the changes which will reduce the 61 hour training cost, the largest being the tolerance of the inner pressure solve (Question 2). Third, we expect the cross-regime transfer to hold on the backward- and forward-facing steps, and we explain why (Question 3). On the second weakness, we would add that generalisation is also tested on the duct across Reynolds number and aspect ratio, including extrapolation beyond the training range (Tables 2-3), and that the duct flow is three-dimensional in velocity, with the secondary flow as the prediction target.
Inference cost (Question 1). At deployment DARSM is a standard RANS calculation: the solver, the discretisation, and the closure algebra are identical to the default EARSM, and the only change is that a small neural network supplies the seven closure coefficients in place of constants. We measured the cost on the periodic-hills grid. One iteration here is one step of the steady-state solver (the implicit momentum and k-omega solves plus a pressure Poisson solve), and it takes roughly 340 ms on one CPU core. Within this iteration, the closure evaluation takes 16 ms for the default EARSM and 22 ms for DARSM, so the network adds about 6 ms, roughly 2% of the iteration cost; everything else is unchanged. The deployment cost is therefore that of the underlying RANS solve: minutes when the solver is initialised from a nearby converged solution (a warm start), and the cost of a full steady solve when initialised from scratch (a cold start). DeepONet is cheaper at inference, mapping inputs to fields in one forward pass with no solve, but it does not solve the governing equations, and its error is 2.2x DARSM's on the duct and 84x on the hills (Tables 2 and 5).
Reducing the 61 hour training cost (Question 2). The training cost is dominated by marching each forward solve to a steady state at every optimisation step, and several changes will reduce it. The largest is the tolerance of the inner pressure Poisson solve, which we held tighter than necessary. Away from the steady state, the pressure solve only needs to keep the march stable, so it can run at a loose tolerance which tightens as the outer residual falls, and the gradient is unaffected because the adjoint uses the operators of the converged state. The second is to accelerate the convergence to the steady state itself; in our tests Anderson acceleration reaches steady state in far fewer iterations than plain pseudo-time marching. The third is faster and parallel solves. The mesh can be distributed over multiple processes in the standard way, a multigrid preconditioner for the Poisson equation gave roughly 5x on cold solves in our tests, and because the implicit solves are never differentiated, they can be compiled or moved into optimised libraries such as HYPRE, or the forward solve can be run in an optimised RANS code, with the adjoint construction unchanged. An optimised code also provides standard accelerations such as local time-stepping. We expect these changes to reduce the training cost substantially.
Transfer to the backward- or forward-facing step (Question 3). Yes, we expect the transfer to hold. The sharp corner fixes the separation point, so a step isolates the shear-layer and reattachment physics; this is where the default closure errs most on the hills, over-predicting reattachment by up to 3.5 hill heights, and where DARSM improves most. The corrections act through local flow invariants which take similar values in a step's recirculation and reattachment regions. We prioritised depth over breadth in the present evaluation because the duct-to-hills transfer is already, to our knowledge, the strongest out-of-sample transfer demonstrated for a learned RANS closure. Extending to a wider range of flows, including fully 3D cases, is our next step, and the methodology readily allows it.
Changes from this review. The inference-cost measurements and the training-cost reduction discussion will enter Section 5.
The measurements prompted by this review have improved the paper; we are happy to answer further questions.
Thank you for the detailed replies.
The author’s responses fully address the questions raised in the review. These responses have confirmed my score. I am also raising the Clarity score to 4.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
DARSM is a learned algebraic Reynolds-stress closure for RANS simulations. Rather than predicting stresses or tensor-basis coefficients directly, the network predicts empirical parameters inside an implicit EARSM-type closure derived from the Reynolds-stress transport equations. The inputs are invariant flow features, and the model is trained through the converged RANS solver. The paper also develops a hybrid discrete adjoint for the semi-implicit solver. The adjoint uses structured transpose solves for implicit substeps and reverse-mode AD for the explicit and neural parts, so gradients can be computed without storing a full unrolled solver trajectory. Experiments on square ducts and periodic hills show lower velocity errors than the baseline EARSM and several ML alternatives, including tests across Reynolds number, aspect ratio, hill geometry, and duct-to-hill transfer.
Strengths and weaknesses
This paper has a clear use case to improve RANS modelling that is widely used within the engineering industry. The adjoint is the most technically substantial part of the paper. It uses the structure of the semi-implicit solver rather than treating the whole computation as a black-box unroll. The scaling comparison, finite-difference checks, solver validation, and appendix details make this section strong. The empirical results are also strong for a scarce-data turbulence setting: one or two training cases are enough to improve over baseline RANS across Reynolds number, duct aspect ratio, periodic-hill geometry, and even duct-to-hill transfer. I also found the baseline discussion useful, since it explains why offline TBNN/FIML, DeepONet, and PINN variants struggle here.
The main scientific limitation is the flow range. Square ducts and periodic hills are meaningful tests, but they are still steady, effectively 2D canonical cases. Extrapolating to genuinely 3D flows, stronger separation, swirl, curvature, free shear layers, compressibility, or regimes where the weak-equilibrium assumption behind the EARSM is less appropriate. One evaluation issue is that the headline metric is velocity error. For a closure model, I would also want wall shear stress, separation/reattachment location, Reynolds-stress anisotropy, and solver-convergence robustness closer to the main text. Some of this appears qualitatively or in the appendix, but it is central enough that it should have a clearer presence in the paper.
Questions
-
Please bring the application-level metrics closer to the main results: wall shear stress, separation/reattachment location, Reynolds-stress anisotropy, and solver convergence. These are the quantities that would make the CFD claim more convincing to me.
-
How much does the learned closure depend on the exact solver setup used in training? I would like to know what happens under different grids, tolerances, under-relaxation settings, or another RANS implementation.
-
For the duct-to-hill transfer, which learned coefficient corrections are shared across regimes and which are geometry-specific? This would help distinguish invariant transfer from a broad stabilising correction to EARSM.
-
What is the concrete next 3D test case, and what memory/time cost should be expected for the adjoint there?
Limitations
Yes. The paper discusses steady-state assumptions, 2D evaluation, untested flow classes, weak-equilibrium limits, and the need for high-fidelity reference data.
Final justification
Given the careful consideration by the authors of the paper, I have increased the clarity score to 4 and go from borderline accept to accept.
Formatting concerns
None
2 comments
Rebuttal
We thank the reviewer for a supportive and constructive review; the new analyses it prompted have strengthened the paper. We address the four questions in turn. First, we computed the application-level metrics on the five hill geometries and the duct anisotropy at six Reynolds numbers (Question 1): where the submission's tables show DARSM improving, the physical quantities improve as well. Second, the closure depends on the numerics only through discretisation error, and the results already span grids and mesh types (Question 2). Third, we measured which corrections are shared and which are geometry-specific (Question 3): four are shared, and a control shows the state dependence carries a substantial remainder. Fourth, we name the next 3D cases and report the measured adjoint cost (Question 4).
Application-level metrics (Question 1). We computed the requested metrics for all five hill geometries, using the same procedure for the DNS, default EARSM, and DARSM: the separation onset and the main-bubble reattachment from the wall-tangential first-cell velocity, and the turbulent kinetic energy (k) error as the area-weighted relative L2 norm against the DNS.
| alpha | DNS x_sep / x_reatt | Default EARSM | DARSM | k error: default → DARSM |
|---|---|---|---|---|
| 0.5 | 0.03 / 6.28 | 0.13 / 6.58 | 0.03±0.00 / 5.74±0.80 | 0.35 → 0.29 |
| 0.75 | 0.11 / 5.56 | 0.19 / 7.13 | 0.08±0.06 / 4.84±0.11 | 0.41 → 0.26 |
| 1.0* | 0.17 / 4.73 | 0.25 / 7.61 | 0.22±0.01 / 4.85±0.07 | 0.50 → 0.28 |
| 1.25 | 0.31 / 4.41 | 0.33 / 7.95 | 0.31±0.02 / 4.84±0.07 | 0.52 → 0.30 |
| 1.5 | 0.46 / 4.29 | 0.42 / 7.28 | 0.42±0.01 / 4.82±0.09 | 0.53 → 0.32 |
(*train case; positions in hill heights; the alpha=1.0 values match Breuer et al.) The separation onset matches the DNS within 0.05 hill heights at every geometry. The default closure over-predicts the reattachment position by 1.6-3.5 hill heights for alpha>=0.75, while DARSM is within 0.12 hill heights on the training geometry and 0.8 out of sample. At alpha=0.5, the geometry furthest from training, DARSM recovers the separation onset exactly but places the reattachment slightly further upstream than the default; the same geometry shows the velocity-error degradation in Table 4 (the limitation noted in Sections 4.3 and 5). The turbulent kinetic energy error improves at every geometry (17-44%). For the wall shear stress, DARSM predicts the correct sign over 85% of the bottom wall, compared to 59% for the default; its lee-side and valley skin-friction error is 2.6x lower (relative RMS 0.42 against 1.11). Both models overshoot the DNS skin friction on the windward slope.
For the Reynolds-stress anisotropy we use the square duct, where the DNS provides the full stress tensor. The table reports the relative L2 error of each component (default → DARSM):
| Re4410 | Re5000 | Re7000 | Re11386 | Re17800 | Re40000 | |
|---|---|---|---|---|---|---|
| a13/a23 (streamwise shear) | 0.85 → 0.67 | 0.78 → 0.61 | 0.64 → 0.50 | 0.54 → 0.41 | 0.47 → 0.34 | 0.44 → 0.29 |
| a12 (in-plane shear) | 2.16 → 1.45 | 2.06 → 1.34 | 1.72 → 1.12 | 1.66 → 1.11 | 1.53 → 1.09 | 1.91 → 1.26 |
| a11/a22 (normal stresses) | 0.81 → 0.87 | 0.81 → 0.86 | 0.78 → 0.84 | 0.74 → 0.82 | 0.70 → 0.78 | 0.62 → 0.72 |
The shear components, which act on the mean flow, improve at every Reynolds number. The normal-stress components are not constrained by the velocity objective and degrade slightly.
For solver convergence, every deployment behind these tables converged, and from a cold start it reaches the same 1e-5 tolerance with unchanged solver settings. The reason is structural. The network only sets the bounded coefficients of the closure inside the default solver's unchanged implicit treatment, so the effective viscosity stays positive, and the coefficients of a closure derived from the Reynolds stress transport equations always generate a physical stress.
Dependence on the solver setup (Question 2). The adjoint construction does not depend on the solver setup. Provided the forward solve reaches a steady state, the adjoint transposes the operators of the configuration actually solved, so the gradient is exact to finite-difference precision (Figure 7) for any under-relaxation, tolerance, or grid. The learned closure itself depends on the numerics only through discretisation error. If the RANS solution is converged with respect to the mesh, the trained closure should not depend on the grid or the solver: its inputs are local nondimensional invariants and no grid quantity enters the network. If the discretisation error is large, part of that error is folded into the trained closure and costs generality out of sample. We therefore keep to standard practice: second-order discretisation, y+ of order one at the wall with no wall functions, and mild stretching. The duct training pair itself mixes grids (Re5000 at 64x64 and Re17800 at 128x128), and the duct-to-hills transfer moves the closure from a Cartesian mesh to a curvilinear body-fitted mesh. The improvements of Tables 2-4 carry across these changes. The same objective, optimiser, and adjoint also train a k-omega source-term closure end-to-end, stably, so the training method is not tied to this closure; the adjoint construction extends to any semi-implicit solver (Section 3.2).
Shared versus geometry-specific corrections (Question 3). We measured this directly. Both networks were evaluated on the same converged flow states for all five hill geometries, and the table reports each network's mean correction to each constant:
| mean correction | duct-trained | hills-trained |
|---|---|---|
| gamma (0.56) | -0.12 | -0.10 |
| sigma_k (0.50) | -0.12 | -0.12 |
| sigma_omega (0.50) | +0.22 | +0.15 |
| c1 (1.80) | +1.12 | +0.62 |
| c2 (0.56) | +0.03 | -0.31 |
| beta0 (0.075) | +0.03 | +0.00 |
| beta* (0.09) | +0.00 | +0.00 |
For gamma, sigma_k, sigma_omega, and c1, the two networks find corrections of the same sign and comparable size, although they were trained on different geometries. When two independently trained networks find the same correction, the correction is a property of the closure rather than the training flow, and these four shared corrections are what the transfer carries. For c2 the two networks disagree: the hills-trained network reduces c2 by 0.31, while the duct-trained network leaves c2 nearly unchanged, so this correction reflects the training geometry. Both networks leave beta0 and beta* nearly unchanged.
The reviewer asks whether the corrections are a broad recalibration or state-dependent. The mean corrections are nearly uniform over the hills because the invariants the network takes as input are nearly uniform there. Where the invariants do vary, the corrections vary with them: in the separated shear layer the hills-trained corrections track the local invariant deviations with correlation 0.8-0.99, and on the duct, where the invariants vary strongly near the corners, the same duct-trained network produces the strongly varying coefficient fields of Figure 10. To test the recalibration hypothesis directly, we ran a control: an EARSM with constants fixed at the duct-trained network's mean corrections, deployed on all five geometries. If the transfer were a broad recalibration, this fixed model would match the network. Instead, the fixed model is 2-3x worse than the duct-trained network on every geometry (1.44 x 10^-3 against 0.75 at alpha=1.0; 4.36 against 1.32 at alpha=0.75; 0.99 against 0.53 at alpha=1.25; 1.04 against 0.58 at alpha=1.5), and at alpha=0.5 it degrades below the default (6.99 against 1.73). Therefore the shared corrections account for part of the improvement, and the state dependence accounts for a substantial remainder.
3D path and adjoint cost (Question 4). The next cases we target are high-Reynolds-number engineering flows with open reference data, namely vehicle aerodynamics and airfoils. The square duct and the periodic hills are the standard first benchmarks in the machine-learning-for-RANS literature (Ling et al.; Stroefer and Xiao), because they isolate the two mechanisms a stress closure must capture, secondary flow and separation; to our knowledge, no learned closure has demonstrated out-of-sample generalisation at the level of the duct-to-hills transfer. The methodology carries over directly: the square duct is already three-dimensional in velocity, in 3D the implicit sub-steps remain tridiagonal and block-tridiagonal solves plus one symmetric Poisson solve, and the hybrid adjoint remains a single linear solve per gradient. The measured adjoint wall time is between one quarter and one third of a single forward solve, and these are worst-case values: in training each adjoint solve starts from the previous epoch's solution. This scaling is a property of the hybrid construction: memory grows with the number of grid points and nothing else, independent of the iteration count; unrolling stores every iteration and IFT-AD stalls at the large grids (Table 1). For a mesh of two million cells the stored fields amount to roughly 100 MB; memory is not a constraint in 3D. With wall-normal stretching the cell count grows only weakly with the Reynolds number. The practical bottleneck is re-converging the forward solve at each optimisation step, and because the implicit solves are never differentiated, they can be moved into optimised libraries such as HYPRE or PETSc. Testing whether the duct-to-hills generalisation survives these flows is the next experiment we want to run.
Changes from this review. (1) The separation, reattachment, wall-shear, and anisotropy tables will enter Section 4, and the solver-convergence result Section 5; (2) the coefficient-correction analysis will become a new appendix; (3) the solver-dependence discussion will enter the Limitations, and the 3D extension the Conclusion.
We are happy to answer further questions and would be grateful for a revisited assessment.
updated score
thank you for taking the time to continue those extra studies and address my comments. I have increased the clarity to 4, and from borderline accept to accept.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 1/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors developed DARSM, a hybrid closure for the Reynolds-Averaged Navier Stokes (RANS) equations, using a neural network to learn the parameters of the existing implicit Algebraic Reynolds Stress model (ARSM) closure (contribution 1 in introduction).
They present a discrete adjoint built on the implicit function theorem (called IFT-Hybrid) that accelerates the optimization of such semi-implicit PDE structure with neural components (contribution 3 in introduction). In particular, it avoids the memory and divergence issues faced with brute-force unrolling and scales better (faster convergence of the iterative solver) with finer grids than directly auto-differentiating the adjoint. They test on two turbulent flow cases and on generalization setups (contribution 2) where their model outperform deep learning based and other hybrid methods (contribution 4).
Strengths and weaknesses
Strenghts :
- The IFT-Hybrid method (contribution 3) is the main ML contribution (in particular Table 1 is very convincing) and opens the door to efficient hybridization between deep learning and PDE models in complex setups (semi-implicit solver).
- The large benchmarking across two cases with comparison with different methods (contribution 4) including deep learning (PINN, DeepONet), baseline numerical closure (EARSM) and its hybrid version trained offline is useful for the community.
Weaknesses :
- The claim in page 2 that "DARSM is the first physics derived deep learning algebraic Reynolds stress model" cannot be, in my opinion, considered as a new ML contribution, as such hybrid models have been developed in similar contexts (Machine learning accelerated computational fluid dynamics, Kochkov et al. 2021, NeuralGCM Kochkov et al. 2023).
- Overall lack of clarity and details to truly understand the IFT-Hybrid method, although being the main contribution of this paper. Its explanation remains very limited in the main paper (one paragraph section 3.2). A lot is presented in appendix C but still lacks clarity (5 pages to understand the full method). I believe this contribution should be the main focus of the paper, including a figure to summarize it (such as figure 6 in the annex).
- It is hard to fully understand the extent of the novelty in contribution 3. It seems the paper rather falls in the domain of efficient adjoint optimization and could be compared to competing methods in this area: gradient stopping in How Temporal Unrolling Supports Neural Physics Simulators (List et al. 2024), Online Calibration of Deep Learning Sub-Models for Hybrid Numerical Modeling Systems (Ouala et al. 2023), A framework for bilevel optimization that enables stochastic and global variance reduction algorithms (Dagréou et al. 2022). There is also a long history of methods working with adjoint in the data-assimilation community.
- The consistency of the "systematic benchmark" (contribution 4) can be challenged as DARSM is only compared to DeepONet in the periodic hills experiment. Why is that? The benchmark can also be considered incomplete: no end-to-end trained closure is compared to DARSM. In particular, NN-EARSM is trained offline but the ablation using IFT-AD could have been useful to understand "what is lost" when doing the IFT-Hybrid version (even on smaller grids).
- The generalization property (contribution 2) is thus not as powerful as claimed due to the incomplete benchmarking. Furthermore, both FIML and DeepONet also improve the EARSM baseline in the extrapolation case along with DARSM (Table 2, ) contrary to what is claimed (section 4.1, line 236).
References
Kochkov, D., Smith, J.A., Alieva, A., Wang, Q., Brenner, M.P., Hoyer, S. (2021). Machine learning accelerated computational fluid dynamics. Proceedings of the National Academy of Sciences, 118(21), e2101784118. https://doi.org/10.1073/pnas.2101784118
Kochkov, D., Yuval, J., Langmore, I., Norgaard, P., Smith, J., Mooers, G., Klöwer, M., Lottes, J., Rasp, S., Düben, P., Hatfield, S., Battaglia, P., Sanchez-Gonzalez, A., Willson, M., Brenner, M.P., Hoyer, S. (2024). Neural general circulation models for weather and climate. Nature.
List, B., Chen, L.-W., Bali, K., Thuerey, N. (2024). How Temporal Unrolling Supports Neural Physics Simulators. arXiv preprint arXiv:2402.12971. https://doi.org/10.48550/arXiv.2402.12971
Ouala, S., Chapron, B., Collard, F., Gaultier, L., Fablet, R. (2024). Online calibration of deep learning sub-models for hybrid numerical modeling systems. Communications Physics, 7(1), 402. https://doi.org/10.1038/s42005-024-01880-7
Dagréou, M., Ablin, P., Vaiter, S., Moreau, T. (2022). A framework for bilevel optimization that enables stochastic and global variance reduction algorithms. Advances in Neural Information Processing Systems (NeurIPS).
Questions
- Could you please explain in a more concise manner than the appendix C the IFT-Hybrid method ? In particular could you clarify what your personal contributions are in adjoint optimization with this method ?
- How do you compare with other methods of this field (for example Ouala, Dagréou ?)
- How would unrolling with gradient stopping as in List et al. (2024) or gradient checkpoints as in Kochkov et al. (2021) perform ?
- How would NN-EARSM trained with IFT-AD perform compared to IFT-Hybrid (DARSM) ? In particular do we "lose" some precision when using IFT-Hybrid and where ?
- How do you explain that FIML performs better at (extrapolation) than on the train or test set ? (Table 2)
- Can you include the performances of the other methods apart from DeepONet in the periodic hills experiment?
Limitations
yes
Final justification
After the last comments of the authors, I believe I can increase my score to 4 in the perspective of a ML for CFD paper, because:
-
the proposed method represents a cheap and efficient pathway to train (IFT-Hybrid) and perform CFD simulations, demonstrating the generalization abilities of DARSM in particular.
-
the experiments are rigorous (extended benchmark of well known data-driven approaches) and the ones added on our suggestion do improve the confidence we have in the performances of the method, in particular the hybrid model (source-term NN) is a major and important addition.
I cannot raise to 5 as I am still unsure the IFT-Hybrid approach is entirely knew, and would deserve more coverage in the paper.
Formatting concerns
None
5 comments
Rebuttal
We thank the reviewer for a careful and constructive review; the new experiments it prompted have strengthened the paper. We address the weaknesses in turn. First, we explain the difference from Kochkov et al. and NeuralGCM and support it with a new ablation (Weakness 1). Second, we give a step-by-step description of the hybrid adjoint and clarify that it is exact (Weakness 2, Questions 1 and 4). Third, we relate the adjoint to the cited methods and to data assimilation (Weakness 3, Questions 2-3). Fourth, we ran every baseline on the periodic hills: DARSM is the only method which improves on the default closure out of sample (Weakness 4, Question 6). Fifth, we quantify the generalisation results and correct line 236 (Weakness 5, Question 5). All new results will be added in revision.
Relation to Kochkov et al. and NeuralGCM (Weakness 1). The key difference is which equations the neural network closes. In Kochkov et al., NeuralGCM, and Ling et al., the network output enters the momentum equations directly, as flux interpolation weights, additive source terms, or tensor-basis coefficients. DARSM instead closes the Reynolds stress transport equations: the algebraic Reynolds stress model is derived from these six equations, which reduce under weak equilibrium to coupled algebraic equations. The neural network in DARSM models only the seven empirical coefficients of these equations. The Reynolds stress is obtained by solving them, so the network models the coefficients of a physics-derived equation rather than the stress itself. To our knowledge, DARSM is the first deep-learning closure of this type. The ablation below shows that this structure is what makes the closure stable to train and able to generalise from scarce data.
To demonstrate this we trained a model in the spirit of Kochkov et al.: a neural network added as a source term in the momentum equations, with the same gated architecture, objective, optimiser, and adjoint as DARSM. The k-omega equations are retained to supply the eddy viscosity (without them the solver does not converge). In distribution the source-term model improves on the default closure (5.17 x 10^-3 against 7.38; DARSM 3.56). Out of distribution it fails. Deployed on the hills without retraining, its mean test error is 48.7 x 10^-3, an order of magnitude worse than the default (5.73); duct-trained DARSM reaches 1.36 there. We will add this comparison to Table 5 in the revised paper. The source-term network predicts a momentum forcing which nothing constrains to remain physical outside its training distribution; the DARSM network only adjusts coefficients of the algebraic equations, whose solution retains its physical structure on any flow. Therefore, end-to-end training alone is not sufficient; what the network parameterises is equally important.
Clarity of the hybrid adjoint (Weakness 2, Question 1). We agree that the presentation of the hybrid adjoint is too compressed, and we will revise it; the method can be summarised as follows. Each iteration of the RANS solver consists of several sub-steps: the momentum equations and the k-omega equations are solved implicitly and the pressure is computed by solving a Poisson equation. To calculate the gradient, the adjoint method solves a linear system involving the transposed Jacobian of the solver iteration. The Jacobian of each implicit sub-step is the same matrix which the forward solver constructs and solves, so its transpose is a linear system with the same structure (tridiagonal, block-tridiagonal, or a symmetric Laplacian), solved with the same numerical method. The remaining terms, the explicit finite-difference terms and the neural network, are differentiated by reverse-mode automatic differentiation. The adjoint of the complete iteration is assembled by evaluating these components in reverse order.
IFT-AD and IFT-Hybrid (Question 4). IFT-Hybrid transposes the converged operator exactly; IFT-AD differentiates the inner iterations as implemented, so its gradient inherits their error and conditioning. No precision is lost with the hybrid. Where both converge, their gradients agree to solver tolerance, and the hybrid gradient matches finite differences to 4.2 x 10^-8 (Figure 7). What differs is cost and availability: IFT-AD costs 2-5x more at 16^2 and 32^2 and produces no usable gradient at 64^2 and above (Table 1). NN-EARSM trained with IFT-AD on the small grids, the comparison the reviewer proposes, would differ from DARSM only in wall time.
Relation to List et al., Ouala et al., Dagreou et al., and data-assimilation adjoints (Weakness 3, Questions 2-3). To our knowledge, the hybrid adjoint is the first method which computes exact gradients for a steady semi-implicit RANS solver by reusing the solver's own implicit routines in transpose, and DARSM is the first Reynolds-stress closure trained in this way. List et al. quantify what is lost when gradients are stopped through the solver in transient unrolling: the fully differentiable variant is most accurate. Our contribution is the construction which makes exact gradients available for a steady semi-implicit solver. Ouala et al. approximate the solver Jacobian because their physical model is not differentiable. Dagreou et al. use stochastic gradient estimates because exact gradients over large datasets are unaffordable. Each is well-motivated in its setting; in ours no approximation is needed: the loss is evaluated at a steady state, and a single linear adjoint solve gives the exact gradient. Adjoints are long established in data assimilation (4D-Var), derived by hand for each forecast model and run backward over a time window; to our knowledge none targets a steady semi-implicit solver with an embedded neural network.
Question 3 asks about truncated unrolling and checkpointing. Gradient stopping in List et al. zeroes the gradient through the solver at every step, leaving independent per-step contributions. This trains there because a loss is evaluated at every unrolled step; our loss exists only at the converged state, so the same construction leaves a gradient through the final network evaluation alone. Carrying the full chain requires storing every one of the 10^4 to 10^5 iterations, so the memory grows with the iteration count times the grid size (Section 3.2, Table 1). Gradient checkpointing, used by Kochkov et al., reduces the memory constant by recomputing intermediate states; it does not change the depth the gradient must traverse.
Benchmarks on the periodic hills (Weakness 4, Question 6). DARSM is the only method which improves on the default closure out of sample. The submission carried only DeepONet to the hills because it was the only competitive duct baseline (the others fail structurally, Section 4.1). The table reports the velocity error J_vel x 10^3 on the five hill geometries:
| Periodic hills, J_vel x 10^3 | a10* | a05 | a075 | a125 | a15 |
|---|---|---|---|---|---|
| DARSM (Table 4) | 0.29 | 3.06 | 1.29 | 0.65 | 1.02 |
| Default EARSM (Table 4) | 5.65 | 1.73 | 2.62 | 8.18 | 10.49 |
| A-priori NN-EARSM, iter. | 12.3 | 10.4 | 9.1 | 22.7 | 24.7 |
| A-priori TBNN, iter. | div. | div. | div. | div. | div. |
| A-priori TBNN, frozen | 105 | 83 | 199 | 262 | 459 |
| FIML (inversion) | 3.4 | -- | -- | -- | -- |
| FIML (duct-trained, deployed) | 73.6 | 22.8 | 15.2 | 153 | 108 |
| Source-term NN (duct-trained, deployed) | 46.5 | 25.6 | 46.3 | 56.6 | 68.4 |
| DARSM (duct-trained, Table 5) | 0.75 | 3.01 | 1.32 | 0.53 | 0.58 |
| PINN | div. | -- | -- | -- | -- |
(*train case. DARSM and default rows are from Tables 4-5; the remaining rows are new solves. div. = diverged; non-converged entries are reported at the final iterate. FIML inversion is per-geometry (train-only); the deployed rows are duct-trained models transferred to the hills. PINN diverged on the training geometry; the remaining geometries were not run.)
The end-to-end comparisons the reviewer asks for now exist. The source-term model of Weakness 1 degrades by an order of magnitude out of distribution. We trained the TBNN end-to-end with the same objective, optimiser, and adjoint as DARSM: training is unstable (a stress of unconstrained sign acts as a negative viscosity) and its best error remains above DARSM's.
Missing generalisation results (Weakness 5). Line 236 is imprecise. In mean out-of-sample error, only DARSM improves on the baseline (3.56 x 10^-3 against 7.38; FIML 17.4, DeepONet 7.92). At Re_b=40000, FIML and DeepONet improve on the baseline by 5% and 16% (Question 5), while DARSM improves by 2.4x. DARSM improves at every held-out Reynolds number, extrapolates in aspect ratio with a 3x error reduction (Table 3), and generalises across hill shapes and from the duct to the hills, each with a 4x reduction (Tables 4-5).
FIML at Re_b=40000 (Question 5). The Re_b=40000 result does not indicate successful extrapolation, because FIML is essentially inactive there. The deployed model fails badly at Re_b=4410 and 5000 (J = 52.9 and 51.4 x 10^-3), which dominate the means. At Re_b=7000-17800 the correction is small and effective (25-37% better than the baseline). At Re_b=40000 the network prescribes almost no correction (deviations of order 1%), so the FIML result is essentially the default solution (8.56 vs 8.97). An offline-fitted correction is reliable only near the states it was fitted on; at Re_b=40000 the higher turbulent Reynolds number places the flow far from them. Both failure modes motivate training through the solver.
Changes from this review. (1) The step-by-step description above will replace the compressed presentation, and Figure 6 will move into the main text; (2) the periodic-hills table will be added; (3) line 236 will be corrected; (4) the citations above added.
If these responses resolve the concerns, we would appreciate a revisited assessment; we welcome follow-up questions in the discussion.
Dear reviewer, many thanks for your thoughtful remarks. The authors have responded to your points: the Kochkov/NeuralGCM distinction, a step-by-step hybrid-adjoint description, positioning vs. List/Ouala/Dagréou/4D-Var, the full periodic-hills baseline table, and the line-236 correction. Could you confirm whether these resolve your clarity and novelty concerns, and update your Rating? Thanks.
I would like to thank the authors for taking the time to answer and for realizing new experiments to make their point clearer when needed.
W1: I would still think that the “learned interpolation” method from Kochkov and DARSM are similar in spirit because they do not try to replace an entire component (as classic hybrid would do, APHYNITY setting of Yan et al. or what Kochkov calls “learned correction”) but rather modify coefficients or certain operations within a certain setup, even though they do not act on the same equations. Your ablation implements the “learned correction” setup which is a less direct competing method to yours. It is still a great addition to your paper and better position it within the related literature, while confirming the capacities of your method.
Q1/4: I now understand the IFT-Hybrid procedure better: you use the exact operators/gradients that come naturally from the semi-implicit solver (not an innovation on your part) and only use AD for the NN parameters.
Q2-3: Thanks for taking the time to read the references. Your statement ” Our contribution is the construction which makes exact gradients available for a steady semi-implicit solver. “ makes the contribution much clearer as well as the positioning of your work.
Q6: Thanks for clarifying the comparison choice against DeepONet for the hills experiment. It is interesting to notice that the best methods remain those based on EARSM (NN-EARSM, DARSM) and on the RANS equations (source-term NN), with the IFT-Hybrid online training allowing DARSM to outperform the EARSM baseline: it may indicate that the generalization abilities observed can be attributed rather to the closure itself than the learned part (whose effect is to refine the closure predictions and succeeds in doing so).
The corrections for line 236 are fine, and the reason for the score of FIML on Re_b=40000 too.
Your answers clarify the positioning and contributions of your paper (which change my confidence rating to 4): The way the hybridation is done gives access to exact gradients for the semi-implicit solver that can be combined with the AD of the NN parameters to allow online training in a cheap and accurate manner. This hybrid model shows improved performances compared to its closure baseline or the offline trained one, in particular in generalization contexts, contrary to fully data-driven alternatives.
However, with that stated clearly, I agree with s4J7 that the novelty of your approach remains limited in the ML field: a. the usage of ML to learn closure parameters is now a common task, and b. online training is already known to be better than offline training (B) (List, Frezat,...).
Then the novelty of the paper really lie in :
deriving exact gradient adjoints of semi-implicit solvers (from response to s4J7) implementation: applying (a,b) together to improve the RANS closure experimental: showing its efficiency in improving its deterministic counterpart EARSM in several test cases The last two contributions are useful to the computational fluids mechanics field but do not entail general ML discoveries. The first one, if new (and I am not 100% confident if it is), is not explained and evaluated enough in the main paper so that we can measure its impact on general ML application. Thus, even if the additional experiments contain promising results, I don’t feel I can increase my grade to a weak accept.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for a detailed review which prompted new experiments; we address the four concerns in turn. First, we trained a tensor-basis neural network (TBNN) end-to-end with the identical objective, optimiser, and adjoint as DARSM (Question 1, Weakness 3): training is unstable, and its best error remains above DARSM's. Second, we ran the complete baseline set on the periodic hills (Weakness 3): DARSM is the only method which improves on the default closure out of sample. Third, we clarify the two contributions (Weakness 1): the physics-derived closure and the per-block adjoint construction which trains it exactly through the implicit solver; ablations show that neither is sufficient alone. Fourth, we explain what a JAX implementation must contain (Weakness 2). All new results enter the revised paper.
The TBNN model trained with DARSM's objective (Weakness 3, Question 1). The TBNN model cannot be trained robustly end-to-end, and DARSM outperforms it. The deployment gives the TBNN model the same numerical treatment as the EARSM, with the strain-aligned part of the stress treated implicitly as an eddy viscosity (kept positive). Trained without constraints, the TBNN model cannot begin training: every small-output initialisation collapses the effective eddy viscosity 20-500x below the k-omega value and the forward solve diverges. When the TBNN model is initialised at the Boussinesq limit, training begins and the error falls from 7.7 x 10^-2 to 8.8 x 10^-3, still above DARSM's 2.45 x 10^-3, before the optimiser leaves the stable region and the solves diverge; bounding the network outputs delays the divergence but does not prevent it. We agree that the original comparison could not support a conclusion about equivariance, and we do not draw one. Both closures are frame-invariant, so equivariance cannot explain the difference. The tensor basis enforces frame invariance but does not constrain the stress to be physical, and a stress of the wrong sign acts as a negative viscosity and destabilises the solver. DARSM does not have this failure mode: every network output produces a physical stress, and the identical objective, optimiser, and adjoint train DARSM stably. This is consistent with Ling et al., who evaluated their network once with the stress held fixed.
Pretraining (Question 2). Pretraining initialises the network to output the default closure constants, a physical starting point where the forward solver has a stable steady state. It is a supervised regression to constant targets, requires no flow data, and its computational cost is a few seconds. Pretraining is not strictly required: writing the network output as the default constants plus a small multiple of the network avoids it, with similar results.
Baselines on the periodic hills (Weakness 3). We have compared against all of the baseline models on the periodic hills. DARSM performs better than all of them. The table reports the velocity error J_vel x 10^3 on the five hill geometries:
(*train case. DARSM and default rows are from Tables 4-5; the remaining rows are new solves. div. = diverged; non-converged entries are reported at the final iterate. FIML inversion is per-geometry (train-only); the deployed rows are duct-trained models transferred to the hills. PINN does not converge, as on the duct.)
A source-term model (a network supplying a corrective momentum source, trained through the same adjoint) improves in distribution but degrades by an order of magnitude out of distribution. Therefore, end-to-end training alone is not sufficient; the parameterisation determines the generalisation.
Novelty (Weakness 1). The first and foremost contribution is the physics-derived closure, integrated with training through the solver. The accuracy of a RANS simulation is set by its closure model for the Reynolds stress tensor, and the directional structure of this tensor drives the flows which limit RANS, such as secondary motion and separation: standard eddy-viscosity closures cannot represent this structure. DARSM therefore closes the Reynolds stress transport equations themselves: the six stress equations reduce, under the weak-equilibrium approximation, to an implicit algebraic model, and the neural network models only the seven empirical coefficients of these equations; the stress is obtained by solving them, so every output has the physical structure of the underlying model. To our knowledge, DARSM is the first deep-learning closure of this type. In adjoint-based optimisation the turbulence model is frequently frozen in the adjoint; we differentiate the fully coupled system, including the turbulence closure, and train a neural network inside it. The new experiments of this response show that neither ingredient is sufficient alone. Keeping the parameterisation but removing solver-in-the-loop training makes the same architecture fail at deployment (the a-priori rows above). Keeping the training but removing the physics structure gives models which either cannot be trained robustly (the TBNN model) or do not transfer (the source-term model). The specific integration of strongly solver-coupled machine learning with this detailed physical model did not exist before this paper and produces the results above.
The second contribution is the adjoint construction which makes this training possible. The implicit function theorem itself is classical, and the paper cites it as such; the contribution is the construction which the identity requires in this solver class. Appendix C derives one recipe which covers every implicit sub-step. The Jacobian of each sub-step is the matrix which the forward solver has already constructed, so the adjoint is a linear system with the transposed matrix, of the same structure and solved with the same numerical method; reverse-mode automatic differentiation covers the explicit assembly and network. To our knowledge, no prior work provides exact discrete adjoints of this per-block form for this solver class, and no anisotropic stress closure has been trained through one. The same adjoint code trains all three network placements used in this response (closure coefficients, tensor-basis coefficients, momentum source term).
Appendix C and implementation in machine-learning frameworks (Weakness 2). The method could be implemented in JAX, but the implementation requires exactly the content of Appendix C; to our knowledge no released framework or code has done so. Machine-learning frameworks compose fixed-point differentiation when the user provides a backward formula for each building block; Appendix C provides these formulas for a RANS solver. JAX differentiates a linear solve expressed through lax.custom_linear_solve, and its Krylov solvers (cg, bicgstab, gmres) are differentiable in this way; a transpose is applied only when the user supplies transpose_solve. For the structured direct solves our solver uses, tridiagonal momentum sweeps and the non-symmetric block-tridiagonal coupled k-omega solve, Appendix C gives the transposed solvers (transpose-Thomas and transpose block-Thomas). A JAX implementation which supplies these as transpose_solve is our method. A generic differentiable Krylov solver could be used instead, at the cost of replacing a direct elimination with an iterative solve at every sub-step in both directions.
Backpropagating through every iteration of the solver to the steady state exceeds available memory; this is the Unroll method of Table 1. The remaining route is to differentiate one solver step with automatic differentiation and build the fixed-point adjoint from it; this is the IFT-AD method of Table 1. Automatic differentiation differentiates the step as implemented, including its partially converged inner iterations, so the adjoint inherits their error and conditioning: IFT-AD stagnates at the two largest grids and costs 2-5x more where it converges. The hybrid adjoint converges at every grid size, and its gradient matches finite differences to 4.2 x 10^-8. The released differentiable-CFD codes do not implement our method. In jax-cfd the inverse of the pressure operator is constant and assembled once outside the differentiation graph; our implicit matrices are rebuilt from the flow state at every iteration and cannot be precomputed. NeuralGCM inverts a fixed reference-state operator, outside the graph. JAX-Fluids differentiates explicit time stepping by unrolling, and NVIDIA Warp does not provide adjoints for its iterative linear solvers. PhiFlow attaches a transposed re-solve to its linear solves, the principle we use for each implicit block, but backpropagates through the unrolled steps above a single solve.
Changes to the final version from this review. (1) The end-to-end TBNN comparison and its stability analysis enter Section 5 and a new appendix; (2) the periodic-hills baseline table enters Section 5; (3) Section 3.2 and Appendix C are reordered so that the construction leads; (4) the citations above are added.
The comparisons prompted by this review have improved the paper. If these responses resolve the concerns behind the quality and originality assessments, we would be grateful if they were revisited; we welcome follow-up questions.