Componentwise Automata Learning
- Componentwise automata learning is a methodology that decomposes a global automaton into smaller, manageable component models to reduce inference complexity.
- It includes variants for Moore and Mealy machines, synchronizing systems, and system integration, achieved by output projections and alphabet refinements.
- Learning architectures leverage active queries, enabling significant query savings by focusing on smaller state spaces and exploiting compositional structure.
Searching arXiv for the cited work and closely related papers on componentwise/compositional automata learning. Componentwise automata learning is a family of active automata learning techniques that exploits a target system’s compositional structure by learning smaller component models or projections and then reconstructing a global hypothesis. In the literature represented here, the approach appears in several technically distinct forms: componentwise learning of Moore machines with product-valued outputs, output-decomposed learning of Mealy machines, compositional learning of synchronizing parallel systems through automated alphabet refinement, and componentwise automata learning for system integration with direct component access (Moerman, 2017, Koenders et al., 2024, Henry et al., 23 Apr 2025, Fujinami et al., 6 Aug 2025). Across these variants, the shared objective is complexity reduction relative to monolithic learning, typically by replacing a single large inference problem with multiple smaller ones.
1. Conceptual scope and main variants
The core idea is to replace monolithic inference of a single automaton by inference of components that correspond either to output coordinates, observable projections, or local alphabets. In the Moore-machine setting, the output alphabet factors as a Cartesian product , and each projection yields a component machine that can be learned separately (Moerman, 2017). In the Mealy-machine setting, the decomposition is dual in the sense that it projects onto individual outputs; if is one-hot coded by bits, then each projection yields a binary-output Mealy machine (Koenders et al., 2024).
A different line of work treats decomposition as a problem of recovering component alphabets for synchronizing systems. There, the target is an LTS over a global alphabet , and a distribution is refined during learning until it is consistent with global observations (Henry et al., 23 Apr 2025). Another setting arises in system integration, where the learner has direct access not only to the whole system but also to black-box components. In that setting, the target is a Moore machine network, and the distinguishing issue is not merely decomposition but also avoidance of learning component parts that never contribute to system-level behavior (Fujinami et al., 6 Aug 2025).
| Work | Target formalism | Decomposition principle |
|---|---|---|
| "Learning Product Automata" (Moerman, 2017) | Moore machines | Product-valued outputs |
| "Output-decomposed Learning of Mealy Machines" (Koenders et al., 2024) | Mealy machines | Projections onto individual outputs |
| "Compositional Active Learning of Synchronizing Systems through Automated Alphabet Refinement" (Henry et al., 23 Apr 2025) | LTSs | Distributions of possibly overlapping component alphabets |
| "Componentwise Automata Learning for System Integration (Extended Version)" (Fujinami et al., 6 Aug 2025) | Moore machine networks | Direct component access with contextual redundancy removal |
This suggests that “componentwise automata learning” is not a single algorithm but a methodological umbrella spanning several decomposition axes: outputs, observables, alphabets, and explicit system components.
2. Formal models and decomposition mechanisms
For Moore machines, a machine is a 6-tuple
with behavior 0 defined by 1. When 2, the projections 3 define component machines
4
The original machine is equivalent to the product machine 5, although 6 may contain unreachable states; in a minimal realization one has 7 (Moerman, 2017).
For Mealy machines, a deterministic machine is given as
8
with semantics 9. If 0 is one-hot coded by 1 bits, then for 2,
3
and the 4-th projected machine is
5
The full system is reconstructed from learned projections by synchronous product and re-assembly of the unique original output, with joint injectivity of 6 guaranteeing well-definedness (Koenders et al., 2024).
For synchronizing systems, the formalism is the labelled transition system
7
Given local LTSs 8, synchronous parallel composition 9 uses the standard synchronous-on-shared, interleaving-on-local rule. A distribution of alphabets is a set of possibly overlapping subalphabets
0
A language 1 is a product language over 2 if
3
and the Prod-of-projections lemma states that this holds iff
4
This establishes projection as the semantic basis of decomposition in the synchronous setting (Henry et al., 23 Apr 2025).
For system integration, each component is modeled as a deterministic Moore machine
5
with partial transition function 6. Components are glued by a directed graph 7, producing a Moore machine network 8 whose global machine
9
updates synchronously via
0
Here decomposition is explicit in the system architecture rather than inferred from outputs or alphabets (Fujinami et al., 6 Aug 2025).
3. Learning architectures and query models
The classical baseline is Angluin-style active learning in the minimally adequate teacher model, using membership queries and equivalence queries. In the Moore-machine product setting, MQ returns the full tuple in 1, and EQ tests equivalence of a hypothesis to the target. A single observation table 2 is maintained, with
3
and projections 4. The adapted criteria are product-closedness and product-consistency. If the table is product-closed and product-consistent, the usual quotient construction yields a candidate product machine whose 5-th component is exactly the minimal Moore automaton consistent with 6 (Moerman, 2017).
That same work also gives a parallel reduction to 7 independent learners. Each learner receives projected answers to membership queries, and once all learners propose hypotheses 8, the master forms 9 and poses a global equivalence query. Any returned counterexample is a counterexample in at least one projection and is fed back to the corresponding learner (Moerman, 2017).
The Mealy-machine variant, OL0, also maintains a single L1-style table 2, but 3 records full Mealy outputs and is projected to 4 for each output bit. The central defects are output-closure, output-consistency, and component-consistency. When a defect is found, the algorithm adds either a new prefix to 5 or a new suffix to 6, refills the table by MQs, and repeats. Its pseudocode initializes 7, 8, fills 9 by MQs, repairs projected defects, builds provisional hypotheses 0, checks “exactly-one-1,” composes 1, and asks 2. In practice, checks for different 3 are interleaved and table repairs are chosen greedily by a greedy hitting-set approximation (Koenders et al., 2024).
CoalA interleaves two loops. In the local-learning loop, for each current subalphabet 4, a standard active learner runs on 5, translating local membership queries to global queries by uplift if possible. In the global-equivalence loop, the composite hypothesis
6
is checked against the Teacher. If a counterexample arrives and 7, then the counterexample is or immediately yields a distribution-counterexample, from which one extracts minimal discrepancy sets 8 and updates 9, optionally canonizing and restarting local learners. Otherwise, the counterexample is local and its projections are forwarded to learners (Henry et al., 23 Apr 2025).
CCwL0 for system integration runs concurrent L1-style learners—one per component—but uses only system-level EQ and combines this with context analysis. The learner has access to system-level oracles 2 and 3, as well as component-level oracles 4 and 5. The algorithm builds a hypothesis network from component tables, performs 1Ext completeness queries, and analyzes global counterexamples via contextual variants of 1Ext and AnalyzeCex6, parameterized by CA-parameters 7 (Fujinami et al., 6 Aug 2025).
4. Reconstruction, correctness, and complexity
Reconstruction is explicit in both the Moore and Mealy projection settings. For Moore machines with product outputs, the global machine is equivalent to the product of the learned component machines, modulo unreachable states in the Cartesian product (Moerman, 2017). For Mealy machines, if each projected learner returns
8
then the reconstructed machine has state space
9
initial state 0, synchronous transition function, and output assembled as the unique 1 whose projections match the component outputs. One shows 2, and in fact only the reachable part of the product is used (Koenders et al., 2024).
The query-complexity rationale for componentwise learning is that smaller components can make 3 much smaller than 4. For monolithic L5 on a Moore machine of size 6, standard bounds give 7 membership queries and 8 equivalence queries. If each component 9 is learned separately, the total cost becomes
0
and if the states factor as 1 with 2, then 3 is exponentially smaller than 4 once 5 (Moerman, 2017).
For output-decomposed Mealy learning, standard L6 for 7 with 8 asks 9 membership queries and 00 EQs. OL01 asks, in the worst case,
02
with the note that in practice only 1 EQ is used on the composed 03. The structural assumption is that a substantial gain arises when the original machine is “one-hot” in its outputs or more generally exhibits a product-like structure in 04, so that each 05 drastically reduces the number of distinguishable states. Conversely, if some projection still needs 06 states, no improvement is gained (Koenders et al., 2024).
CoalA’s correctness argument has two parts: termination of local learners for any fixed distribution by standard active-learning convergence, and termination of distribution refinement because each update strictly increases a finite preorder on distributions. The algorithm therefore terminates and returns hypotheses whose synchronous composition is equivalent to the unknown SUL. Its complexity discussion is intentionally rough: in the worst case one may refine up to 07 subsets, but in practice far fewer, and the total number of membership queries is typically orders of magnitude smaller than monolithic learning over 08 (Henry et al., 23 Apr 2025).
CCwL09 states an explicit theorem for the sound case. If 10, 11 is any component abstraction, the true network has in total 12 states summed over components, input alphabet size 13, and maximum counterexample length 14, then CCwL15 uses at most
16
component-level output queries and 17 system-level equivalence queries. Unsound 18 may add at most 19 extra queries, but does not affect termination (Fujinami et al., 6 Aug 2025).
5. Empirical results and application domains
The empirical literature shows that the effectiveness of componentwise learning is strongly structure-dependent. In "Learning Product Automata," the motivating applications are software and protocol components exposing multiple observables such as “status” and “error-code,” or several output pins of a hardware port. The paper states that if these observables evolve largely independently, one can learn each projection with far fewer queries than the monolithic product. It also reports that empirical results on 20-bit “register-machines” show a drop from 21 MQ to 22, described as “from exponential to polynomial in 23” (Moerman, 2017).
The Mealy-machine study reports preliminary experiments in LearnLib on two benchmark suites. For artificial random interleavings with dedicated outputs, machines were built by “activating” one of 24 small sub-machines on inputs 25, each sub-machine having its own disjoint output set; full machine size reached up to 10 000 states while projections summed to only 26 states, and OL27 reduced membership-query symbols by up to two orders of magnitude compared to standard L28. On the Labbaf et al. (2023) benchmark, the machines arise from parallel interleavings of components that share output symbols; because outputs are not one-hot, OL29 cannot decompose, and indeed it performs worse than L30 (Koenders et al., 2024).
CoalA’s evaluation spans more than 630 subject systems. On 300 random LTSs with various concurrency patterns, CoalA used up to 31–32 fewer membership queries than monolithic L33 and roughly 34 fewer equivalence queries in highly concurrent cases. On two large industrial-style models, CloudOpsManagement and a producer/consumer net, the implementation scales to systems with thousands of states, with query complexity close to an idealized compositional baseline with known decomposition. On more sequential Petri-net-derived examples, it still learns correctly but the query savings are smaller, as expected when concurrency is limited (Henry et al., 23 Apr 2025).
The system-integration work compares MnL35, CwL36, and CCwL37 on random benchmarks, MQTT, and 38. The metrics are learned states and transitions, number of OQ resets and steps, EQ resets and steps, learner CPU time, and validation success/failure/timeouts. In all benchmarks, MnL39 quickly times out on larger networks; CwL40 learns all components fully, incurring large tables for redundant parts; and CCwL41 with 42 consistently yields the smallest models and fewest queries, at a moderate learner-side cost. On RichComp and MQTT, CCwL43 reduces component sizes by 44, OQ queries by 45, and EQs by 46, compared to CwL47 (Fujinami et al., 6 Aug 2025).
These findings support a consistent interpretation: componentwise methods are most effective when the decomposition exposes smaller state spaces or excludes behavior that is irrelevant at the system level.
6. Limitations, misconceptions, and open directions
A persistent misconception is that decomposition automatically yields savings. The cited work repeatedly rejects that conclusion. In the output-decomposed Mealy setting, if outputs are shared by components, projections do not shrink the machine and OL48 can even incur extra cost because of extra consistency checks; the paper’s Labbaf-benchmark result is a direct example (Koenders et al., 2024). In the Moore-machine product setting, if outputs are strongly correlated, the individual learners may not save queries, and intermediate global hypotheses 49 can have many unreachable states, which some equivalence-oracles struggle with (Moerman, 2017).
A second misconception is that the decomposition is always known a priori. The literature is divided on this point. Product-output and output-projection methods assume a meaningful projection structure from the start. CoalA explicitly addresses the case of unknown decomposition by starting from singleton alphabets and refining them through discrepancy sets derived from distribution-counterexamples. The paper also notes that greedy discrepancy selection may not always yield the smallest final distribution, and finding optimal refinements remains open (Henry et al., 23 Apr 2025). In the Mealy setting, finding the “best” output decomposition beyond one-hot may be computationally hard (Koenders et al., 2024).
A third issue concerns access assumptions. Earlier compositional work often assumes only global teacher access; the system-integration setting changes this by giving the learner direct access to black-box components through component-level output queries. That setting introduces “component redundancies,” meaning states or transitions that can never appear under any global execution. CCwL50 addresses this by over-approximating reachable global configurations of the current hypothesis through reachability analysis 51 on the quotiented network 52. The abstraction choices include 53, 54, and 55; the reachability bounds include 56 and 57. When 58 is sound, no reachable input to any component is missed; unsound choices merely add extra refinements (Fujinami et al., 6 Aug 2025).
The open directions identified in the literature are technically aligned. The Mealy paper references using TTT instead of L59 for smaller tables, combining input- and output-decomposition for even larger gains, and allowing component-wise EQs in the teacher model (Koenders et al., 2024). The system-integration work points to large alphabet and symbolic methods, as well as application to real-world SI pipelines (Fujinami et al., 6 Aug 2025). CoalA highlights extensions to richer models such as register automata and timed automata, and to other query frameworks such as apartness-based learning (Henry et al., 23 Apr 2025).
Taken together, these directions indicate that componentwise automata learning has evolved from fixed output-factorization in product automata to automated decomposition discovery and context-sensitive pruning, while retaining the central premise that scalability depends on exposing a decomposition that meaningfully reduces the effective hypothesis space.