A Novel Learning Algorithm for Büchi Automata Based on Family of DFAs and Classification Trees

Yong Li, Yu-Fang Chen, Lijun Zhang, Depeng Liu

TL;DR

This paper introduces a high-performance algorithm for learning Büchi Automata—models that describe infinite data sequences—by replacing bulky "observation tables" with efficient classification trees. The authors achieve a quadratic improvement in worst-case storage space and release ROLL, the first comprehensive open-source library for $\omega$-regular language learning.

What Problem Does This Paper Address?

In the world of formal verification, we often need to model "liveness" properties—things that must eventually happen in a system that runs forever (like an operating system or a communication protocol). These are represented by Büchi Automata (BA), which accept infinite strings called $\omega$-words.

While learning algorithms for finite strings (like the famous $L^*$ algorithm) are well-established, learning Büchi Automata is notoriously difficult. Previous state-of-the-art methods used a formalism called a Family of DFAs (FDFA) to represent these infinite languages. However, these methods relied on "observation tables" to store query results. As the complexity of the system grows, these tables explode in size, leading to massive memory overhead and slow performance. This paper aims to make learning infinite behaviors scalable for real-world verification tasks.

Methods

The authors propose a novel learning framework that shifts from a table-based approach to a tree-based approach.

  1. Classification Trees: Instead of a grid-like table, the algorithm uses a tree structure. Internal nodes represent "experiments" (queries to a teacher), and leaves represent the states of the automaton. This structure is inherently more compact because it avoids storing redundant information for every state-experiment pair.
  2. FDFA Representation: The algorithm learns an FDFA, which consists of a "leading" DFA (handling the prefix of a word) and several "progress" DFAs (handling the repeating parts of the infinite word).
  3. Teacher Adaptation: Since most verification tools use standard Büchi Automata, the authors developed a way for their FDFA-based learner to communicate with a BA-based "teacher."
  4. Approximation Techniques: Converting an FDFA to a BA perfectly is computationally expensive. To solve this, the authors introduced under-approximation and over-approximation methods. These allow the learner to build a "close enough" BA to ask the teacher for counterexamples, which are then used to refine the model.

Datasets

The researchers evaluated their algorithm using:

  • BüchiStore: A public repository containing 295 Büchi Automata derived from various Linear Temporal Logic (LTL) specifications. These represent a wide range of real-world properties used in hardware and software verification.
  • ROLL Library: They implemented their algorithms in the Regular Omega Language Learning (ROLL) library, comparing their results against existing benchmarks like the $L^\$$ algorithm.

Key Insights and Ideas

  • The Efficiency of Trees: The "aha moment" is the realization that classification trees provide a quadratically better worst-case storage space compared to tables. In practice, this means the algorithm can handle much larger and more complex automata without hitting memory limits.
  • K-ary Trees for Complexity: While simple automata can be learned with binary trees, the authors found that "syntactic" FDFAs require $K$-ary trees (where nodes can have more than two children). This allows the algorithm to distinguish between multiple states in a single step.
  • Approximation as a Bridge: By using under-approximations, the learner can guarantee termination. If the learner finds a model that satisfies the teacher's equivalence query using an under-approximation, it has successfully learned the target language.

Key Results

  • Superior Solvability: The tree-based algorithms outperformed all others in the number of solved learning tasks. Specifically, the tree-based "Syntactic FDFA" with under-approximation was the only algorithm to solve all 295 tasks within the 30-minute timeout.
  • Slower State Growth: Experimental data showed that the number of states in the conjectured models grew much more slowly in the FDFA-based approach than in the $L^\$$ algorithm, making the learning process more stable.
  • Open Source Contribution: The release of the ROLL library provides a standardized platform for the research community to test and develop new $\omega$-regular learning algorithms.

Limitations and Future Work

  • Equivalence Query Bottleneck: Despite the efficiency gains, the authors noted that the majority of execution time is still spent answering "equivalence queries" (checking if the learned model is correct).
  • PAC Learning: To address the query bottleneck, they suggest exploring Probably Approximately Correct (PAC) learning, which uses statistical sampling instead of exact equivalence checks to speed up the process.
  • Residual NFAs: The authors propose extending this work to residual Non-deterministic Finite Automata (NFAs), which could potentially offer even more compact representations for complex infinite languages.

Summary updated

BibTeX
@inproceedings{li2017novel,
  author = {Yong Li and Yu-Fang Chen and Lijun Zhang and Depeng Liu},
  title = {{A Novel Learning Algorithm for Büchi Automata Based on Family of DFAs and Classification Trees}},
  booktitle = {TACAS},
  year = {2017},
  doi = {10.1007/978-3-662-54577-5\_12},
}
Figure