A Bayesian Framework for Safe Optimal Control of Unknown Systems from Input-Output Data

Robert Lefringhausen, Annalena Daniels, Michael Fink, Sandra HirchearXiv 2026

TL;DR

This paper presents a Bayesian framework for the safe optimal control of nonlinear, stochastic systems where both the dynamics and internal states are unknown. By combining Particle Markov Chain Monte Carlo (PMCMC) methods with a risk-sensitive optimization loop, the authors provide rigorous, certifiable safety guarantees while operating solely on input–output data.

What Problem Does This Paper Address?

Modern control engineering is increasingly applied to systems that are too complex for traditional "first-principles" modeling—think soft robotics, biological processes, or vertical farms. These systems present a "quadruple threat" to safety and performance:

  1. Nonlinear and Stochastic Dynamics: Real-world systems don't follow simple linear rules and are plagued by both process and measurement noise.
  2. Latent States: Often, we cannot measure the internal state of a system directly; we only see noisy outputs.
  3. Scarce Data: Experiments are expensive, meaning we must be highly data-efficient.
  4. Rigorous Safety Requirements: In safety-critical tasks, "probably safe" isn't good enough; we need quantifiable confidence levels.

Existing methods typically address these challenges in isolation. This paper proposes a unified Bayesian framework that treats them jointly, ensuring that uncertainty about the model and the hidden state is translated directly into certifiable safety bounds.

Methods

The framework relies on three main pillars:

  • Joint Posterior Inference: The authors use Particle Markov Chain Monte Carlo (PMCMC) methods to sample from the joint posterior distribution of unknown model parameters and latent states. This allows them to capture both aleatoric uncertainty (irreducible noise) and epistemic uncertainty (lack of knowledge about the system).
  • Synthesis-Validation Loop: Instead of a one-shot optimization, the framework uses an iterative loop. A candidate control sequence is synthesized using a Conditional Value-at-Risk (CVaR) penalty. This candidate is then rigorously tested against a fresh set of "scenarios" (simulated futures based on the posterior).
  • Adaptive Calibration: A key novelty is the mechanism that automatically adjusts the "risk weight" ($\omega$) in the optimization objective. If a candidate fails validation, the weight on the CVaR penalty is increased until a desired robustness level is statistically certified.
Fig. 1. Overview of the proposed approach. Training and vali- dation scenarios are generated from PMCMC posterior samples. In attempt j, a candidate input sequence is synthesized from the training scenarios with risk weight ωj and evaluated on a fresh validation set, yielding a high-confidence bound δj on its viola- tion probability. The risk weight is updated until a candidate is certified within the acceptance band or the attempt budget is ex- hausted. Colors indicate scenario generation (blue, Section 3 and Algorithm 1), validation (green, Section 4), and synthesis and cal- ibration (orange, Section 5).

The authors also extend this to a receding-horizon setting. As the system runs and more data arrives, the posterior is updated, allowing the controller to become less conservative and more performant over time.

Datasets

The approach was evaluated using a high-fidelity simulation of a vertical farm cultivating tomatoes.

  • Model: The SIMPLE crop model, a nonlinear state-space model describing biomass growth based on temperature, radiation, CO2, and irrigation.
  • Task: Reach a target yield at harvest (day 100) with at least 95% probability, starting from day 75, using only noisy biomass measurements (latent states include cumulative temperature and senescence).
  • Comparison: The method was compared against a "Certainty-Equivalent" (CE) planner (which ignores uncertainty) and a "Prior-based" planner (which ignores new data).

Key Insights and Ideas

  • Joint Uncertainty is Crucial: Treating parameter estimation and state estimation separately leads to overconfidence. By sampling them jointly via PMCMC, the framework accounts for the coupling between "what the system is" and "where the system is."
  • CVaR as a Tuning Knob: Using CVaR rather than hard constraints allows for a continuous trade-off between performance and safety. This makes the optimization problem more tractable while still targeting the "tail risk" of constraint violations.
  • The "Cost of Robustness" Decays: One of the most interesting findings is that the receding-horizon implementation naturally reduces conservatism. As the "epistemic" uncertainty shrinks with more data, the controller can safely push closer to the performance limits.
  • Statistical Certification: The validation step (detailed in the algorithm below) uses the Clopper–Pearson construction to provide a non-asymptotic bound on the violation probability, ensuring safety even with a finite number of samples.
The validation procedure checks a control law against a set of independent scenarios to count violations and calculate a statistical safety bound.

Key Results

  • Safety: In a 200-run Monte Carlo study, zero certified plans violated the yield constraint on the true system. In contrast, the Certainty-Equivalent baseline failed in over 60% of cases.
  • Efficiency: The receding-horizon approach reduced the median "cost of robustness" from 24% (in open-loop) to just 14% above the theoretical "oracle" cost (which assumes perfect knowledge).
  • Computational Feasibility: While PMCMC is computationally intensive, the authors demonstrated that a full control cycle takes about 73–108 minutes on standard hardware—well within the one-day decision interval required for vertical farming.

Limitations and Future Work

The authors acknowledge that the computational burden of PMCMC might be a hurdle for systems with faster dynamics (e.g., milliseconds vs. days). Future work aims to:

  • Extend the framework to continuous-time models with infrequent measurements.
  • Synthesize output-feedback policies (rules for how to react to future measurements) rather than just open-loop input sequences.
  • Explore more efficient sampling methods to reduce the time required for posterior updates.

For more details, see the full paper: "A Bayesian Framework for Safe Optimal Control of Unknown Systems from Input–Output Data" by Lefringhausen et al.

Summary updated

BibTeX
@misc{lefringhausen2026bayesian,
  author = {Robert Lefringhausen and Annalena Daniels and Michael Fink and Sandra Hirche},
  title = {{A Bayesian Framework for Safe Optimal Control of Unknown Systems from Input-Output Data}},
  year = {2026},
  eprint = {2611.03466},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.03466},
}
Figure