TeLoGraF: Temporal Logic Planning via Graph-encoded Flow Matching
Yue Meng, Chuchu Fan
TL;DR
TeLoGraF tackles the challenge of planning under general Signal Temporal Logic (STL) specifications by introducing a graph-encoded flow matching framework. It encodes STL formulas as syntax trees using a Graph Neural Network and generates STL-satisfying trajectories via a conditional flow model, enabling fast, scalable planning across diverse dynamics. The authors compile a large dataset of over 200K STL specifications with demonstrations across five environments and demonstrate superior STL satisfaction rates and orders-of-magnitude faster inference than classical planners and several baselines. This work advances STL-driven robotics by enabling general STL conditioning, offering robust performance and a practical open-source resource for future research.
Abstract
Learning to solve complex tasks with signal temporal logic (STL) specifications is crucial to many real-world applications. However, most previous works only consider fixed or parametrized STL specifications due to the lack of a diverse STL dataset and encoders to effectively extract temporal logic information for downstream tasks. In this paper, we propose TeLoGraF, Temporal Logic Graph-encoded Flow, which utilizes Graph Neural Networks (GNN) encoder and flow-matching to learn solutions for general STL specifications. We identify four commonly used STL templates and collect a total of 200K specifications with paired demonstrations. We conduct extensive experiments in five simulation environments ranging from simple dynamical models in the 2D space to high-dimensional 7DoF Franka Panda robot arm and Ant quadruped navigation. Results show that our method outperforms other baselines in the STL satisfaction rate. Compared to classical STL planning algorithms, our approach is 10-100X faster in inference and can work on any system dynamics. Besides, we show our graph-encoding method's capability to solve complex STLs and robustness to out-distribution STL specifications. Code is available at https://github.com/mengyuest/TeLoGraF
