Abstract
Sequence classification is a fundamental task in domains requiring high-stakes decision-making, such as healthcare and cybersecurity. While deep learning models like LSTMs achieve state-of-the-art accuracy, their "black-box" nature limits their utility in safety-critical applications. We introduce DISC (Discrete Optimization for Interpretable Sequence Classification), a method that learns sequence classifiers in the form of human-readable Deterministic Finite Automata (DFAs). DISC matches the performance of neural networks while providing formal explanations and the ability for human intervention.
Introduction
In fields like sepsis diagnosis or intrusion detection, two factors are paramount: earliness (detecting a state before a critical threshold) and interpretability (understanding the logic behind a classification). Traditional symbolic methods like DFAs are transparent but often struggle with the noise inherent in real-world data. Conversely, Recurrent Neural Networks (RNNs) are robust but opaque. DISC bridges this gap by utilizing discrete optimization to learn DFA-based models that are both robust and auditable.
Methodology: The DISC Approach
DISC employs a three-stage pipeline to derive interpretable classifiers:
- One-vs-Rest Learning: The system learns a separate binary DFA for each possible class label.
- Mixed Integer Linear Programming (MILP): Rather than gradient descent, DISC uses MILP to search the space of possible DFA structures. To ensure the models remain simple and generalizable, the authors implement regularization techniques such as state limits, transition penalties, and the use of absorbing states to encourage early, stable decisions.
- Bayesian Inference: Binary outputs from multiple DFAs are combined using an approximate Bayesian method to produce a posterior probability distribution over all classes.
Key Insights and Interpretability
Because the resulting models are DFAs, they offer unique advantages over neural networks:
- Formal Explanations: Learned classifiers can be automatically translated into Regular Expressions, Linear Temporal Logic (LTL), or Natural Language.
- Counterfactual Reasoning: The DFA structure allows for the calculation of "edit distance"—identifying the specific change in an input sequence that would have altered the classification.
- Human-in-the-Loop: Domain experts can manually inspect and modify the DFA states or transitions to incorporate safety constraints or prior knowledge.
Experimental Results
The authors evaluated DISC across several diverse datasets, including narrative games (Crystal Island), virtual home tasks (ALFRED), and real-world sensor data (MIT-AR).
Key findings include:
- Competitive Accuracy: DISC achieved performance comparable to LSTMs. On the ALFRED dataset, both models reached 99% accuracy.
- Robustness to Noise: Unlike previous automata learners (e.g., DFA-FT), DISC’s regularization allowed it to maintain high performance on noisy datasets like MIT-AR.
- Superiority over Baselines: DISC consistently outperformed traditional models like HMMs and n-grams, which often fail to capture the long-term dependencies required for complex sequence classification.
Conclusion and Future Work
DISC demonstrates that discrete optimization can produce sequence classifiers that are as accurate as neural networks while remaining fully interpretable. Future research will focus on scaling MILP solvers for larger datasets and extending the framework to handle continuous, real-valued input data.
Summary updated