Abstract
In large-scale networks of uncertain dynamical systems, where communication is limited and there is a strong interaction among subsystems, learning local models and control policies offers great potential for designing high-performance controllers. At the same time, the lack of safety guarantees, here considered in the form of constraint satisfaction, prevents the use of data-driven techniques to safety-critical distributed systems. This paper presents a safety framework that guarantees constraint satisfaction for uncertain distributed systems while learning. The framework considers linear systems with coupling in the dynamics and subject to bounded parametric uncertainty, and makes use of robust invariance to guarantee safety. In particular, a robust non-convex invariant set, given by the union of multiple ellipsoidal invariant sets, and a nonlinear backup control law, given by the combination of multiple stabilizing linear feedbacks, are computed offline. In presence of unsafe inputs, the safety framework applies the backup control law, preventing the system to violate the constraints. As the robust invariant set and the backup stabilizing controller are computed offline, the online operations reduce to simple function evaluations, which enables the use of the proposed framework on systems with limited computational resources. The capabilities of the safety framework are illustrated by three numerical examples.
Introduction
Data-driven control and reinforcement learning (RL) offer significant potential for managing complex, large-scale networks like power grids or robot swarms. However, these algorithms often lack theoretical guarantees. In safety-critical systems, a single "exploratory" action that violates a constraint—such as exceeding a voltage limit or a physical boundary—can be catastrophic.
This challenge is amplified in distributed systems. Because subsystems are coupled, an action taken by one agent might cause another to violate a constraint. Furthermore, real-world systems exhibit parametric uncertainty, where physical constants like friction or mass are not perfectly known. This paper introduces a distributed safety framework that acts as a "filter" for learning-based controllers, ensuring that local and global constraints are never violated, even when the underlying learning algorithm is exploratory or uncertain.
Methodology
The proposed Invariance-based Safety Framework sits between the learning algorithm and the physical system, employing several key strategies:
- Robust Invariance: The core idea is to define a "safe region" (a robust invariant set) in the state space. If the system stays within this region, there exists at least one control law that can keep it there indefinitely, despite uncertainties.
- Union of Ellipsoids: Instead of using one conservative "safe" bubble, the framework uses a union of multiple ellipsoidal sets. This allows the safe region to better fit the actual shape of the constraints, reducing conservatism.
- Implicit vs. Explicit Formulations: Safety can be checked implicitly by solving a convex optimization problem at every time step. However, to enable real-time use on hardware with limited CPU power, the authors also provide an explicit formulation where safe sets and backup controllers are pre-computed offline. Online, the system simply performs a quick function evaluation to decide whether to accept the learner's input or switch to a backup "safe" input.
- Distributed Computation: The optimization is structured so that agents only need to communicate with their immediate neighbors, making the approach scalable to large networks.
Key Insights: The Power of Partitions
A major insight of this work is the use of state-space partitioning (using Voronoi partitioning) to assign different invariant sets to different regions. This significantly increases the "coverage" of the safe state space compared to traditional single-set methods. By partitioning the space, the framework can handle higher levels of parametric uncertainty without becoming overly restrictive.
Furthermore, the framework is algorithm-agnostic. It can be integrated with various RL methods like Proximal Policy Optimization (PPO) or Q-Learning. The safety filter only intervenes when an action is truly dangerous, allowing the learner to explore freely within the safe boundaries.
Experimental Results
The framework was evaluated using three simulated numerical benchmarks: a 3-agent mass-damper system, a large-scale 25-agent mass-spring-damper system, and a 3-agent regulation task.
Key results include:
- 100% Constraint Satisfaction: In all simulations, the system with the safety framework maintained zero constraint violations, while "unprotected" learners frequently failed by crossing the safety boundary.
- Scalability: The framework successfully managed the 25-agent system, demonstrating that the distributed nature of the algorithm prevents computational explosion as the network grows.
- Efficiency: The explicit approximation showed comparable performance to the computationally expensive implicit version, making it feasible for high-frequency real-time applications.
Conclusion and Future Work
The presented framework provides a robust method for ensuring safety in distributed learning systems. While highly effective for linear systems with polytopic uncertainty, future research is needed to extend these guarantees to inherently nonlinear dynamics. Additionally, while the online execution is highly efficient, the offline pre-computation of the union of invariant sets can be intensive, suggesting a need for more efficient set-generation algorithms in the future.
Summary updated