Abstract
This paper introduces a "graybox" active learning algorithm for sequential transducers that leverages prior knowledge about the input domain to identify smaller, more efficient models. By encoding the learning process into string equations solvable by SAT/SMT tools, the authors provide a method that significantly reduces the number of expensive equivalence queries required to learn a target transformation.
Introduction
In formal methods, active learning—famously exemplified by Angluin’s $L^*$ algorithm—involves a "student" learning a hidden model through membership queries ("Does this input produce this output?") and equivalence queries ("Is my current model correct?"). Equivalence queries are notoriously expensive, often requiring exhaustive checks against real-world systems.
Standard algorithms for learning sequential transducers (automata that transform input strings to output strings) typically target a "canonical" minimal model. However, if side information is available—specifically, an upper bound on the input domain—the canonical model may be unnecessarily large. This paper addresses graybox learning: how to use domain constraints to find the absolute smallest transducer that behaves correctly on that domain, thereby minimizing costly equivalence queries.
Methods: The MinTransducerUp Algorithm
The authors propose MinTransducerUp, an algorithm that moves from an observation table to a candidate model using constraint satisfaction rather than the greedy approach typical of standard active learning.
The core innovation lies in treating the search for a minimal model as a string equation problem solved via SAT/SMT oracles. The algorithm employs two key subprocedures:
- MinGen(T): Finds the smallest transducer compatible with current observations and domain constraints.
- CompetingMinGen(T): Checks if another non-equivalent minimal transducer exists.
By using these procedures, the algorithm only poses an equivalence query when it is certain that the minimal compatible transducer is unique. If competing models exist, it uses membership queries to distinguish between them first.
Key Insights and Ideas
The "Don't Care" Advantage
By knowing the domain $U_p$, the learner can ignore behaviors outside that domain. This allows for "muted" or "open" transitions—parts of the transducer that do not affect the output for valid inputs. This flexibility enables the algorithm to find models smaller than standard canonical ones. Subsequential transducers are utilized as they are more general and compact than Mealy machines, though they present a harder learning task.
Uniqueness as a Trigger
A critical realization is that equivalence queries should only be triggered when constraints are tight enough that only one minimal model remains.
As shown in the figure above, multiple distinct transducers might satisfy the same set of observations. The algorithm uses membership queries to resolve these ambiguities before resorting to an expensive equivalence check.
Key Results
- Equivalence Query Bound: The number of equivalence queries is bounded by the number of states in the minimal compatible transducer, rather than the potentially much larger canonical transducer.
- Effective Implementation: The search for minimal models reduces to string equations in $NP$ or $P^{NP}$ complexity classes. While computationally hard, this is a worthwhile trade-off to reduce equivalence queries.
- Termination: The paper provides a finiteness proof ensuring the algorithm always terminates, despite an infinite space of possible string outputs.
Limitations and Future Work
While MinTransducerUp saves on equivalence queries, the internal cost of calling SMT solvers for string equations can be high. Future research is needed to establish empirical "break-even" points and to explore tighter bounds on membership query complexity. Additionally, the authors suggest extending the framework to handle other types of side information, such as known input-output prefix relationships.
Summary updated