STLCG++: A Masking Approach for Differentiable Signal Temporal Logic Specification
- 10 July 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Robotics and Automation Letters
- Vol. 10 (9) , 9240-9247
Abstract
Signal Temporal Logic (STL) offers a concise yet expressive framework for specifying and reasoning about spatio-temporal behaviors of robotic systems. Attractively, STL admits the notion of robustness, the degree to which an input signal satisfies or violates an STL specification, thus providing a nuanced evaluation of system performance. In particular, the differentiability of STL robustness enables direct integration to robotic workflows that rely on gradient-based optimization, such as trajectory optimization and deep learning. However, existing approaches to evaluating and differentiating STL robustness rely on recurrent computations, which become inefficient with longer sequences, limiting their use in time-sensitive applications. In this letter, we present STLCG++, a masking-based approach that parallelizes STL robustness evaluation and backpropagation across timesteps, achieving significant speed-ups compared to a recurrent approach. We also introduce a smoothing technique to enable the differentiation of time interval bounds, thereby expanding STL's applicability in gradient-based optimization tasks involving spatial and temporal variables. Finally, we demonstrate STLCG++’s benefits through three robotics use cases and provide JAX and PyTorch libraries for seamless integration into modern robotics workflows.Keywords
All Related Versions
Funding Information
- National Science Foundation (2144860)
- UW+Amazon Science Hub Fellowship and Nakajima Foundation Fellowship
This publication has 21 references indexed in Scilit:
- CoBL-Diffusion: Diffusion-Based Conditional Robot Planning in Dynamic Environments Using Control Barrier and Lyapunov Functions2024
- Safe Planning Through Incremental Decomposition of Signal Temporal Logic Specifications2024
- Contract-Driven Runtime Adaptation2024
- RTAMT – Runtime Robustness Monitors with Application to CPS and RoboticsInternational Journal on Software Tools for Technology Transfer, 2023
- Guided Conditional Diffusion for Controllable Traffic Simulation2023
- Receding Horizon Planning with Rule Hierarchies for Autonomous Vehicles2023
- CPSDebug: Automatic failure explanation in CPS modelsInternational Journal on Software Tools for Technology Transfer, 2021
- Specification-Based Monitoring of Cyber-Physical Systems: A Survey on Theory, Tools and Applications2018
- Smooth operator: Control using the smooth robustness of temporal logic2017
- Monitoring Temporal Properties of Continuous Signals2004