Compositional Algorithms for Succinct Safety Games

Romain Brenguier, Guillermo A. Pérez, Jean-François Raskin, Ocan Sankur · OpenReview

TL;DR

This paper tackles the challenge of synthesizing complex reactive systems by proposing a novel approach to decompose monolithic safety specifications (given in the AIG format) into smaller, manageable sub-specifications. They introduce algorithms that solve these sub-problems compositionally and then aggregate the results, demonstrating significant performance improvements and the ability to solve problems intractable for traditional monolithic methods.

What Problem Does This Paper Address?

The synthesis of reactive systems, where a controller must ensure a system's safety despite unpredictable environmental inputs, is a computationally intensive problem. Traditionally, these problems are represented monolithically, meaning the entire system and its specification are treated as a single, large entity. This approach struggles with scalability as the complexity of the system grows. The AIG (And-Inverter Graph) format, commonly used in synthesis competitions, is inherently monolithic. However, many real-world systems and specifications have an underlying structure that is lost during this monolithic representation. This paper addresses the gap by aiming to recover and leverage this lost structure to make the synthesis problem more tractable and efficient.

Methods

The core of the paper lies in its compositional approach. The authors first develop a static analysis technique to decompose the monolithic error function of an AIG into a disjunction of smaller error functions, each corresponding to a sub-circuit. This decomposition is crucial because it allows them to break down the global synthesis problem into smaller, more manageable sub-games.

They then propose three distinct compositional algorithms:

  1. Global Aggregation (Algorithm 3): This algorithm solves each sub-game independently and then aggregates their winning valuations by taking their intersection. The global game is then solved with a modified safety objective based on this intersection. This approach leverages Lemma 1, which allows for optimizations by reducing the scope of the transition relations.
  2. Incremental Aggregation (Algorithm 4): This algorithm iteratively merges pairs of sub-game solutions. At each step, it selects two sub-games based on a heuristic score (considering BDD size and shared latches) and solves their combined problem. This process continues until a single solution for the entire game is obtained.
  3. Back-and-forth (Algorithm 5): This approach interleaves the analysis of the global game with the analysis of sub-games. It iteratively refines the set of losing states for the global game and updates sub-game strategies accordingly, aiming for stabilization. This method is inspired by previous work on LTL synthesis.

All algorithms rely on a black-box procedure solve_vals (and solve_states) which, in practice, uses fixpoint computations (like upre or cpre) on symbolic representations (BDDs) of the games.

Datasets

The paper evaluates their algorithms on several benchmark sets:

  • Benchmarks from the 2014 reactive synthesis competition.
  • Benchmarks generated from higher-level descriptions, such as those for the AMBA arbiter and generalized buffer systems.
  • Newly generated benchmarks from LTL specifications translated to AIG.
  • A set of 75 Boolean matrix multiplication benchmarks.

They highlight that many of these benchmarks are decomposable by their static analysis into an average of 29 sub-games (median 21).

Key Insights and Ideas

  • Decomposition is Key: The fundamental insight is that monolithic specifications, while standard, hide exploitable structure. Recovering this structure through decomposition is the primary enabler for compositional synthesis.
  • Sub-game Solvability: Smaller sub-games, often depending on fewer variables, are significantly easier and faster to solve than the monolithic global game.
  • Aggregation Strategies Matter: The paper demonstrates that different strategies for combining sub-game solutions (global intersection, incremental merging, back-and-forth refinement) lead to varying performance characteristics, suggesting a portfolio approach might be most effective.
  • Leveraging Lemma 1: The ability to optimize transition relations by restricting them to the cone of influence of the winning valuations of sub-games is crucial for efficiency.

Key Results

The authors report significant performance improvements and increased solvability compared to a standard monolithic backward fixpoint algorithm.

  • Boolean Matrix Multiplication: Algorithm 3 solved all 75 instances, significantly faster than the classical algorithm which solved only 36.
  • Washing System: Algorithm 3 solved 152 out of 256 benchmarks, while the classical algorithm solved 132.
  • Overall Benchmark Set (674 benchmarks): The classical algorithm solved 572, while the compositional algorithms collectively solved an additional 20 benchmarks that were previously unsolvable.
  • AMBA Arbiter Benchmarks: Algorithm 1 (comp.1) solved 84, Algorithm 2 (comp.2) solved 76, and Algorithm 3 (comp.3) solved 93, outperforming the classical algorithm which solved 106.

Limitations and Future Work

  • Decomposability Dependency: The effectiveness of the compositional approach hinges on the decomposability of the specification. Not all AIGs can be decomposed by their static analysis.
  • Heuristic Dependence: Algorithm 4's performance relies on the chosen heuristics for merging sub-games.
  • Complementary Algorithms: The paper notes that the three compositional algorithms have different strengths and can be complementary. This suggests that applying them in parallel (a portfolio approach) is a promising direction.
  • Future Work: The authors suggest that a portfolio approach, where all algorithms are run in parallel, can further improve performance and solve even more problems. They also mention that their approach can be extended to handle more complex specifications beyond safety games.

Summary updated

BibTeX
@inproceedings{brenguier2016compositional,
  author = {Romain Brenguier and Guillermo A. Pérez and Jean-François Raskin and Ocan Sankur},
  title = {{Compositional Algorithms for Succinct Safety Games}},
  booktitle = {HAL},
  year = {2016},
  doi = {10.48550/arxiv.1602.01174},
}
Figure