Learning-Based Compositional Parameter Synthesis for Event-Recording Automata

Étienne André, Shang-Wei LinFORTE 2017 · DOI

TL;DR

This paper introduces a novel learning-based approach for synthesizing timing parameters in distributed real-time systems, specifically for a new class of automata called Parametric Event-Recording Automata (PERAs). Their method significantly improves upon existing techniques by offering a sound and often more efficient way to verify complex timing constraints, even when exact synthesis is undecidable.

What Problem Does This Paper Address?

Verifying distributed systems with timing constraints is notoriously difficult, especially when some timing constants are unknown or uncertain. These unknown constants are treated as parameters, and the goal is to find parameter values for which certain system properties (like reachability of undesirable states) hold or don't hold. Traditional methods for dealing with these "parametric timed automata" (PTAs) are often undecidable or computationally intractable. The paper tackles the challenge of efficiently synthesizing these parameter valuations, particularly for systems composed of multiple interacting components.

Methods

The core of the paper's contribution lies in a learning-based compositional approach. They introduce Parametric Event-Recording Automata (PERAs), a subclass of PTAs that offers some decidability advantages in the non-parametric setting. The key idea is to decompose the problem:

  • Partitioning: The system is split into two groups of components: those with parameters (group A) and those without (group B).
  • Learning Abstraction: For a given set of parameter valuations, they use a learning algorithm (TL) to find an abstraction* of the non-parametric components (group B). This abstraction is a simplified model of B that captures its relevant behavior for the property being checked.
  • Compositional Synthesis: The learning algorithm interacts with a "teacher" (a model checker). If an abstraction is found, they use a technique called Parametric Reachability Preservation (PRP) on the combined system (A || abstract B) to derive a "good" parameter constraint (valuations for which the property holds).
  • Counter-example Guided Synthesis: If learning fails to find an abstraction, it means the property likely doesn't hold for some parameter valuations. The learning algorithm provides a counter-example trace, which is then replayed using Replay Trace to derive a "bad" parameter constraint (valuations for which the property does not hold).
  • Iteration: This process is iterated over a bounded parameter domain, progressively refining the "good" and "bad" parameter constraints until all integer points in the domain are covered.

Datasets

Not discussed in the paper. The paper focuses on evaluating their approach using various case studies, including manufacturing systems (FMS-1, FMS-2), a production system (AIP), and mutual exclusion protocols (Fischer). These are described as "benchmarks" rather than datasets.

Key Insights and Ideas

  • PERAs as a Sweet Spot: While exact synthesis for general PTAs is undecidable, PERAs, despite also having undecidable reachability emptiness problems, offer a more tractable setting for their compositional approach.
  • Learning for Efficiency: The learning-based abstraction is crucial for making the compositional synthesis efficient. Instead of exploring the entire (potentially infinite) parameter space, they learn simplified models of components.
  • Compositionality Pays Off: Breaking down the problem into smaller, manageable parts (components) and using learning to bridge the gap between parametric and non-parametric parts significantly outperforms monolithic approaches.
  • Soundness is Key: The method guarantees that derived "good" constraints indeed lead to safe systems, and "bad" constraints lead to unsafe ones. While not always complete (some parameter valuations might be missed), it provides exact results for many cases.
  • Counter-examples are Powerful: When learning fails, the counter-examples provided are highly effective in quickly identifying "bad" parameter valuations.

Key Results

  • The proposed learning-based compositional synthesis algorithm (CompSynth) is sound, meaning it correctly identifies parameter valuations for which properties hold or do not hold.
  • CompSynth outperforms existing monolithic algorithms like EFsynth and PRPC on several benchmarks, often by a significant margin, especially when EFsynth times out.
  • For most benchmarks, CompSynth requires at most one abstraction and one counter-example to synthesize the parameter constraints, highlighting the efficiency of the learning process.
  • The algorithm successfully synthesizes dense (continuous) parameter constraints, covering not just integer points but the entire parameter domain.
  • The implementation of their toolkit (using IMITATOR and CV) demonstrates promising results on various case studies.

Limitations and Future Work

  • PERA Restriction: The current framework primarily works with PERAs, although they show how general PTAs can be transformed into equivalent PERAs.
  • Single Component A: The approach assumes that all components with parameters are grouped into a single component A. Lifting this assumption is a future direction.
  • Fischer Benchmark Inefficiency: The algorithm is inefficient on the Fischer benchmark due to strong synchronization and non-terminating abstraction computations. Improving learning for such models is a priority.
  • Completeness: While sound, the synthesis is not always complete; some parameter valuations might be missed.
  • Future Work:
    • Extending the approach to handle PTAs without transformation.
  • Allowing multiple parametric components.
  • Further theoretical study of PERAs' expressiveness and decidability.
  • Addressing properties beyond reachability.
  • Optimizing the learning phase, especially for synchronized models.
  • Improving scalability for very large parameter domains.

Summary updated

BibTeX
@inproceedings{andre2017learning,
  author = {Étienne André and Shang-Wei Lin},
  title = {{Learning-Based Compositional Parameter Synthesis for Event-Recording Automata}},
  booktitle = {FORTE},
  year = {2017},
  doi = {10.1007/978-3-319-60225-7\_2},
}
Figure