Introduction
Autonomous Cyber-Physical Systems (CPS), particularly autonomous vehicles (AVs), face a fundamental conflict between performance and safety. While Learning Enabled Components (LECs), such as deep neural networks, offer sophisticated navigation capabilities, their "black box" nature makes them difficult to verify and prone to failure in edge cases. Traditional safety architectures, like the Simplex model, attempt to mitigate this by switching to a verified safety controller when risks are detected. However, these models often suffer from "one-way" traps—where the system remains in a conservative safety mode indefinitely—and rely on static logic that fails to adapt to dynamic environments.
This paper introduces Dynamic Simplex (DS), a novel architecture that treats the switching between high-performance and safety controllers as a sequential decision-making problem. By utilizing an asymmetric switching logic powered by Monte Carlo Tree Search (MCTS), Dynamic Simplex ensures that systems can return to high-performance modes safely and efficiently once environmental threats have subsided.
The Challenges of Existing Architectures
Modern AVs rely on LECs for complex tasks, but these components are susceptible to out-of-distribution (OOD) data caused by weather changes or sensor malfunctions. The standard Simplex architecture addresses this by pairing a high-performance (but unverified) controller with a verified (but conservative) safety controller.
Despite their utility, existing Simplex models face two primary hurdles:
- The "One-Way" Trap: Many systems are designed to switch to a safety controller and stay there. This "latching" behavior prevents the system from resuming efficient operation even after a temporary fault (like a sensor glitch) is resolved.
- Stale Logic: Switching logic is typically trained offline. In the real world, traffic patterns, weather, and sensor health are dynamic. Offline rules often lack the context-awareness needed to make optimal decisions in real-time.
The Dynamic Simplex Approach
The authors propose modeling the controller switching process as a semi-Markov Decision Process (SMDP). The core innovation of Dynamic Simplex lies in its Asymmetric Switching Logic:
Forward Switch (Performance to Safety)
The transition from the high-performance controller to the safety controller must be instantaneous. DS employs a "myopic" (short-sighted) selector that uses a Deep Neural Network (DNN) surrogate model. This model monitors runtime data to detect imminent collision risks or sensor failures, triggering an immediate switch to the safety controller to prevent accidents.
Reverse Switch (Safety to Performance)
Unlike the forward switch, the decision to return to high-performance mode is not time-critical but is high-risk. DS utilizes a "non-myopic" planner based on Monte Carlo Tree Search (MCTS). This planner simulates thousands of potential future trajectories, accounting for generative models of weather, traffic, and sensor health. By looking ahead, the system ensures that the environment is truly stable before resuming high-speed operation.
Runtime Monitoring
To support these decisions, the architecture includes specialized monitors:
- Variational Autoencoders (VAEs): Used to detect OOD data.
- Physical Fault Monitors: Specifically designed to identify hardware issues like camera occlusions.
Experimental Evaluation
The researchers evaluated Dynamic Simplex using the CARLA simulator, a high-fidelity environment for autonomous driving.
Dataset and Training
The surrogate models were trained on a massive dataset of 111,800 simulations, totaling approximately 164 hours of driving across 50 road segments. The system was then tested across four distinct environments: Downtown (high traffic), Suburb (overpasses), Freeway (long stretches), and Tunnel (variable lighting).
Performance Metrics
The evaluation included scenarios with varying weather conditions and injected sensor failures (both permanent and intermittent). DS was compared against a performance-only model (LBC) and a traditional "one-way" Simplex architecture (SA).
Key Results
The experimental results highlight the effectiveness of the DS architecture:
- Safety Excellence: DS achieved a median infraction score of 1.0 (the highest possible) across all test tracks, maintaining safety even during sensor failures.
- Operational Efficiency: In cases of intermittent failures, DS completed tracks significantly faster than "safety-only" autopilots by successfully reverting to performance mode when safe.
- Reliability: While the pure performance model (LBC) failed to complete the Downtown track due to collisions, DS completed it successfully while remaining competitive in travel time.
- Reduced Jitter: The MCTS planner effectively minimized "chattering"—the rapid, unstable toggling between controllers—by incorporating a "cost of switching" penalty in the reward function.
Discussion and Future Work
A significant insight from this research is the acceptance of latency for recovery. While safety interventions must be immediate, the recovery to high performance can afford the computational overhead of MCTS. This allows for context-aware safety; for example, the system can recognize that a safety mode triggered by rain can be deactivated once the vehicle enters a dry tunnel.
However, challenges remain. While the safety controller is verified, the MCTS logic is data-driven and lacks the hard mathematical guarantees of traditional control theory. Furthermore, MCTS is resource-intensive, requiring significant GPU power that may not be available on all embedded automotive hardware. Future work will focus on reducing these computational demands and automating the learning of domain rules to ensure stability during complex maneuvers.
Summary updated