Abstract
Signal Temporal Logic (STL) is a powerful tool for specifying requirements in continuous systems, yet its discrete nature makes it difficult to integrate with machine learning. This paper introduces a novel kernel function that embeds STL formulae into a continuous Hilbert space by treating them as mathematical functionals. This approach allows for the use of standard kernelized algorithms, such as Support Vector Regression, to predict the behavior of stochastic systems under various logical rules. Experimental results demonstrate that a generic kernel can effectively generalize across diverse stochastic models, significantly reducing the need for expensive Monte Carlo simulations.
Introduction
Signal Temporal Logic (STL) is widely used in the design and verification of Cyber-Physical Systems (CPS). Its primary advantage lies in its quantitative semantics, which provide a real-valued "robustness score" indicating the degree to which a system satisfies or violates a specification. However, the space of STL formulae lacks a natural metric, making it challenging to compare different rules or apply machine learning techniques directly.
Traditionally, predicting how a stochastic system will perform against a new set of STL requirements requires exhaustive Monte Carlo simulations. This paper addresses this bottleneck by creating a mathematical bridge between formal logic and functional analysis, enabling simulation-free inference through a novel STL kernel.
The STL Kernel
The core innovation involves re-conceptualizing an STL formula as a functional—a mapping from a real-valued signal (trajectory) to its robustness score. By viewing formulae in this way, the authors define an inner product in $L^2$ space to serve as a kernel.
The similarity between two formulae is calculated by integrating the product of their robustness scores over a space of possible trajectories. To make this computation feasible, the authors introduce a base probability measure, $\mu_0$, which favors "simple" trajectories with low total variation. This measure ensures that the kernel captures the most relevant system behaviors while remaining computationally tractable via Monte Carlo sampling.
Experimental Setup
To evaluate the kernel's performance, the authors generated a training set of 400 random STL formulae. The kernel was approximated using 100,000 piecewise linear trajectories sampled from the base measure $\mu_0$.
The generalization capability of the kernel was tested on three distinct stochastic biological models:
- Immigration: A model characterized by constant-rate arrivals.
- Isomerization: A model representing the transformation of one molecule into another, typically showing decay.
- Polymerase: A model of molecular assembly, often exhibiting saturating growth patterns.
Results and Generalization
The proposed kernel demonstrated high accuracy in regression tasks. Using Support Vector Regression (SVR) on the $\mu_0$ distribution, the model achieved a Mean Squared Error (MSE) of 0.29 for expected robustness. For satisfaction probability, Kernel Ridge Regression (KRR) reached an MSE of 0.00036.
A key finding was the kernel's ability to generalize. The generic kernel based on $\mu_0$ outperformed custom kernels tailored to specific stochastic models. This is because $\mu_0$ covers a broader range of trajectory behaviors, providing a richer feature space for comparing formulae.
Once trained, the regression model can predict the expected robustness of entirely new formulae for a specific system without requiring any new simulations of that system.
Conclusion and Future Work
This work successfully integrates formal methods with kernel-based machine learning. By embedding logic into a Hilbert space, it opens new avenues for specification learning and system analysis. Future research will focus on refining quantitative semantics to ensure logical equivalence translates to identical kernel values and exploring non-linear embeddings via kernel-PCA.
Summary updated