NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Active Learning of Symbolic Mealy Automata

Kengo Irie, Masaki Waga, Kohei Suenaga · DOI

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.

Classical Mealy automata learning assumes a small, finite set of input symbols.

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:

  1. Observation: The learner queries the system using characters in $\Sigma_E$.
  2. 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 10 to a range like $[0, 20)$).
  3. 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.
Refining the set of essential input characters $\Sigma_E$ allows the algorithm to improve its symbolic approximation of the system.

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

BibTeX
@inproceedings{irie2025active,
  author = {Kengo Irie and Masaki Waga and Kohei Suenaga},
  title = {{Active Learning of Symbolic Mealy Automata}},
  booktitle = {ICTAC},
  year = {2025},
  url = {https://openreview.net/forum?id=TNGLYW5J9e},
}
Figure