cs.RONov 22, 2026

Specification-Aware Sparse Differentiation: Planning under Signal Temporal Logic with Sparsemax Robustness

Authors: Sai Sandeep Damera, Ryan Matheu, John S. Baras, Calin Belta

Organizations: University of Maryland, College Park, USA

Abstract

Gradient-based optimal control under a Signal Temporal Logic (STL) specification involves solving a nonlinear program whose constraints are smoothed robustness functions of the trajectory, and automatic differentiation without knowledge of sparsity computes the Jacobian and the Hessian that its solver needs in full. This often renders the problem computationally intractable. The dynamics and the specification prescribe a sparsity pattern through the STL syntax, the windows of the temporal operators and the variables that the predicates read. Standard tools such as CasADi recover this pattern by structural detection. In this work, we propose a method to prescribe such a pattern directly from the task specification. We show that our method allows us to exploit SparseMax, a recently proposed smooth robustness operator that is certifiably sparse and sound. Its derivative is exactly zero at every operand at or below a data-dependent threshold, which structural detection cannot see. We derive the patterns that expose this trajectory-dependent sparsity to sparse automatic differentiation, with a margin test for their reuse and Hessians confined to the variables of each constraint's support. We demonstrate the method on a dual-arm coordination task in which two arms share a hand-off zone divided into cells and one until constraint per scheduled visit keeps the other arm out of a cell until the visitor has left it. The two scenes are a zone of five cells and a circle of 64 cells, with single solves and closed-loop re-planning on a rigid-body simulation. Our exact-Hessian interior-point solves are up to 27 times faster than those with the sound log-sum-exp robustness in CasADi and IPOPT.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. SparseMax-dSTL: Sound Robustness with Horizon-Independent Gradient Allocation for Temporal Logic Trajectory Optimization

    Oct 16, 2026Sai Sandeep Damera, Ryan Matheu, John S. Baras +1STL Motion PlanningSignal Temporal Logic

  2. STL-SVPIO: Signal Temporal Logic guided Stein Variational Path Integral Optimization

    Mar 6, 2026Hongrui Zheng, Zirui Zang, Ahmad Amine +2STL Motion PlanningTrajectory Optimization

  3. DAG-STL: A Hierarchical Framework for Zero-Shot Trajectory Planning under Signal Temporal Logic Specifications

    Apr 20, 2026Ruijia Liu, Ancheng Hou, Xiao Yu +1Constrained Motion PlanningTrajectory Generation