Introduction
Automata learning is a cornerstone of formal methods and artificial intelligence, enabling the extraction of interpretable models from black-box systems. Angluin’s $L^*$ algorithm is the standard for learning Deterministic Finite Automata (DFAs) through membership and equivalence queries. However, $L^*$ is fundamentally restricted to finite alphabets. In many real-world applications—such as monitoring sensor data or processing Unicode—the alphabet is effectively infinite and dense. This paper presents a novel extension of $L^*$ designed to learn Symbolic Finite Automata (SFAs) over rational numbers ($\mathbb{Q}$) without requiring the restrictive assumption of lexicographically minimal counterexamples.
Symbolic Finite Automata over Infinite Alphabets
Symbolic Finite Automata (SFAs) address the infinite alphabet problem by replacing discrete transitions with logical predicates. Instead of a transition for every possible character, an SFA uses predicates (e.g., $65 \le x \le 90$) to define sets of accepted values.
While SFAs are powerful, learning them actively is challenging. Previous approaches often relied on a "Teacher" providing the absolute smallest counterexample to a hypothesis, an assumption that is often impractical in continuous or dense domains.
Methodology: Leveraging the Stern-Brocot Tree
The core contribution of this work is an efficient method for learning finite piecewise functions over rational numbers. Because $\mathbb{Q}$ is dense, identifying the exact boundaries where a classification changes is non-trivial.
The authors utilize the Stern-Brocot tree, an infinite binary search tree containing all irreducible positive rational numbers. By mapping the search for interval boundaries to paths within this tree, the problem is transformed from a continuous search into a structured discrete search.
The "Break Link" Strategy
The algorithm identifies "break links"—edges in the Stern-Brocot tree where the classification of the parent node differs from that of the child node. When a counterexample is received, the algorithm performs a combination of exponential and binary search down the tree's branches. By querying the Teacher at specific nodes, it pinpoints the exact break links that define the boundaries of the piecewise function. These learned functions are then integrated as predicates into the $L^*$ framework to construct the full SFA.
Theoretical Results
The proposed algorithm achieves significant theoretical milestones:
- Optimality in Piecewise Learning: The complexity of learning a piecewise function is $O(\text{size}(\gamma))$, where $\text{size}(\gamma)$ is the bit-size of its canonical representation. This is information-theoretically optimal.
- Efficient SFA Construction: For an SFA with $n$ states and a maximum counterexample length $m$, the algorithm requires $O(n^3 \log(m))$ membership queries and $O(n^3)$ equivalence queries.
Conclusion and Future Directions
By dropping the requirement for minimal counterexamples and utilizing the number-theoretic properties of the Stern-Brocot tree, this work makes active learning of SFAs viable for dense, infinite domains. Future research aims to extend this framework to multi-dimensional spaces ($\mathbb{Q}^k$) and timed automata, which would broaden its applicability to complex multi-sensor time series and real-time systems.
Summary updated