Computationally efficient Gauss-Newton reinforcement learning for model predictive control

Dean Brandner, Sebastien Gros, Sergio Lucia · DOI

Abstract: Training high-performance controllers often faces a computational bottleneck due to the "tax" of second-order optimization. This paper introduces a Gauss-Newton approximation for training Model Predictive Control (MPC) policies within a reinforcement learning (RL) framework. By omitting computationally expensive components of the policy Hessian that vanish near the optimum, the proposed method achieves superlinear convergence with reduced memory and mathematical overhead compared to traditional second-order techniques. Experimental results on linear and nonlinear systems demonstrate significant improvements in convergence speed and wall-clock efficiency over standard first-order optimizers.

Introduction

Reinforcement Learning (RL) has traditionally been dominated by Neural Networks (NNs). While NNs offer flexibility, they are often viewed as "black boxes" that struggle with safety constraints and require massive amounts of data. Using Model Predictive Control (MPC) as a policy is a powerful alternative because it handles constraints natively and is highly interpretable.

Comparison between traditional Deep RL (left) and the proposed MPC-based RL framework (right).

However, training an MPC policy is challenging. Most RL algorithms rely on first-order updates (like Adam), which can be slow to converge. Second-order methods (like Newton’s method) offer faster convergence but require calculating the "Hessian" of the policy. For an MPC, this involves computing second-order derivatives of the optimization solution, necessitating third-order derivatives of the system model—a mathematical and computational nightmare.

Methodology

The authors propose two key innovations to make second-order training practical for MPC-based agents:

  1. Gauss-Newton Policy Hessian: The researchers mathematically demonstrate that the most computationally expensive part of the policy Hessian—the term requiring second-order policy derivatives—vanishes as the controller approaches the optimal policy. By dropping this term, they create a "Gauss-Newton" approximation that only requires first-order policy Jacobians. This provides the speed of second-order optimization without the complexity of third-order derivatives.
  2. Momentum-based Hessian Averaging: RL estimates are notoriously noisy due to sampling. To address this, the authors adapted the concept of momentum to the Hessian itself. They utilize a bias-corrected exponential moving average to smooth out Hessian estimates, ensuring stable training even when local data is volatile.

Experimental Setup

The algorithm was benchmarked using simulated physical environments common in control theory:

  • Analytical Linear System: A 1D system used to rigorously prove that the Gauss-Newton approximation maintains superlinear convergence.
  • Nonlinear CSTR (Continuously Stirred Tank Reactor): A classic chemical engineering benchmark involving the control of temperatures and concentrations in a reactor with uncertain chemical reaction rates.

Key Insights

  • The "Vanishing" Hessian: Near the optimum, the simplified Gauss-Newton version is sufficient to maintain superlinear speed, proving that the full Hessian is not strictly necessary for fast convergence.
  • Curvature and Preconditioning: MPC parameters often affect systems on vastly different scales, leading to "ill-conditioning" that hampers first-order methods. Second-order methods naturally "precondition" the problem, allowing for more effective optimization steps.
  • Physics-Informed Initialization: Unlike NNs, which start with random weights, an MPC policy begins with a physics-informed guess. This places the optimizer closer to the region where the Gauss-Newton approximation is most valid.

Results

  • Convergence Speed: On the CSTR benchmark, the Gauss-Newton approach converged in just 65 iterations, whereas the state-of-the-art Adam optimizer failed to reach equivalent performance even after 100 iterations.
  • Wall-Clock Efficiency: Despite the increased complexity per iteration, total training time was reduced. The proposed method converged in 120 minutes, compared to 145 minutes for Adam and 129 minutes for a standard Approximate Newton method.
  • Robustness: Momentum-based Hessian averaging successfully mitigated environmental noise, preventing the "exploding updates" that often destabilize second-order RL.

Limitations and Future Work

While promising, the approach faces challenges in high dimensionality, as storing and inverting a Hessian matrix for MPCs with hundreds of parameters remains memory-intensive. Additionally, the method requires a differentiable system model; it cannot be applied to non-differentiable "black box" environments. Future research will explore extensions to Robust MPC and higher-dimensional industrial applications.

Summary updated

BibTeX
@inproceedings{brandner2026computationally,
  author = {Dean Brandner and Sebastien Gros and Sergio Lucia},
  title = {{Computationally efficient Gauss-Newton reinforcement learning for model predictive control}},
  booktitle = {Computers},
  year = {2026},
  doi = {10.1016/j.compchemeng.2026.109605},
}
Figure