Model Repair Revamped - - On the Automated Synthesis of Markov Chains -

Milan Ceska, Christian Dehnert, Nils Jansen, Sebastian Junges, Joost-Pieter Katoen · OpenReview

Abstract: This paper introduces CEGAR and CEGIS, two novel frameworks for the automated synthesis and repair of Markov Chains. By enabling topological changes—adding or removing transitions—rather than mere probability tuning, these methods facilitate efficient program sketching and controller synthesis in complex probabilistic systems.

Introduction

In formal verification, "model repair" traditionally involves adjusting the transition probabilities of a Markov Chain to satisfy a specification. However, real-world engineering often requires modifying the model's topology. Deciding whether a transition should exist at all transforms a polynomial-time reachability problem into an NP-complete search over a "family" of possible designs. This work addresses the challenge of efficiently navigating these massive design spaces.

Synthesis Methodologies

The authors propose two complementary frameworks for automated synthesis: CEGAR and CEGIS.

Overview of the CEGAR and CEGIS synthesis loops.

Counterexample-Guided Abstraction Refinement (CEGAR)

CEGAR models the entire family of designs as a single, large Markov Decision Process (MDP). To maintain tractability, it operates on a quotient MDP abstraction. When the abstraction yields inconclusive results, the framework identifies "inconsistent policies"—strategies that conflict across different model realizations—to guide the refinement of the abstraction.

Counterexample-Guided Inductive Synthesis (CEGIS)

CEGIS utilizes a "guess and check" cycle. A synthesizer selects a candidate model for verification. If the model fails, the verifier identifies a critical subsystem—a minimal fragment responsible for the failure. An SMT solver then uses this fragment to prune the search space, ruling out all potential models that contain the same flawed structure.

Empirical Evaluation

The frameworks were tested on three benchmarks:

  • Program Sketching: A Dynamic Power Manager with over 300,000 realizations.
  • Software Product Lines: A Body Sensor Network with 1,024 configurations.
  • Controller Synthesis: A Maze POMDP problem with over 1,000,000 possible strategies.
Visualizing different model realizations ($D_{r_2}$ and $D_{r_4}$) within a design family.

The proposed methods achieved significant speedups. For the Power Manager, unsatisfiability was proven in 20 minutes, whereas naive enumeration would have required over 20 hours. In the Maze problem, the tools identified near-optimal strategies in seconds.

Discussion and Future Work

The primary insight is that "topology repair" bridges the gap between simple tuning and full program synthesis. CEGIS is particularly powerful for "highly unsatisfiable" problems due to its ability to prune large swaths of the search space with a single counterexample. Conversely, CEGAR is effective when the design space allows for succinct abstractions.

Future research will focus on extending these techniques to infinite-state probabilistic programs and integrating continuous parameter synthesis directly into the structural synthesis loop.

Summary updated

BibTeX
@misc{ceska2019model,
  author = {Milan Ceska and Christian Dehnert and Nils Jansen and Sebastian Junges and Joost-Pieter Katoen},
  title = {{Model Repair Revamped - - On the Automated Synthesis of Markov Chains -}},
  year = {2019},
  eprint = {2105.13411},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.13411},
}
Figure