Backpropagation through Signal Temporal Logic Specifications: Infusing Logical Structure into Gradient-Based Methods

Karen Leung, Nikos Aréchiga, Marco Pavone
7/31/2020
eess.SYcs.CLcs.LO

Official code: StanfordASL/stlcg (83 stars, Jupyter Notebook, MIT, last commit 2024-02-24).

Abstract

This paper presents a technique, named STLCG, to compute the quantitative semantics of Signal Temporal Logic (STL) formulas using computation graphs. STLCG provides a platform which enables the incorporation of logical specifications into robotics problems that benefit from gradient-based solutions.

Show full abstract

Specifically, STL is a powerful and expressive formal language that can specify spatial and temporal properties of signals generated by both continuous and hybrid systems. The quantitative semantics of STL provide a robustness metric, i.e., how much a signal satisfies or violates an STL specification. In this work, we devise a systematic methodology for translating STL robustness formulas into computation graphs. With this representation, and by leveraging off-the-shelf automatic differentiation tools, we are able to efficiently backpropagate through STL robustness formulas and hence enable a natural and easy-to-use integration of STL specifications with many gradient-based approaches used in robotics. Through a number of examples stemming from various robotics applications, we demonstrate that STLCG is versatile, computationally efficient, and capable of incorporating human-domain knowledge into the problem formulation.

View on arXivView PDF

Code Implementations(1)

StanfordASL/stlcgOfficial100%
MIT
8324Jupyter Notebook, PythonApr 30, 20192 years agoMIT

Similar Papers

Cite this paper

@article{leung2020backpropagation,
  title  = {Backpropagation through Signal Temporal Logic Specifications: Infusing Logical Structure into Gradient-Based Methods},
  author = {Karen Leung and Nikos Aréchiga and Marco Pavone},
  year   = {2020},
  eprint = {2008.00097},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.00097}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2008.00097.svg)](https://codeofpaper.com/paper/2008.00097)

Discussion