Using transformers to learn system models
Abstract Models play a critical role in supporting Verification and Validation activities. However, they are often unavailable in practice, such as for legacy systems or third-party components. Model learning addresses this gap through two main approaches: passive learning, which infers models from existing execution traces, and active learning, which interacts with the system under learning (SUL) to generate more general models, but at higher computational cost. In this work, we propose a novel application of Transformer architectures to implicitly learn generic system models from execution traces alone, combining the efficiency of passive learning with the generality of active learning. We design and evaluate two Transformer-based architectures: one focused on exploitation, achieving over $$\varvec{95\%}$$ valid trace generation; and another focused on exploration, generating approximately $$\varvec{60\%}$$ novel, previously unseen traces. Our methods outperform state-of-the-art model learning techniques, demonstrating that Transformers can achieve results comparable to active learning while requiring significantly fewer resources.
Authors
- Francisco Palomo-Lozano
- Alfredo Ibias
- Manuel Núñez
- Manuel Méndez
Institutions
- Universidad Complutense de Madrid (ES)
- Universidad de Cádiz (ES)
Publication Details
- Journal
- Applied Intelligence
- Published
- 2026-02-01
- DOI
- https://doi.org/10.1007/s10489-025-07066-0
- Primary Topic
- Machine Learning and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Comunidad de Madrid
- Ministerio de Ciencia e Innovación
- Universidad de Cádiz
- Agencia Estatal de Investigación