Data-Driven Optimal Feedback Laws via Kernel Mean Embeddings

Petar Bevanda, Nicolas Hoischen, Stefan Sosnowski, Sandra Hirche, Boris Houska · DOI

Abstract

Stochastic optimal control for nonlinear systems is traditionally hindered by the "curse of dimensionality," where the computational cost of solving the Hamilton-Jacobi-Bellman (HJB) equation grows exponentially with the state dimension. This paper presents a novel framework that embeds system dynamics into Reproducing Kernel Hilbert Spaces (RKHS) to transform complex nonlinear control problems into tractable linear recursions. By learning Markov transition operators directly from data using Kernel Mean Embeddings (KME), the proposed Kernel HJB (KHJB) algorithm achieves a computational complexity that scales linearly with the number of states, offering a global, data-driven solution for high-dimensional stochastic systems.

Introduction

In robotics and autonomous systems, the goal of stochastic optimal control is to determine a feedback law that minimizes a cost functional—such as fuel consumption or tracking error—under the influence of random noise. The standard approach involves solving the Hamilton-Jacobi-Bellman (HJB) equation. However, the HJB equation is notoriously difficult to solve for high-dimensional, nonlinear systems. Engineers often resort to local approximations, such as Differential Dynamic Programming, or simplified linear models like the Linear Quadratic Regulator (LQR). While these methods are computationally efficient, they often fail to capture global nonlinear dynamics or handle significant perturbations.

This research introduces a "global" data-driven approach that does not require an explicit physics model. By leveraging the properties of RKHS, the framework bypasses the exponential scaling of traditional grid-based HJB solvers.

The Kernel HJB Framework

The core innovation of this work is the Kernel HJB (KHJB) algorithm, which relies on three primary pillars:

1. Kernel Mean Embeddings (KME)

Instead of representing the system state as a point in Euclidean space, the framework represents probability densities as elements in an infinite-dimensional RKHS. This embedding allows nonlinear probability evolutions to be treated as linear operations within the Hilbert space. This transition from nonlinear dynamics in physical space to linear dynamics in the embedding space is the key to simplifying the control problem.

2. Operator Learning

The method learns Markov transition operators directly from snapshot data. These operators describe how the system's state distribution evolves over time. By using kernel regression, the researchers can approximate these operators without a prior model of the stochastic differential equations (SDEs). This approach shares conceptual roots with Koopman operator theory but is specifically optimized for stochastic diffusion processes.

3. Convex Recursion and Linear Scaling

By substituting the learned operators into a dynamic programming recursion, the optimal control problem is reformulated as a convex optimization. Crucially, the computational complexity of this recursion scales linearly ($O(n_x)$) with the state dimensionality. This represents a significant departure from traditional methods that scale exponentially, making the framework viable for complex, multi-dimensional robotic platforms.

Experimental Evaluation

The KHJB algorithm was validated across a series of benchmarks designed to test accuracy, stability, and scalability:

  • 1D Benchmarks (S1-S4): The algorithm was tested on four scalar nonlinear systems with known analytical solutions. The KHJB approach recovered the ground-truth optimal control laws with high fidelity, achieving Root Mean Squared Errors (RMSE) typically in the range of $10^{-2}$.
  • 2D Unstable Oscillator: The framework was applied to a Van der Pol oscillator, a system characterized by an unstable limit cycle. The learned controller successfully stabilized the system, with the resulting level sets closely matching theoretical optima.
  • 4D Nonlinear AUV: To demonstrate real-world applicability, the researchers modeled an Autonomous Underwater Vehicle (AUV) performing depth regulation. This task involved higher dimensionality and control constraints.

Key Results

The experimental results highlight the advantages of the KHJB framework over traditional linear baselines:

  • Performance Gains: In the 4D AUV task, the KHJB controller achieved a 5.09% reduction in mean cost compared to a standard LQR.
  • Robustness: More significantly, the KHJB method reduced cost variability by 30.11%. This suggests that the kernel-based approach is far more effective at managing the nonlinearities and stochasticity that LQR-based linearizations typically ignore.
  • Global Optimality: Unlike local methods, the KHJB provides a global feedback law that remains valid even when the system is pushed far from its nominal trajectory.

Discussion and Future Work

While the KHJB framework offers a path forward for high-dimensional control, it faces challenges regarding sample complexity. The primary bottleneck is the inversion of the Gram matrix, which scales as $O(n^3)$ relative to the number of data points ($n$). This limits the volume of training data that can be processed using standard methods.

Future research directions include the integration of large-scale regression techniques, such as Nyström methods or sparse kernel approximations, to handle larger datasets. Additionally, further investigation into the errors introduced by time-discretization and finite data samples will be essential for refining the accuracy of the learned control laws in highly sensitive applications.

Summary updated

BibTeX
@article{bevanda2026data,
  author = {Petar Bevanda and Nicolas Hoischen and Stefan Sosnowski and Sandra Hirche and Boris Houska},
  title = {{Data-Driven Optimal Feedback Laws via Kernel Mean Embeddings}},
  journal = {Engineering Applications of AI},
  year = {2026},
  doi = {10.1016/j.engappai.2026.115698},
}
Figure