Abstract Model Repair

George Chatzieleftheriou, Borzoo Bonakdarpour, Panagiotis Katsaros, Scott A. Smolka

In formal verification, identifying that a system is "broken" is only the first step. The real challenge lies in fixing it. This paper, published in Logical Methods in Computer Science, introduces Abstract Model Repair (AMR), a framework designed to automatically correct system models that fail to meet specific safety or liveness requirements. By leveraging abstraction refinement, the authors provide a scalable solution to the "state explosion" problem that has long hindered automated model repair.

The Challenge: State Explosion in Model Repair

Model checking verifies whether a system model $M$ satisfies a requirement formula $\phi$. When verification fails, model repair seeks to find a modified model $M'$ that satisfies $\phi$ while minimizing the structural changes to the original system.

However, real-world systems often possess state spaces so vast that calculating a minimal fix becomes computationally prohibitive. Traditional repair techniques typically struggle with anything beyond small, academic examples because they attempt to operate directly on the "concrete" model, where every possible state and transition must be considered.

The AMR Framework: Abstraction and Refinement

To bypass the state explosion wall, the authors propose working on a simplified, "abstract" version of the system. Their framework relies on three core components:

  1. Kripke Modal Transition Systems (KMTS): Unlike standard Kripke structures, a KMTS abstraction distinguishes between must-transitions (behaviors the system is guaranteed to exhibit) and may-transitions (behaviors the system might exhibit).
  2. 3-Valued Logic: Requirements are evaluated using three possible truth values: True, False, or Undefined. An "Undefined" result occurs when the abstraction lacks sufficient detail to determine if a property holds.
  3. The Refinement Loop: The process begins with a coarse abstraction. If the property is True, the concrete system is verified. If it is Undefined, the abstraction is refined—splitting abstract states into more detailed ones. If it is False, the AbstractRepair algorithm is triggered to find a fix at the abstract level.
A concrete model $M$ and its refined abstraction $\alpha_{Refined}(M)$, illustrating the use of must and may transitions to manage complexity.

By prioritizing repair operations (such as adding a "must" transition or modifying a state label) based on their "cost" in the concrete world, the AMR algorithm ensures that the final fix remains as minimal as possible.

Case Studies: ADO and AFS1

The framework was evaluated using two benchmark systems:

  • Automatic Door Opener (ADO) System: A model that manages door access based on security codes and tracks error states.
  • Andrew File System 1 (AFS1) Protocol: A classic client-server cache coherence protocol.
The concrete Kripke structure for the Automatic Door Opener (ADO) system, used as a benchmark for the AMR framework.

For the AFS1 protocol, the authors tested several extensions with increasing state space sizes to measure how well the framework scales compared to traditional "concrete" repair methods.

Key Results and Performance

The quantitative evaluation revealed significant performance gains:

  • Massive Speedups: On the AFS1 protocol, AMR was 124x to 836x faster than traditional concrete repair.
  • Constant-Time Scaling: As the system complexity grew, the time required for concrete repair increased exponentially (e.g., from 17s to 117s for a small increase in states). In contrast, the AMR repair time remained nearly constant at approximately 0.14 seconds.
  • Optimality: The structural distance of repairs generated by AMR was consistently lower than those produced by previous non-abstract algorithms, indicating higher quality, more minimal fixes.

The authors also proved the soundness of the algorithm (guaranteeing that a reported fix is valid) and identified a specific logic fragment ($mr$-CTL) where the algorithm is complete (guaranteeing a fix will be found if one exists).

Conclusion and Future Work

Abstract Model Repair represents a significant step forward in making automated system correction practical for complex software and hardware designs. While currently focused on Kripke Structures and $mr$-CTL, future research aims to extend this framework to probabilistic models and hybrid systems. Additionally, the authors plan to incorporate "uncontrollable transitions"—such as hardware failures—that cannot be removed during the repair process, further aligning the framework with real-world engineering constraints.

Summary updated

BibTeX
@inproceedings{chatzieleftheriou2015abstract,
  author = {George Chatzieleftheriou and Borzoo Bonakdarpour and Panagiotis Katsaros and Scott A. Smolka},
  title = {{Abstract Model Repair}},
  booktitle = {Log. Methods Comput. Sci},
  year = {2015},
  url = {https://openreview.net/forum?id=ivWy6H7ohA},
}
Figure