Saved in:
Bibliographic Details
Main Authors: Işık, İlker, Gol, Ebru Aydin, Cinbis, Ramazan Gokberk
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2405.20917
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917680549724160
author Işık, İlker
Gol, Ebru Aydin
Cinbis, Ramazan Gokberk
author_facet Işık, İlker
Gol, Ebru Aydin
Cinbis, Ramazan Gokberk
contents Temporal logic is a framework for representing and reasoning about propositions that evolve over time. It is commonly used for specifying requirements in various domains, including hardware and software systems, as well as robotics. Specification mining or formula generation involves extracting temporal logic formulae from system traces and has numerous applications, such as detecting bugs and improving interpretability. Although there has been a surge of deep learning-based methods for temporal logic satisfiability checking in recent years, the specification mining literature has been lagging behind in adopting deep learning methods despite their many advantages, such as scalability. In this paper, we introduce autoregressive models that can generate linear temporal logic formulae from traces, towards addressing the specification mining problem. We propose multiple architectures for this task: transformer encoder-decoder, decoder-only transformer, and Mamba, which is an emerging alternative to transformer models. Additionally, we devise a metric for quantifying the distinctiveness of the generated formulae and a straightforward algorithm to enforce the syntax constraints. Our experiments show that the proposed architectures yield promising results, generating correct and distinct formulae at a fraction of the compute cost needed for the combinatorial baseline.
format Preprint
id arxiv_https___arxiv_org_abs_2405_20917
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Learning to Estimate System Specifications in Linear Temporal Logic using Transformers and Mamba
Işık, İlker
Gol, Ebru Aydin
Cinbis, Ramazan Gokberk
Computation and Language
Machine Learning
Logic in Computer Science
Temporal logic is a framework for representing and reasoning about propositions that evolve over time. It is commonly used for specifying requirements in various domains, including hardware and software systems, as well as robotics. Specification mining or formula generation involves extracting temporal logic formulae from system traces and has numerous applications, such as detecting bugs and improving interpretability. Although there has been a surge of deep learning-based methods for temporal logic satisfiability checking in recent years, the specification mining literature has been lagging behind in adopting deep learning methods despite their many advantages, such as scalability. In this paper, we introduce autoregressive models that can generate linear temporal logic formulae from traces, towards addressing the specification mining problem. We propose multiple architectures for this task: transformer encoder-decoder, decoder-only transformer, and Mamba, which is an emerging alternative to transformer models. Additionally, we devise a metric for quantifying the distinctiveness of the generated formulae and a straightforward algorithm to enforce the syntax constraints. Our experiments show that the proposed architectures yield promising results, generating correct and distinct formulae at a fraction of the compute cost needed for the combinatorial baseline.
title Learning to Estimate System Specifications in Linear Temporal Logic using Transformers and Mamba
topic Computation and Language
Machine Learning
Logic in Computer Science
url https://arxiv.org/abs/2405.20917