Abstract
This paper presents a high-performance framework for learning complex system behaviors by decomposing them into an intersection of smaller, simpler Deterministic Finite Automata (DFAs). By replacing traditional Augmented Prefix Tree Acceptors (APTAs) with compact 3-valued DFAs (3DFAs) and introducing a "states-optimal" search strategy, the authors achieve significant speedups and improved scalability over existing state-of-the-art methods.
Introduction: The Challenge of Monolithic Learning
In passive automata learning, the objective is to automatically build a machine—a DFA—that accepts a set of positive strings $S^+$ and rejects a set of negative strings $S^-$. For complex systems, a single "monolithic" DFA can become excessively large and unreadable, resembling "spaghetti code" that is difficult to debug or verify.
DFA decomposition offers a solution by finding several small machines whose intersection represents the target system. This modularity enhances human understanding. However, finding these sub-machines is computationally intensive. Existing methods typically rely on an Augmented Prefix Tree Acceptor (APTA) to represent the input data for a SAT solver. As shown in Figure 1(a), APTAs are highly redundant, where every prefix of every example becomes a unique state, leading to a "variable explosion" that hinders scalability as the number of examples grows.
Methodology: From APTA to 3DFA
To overcome the scalability bottleneck, the authors propose two primary innovations:
1. The 3DFA Representation
Instead of the bloated APTA tree, the framework constructs a 3-valued DFA (3DFA). A 3DFA tracks three types of states: Accept, Reject, and "Don't-care." By merging equivalent "Accept" and "Don't-care" states while maintaining unique "Reject" states, the base structure is significantly reduced. This reduction directly translates to fewer Boolean variables for the SAT solver.
2. Refined SAT Encoding and States-Optimal Search
Transitioning from a tree (APTA) to a graph (3DFA) requires new logic constraints. The authors developed a constraint ($O1'$) to ensure consistent decomposition even when multiple paths lead to the same 3DFA state. Furthermore, they introduced a "states-optimal" search objective, seeking the minimal total number of states across all sub-DFAs. Shannon Entropy is used as a tie-breaker to favor balanced decompositions (e.g., two 5-state DFAs over a 2-state and 8-state pair), which typically generalize better to unseen data.
Experimental Evaluation
The approach was evaluated on 1,550 experiments involving partially-ordered tasks, common in robotics and protocol verification. Alphabet sizes ranged from $|\Sigma| = 2$ to $10$. The new tool, Pareto3DFA, was compared against the previous state-of-the-art, ParetoAPTA.
Key Results
- Performance: Pareto3DFA demonstrated speedups of 1.4x to 80.3x for benchmarks requiring at least 5 seconds to solve.
- Scalability: While ParetoAPTA often timed out or ran out of memory for decompositions involving more than 3 DFAs, Pareto3DFA successfully handled up to 6 DFAs with ease.
- Robustness: The states-optimal algorithm remained effective for alphabet sizes up to 10, whereas previous methods struggled beyond an alphabet size of 4.
Discussion and Key Insights
The primary bottleneck in automata learning is often the redundant representation of input data rather than the decomposition logic itself. By preserving unique "Reject" states in the 3DFA, the solver maintains the necessary information to distinguish incorrect models while benefiting from the reduced state space. Additionally, the use of entropy as a heuristic confirms that more "balanced" modular distributions often align better with the underlying system logic.
Limitations and Future Work
Current methods still require iterating through potential state allocations among sub-DFAs. Future research aims to develop "allocation-free" encodings where the solver automatically determines the optimal distribution of a fixed total number of states. Additionally, applying these techniques to real-world software traces and network protocols will further validate the practical utility of modular DFA decomposition.
Summary updated