Abstract
Simplex architectures optimize performance and safety by switching between an advanced controller and a base controller. We propose an approach to synthesize the switching logic and extensions of the base controller in the Simplex architectures to achieve high performance and provable correctness for a rich class of temporal specifications by maximizing the time the advanced controller is active. We achieve provable correctness by performing static verification of the baseline controller. The result of this verification is a set of states that is proven to be safe, called the recoverable region. We employ proofs on demand to ensure that the base controller is safe in those states that are visited during runtime, which depends on the advanced controller. Verification of hybrid systems is often overly conservative, resulting in smaller recoverable regions that cause unnecessary switches to the baseline controller. To avoid these switches, we invoke targeted reachability queries to extend the recoverable region at runtime. In case the recoverable region cannot be extended using the baseline controller, we employ a repair procedure. This tries to synthesize a patch for the baseline controller and can further extend the recoverable region. Our offline and online verification relies upon reachability analysis since it allows observation-based extension of the known recoverable region. We implemented our methodology on top of the state-of-the-art tool HyPro which allowed us to automatically synthesize verified and performant Simplex architectures for advanced case studies, like safe autonomous driving on a race track.
Introduction
Modern autonomous systems—such as self-driving cars or industrial robots—rely on sophisticated "advanced controllers" (AC), often driven by deep neural networks, to achieve high performance. However, these controllers are notoriously difficult to formally verify. To prevent catastrophic failures, engineers employ a Simplex architecture. In this setup, a "switching logic" monitors the system; if the AC is about to lead the system into a dangerous state, control is handed over to a verified, albeit more conservative, baseline controller (BC).
Existing Simplex designs face three major hurdles:
- Conservatism: Static verification of safety zones (the "recoverable region") is often too pessimistic, causing frequent, unnecessary switches to the slower backup controller.
- Simple Specifications: Most systems only handle basic safety invariants (e.g., "don't crash"), struggling with complex temporal requirements like "reach the goal within 30 seconds."
- Rigid Backups: If the baseline controller is not perfectly designed for every possible state, the safety guarantee collapses.
Methodology
The proposed framework treats the recoverable region as an evolving entity. The system is modeled using Hybrid Automata, and safety/timing requirements are defined via Signal Temporal Logic (STL).
Key technical innovations include:
- Proofs on Demand: Instead of relying solely on a pre-computed safe zone, the switching logic performs online reachability analysis. If the AC proposes a state outside the known safe zone, the system checks "on the fly" if the BC can still recover. If successful, that state is added to the verified region.
- Baseline Repair: If a state is found to be unrecoverable for the current BC, the system attempts to synthesize a "patch"—a specific sequence of actions—to steer the system back into a known safe state.
- Efficient Computation: The system utilizes HyPro, a state-of-the-art reachability analysis tool, and organizes state data using octrees to ensure lookups and fixpoint detections are fast enough for real-time application.
Evaluation and Results
The methodology was evaluated using two primary case studies:
- Coupled Water Tanks: A classic control benchmark used to demonstrate how the recoverable region grows as the system "learns" the behavior of different advanced controllers.
- Autonomous Racing Car: Tested on linearizations of the Spielberg (Austria) and Silverstone (UK) F1 tracks. The track boundaries and curbs served as safety constraints.
Key Results
- Reduced Interventions: In water tank experiments, the number of "proofs on demand" decreased over time as the recoverable region saturated, leading to smoother performance.
- Successful Racing Patches: On the Spielberg track, the repair mechanism successfully synthesized complex turn maneuvers (U-shaped and S-shaped) to keep the car on track when the initial BC was insufficient.
- Computational Feasibility: While computing the initial safe region took about 20 minutes, performing a "proof on demand" at runtime took less than a second, and checking if a state was already known to be safe took only 10 milliseconds.
Discussion and Future Work
The system adapts to the specific AC being used through observation-based extension, prioritizing verification of the state space areas the AC actually visits. By supporting STL, the architecture moves beyond simple collision avoidance to enforce "bounded liveness" (e.g., "if the water level drops, it must be refilled within 30 units").
However, limitations remain. Sub-second proofs may still be too slow for high-speed robotics like drone racing without further optimization. Additionally, the racing model relies on discretizing the car's heading, which may introduce artifacts. Future work aims to integrate this architecture with Reinforcement Learning, using safety guarantees to "shape" rewards during training, and utilizing STL "robustness values" to further optimize switching logic.
Summary updated