Introduction
Autonomous systems, such as self-driving cars, increasingly rely on Artificial Neural Networks (ANNs) for complex control tasks. However, these controllers often suffer from "brittleness"—they are difficult to formally verify, and once verified, they are typically static. If environmental conditions change or new safety requirements are introduced (e.g., the sudden appearance of pedestrians), the original verification often becomes invalid, necessitating a costly and time-consuming re-verification process.
This paper proposes Runtime Interchange (RI), a framework designed to bridge the gap between rigid, verified controllers and adaptive, unverified ones. RI enables autonomous systems to dynamically swap between a bank of specialized, pre-verified controllers based on formal policies, allowing for safe adaptation in real-time.
The Runtime Interchange (RI) Framework
The core of the proposed system is the RI Manager, which orchestrates a library of specialized control components. Instead of a single "monolithic" controller, the system utilizes a Controller Bank containing various modules, such as an ANN for steering, a PID for distance maintenance, and heuristics for emergency braking.
A key innovation in RI is Controller Suspension. The manager can "freeze" the internal state of a controller if the current environmental state is predicted to lead it into an unsafe "trap." This prevents issues like integral windup in traditional controllers or out-of-distribution errors in neural networks. The RI Manager itself is automatically synthesized from formal specifications, ensuring the switching logic is mathematically sound.
Formal Policy Specification
To govern the switching between controllers, RI uses Valued Discrete Timed Automata (VDTA). These formal policies define the operational boundaries for each controller, specifying when a particular mode (e.g., "normal," "stopping," or "cautious") is appropriate based on sensor inputs and timing constraints.
By treating controllers as "grey boxes," the framework does not require knowledge of internal parameters (like ANN weights). Instead, it relies on these formal bounds to ensure safe operation. This modularity allows developers to compose a verified steering network with a model-driven braking controller at runtime.
Experimental Evaluation
The researchers evaluated the RI framework using the F1/10 autonomous racing car platform. They compared a baseline Multi-layer Perceptron (MLP), trained solely for wall avoidance, against an RI-enabled system in increasingly complex simulated scenarios:
- An empty track.
- A track with random pedestrians.
- Multi-car scenarios (up to 3 cars) with pedestrians.
The system's scalability was also tested using synthetic benchmarks involving up to 400,000 policy copies.
Key Results
The experimental results demonstrate significant improvements in both safety and performance:
- Safety: While the original MLP controller had a crash rate between 30.8% and 85.5% in pedestrian scenarios, the RI-enabled car achieved a 0% crash rate in nearly all tests. The only exceptions were rare cases (0.6%) where pedestrians walked directly into the vehicle.
- Efficiency: The RI Manager introduced a negligible CPU overhead of only 2.2%, making it highly practical for resource-constrained embedded systems.
- Scalability: The framework scales linearly ($O(n)$) with the number of policies, confirming its viability for complex systems with numerous operational modes.
Conclusion
Runtime Interchange moves Cyber-Physical System engineering toward a component-oriented approach. By allowing the safe composition of intelligent, verified modules, RI enables autonomous systems to handle dynamic real-world environments without sacrificing formal safety guarantees. Future work will focus on reducing the need for a-priori knowledge of all operating modes and enabling the "hot-swapping" of policies without requiring a full system re-synthesis.
Summary updated