Skip to main content
QUICK REVIEW

[Paper Review] Learning Timed Automata via Genetic Programming

Martin Tappler, Bernhard K. Aichernig|arXiv (Cornell University)|Aug 23, 2018
Software Testing and Debugging TechniquesComputer Science42 references7 citations
TL;DR

This paper proposes a genetic programming approach to automatically learn deterministic timed automata (TAs) from timed traces, using mutation, crossover, and fitness evaluation to evolve models consistent with test data. The method successfully learns TAs on 44 systems, including real and randomly generated examples, with strong generalization and convergence, demonstrating viability for black-box real-time system modeling.

ABSTRACT

Model learning has gained increasing interest in recent years. It derives behavioural models from test data of black-box systems. The main advantage offered by such techniques is that they enable model-based analysis without access to the internals of a system. Applications range from fully automated testing over model checking to system understanding. Current work focuses on learning variations of finite state machines. However, most techniques consider discrete time. In this paper, we present a method for learning timed automata, finite state machines extended with real-valued clocks. The learning method generates a model consistent with a set of timed traces collected by testing. This generation is based on genetic programming, a search-based technique for automatic program creation. We evaluate our approach on 44 timed systems, comprising four systems from the literature and 40 randomly generated examples.

Motivation & Objective

  • To address the lack of scalable, effective techniques for learning timed automata from black-box system observations.
  • To develop a model learning framework that supports real-time system modeling without requiring internal system access.
  • To overcome limitations of existing finite-state automata learning methods by extending to timed systems with clocks.
  • To evaluate the approach on both manually designed and randomly generated timed automata for robustness and generalization.
  • To explore the feasibility of using evolutionary computation for learning complex real-time system behavior.

Proposed method

  • The approach uses genetic programming to evolve deterministic timed automata (TAs) from a set of timed traces collected via passive testing.
  • A custom fitness function evaluates how well candidate TAs match the provided timed traces, measuring conformance and structural accuracy.
  • Mutation operators modify TA components such as locations, transitions, guards, and clock resets to explore the search space.
  • Crossover combines two parent TAs by exchanging structural components to generate new offspring with potentially better fitness.
  • The algorithm iteratively evolves a population of TAs, selecting high-fitness models through selection and replacement.
  • The method is passive by default but allows for future integration with active testing to refine models via feedback.

Experimental results

Research questions

  • RQ1Can genetic programming effectively learn deterministic timed automata from timed traces without prior knowledge of the system structure?
  • RQ2How well do the learned TAs generalize to independently generated test data, avoiding overfitting?
  • RQ3What is the scalability and convergence behavior of the genetic programming approach on diverse timed automata, including synthetic and real-world examples?
  • RQ4How do mutation and crossover operators contribute to the discovery of correct TA models?
  • RQ5Can the approach be extended to support active learning and model checking integration for improved accuracy?

Key findings

  • The genetic programming framework successfully learned deterministic timed automata consistent with all 44 test cases, including four manually created systems and 40 randomly generated ones.
  • The learned models generalized well to independently produced test data, indicating strong robustness and low overfitting.
  • The method demonstrated reliable convergence to correct models across diverse system types, confirming the effectiveness of the fitness evaluation and genetic operators.
  • The approach is scalable and effective for black-box real-time system modeling, even without prior knowledge of the number of states or structure.
  • The integration of mutation, crossover, and fine-grained fitness evaluation enabled efficient exploration of the model space and accurate model inference.
  • The results suggest that genetic programming is a viable and flexible approach for learning complex timed behaviors in real-time systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.