Directed Model Checking with Distance-Preserving Abstractions

Klaus Dräger, Bernd Finkbeiner, Andreas Podelski

TL;DR

This paper introduces a "distance-preserving abstraction" technique to solve the state explosion problem in directed model checking. By incrementally composing and abstracting concurrent processes while keeping the number of abstract states under a fixed bound, the authors generate highly accurate distance estimates that dramatically speed up the search for errors in complex systems.

What Problem Does This Paper Address?

Model checking is a powerful tool for verifying the safety of concurrent systems (like distributed protocols or embedded software). However, it faces the "state explosion problem": as you add more components, the number of possible system states grows exponentially, quickly becoming unmanageable.

Directed model checking tries to solve this by treating the state space like a map and using a heuristic—an estimate of the distance to the nearest "error state"—to guide the search. If the heuristic is good, the model checker finds the bug quickly. The catch? For concurrent systems, calculating a good distance estimate is often just as hard as the original verification problem. Existing methods often ignore how processes synchronize, leading to poor estimates that don't actually help the search.

Methods

The authors propose a "compose-and-abstract" framework consisting of three main components:

  1. The AbstractSystem Loop: Instead of building the entire system at once, the algorithm picks two processes, composes them, and then immediately simplifies (abstracts) the result. This keeps the intermediate state spaces small.
  2. Distance-Preserving AbstractProcess: This is the core innovation. When simplifying a process, the algorithm groups states together if they have the same distance to an error. It uses a refinement loop to ensure that the abstraction doesn't exceed a user-defined bound ($N$) on the number of states. Crucially, it tries to preserve the "synchronization behavior"—how a process interacts with others—so the distance estimates remain accurate even after further compositions.
  3. Ranking-Based Composition Strategy: The order in which you merge processes matters. The authors developed a ranking system that prioritizes merging processes whose shared actions occur "close" to error states. This builds a highly accurate "map" of the danger zone early on.

Datasets

The authors evaluated their approach using a diverse set of benchmarks implemented in an experimental version of the UPPAAL model checker:

  • Arbiter Tree: A mutual exclusion protocol for up to 128 client processes.
  • Towers of Hanoi: The classic puzzle, modeled as a concurrent system with up to 8 disks.
  • Randomly Generated Systems: A suite of 15 different systems with varying complexity to test the robustness of the heuristic.
  • Industrial Case Studies: Real-world examples including a real-time mutual exclusion protocol and a tramway controller from the UniForM project.

Key Insights and Ideas

  • Distance over Reachability: Traditional abstractions focus on whether a state is reachable or not (Boolean). This paper argues that for directed search, the numerical distance is what matters. An abstraction that preserves distance provides a much finer-grained "compass" for the search algorithm.
  • The Power of $N$: By introducing a fixed bound ($N$) on the number of abstract states, the user can tune the tradeoff between the time spent pre-calculating the heuristic and the time saved during the actual model checking.
  • Synchronization is Key: Most simple heuristics fail because they don't account for the fact that Process A might be stuck waiting for Process B. By attempting to preserve synchronization behavior during abstraction, this method captures these dependencies.

Key Results

The experimental results show that this method often outperforms both randomized searches and existing state-of-the-art heuristics (like the FSM estimate):

  • State Reduction: In many cases, the number of states explored was reduced by orders of magnitude. For example, in the Arbiter Tree (A4), the FSM heuristic explored 130,000 states, while the new method required only 187.
  • Solving the "Unsolvable": The method successfully found errors in benchmarks that were previously beyond the reach of the standard UPPAAL model checker.
  • Efficiency: Despite the overhead of calculating the abstraction, the total runtime was significantly lower because the guided search was so much more efficient.

Limitations and Future Work

  • Data Handling: The current implementation focuses on the control flow of processes. It treats complex data types like integers and clocks by either ignoring them or using a "flat" representation, which can lead to inaccuracies in data-heavy systems.
  • Parameter Tuning: While the bound $N$ is powerful, the paper notes that more research is needed to determine the "sweet spot" for $N$ automatically.
  • Hybrid Heuristics: The authors suggest that combining their distance-preserving abstractions with structural heuristics (like those used in the Java PathFinder) could provide even better results for software verification.

Summary updated

BibTeX
@inproceedings{drager2006directed,
  author = {Klaus Dräger and Bernd Finkbeiner and Andreas Podelski},
  title = {{Directed Model Checking with Distance-Preserving Abstractions}},
  booktitle = {SPIN},
  year = {2006},
  doi = {10.1007/11691617\_2},
}
Figure