Abstract
Quantitative automata (QA) are essential for modeling systems with numerical outputs, such as reward structures or probability distributions. However, learning these models typically requires exact numerical feedback, which is often unavailable in practice. This paper introduces Quintic, an active learning algorithm that infers QA using only preference-based queries (e.g., "Sequence A is better than Sequence B"). By integrating the $L^*$ framework with SMT solvers, Quintic symbolically deduces automaton structures from ordinal data, ensuring the discovery of minimal models.
Introduction
Modeling complex systems often involves assigning numerical values to sequences of actions. While traditional quantitative automata learning relies on precise output values, real-world scenarios—particularly those involving human feedback—frequently only provide relative rankings or preferences. The ambiguity inherent in preference data makes it challenging to determine whether two sequences lead to the same internal state. Quintic (Quantitative Automata Inference from Theory and Incremental Constraints) addresses this by treating the learning process as a symbolic constraint satisfaction problem.
Methodology: The Quintic Algorithm
Quintic adapts the classic $L^*$ active learning algorithm to operate symbolically. Instead of concrete values, it maintains a Symbolic Observation Table populated with variables and constraints derived from preference queries.
The process involves several key components:
- Symbolic Filling: Missing table entries are represented as variables in a context $\Gamma$.
- Deductive Reasoning: Using Satisfiability Modulo Theories (SMT), the algorithm determines when variables must be equal based on the theory of the underlying valuation function (e.g., linear arithmetic for summations).
- MaxSMT-Guided Search: When constraints are insufficient to determine state equivalence, Quintic uses a MaxSMT solver (Z3) to conjecture the simplest possible model.
- Iterative Deepening Search (IDS): To maintain minimalism and ensure termination, IDS limits the search depth for conjectures.
- Equivalence Queries: The algorithm proposes a hypothesis $\mathcal{H}$ to a teacher. If incorrect, a counterexample is used to refine the symbolic table and constraints.
Experimental Evaluation
The researchers benchmarked Quintic against 25 ground-truth quantitative automata featuring diverse valuation functions, including Summation ($\Sigma$), Discounted Summation ($\gamma\Sigma$), Product ($\Pi$), and standard Classification ($\mathbb{N}$).
Key Results
- Universal Success: Quintic successfully learned all 25 target models, proving its robustness across different mathematical theories.
- Minimalism Guaranteed: The algorithm consistently produced the smallest possible automaton consistent with the provided preference data.
- Scaling and Efficiency: While non-linear valuations (like Product) increased solver time, the use of "Closedness and Consistency" objectives significantly optimized the tracking of variables and inequalities.
Discussion and Insights
A critical insight from the study is that the complexity of learning is directly tied to the underlying mathematical theory. For instance, summation models are solved quickly via linear arithmetic, whereas product models require more intensive polynomial inequality solving. Furthermore, the study found that while "Strong Feedback" (providing actual values for counterexamples) speeds up SMT performance, it does not necessarily reduce the total number of queries compared to "Weak Feedback."
Limitations and Future Work
Currently, Quintic assumes a perfectly consistent teacher, which may not hold for noisy human preference data. Additionally, the reliance on SMT solvers like Z3 limits the algorithm to theories supported by the solver (excluding transcendental functions). Future research aims to extend Quintic to handle stochastic or noisy feedback and more expressive quantitative models.
Reference: Hsiung, E., Chaudhuri, S., & Biswas, J. (2024). Learning Quantitative Automata Modulo Theories. arXiv:2411.10601v1 [cs.FL].
Summary updated