Abstract
Automaton models are often seen as interpretable models. Interpretability itself is not well defined: it remains unclear what interpretability means without first explicitly specifying objectives or desired attributes. In this paper, we identify the key properties used to interpret automata and propose a modification of a state-merging approach to learn variants of finite state automata. We apply the approach to problems beyond typical grammar inference tasks. Additionally, we cover several use-cases for prediction, classification, and clustering on sequential data in both supervised and unsupervised scenarios to show how the identified key properties are applicable in a wide range of contexts.
Introduction
Machine learning models are increasingly deployed in sensitive domains such as medicine and cybersecurity, where the "right to explanation" is becoming a regulatory necessity. While many modern models are "black boxes," Finite Automata (FA) offer a transparent, "white-box" alternative for sequential data. This paper addresses two primary gaps: defining what makes a model understandable to a human and expanding the utility of traditional FA learning—typically confined to simple string matching—to broader data science tasks like regression and clustering where sequences are enriched with real-valued data.
Methodology: Flexible State-Merging
The core approach relies on state-merging algorithms. The process typically begins by constructing an Augmented Prefix Tree Acceptor (APTA), a tree structure that represents every sequence in the training data.
Following tree construction, the algorithm iteratively merges pairs of states that exhibit "similar futures." This generalization transforms the tree into a graph with cycles. The authors introduce a "Flexible State-Merging" framework that allows for application-specific similarity measures. For instance, in regression tasks, states can be merged based on minimizing the Mean Squared Error (MSE) of the values associated with those states. This decoupling of symbolic structure from the objective function significantly enhances the versatility of automata.
Case Studies
The framework's efficacy is demonstrated across several diverse domains:
- Software Systems: Analyzing logs from a printer controller to identify deadlocks (states where the system gets stuck).
- Biological Systems: Modeling the yeast cell cycle using gene expression sequences.
- Driver Behavior: Distinguishing driving styles based on car-following distances and relative speeds.
- Wind Speed Prediction: Building auto-regressive-style automata for short-term forecasting.
The Four Pillars of Interpretability
The authors identify four key properties that render automata uniquely interpretable:
- Graphical Representation: They can be visualized as directed graphs, which humans find intuitive for mapping out "if-this-then-that" logic.
- Transparent Computation: A single input can be traced through the states manually, with no hidden weights or high-dimensional tensors.
- Generative Nature: One can "sample" from an automaton to see what kind of data it considers valid, helping to validate learned patterns.
- Rich Theory: Access to decades of formal methods, such as model checking, to prove system properties.
Results and Discussion
The results are primarily qualitative, emphasizing the insights derived from the models. In software debugging, visual inspection of learned automata revealed previously unknown bugs and deadlocks. In the driver behavior study, the model successfully partitioned the state space into distinct "control loops" (e.g., short-distance vs. long-distance following), making latent behavioral states visible.
For predictive tasks like wind speed forecasting, the learned models performed similarly to decision trees but better handled cyclic patterns through loops. Probabilistic DFAs were found to be nearly as expressive as Hidden Markov Models (HMMs) while remaining significantly easier to inspect and interpret.
Conclusion
While automata are highly expressive, they face challenges with "state-space explosion"—becoming too large to visualize—in highly complex datasets. Future work aims to bridge the gap between grammar inference research and practical application, refine the integration of symbolic and numeric data, and apply regression automata to more complex time-series forecasting tasks.
Summary updated