Keeping Shielded Data-Driven Controllers Safe Under System Evolution via Model Consistency

Roland Stolz, Vitus Lüntzel, Romain Pascual, Eric Sax, Matthias AlthoffarXiv 2026

TL;DR

This paper introduces a model-driven framework to keep data-driven controllers (like RL agents) safe even as the underlying physical system evolves or degrades. By treating safety shields and black-box controllers as "first-class models" within a consistency management system, the authors can automatically detect when a system change makes a shield unsafe and trigger repairs to restore both safety and performance.

What Problem Does This Paper Address?

In the world of Cyber-Physical Systems (CPS), we often use "safety shields" to wrap around unpredictable, data-driven controllers. These shields act as a final check, overriding any command that might lead to a collision or system failure based on a mathematical model of the physical world.

The problem is system evolution. A robot’s joints might wear down, a car’s brakes might lose friction, or a motor might be upgraded to a more powerful version. These changes invalidate the assumptions the safety shield was built on. If the shield thinks a car can stop in 10 meters, but wear-and-tear has increased that to 15 meters, the "safe" shield suddenly becomes a liability. Currently, these components are often treated as isolated silos, meaning a change in the physical hardware isn't automatically reflected in the safety software.

Methods

The authors propose a framework based on the Virtual Single Underlying Model (V-SUM). This approach integrates heterogeneous models—the physical dynamics, the safety shield, and the data-driven agent—into a single logical unit.

Key components of their method include:

  • Consistency Relations (CR): They define two types of "correctness." Safety Consistency ($CR_{safe}$) ensures the shield's parameters (like braking distance) match the actual physical system. Behavioral Consistency ($CR_{behav}$) checks if the controller still meets performance goals (like reaching a destination) after the shield has been updated.
  • Consistency Preservation Rules (CPR): When a change is detected (e.g., the system mass increases), the framework applies $CPR_{safe}$ to mathematically update the shield's constraints. If this update makes the agent too conservative or ineffective, $CPR_{behav}$ triggers a repair of the controller via fine-tuning or retraining.
Figure 2: Illustration of our proposed framework for consistency-based change evaluation of shielded data-driven controllers for CPS using the V-SUM formalization of [18].

Datasets

The researchers evaluated their approach using a simulated unicycle reach-avoid task.

  • The Task: An agent must navigate a 2D environment to reach a goal while avoiding 10 randomly placed circular obstacles.
  • The "Evolution": They systematically varied three physical parameters to simulate system changes: mass ($m$), maximum acceleration ($F_a$), and maximum braking force ($F_b$).
  • The Controller: A Reinforcement Learning (RL) agent trained using Proximal Policy Optimization (PPO).

Key Insights and Ideas

  • Black Boxes as Models: You can't look inside a neural network to see if it's "consistent" with a new motor. Instead, the authors treat the agent's behavior as the model. If its performance metrics (reward, success rate) drop below a threshold, the model is considered inconsistent.
  • The Asymmetry of Repair: Updating a safety shield is a deterministic, "surgical" mathematical change. Updating a controller, however, is a stochastic process that requires retraining. The framework manages this by prioritizing safety updates first, then assessing if the performance hit justifies the cost of retraining the AI.
  • Intervention Rate as a Diagnostic: The paper uses the "intervention rate"—how often the shield has to step in—as a key metric. A sudden spike in interventions is a clear signal that the agent's learned policy no longer aligns with the physical reality of the system.
Figure 1: A data-driven controller proposes an unsafe input 𝜋(𝑥), which the safety shield transforms into the safe input ˜𝜋(𝑥). The shaded green area is the region the vehicle can occupy in the future, given the set of safe inputs U𝑠, which is computed on assumptions about the system.

Key Results

The authors tested four scenarios: (1) no updates, (2) only shield updates, (3) shield updates + fine-tuning, and (4) shield updates + full retraining.

  • Safety is Restored: Without updates, collisions occurred frequently as the system mass increased or braking power decreased. Applying the $CPR_{safe}$ rule eliminated collisions entirely across all tested parameters.
  • Performance Recovery: Updating the shield alone often made the agent more conservative (lower goal-reaching rate). Fine-tuning the agent with the new shield in the loop successfully recovered performance, especially in cases where the system became more capable (e.g., higher acceleration).
  • Sensitivity to Change: The results showed that changes in braking force ($F_b$) and mass ($m$) had the most significant impact on safety, while acceleration ($F_a$) primarily affected the agent's ability to reach the goal efficiently.
Performance metrics across different consistency states and parameter sweeps.

Limitations and Future Work

  • Simplicity of the Model: The unicycle model is a standard benchmark but relatively simple. The authors acknowledge that more complex, high-dimensional systems (like humanoid robots or full vehicle dynamics) might show more dramatic performance degradation after a shield repair.
  • Cost of Retraining: While retraining works, it is computationally expensive. The authors suggest that future work should investigate more sophisticated fine-tuning techniques, such as "layer freezing," to recover performance more efficiently.
  • Threshold Selection: Defining the exact performance thresholds for "behavioral consistency" remains a challenge and is currently task-specific.

Summary updated

Abstract

Cyber-physical systems (CPS) increasingly contain data-driven controllers, which raise safety concerns given their black-box nature. A common mitigation is to enforce system safety via a shield around the controller, which restricts the inputs based on assumptions about the physical system. However, these assumptions are usually fixed and may become invalid as the system evolves (during development or due to component degradation), possibly leading to unsafe behavior. We address this limitation in a model-driven approach that treats both the data-driven controller and safety shield as first-class models that are integrated into a virtual single underlying model (V-SUM) alongside system models. We describe system evolution as changes in the associated models, such that consistency checking yields a continuous assessment of safety guarantees. In case of inconsistencies, consistency-preservation rules automatically update the models and restore a valid safety shield. We evaluate our approach on a reach-avoid task for a unicycle system. The results show that consistency-driven evolution effectively maintains safety guarantees under system changes and provides a principled basis for evaluating and restoring performance.
BibTeX
@misc{stolz2026keeping,
  author = {Roland Stolz and Vitus Lüntzel and Romain Pascual and Eric Sax and Matthias Althoff},
  title = {{Keeping Shielded Data-Driven Controllers Safe Under System Evolution via Model Consistency}},
  year = {2026},
  eprint = {2611.24428},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.24428},
}
Figure