TLINet: Differentiable Neural Network Temporal Logic Inference
Danyang Li, Mingyu Cai, Cristian-Ioan Vasile, Roberto Tron
TL;DR
TLINet addresses the interpretability gap in data-driven temporal reasoning by learning STL formulas directly from time-series data via a differentiable neural-symbolic framework. It introduces a vectorized STL encoding (vSTL) and modular neural components for predicates, temporals, and Booleans, enabling end-to-end learning and subsequent decoding into compact STL formulas. To preserve STL semantics while enabling gradient-based optimization, it develops two sound max-approximation schemes—sparse softmax and averaged max/minmax—with regularizers to promote sparsity and compactness. The approach yields state-of-the-art classification performance with concise, interpretable specifications across naval surveillance, obstacle avoidance, and periodic signal tasks, highlighting practical impact for safe and transparent autonomous systems. The work also provides theoretical guarantees (soundness) for the proposed max-approximations and outlines future extensions to unsupervised learning scenarios.
Abstract
There has been a growing interest in extracting formal descriptions of the system behaviors from data. Signal Temporal Logic (STL) is an expressive formal language used to describe spatial-temporal properties with interpretability. This paper introduces TLINet, a neural-symbolic framework for learning STL formulas. The computation in TLINet is differentiable, enabling the usage of off-the-shelf gradient-based tools during the learning process. In contrast to existing approaches, we introduce approximation methods for max operator designed specifically for temporal logic-based gradient techniques, ensuring the correctness of STL satisfaction evaluation. Our framework not only learns the structure but also the parameters of STL formulas, allowing flexible combinations of operators and various logical structures. We validate TLINet against state-of-the-art baselines, demonstrating that our approach outperforms these baselines in terms of interpretability, compactness, rich expressibility, and computational efficiency.
