NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning-Based Optimal Control with Performance Guarantees for Unknown Systems with Latent States

Robert Lefringhausen, Supitsana Srithasan, Armin Lederer, Sandra Hirche

In the world of safety-critical engineering—think self-driving cars or surgical robots—"good enough" isn't good enough. We need formal guarantees that a system will stay within its safety limits. However, most modern data-driven control methods assume we can perfectly measure the system's "state" (like the exact position and velocity of every joint in a robot). In reality, we often only have noisy, indirect measurements.

A new paper from researchers at the Technical University of Munich and ETH Zurich, published in the 2024 European Control Conference (ECC), proposes a way to bridge this gap. They’ve developed a method to control unknown nonlinear systems with latent (hidden) states while providing rigorous probabilistic guarantees on performance and safety.

TL;DR

The authors combine Bayesian inference via Particle Markov Chain Monte Carlo (PMCMC) with Scenario Theory to design controllers for systems where both the dynamics and the internal states are unknown. This approach allows them to derive formal, probabilistic bounds on how well the system will perform and how likely it is to violate safety constraints, even when "flying blind" regarding the true system state.

What Problem Does This Paper Address?

Traditional control relies on accurate mathematical models. When these are unavailable, we turn to data-driven system identification. However, most Bayesian control methods (like those using Gaussian Processes) require full-state measurements.

In many complex systems, we can't measure everything. We might have "latent states"—internal variables that drive the system but aren't directly visible in our sensor data. This creates a double-whammy of uncertainty: we don't know the rules of the game (the dynamics), and we don't even know exactly where we are on the board (the state). Without accounting for both, providing safety guarantees is mathematically intractable.

Methods

The researchers propose a two-step framework:

  1. Joint Estimation via PMCMC: Since the posterior distribution of the dynamics and latent states is too complex to calculate directly, they use Particle Markov Chain Monte Carlo methods. This allows them to draw independent samples (scenarios) from the distribution of possible future trajectories based on past input-output data.
  2. The ACF plot shows that after a certain "lag," the samples become independent, validating the PMCMC approach.
  3. Scenario-Based Optimal Control: They take these samples and treat them as a set of "what-if" scenarios. They then solve a deterministic Optimal Control Problem (OCP) that seeks an input trajectory that minimizes the worst-case cost across these scenarios while satisfying constraints for all of them.
  4. Formal Guarantees: By applying Scenario Theory, they prove that the resulting control law will satisfy constraints on the real, unknown system with a specific probability (e.g., 99% confidence).
The ACF plot shows that after a certain "lag," the samples become independent, validating the PMCMC approach.

Datasets

The method was evaluated using numerical simulations of a nonlinear discrete-time system.

  • Training Data: The authors generated a dataset of 2,000 input-output measurements by simulating the system with random inputs.
  • Evaluation: The approach was tested in two modes: one where the "basis functions" (the general shape of the equations) were known, and one using a generic Reduced-Rank Gaussian Process (GP) approximation to represent the dynamics without any prior physical knowledge.

Key Insights and Ideas

  • Bridging Bayesian and Frequentist Tools: The core "aha" moment is using PMCMC to generate scenarios that capture both epistemic uncertainty (our lack of knowledge about the model) and aleatory uncertainty (random noise). These scenarios then plug directly into the well-established framework of Scenario Optimization.
  • Separating Noise Types: Unlike some simpler models (like NARX), this state-space approach correctly separates process noise (which changes the system's path) from measurement noise (which just blurs our vision).
  • Robustness without Over-conservatism: By optimizing for the worst-case scenario among a finite sample, the controller is robust but avoids the "frozen robot" problem where a controller becomes too scared to move because it's trying to account for every infinite possibility.

Key Results

The simulations demonstrated that the method effectively navigates constraints even with high uncertainty.

  • Known Basis Functions: In 81 successful runs, the average theoretical upper bound for constraint violation was 11.02%, while the actual observed violation rate was only 4.94%. This suggests the theoretical guarantees are solid, if slightly conservative.
  • Example of the controller navigating a constraint (red box). The gray area shows the cloud of scenarios the controller considered.
  • Generic Basis Functions (GP): Even without knowing the system's structure, the controller remained robust, violating constraints in only 2.6% of runs. However, the lack of specific knowledge led to a more conservative (and thus more expensive) control trajectory.
  • With generic basis functions, the uncertainty (gray area) is much wider, leading to a more cautious path.
Example of the controller navigating a constraint (red box). The gray area shows the cloud of scenarios the controller considered.
With generic basis functions, the uncertainty (gray area) is much wider, leading to a more cautious path.

Limitations and Future Work

  • Computational Complexity: PMCMC is computationally expensive. As seen in the results, generating scenarios and computing guarantees took significant time (thousands of seconds), which currently limits the method to offline trajectory planning rather than high-speed real-time control.
  • Non-Convexity: The resulting optimization problem is non-convex. While the authors used a fast solver (ALTRO), they noted that the solver failed to find a solution in about 20% of cases due to local minima or infeasibility.
  • Prior Knowledge: The method still relies on having a "reasonable" prior. If the initial guess about the system is wildly wrong, the PMCMC sampler may struggle to explore the posterior distribution effectively.

Future work could involve speeding up the sampling process or extending the framework to handle time-varying systems where the dynamics change over time.

Summary updated

BibTeX
@inproceedings{lefringhausen2024learning,
  author = {Robert Lefringhausen and Supitsana Srithasan and Armin Lederer and Sandra Hirche},
  title = {{Learning-Based Optimal Control with Performance Guarantees for Unknown Systems with Latent States}},
  booktitle = {ECC},
  year = {2024},
  doi = {10.23919/ecc64448.2024.10590972},
}
Figure