arXiv:2610.21237cs.FLOct 2026

Manuscript Offprint

arXiv:2610.21237

Compositional Automata Learning of Timed Synchronous Systems

Hanyue Chen, Chang Liu, Miaomiao Zhang

Hanyue Chen ID^{ID}, Chang Liu ID^{ID}, and Miaomiao Zhang (✉)^{(✉)}

School of Computer Science and Technology, Tongji University, Shanghai, China

{2111285,2433258,miaomiao}@tongji.edu.cn

Abstract. Active model learning is a crucial technique for automatically constructing formal models of black-box timed systems. However, existing learning approaches typically construct a single monolithic automaton for a timed system with multiple synchronous components, obscuring its component structure and hindering component-level analysis. We propose a compositional learning approach that constructs a deterministic real-time automaton (RTA) for each component with access only to the target system as a whole. Upon termination, the learned RTAs form a network that exhibits exactly the same timed behaviors as the target system. Within the respective resource limits, our implementation terminates successfully on 213 of the 240 (88.8%) randomly generated benchmark instances and all six adapted case-study benchmarks, and requires less learning time than monolithic approaches on some instances.

Keywords: Active model learning · Timed systems · Compositional learning · Real-time automata · Black-box systems

1 Introduction

Timed systems are widely used in real-world applications, including embedded systems, automotive control, and communication protocols. Model-based verification of such systems relies on formal models that faithfully capture their real-time behaviors. However, building such models manually is labor-intensive and error-prone, especially when the system is accessible only as a black box.

Active model learning [31], which collects information from a target system on demand to construct its model automatically, has therefore become an important modeling technique. The L* algorithm [7] formalizes this interaction through a learner that issues membership queries and equivalence queries to a teacher with access to the target system. A membership query asks whether the target system can exhibit a given behavior, whereas an equivalence query asks whether a hypothesis matches the target system. By organizing the teacher's answers in an observation table, the learner constructs a hypothesis and incrementally refines it until the teacher returns true for an equivalence query. Subsequent research has applied active model learning to various model classes [1,15,25] and developed more efficient learning algorithms [16,33,34]. For timed systems, active learning algorithms have been developed for real-time automata (RTAs) [4],

H. Chen et al.

Mealy machines with timers [17,32], and timed automata [3,30,35]. Tree-based information structures have also been introduced to improve the efficiency of learning timed systems [21,28,29]. However, these approaches construct a single monolithic automaton for the entire timed system. For a timed system composed of multiple synchronous components, a monolithic model obscures the component structure, making it difficult to perform component-level analysis or apply verification techniques such as compositional abstraction [9,10,20]. Moreover, the global state space can grow rapidly with the number and complexity of components, increasing the potential cost of monolithic learning.

Motivated by these considerations, this paper presents a compositional active learning approach for timed synchronous systems. Given the number of system components and their respective action sets, the approach constructs a separate deterministic RTA for each component. Upon termination, the learned RTAs form a network that exhibits exactly the same timed behaviors as the target system. Building on compositional active learning for untimed synchronous systems [23], our approach comprises multiple component learners, a query adapter, and a system-level teacher. Each learner learns an individual component by issuing component-level queries, such as whether the component can exhibit a given behavior. In contrast, the teacher can answer only system-level queries, such as whether the entire system can exhibit a given behavior. The query adapter translates component-level queries into system-level queries and derives component-level answers from the teacher's responses.

Although this architecture has been successfully applied to untimed synchronous systems, extending it to timed synchronous systems requires addressing several challenges. First, continuous time gives rise to infinitely many time delays, so information collected from individual timed words must be generalized. The adapter abstracts timed words as RTA region words and represents confirmed component behaviors as positive-evidence RTAs. Second, answering a component-level membership query may require lifting the queried component behavior to a system-level behavior that respects the timing and synchronization constraints of all components. The adapter uses timed reachability over these positive-evidence RTAs to find such a behavior. Finally, with only system-level access, the adapter may temporarily be unable to answer some component-level membership queries and may return spurious counterexamples to component-level equivalence queries. Each component learner runs an L*-style procedure that organizes incomplete timed information in a timed observation table with unknown entries (TOTU), uses SMT to construct RTA hypotheses, and employs a backtracking mechanism to handle possible spurious counterexamples.

In summary, the contributions of this paper are as follows.

– We present a compositional learning approach that learns an RTA for each component of a timed synchronous system using only system-level access.

– We develop a query adapter equipped with positive-evidence RTAs and TOTU-based component learners to address the challenges encountered in compositional learning of timed synchronous systems.

– We implement and evaluate our approach, which terminates successfully on 213 of the 240 (88.8%) randomly generated benchmark instances and all six adapted case-study benchmarks within the respective resource limits, and requires less learning time than monolithic approaches on some instances.

References (34)