TL;DR
This paper introduces the Repair with Preservation (RwP) problem, addressing the critical flaw in current neural network repair techniques: fixing a controller for one scenario often breaks it for another. The authors propose ISAR (Incremental Simulated Annealing Repair), a framework that combines stochastic optimization with formal verification to incrementally expand a controller's success regions while strictly safeguarding previously verified behaviors.
What Problem Does This Paper Address?
Learning-enabled controllers (LECs), such as deep neural networks, are increasingly used in safety-critical cyber-physical systems (CPS) like autonomous underwater vehicles or healthcare robots. However, these controllers can fail in specific "edge case" initial states.
The standard approach is to "repair" the network by fine-tuning its parameters. The catch? Initial states often compete for the network's limited capacity. Modifying parameters to fix a failure in the "kitchen" might inadvertently cause the robot to crash when starting from the "living room." Existing repair methods lack guarantees; they might fix the immediate bug but introduce new, unmapped risks. The authors argue that a repair isn't truly successful if it sacrifices existing functionality.
Methods
The authors tackle this via the ISAR algorithm, which rests on three main pillars:
- State Space Partitioning & Formal Verification: The initial state space is divided into discrete regions. ISAR uses Verisig, a formal verification tool, to identify which regions are guaranteed to succeed. This provides a "ground truth" for what must be protected.
- Barriered Energy Function: During optimization, ISAR doesn't just aim to fix failures. It uses a custom objective function featuring a log-barrier. This mathematical "fence" allows the optimizer to improve performance in failed regions but imposes a massive penalty if the controller's performance in protected regions even approaches the failure threshold.
- Safeguarded Simulated Annealing: Unlike standard gradient descent, which can get stuck in local optima, ISAR uses simulated annealing—a stochastic search method. Crucially, it is "safeguarded": any proposed parameter change that causes a previously successful region to fail is immediately rejected, regardless of how much it improves other areas.
The process is incremental: ISAR picks a failed region, repairs it while protecting the "safe" ones, verifies the new result, and adds the newly repaired region to the protected set before moving to the next failure.
Datasets
The authors evaluated ISAR on two classic benchmarks for control systems:
- Unmanned Underwater Vehicle (UUV): A 4D state-space challenge where a sub must stay within a specific distance range (10m to 50m) from a pipeline it is scanning (see Figure 1).
- OpenAI Gym Mountain Car (MC): A 2D control problem where an underpowered car must learn to rock back and forth to gain enough momentum to reach a hilltop.

Key Insights and Ideas
- The "Safety First" Constraint: The core philosophy is that a partial repair with preservation is better than a "full" repair that introduces unknown regressions.
- Handling Incompleteness: Formal verifiers are often "sound but incomplete"—they might not be able to prove a region is safe even if it is. ISAR handles this by using sampling to estimate performance in regions the verifier can't yet confirm, while relying on the verifier for the final "stamp of approval."
- Stochasticity over Gradients: The authors found that standard gradient ascent often failed to find a repair that didn't break existing states. The random "jumps" of simulated annealing, combined with the hard rejection of unsafe moves, proved much more effective at navigating the complex parameter landscape of neural networks.
Key Results
The experiments demonstrated that ISAR significantly outperforms baseline repair methods in both safety and effectiveness.
- Zero Regressions: In both the UUV and Mountain Car studies, ISAR broke 0% of previously verified regions. In contrast, non-safeguarded simulated annealing broke 6.4% of verified regions in the UUV task and 7.9% in the Mountain Car task.
- Effective Repair: ISAR successfully repaired 81.4% of the failed state space for the UUV and 23.5% for the Mountain Car.
- Higher Robustness: Beyond just passing or failing, ISAR-repaired controllers achieved higher average Signal Temporal Logic (STL) robustness scores, meaning the trajectories they produced were "safer" by a wider margin.
As shown in the UUV results table (Figure 3) and the visualization (Figure 2), ISAR (bottom row) successfully expanded the green "safe" regions without turning any existing green areas red.
Limitations and Future Work
- Computational Overhead: Formal verification is expensive. While ISAR parallelizes verification across CPU cores, the time required scales with the complexity of the system and the length of the time horizon (e.g., the Mountain Car verification took significantly longer than the UUV).
- Scalability of Partitioning: As the dimensionality of the state space grows, simple rectangular partitioning may suffer from the "curse of dimensionality."
- Catastrophic Forgetting: The authors noted a strong parallel between RwP and preventing catastrophic forgetting in continual learning. A promising future direction is exploring whether these two fields can share techniques, perhaps casting the repair problem as a form of implicit domain adaptation.
Summary updated