Abstract
This paper introduces a rigorous mathematical framework for the "cold-start" problem in robotics and control: learning the physics of an unknown system without violating safety constraints. We develop optimization-based algorithms that allow for sequential exploration of a system to learn its behavior while guaranteeing it never leaves a predefined safety region. By leveraging tools like Linear Programming (LP) and Semidefinite Programming (SDP), we demonstrate that even under high uncertainty, the true dynamics of linear and nonlinear systems can be safely and efficiently recovered.
Introduction
Deploying a new robot or controlling a chemical reactor requires an accurate mathematical model of its dynamics, typically expressed as $x_{t+1} = f(x_t)$. While models are often learned from observed trajectories, safety-critical systems cannot be allowed to run unconstrained to gather data. The fundamental challenge lies in the interplay between safety and uncertainty: without knowing the dynamics, it is impossible to know which initial states are safe. As data is collected, uncertainty shrinks, and the "safe set"—the region from which trajectories can be safely initiated—expands. This work addresses how to mathematically define these sets and find trajectories using tractable optimization.
Methodology
The unknown system $f_*$ is modeled as belonging to an initial uncertainty set $U_0$. As trajectories are observed, this set shrinks to $U_k$, representing all systems consistent with the $k$ observed data points. The complexity of ensuring safety depends on the time horizon $T$ for which the system must remain safe.
Optimization Frameworks
- One-Step Safety ($T=1$): For linear systems, finding the optimal safe initialization point is formulated as a Linear Program (LP). The proposed algorithm recovers the system in at most $n$ steps (where $n$ is the state dimension) or proves safe learning is impossible.
- Two-Step Safety ($T=2$): Safety constraints involving $A^2$ are handled via the S-Lemma, reformulating the problem as a Semidefinite Program (SDP). Generally, $\lceil n/2 \rceil$ trajectories suffice.
- Infinite-Step Safety ($T=\infty$): For stable systems, Sum of Squares (SOS) programming and Putinar’s Positivstellensatz are used to find inner approximations of the safe set. Remarkably, a single trajectory of length $n$ is often enough.
- Nonlinear Systems: The framework extends to systems with a linear base and a bounded nonlinear component using Second-Order Cone Programming (SOCP) and SOS hierarchies.
Key Insights and Results
A primary finding is the "on-the-fly" advantage: updating the safe set after every measurement significantly reduces the cost of learning compared to offline strategies. This allows the system to become more "aggressive" as confidence grows.
Performance Metrics
- Linear Recovery: For an $n$-dimensional system, $n$ one-step trajectories are sufficient for perfect recovery. Generically, the minimum number of trajectories needed for $T$-step safety is $\lceil n/T \rceil$.
- Nonlinear Accuracy: The SOS-based approach for fitting polynomial models achieved a Root Mean Square Error (RMSE) of 0.0851, significantly outperforming unconstrained least-squares (RMSE 0.2567) by enforcing prior physical knowledge.
Conclusion and Future Work
While the current greedy approach is efficient, it may be suboptimal compared to globally planned sequences of initializations, which remains a computationally hard problem. Future research directions include extending the framework to continuous-time systems, fully characterizing $T=2$ safety under disturbances, and improving the scalability of SOS programming for high-dimensional nonlinear systems.
Summary updated