Kernel-Based Optimal Control: An Infinitesimal Generator Approach

Petar Bevanda, Nicolas Hoischen, Tobias Wittmann, Jan Brüdigam, Sandra Hirche, Boris Houska

TL;DR

This paper introduces a novel operator-theoretic approach to learn optimal control policies for complex, nonlinear stochastic systems directly from data. By learning the "infinitesimal generator" of the system's dynamics in a reproducing kernel Hilbert space, the method enables data-driven solutions to optimal control problems that are more robust and efficient than existing methods, particularly for systems with noise.

What Problem Does This Paper Address?

Traditional optimal control relies heavily on accurate first-principle models of system dynamics. While effective, obtaining these models can be challenging, especially for complex nonlinear systems. Existing data-driven methods often struggle with the inherent stochasticity (randomness) of real-world systems, leading to suboptimal or unstable control. Furthermore, solving these optimal control problems globally is computationally demanding, often forcing practitioners to rely on local optimization methods that are sensitive to initial conditions. This paper aims to bridge this gap by developing a data-driven framework that can learn globally optimal control policies for nonlinear stochastic systems, overcoming the limitations of model-based and purely data-driven approaches.

Methods

The core of this paper lies in its novel operator-theoretic approach. Instead of directly learning the system's state-space dynamics, the authors propose learning the infinitesimal generator of the controlled stochastic diffusion process. This generator essentially describes the instantaneous rate of change of the system's probability distribution.

Here's a breakdown of their key methods:

  • Reproducing Kernel Hilbert Spaces (RKHS): The learning happens within RKHS, which are function spaces that allow for powerful kernel-based methods. This provides an infinite-dimensional hypothesis space to represent complex system dynamics.
  • Kernel Ridge Regression (KRR) for Operator Approximation: They use KRR to non-parametrically estimate the infinitesimal generator operators from data. This is framed as a Hilbert-Schmidt regression problem in infinite dimensions.
  • Kernel Hamilton-Jacobi-Bellman (KHJB) Equation: By leveraging the learned infinitesimal generator and its properties, they formulate a continuous-time Kernel Hamilton-Jacobi-Bellman (KHJB) equation. This equation is a data-driven analogue of the classical HJB equation used in optimal control.
  • Algorithm 1 (IG-KHJB): This algorithm outlines the steps to solve the KHJB equation, effectively computing approximations of globally optimal control policies and value functions. It involves integrating the KHJB equation backward in time.

What's new here is the direct learning of the infinitesimal generator within an RKHS framework, which naturally handles stochasticity and allows for a convex reformulation of the optimal control problem. This contrasts with previous work that might focus on learning state-space models or use discrete-time approaches.

Datasets

The paper utilizes synthetic datasets generated from:

  • Synthetic differential equations: These are used to test the theoretical underpinnings of the method.
  • Simulated robotic systems: Specifically, the inverted pendulum and cartpole systems are used as benchmarks. The data for these systems is generated using the Dojo simulator (Howell et al., 2022).

The authors note that for the robotic systems, direct access to infinitesimal measurements for data generation might not be available, and they approximate these using finite differences.

Key Insights and Ideas

  • Learning the "Rate of Change" is Powerful: The key insight is that learning the infinitesimal generator, which describes the instantaneous rate of change of the system's probability distribution, is a more robust way to handle stochastic dynamics than learning the state-space model directly. This allows for a more direct connection to the underlying theory of diffusion processes.
  • RKHS as a Natural Fit for Stochastic Control: The infinite-dimensional nature of RKHS provides a flexible and powerful framework for representing the complex operators involved in stochastic differential equations and optimal control.
  • Convexification via Operator Theory: By reformulating the optimal control problem using operator-theoretic tools and the infinitesimal generator, the authors achieve a convex optimization problem. This is crucial for guaranteeing global optimality, a significant advantage over traditional nonlinear programming methods.
  • Data-Driven Global Optimality: The proposed method offers a path to finding globally optimal control policies directly from data, without requiring a perfect analytical model. This is a major step forward for applying optimal control to real-world, complex systems.
  • Robustness to Kernel Choice: The experimental results suggest that their method is more robust to the choice of kernel lengthscale compared to prior kernel-based methods, indicating better generalization.

Key Results

The paper demonstrates the effectiveness of their Infinitesimal Generator Kernel HJB (IG-KHJB) approach through several experiments:

  • Unstable Oscillator: Compared to a prior kernel-based HJB method (Bevanda et al., 2024b), their IG-KHJB achieved a lower Root Mean Square Error (RMSE) to the known optimal policy, especially with fewer data points. Notably, it achieved a lower RMSE with only N=25 datapoints, a significant improvement.
  • Inverted Pendulum: The learned policy achieved lower mean accumulated costs than state-of-the-art Nonlinear Model Predictive Control (NMPC) using Altro (Howell et al., 2019).
  • Cartpole: Similarly, for the cartpole system, their controller achieved lower accumulated costs than Altro-NMPC by a large margin.

These results highlight the method's ability to outperform existing data-driven and classical nonlinear programming methods for optimal control in both synthetic and robotics benchmarks.

Limitations and Future Work

  • Data Requirements: While the method is data-driven, it still requires a sufficient amount of data to accurately learn the infinitesimal generator. The paper shows robustness to kernel choice and fewer data points, but the exact data requirements for different systems are not fully explored.
  • Computational Cost: While the method aims for global optimality, the integration of the KHJB equation can still be computationally intensive, especially for high-dimensional systems. The paper mentions that space discretization is usually required, which can be demanding.
  • Assumption Restrictiveness: The paper relies on certain assumptions for theoretical guarantees (e.g., Assumption 1 for well-definedness of the optimal control problem). While these are noted as being met in practical scenarios, their restrictiveness for certain real-world applications might be a limitation.

Future work could involve exploring more efficient numerical integration schemes for the KHJB equation, investigating the method's performance on even higher-dimensional systems, and further analyzing the theoretical guarantees under more relaxed assumptions. The authors also suggest that their framework can be extended to handle more general system dynamics and cost functions.

Summary updated

BibTeX
@inproceedings{bevanda2024kernel,
  author = {Petar Bevanda and Nicolas Hoischen and Tobias Wittmann and Jan Brüdigam and Sandra Hirche and Boris Houska},
  title = {{Kernel-Based Optimal Control: An Infinitesimal Generator Approach}},
  booktitle = {L4DC},
  year = {2024},
  doi = {10.48550/arxiv.2412.01591},
}
Figure