NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Runtime Interchange for Adaptive Re-use of Intelligent Cyber-Physical System Controllers

Hammond Pearce, Xin Yang, Srinivas Pinisetty, Partha S. RooparXiv 2021

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.

The RI framework architecture, showing the interaction between inputs, the RI Manager, and the controller bank.

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.

Formal VDTA policies for different operational mode groups: normal, stopping, and cautious.

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:

  1. An empty track.
  2. A track with random pedestrians.
  3. 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

Abstract

Cyber-Physical Systems (CPSs) such as those found within autonomous vehicles are increasingly adopting Artificial Neural Network (ANN)-based controllers. To ensure the safety of these controllers, there is a spate of recent activity to formally verify the ANN-based designs. There are two challenges with these approaches: (1) The verification of such systems is difficult and time consuming. (2) These verified controllers are not able to adapt to frequent requirements changes, which are typical in situations like autonomous driving. This raises the question: how can trained and verified controllers, which have gone through expensive training and verification processes, be re-used to deal with requirement changes? This paper addresses this challenge for the first time by proposing a new framework that is capable of dealing with requirement changes at runtime through a mechanism we term runtime interchange. Our approach functions via a continual exchange and selection process of multiple pre-verified controllers. It represents a key step on the way to component-oriented engineering for intelligent designs, as it preserves the behaviours of the original controllers while introducing additional functionality. To demonstrate the efficacy of our approach we utilise an existing autonomous driving case study as well as a set of smaller benchmarks. These show that introduced overheads are extremely minimal and that the approach is very scalable.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
F1/10 case studyoriginal Steering MLPCrash Rate30.8%One car and one pedestrian; averaged over 1,000 trials for the setting.
Source quote
L1111: 1 │ 30.8 %
F1/10 case studyoriginal Steering MLPCrash Rate85.5%Three cars and two pedestrians; averaged over 1,000 trials for the setting. For multi-c…
Source quote
L1127: 2 │ 85.5 %
F1/10 case study scenariosRI ManagerAverage introduced overhead2.2%Execution measured in CPU cycles using C's time.h, compared with the combined execution…
Source quote
L1240: We averaged this across all execution scenarios across all sets of 1,000 trials, and found an average introduced overhead of 2.2 %.
BibTeX
@misc{pearce2021runtime,
  author = {Hammond Pearce and Xin Yang and Srinivas Pinisetty and Partha S. Roop},
  title = {{Runtime Interchange for Adaptive Re-use of Intelligent Cyber-Physical System Controllers}},
  year = {2021},
  eprint = {2110.01974},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.01974},
}
Figure