Abstract
Active automata learning is a powerful technique for reverse-engineering unknown systems, yet classical algorithms like $L^*$ struggle with the infinite input alphabets and multi-valued outputs typical of real-world software. This paper presents $\Lambda^*_M$, the first active learning algorithm designed for Symbolic Mealy Automata (s-MAs). By introducing the concept of "essential input characters," $\Lambda^*_M$ efficiently generalizes system behavior from a finite set of observations to infinite domains. Experimental results on practical benchmarks, including Mars Helicopter control systems, demonstrate the algorithm's scalability and effectiveness.
Introduction
The field of active automata learning has traditionally focused on Deterministic Finite Automata (DFAs) over small, finite alphabets. While extensions to Mealy machines allow for multi-valued outputs, the assumption of a finite input alphabet $\Sigma$ remains a significant bottleneck for applying these techniques to modern software that processes numerical or complex data types.
The $\Lambda^*_M$ Algorithm
The core contribution of this work is $\Lambda^*_M$, which extends the $\Lambda^*$ framework to Mealy-style outputs. The algorithm maintains an observation table that records system responses to sequences of inputs. Unlike classical approaches, $\Lambda^*_M$ does not attempt to probe the entire (potentially infinite) alphabet. Instead, it identifies a finite subset of "essential input characters" ($\Sigma_E$) that are sufficient to distinguish between different system states and output behaviors.
The learning process follows an iterative loop:
- Observation: The learner queries the system using characters in $\Sigma_E$.
- Generalization: A concrete Mealy machine is built from these observations and then generalized into a symbolic one by converting specific characters into predicates (e.g., mapping the input
10to a range like $[0, 20)$). - Refinement: When an equivalence query provides a counterexample, the algorithm analyzes it to either discover a new state or refine the set of essential characters.
Experimental Evaluation
The authors evaluated $\Lambda^*_M$ on real-world benchmarks from MATLAB/Simulink, specifically the Mars Helicopter (MH) and Automatic Transmission Gear System (ATGS). For the 5-state Mars Helicopter model, the algorithm successfully learned the system using only 36 equivalence queries and approximately 6,500 output queries.
Further testing on random benchmarks showed that the number of output queries scales linearly with the number of states. This linear growth suggests that $\Lambda^*_M$ avoids the exponential complexity often associated with symbolic reasoning, making it a viable candidate for large-scale system verification. A key insight from these experiments is that the discovery of new states and essential characters often happens in parallel, significantly boosting practical performance over theoretical worst-case expectations.
Conclusion and Future Work
$\Lambda^*_M$ bridges a critical gap in automata learning by combining symbolic input handling with multi-valued output support. By focusing on essential characters, the algorithm provides a mathematically grounded and efficient path toward reverse-engineering complex, black-box systems with infinite input spaces. Future research directions include implementing more sophisticated counterexample analysis, such as the Rivest-Schapire technique, and moving toward "active" predicate learning to further optimize query efficiency.
Summary updated