Safety and Optimality in Learning-Based Control at Low Computational Cost

Dominik Baumann, Krzysztof Kowalczyk, Cristian R. Rojas, Koen Tiels, Pawel Wachel

Abstract

Safe learning-based control is essential for autonomous systems, yet standard methods like SafeOpt suffer from cubic computational complexity ($O(n^3)$) due to their reliance on Gaussian Processes. This paper introduces CoLSafe, a computationally lightweight alternative that utilizes the Nadaraya-Watson (NW) estimator. CoLSafe achieves sublinear computational scaling while maintaining rigorous theoretical guarantees for safety and optimality. Experimental results on a 7-DOF robot arm demonstrate that CoLSafe reduces calculation times from hours to seconds and often expands the initial safe set faster than traditional methods.

Introduction

In domains such as autonomous driving and collaborative robotics, control policies must be optimized without violating safety constraints. The current state-of-the-art, SafeOpt, employs Gaussian Process (GP) regression to model system dynamics and constraints safely. However, the $O(n^3)$ complexity of GPs creates a "scalability wall," making real-time learning on embedded devices impractical as data accumulates. CoLSafe aims to provide comparable safety and optimality guarantees at a fraction of the computational cost.

Methodology: Computationally Lightweight Safe Learning

CoLSafe replaces Gaussian Processes with the Nadaraya-Watson (NW) estimator, a non-parametric regression method with $O(n)$ or $O(\log n)$ scaling. By assuming Lipschitz continuity for reward and constraint functions, the algorithm constructs high-probability confidence intervals to guide exploration.

The algorithm maintains a "safe set" of parameters and intelligently selects the next experiment by identifying "potential maximizers" (likely to yield high rewards) or "potential expanders" (likely to enlarge the known safe region). Theoretical analysis confirms that CoLSafe converges to the global optimum within the reachable safe set in finite time without violating safety constraints.

Evolution of the safe set for CoLSafe (top) and SafeOpt (bottom) over 200 iterations.

Experimental Evaluation

The performance of CoLSafe was evaluated using a 7-degrees-of-freedom Franka robot arm in both simulation and hardware environments. In simulation, the algorithm tuned LQR gains for a target-reaching task with obstacles. Hardware experiments involved tuning impedance gains during a path-tracking task.

Key Results

  • Massive Speedup: In simulation, SafeOpt required approximately one hour to compute the next sample point in later iterations, whereas CoLSafe completed the same task in just 12.3 seconds on identical hardware.
  • Safety and Performance: Both algorithms maintained zero safety violations throughout all trials. Notably, CoLSafe often expanded the initial safe set more rapidly than SafeOpt, making it less sensitive to the quality of the initial "safe seed."
  • Reward Optimization: In hardware trials, CoLSafe demonstrated faster initial reward improvement (tracking accuracy) compared to the SafeOpt benchmark.
Comparison of reward optimization performance between CoLSafe and SafeOpt during hardware trials.

Discussion and Conclusion

CoLSafe represents a significant step toward deploying safe learning algorithms on resource-constrained embedded systems. While the NW estimator is statistically more conservative than GPs—potentially resulting in a slightly smaller final safe set—its massive computational speedup and faster initial growth offer a compelling trade-off for real-world applications.

Future work includes automating the estimation of the Lipschitz constant and exploring dynamic bandwidth tuning for the NW estimator to further reduce conservatism without sacrificing safety guarantees.

Summary updated

BibTeX
@article{baumann2025safety,
  author = {Dominik Baumann and Krzysztof Kowalczyk and Cristian R. Rojas and Koen Tiels and Pawel Wachel},
  title = {{Safety and Optimality in Learning-Based Control at Low Computational Cost}},
  journal = {IEEE Trans. Automatic Control},
  year = {2025},
  doi = {10.1109/tac.2025.3570248},
}
Figure