betaFeedback

WorksEngineering

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

Abstract

A gradient-based solver that enforces a Signal Temporal Logic (STL) specification uses a smooth approximation of its quantitative semantics, the robustness. In safety-critical trajectory optimization, this approximation must have two properties. First, it must be sound, that is, nonnegative only on trajectories that satisfy the specification. Second, at each temporal operator, the weight of its gradient on the violating samples must stay bounded away from zero, however long the horizon. The approximations in use, including the log-sum-exp, its sound variant, and the generalized-mean robustness, do not have both. We introduce lower approximations of the minimum and the maximum whose gradients are sparsemax projections, and we prove that the robustness built from them has both. It lies below the exact robustness and is therefore sound, and its error has a bound that is independent of the number of samples and known before optimization. The gradient of each approximation is exactly zero on every sample beyond a data-dependent threshold, so the weight on violating samples a gap beyond the others has a positive lower bound at every horizon. On a planar unicycle and on a seven-joint manipulator beside a person in simulation, the log-sum-exp approximation is positive on a violating trajectory. As the horizon of the manipulator's task grows from 10 to 80 s, the gradient weight of the sound variant on the violating samples falls from 0.22 to 0.04, while that of sparsemax stays at 1. In a constrained trajectory optimization of the unicycle, the constraint on the log-sum-exp robustness returns a violating trajectory, whereas the constraint on the sparsemax robustness returns a trajectory that satisfies the specification with the required margin.

Introduction

A gradient-based solver that enforces a signal temporal logic (STL) specification as a constraint does not evaluate the specification itself. STL assigns trajectories a scalar robustness, a nesting of minima and maxima over predicates and time samples whose sign determines satisfaction [1, 2]. The nesting is nonsmooth, so the solver differentiates a smooth surrogate of every extremum [3, 4] and accepts a trajectory as feasible when the resulting smoothed robustness is nonnegative. The surrogate therefore determines which trajectories the solver accepts as feasible and how its gradient is allocated among the time samples.

Consider a robot manipulator that hands a part to a person. Its STL specification requires that it stay out of the zone into which the person reaches until it has picked the part, keep a minimum separation from the person, and move slowly near the person. The first requirement is an until operator, whose left operand (stay out of the zone) must hold until its right operand (the pick) holds at some sample of a time

The authors are with the University of Maryland, College Park, USA. Emails: {s​​damera, rmatheu, baras, calin}@umd.edu. Code available at https://github.com/sd​​amera95/SparseMax-dSTL.

window. Each sample of the window is a witness, and the robustness of the operator is a maximum over its witnesses. A trajectory that crosses the zone for a third of a second before the pick violates the specification at fewer than twenty of the hundreds or thousands of samples in the horizon, while the manipulator waits at the zone boundary for the rest. Figure 1(a) sketches such a trajectory with nine samples. A smoothed robustness that constrains such a trajectory must have two properties. First, it must be sound, that is, negative on every violating trajectory. Second, its gradient allocation, the weight that its gradient places on each sample, must not vanish on the violating samples as the waiting time grows. A policy gradient or a gradient-based safety filter that differentiates the robustness needs the same two properties.

Figure 1. (a) Stay out of the zone until the pick on nine samples, three per class (approach, in the zone, waiting), with margins 0.25, −0.02, 0.04 from the zone and −1, 0.8, 0.8 at the pick, ϵ=0.07\epsilon= 0.07 per node. (b) The prefix minimum on the simplex of the class weights (illustrative, not to scale): the values zz push the centre (equal weights) by −z/γ-z/\gamma, and the nearest point of the simplex gives the three class weights; the LSE weights lie inside, the GMR weights sum to 0.90 (dashed). (c) Values against the exact ρ\rho and (d) weight per class at the prefix minimum of (b); GMR of order (−10, 10).

The smoothing techniques in use today provide at most the first. The log-sum-exp (LSE) robustness [5] replaces the maximum of mm sample values z=(z1,…,zm)z = (z_1,\ldots,z_m) by β−1log⁡∑ieβzi\beta^{-1} \log\sum_i e^{\beta z_i} with a parameter β>0\beta> 0. It exceeds the maximum by up to log⁡m/β\log m/\beta [6], attained when all values are equal, and it can be nonnegative on a violating trajectory [7]. We call this smoothing the plain LSE. We show that an until operator produces such ties when the deepest violation of its left operand precedes the window, so the plain LSE robustness is positive on a shallow violation. Sound measures remove that defect. The softmax-mean measure under-approximates both extrema [7], and the arithmetic-geometric mean and the generalized-mean robustness (GMR) preserve the sign of the exact robustness [8], [9]. We ask how much weight a temporal operator keeps on its violating samples under each sound measure as the horizon adds samples. Subtracting from the LSE its largest excess, log⁡m/β\log m/\beta, gives the sound LSE, which never exceeds the maximum and whose gradient, the softmax of βz\beta z, gives every sample a positive weight. At a worst-case error ε\varepsilon per operator, its weight on the violating samples tends to zero as the horizon adds samples whose values lie within ε\varepsilon of theirs. By eq. (12) of [9], GMR averages the violating samples over all dd samples of the operator, so its weight on kk of them is of order (k/d)1/q(k/d)^{1/q} for the exponent qq of its power mean.

We replace every extremum by a lower approximation derived from the maximum regularized by a quadratic penalty of weight γ>0\gamma> 0, whose gradient is the sparsemax projection onto the simplex [10], [11]. Figure 1 shows the construction on these nine samples. The value lies below the exact extremum by at most γ/2\gamma/2 for any number of samples, and every sample farther than a data-dependent threshold from the extremum receives a derivative of exactly zero. To our knowledge, the resulting robustness is the first smooth one that is a lower bound of the exact robustness and whose weight on the violating samples, for every gap by which they lie beyond the others, has a lower bound that does not depend on the horizon. Our contributions are the following.

  1. Sound robustness from sparsemax lower extrema. We construct lower approximations of both extrema from the regularized maximum of [11] and prove that the robustness built from them, until included, is a lower bound of the exact one with an error known before optimization (Proposition 1 and Theorem 1, composed as in [6]). We also bound the excess of the plain LSE at an until operator from below and obtain the depth of violation up to which its robustness is positive (Proposition 2).

  1. Horizon-independent gradient allocation. We prove that the sparsemax weight on kk violating samples that lie a gap Δ\Delta beyond the NN others is at least min⁡{1,kΔ/γ}\min\{1,k\Delta/\gamma\} for every NN. At equal worst-case error ε\varepsilon, the weight of the sound LSE tends to zero as NN grows if Δ<ε\Delta< \varepsilon (Theorem 2 and Corollary 1).

  1. Numerical examples. We show on violating trajectories of a planar unicycle and a manipulator that the plain LSE robustness is positive and that the measured weights follow the closed forms. The optimizations demonstrate the two properties with a first-order solver, where the gradient’s allocation sets the update; the immediate update advantage is claimed for first-order methods only (Section V).

Related Work

STL robustness reduces Boolean and temporal requirements to nested extrema over predicate values [2]. Differentiable STL computation graphs expose these quantities to gradient-based methods [3], and temporal masking parallelizes their evaluation [4]. We keep such a graph and study the functions placed at its extremum nodes. An LSE maximum in such a graph is an upper bound of the maximum, so the resulting robustness is not a lower bound, and Proposition 2 shows where the excess is attained.

The softmax-mean measure pairs an LSE minimum with a softmax-weighted mean as the maximum, both under-approximations, so a positive value implies satisfaction for every parameter value [7]. Its minimum is the LSE minimum, so Theorem 2 applies to it at minimum nodes, where the prefix of an until is evaluated. Average-based measures replace the extrema by means, first the arithmetic-geometric mean [8] and then power means and generalized functional means [9]. Their purpose is to remove the locality and masking of the extrema, by which the robustness depends on one operand at one time, so that every subformula and every time sample contributes to the value. They obtain soundness by branching on the sign of the operands, so the sign of the measure equals the sign of the exact robustness. Their conjunction lies at or above the minimum, so these measures preserve the sign and not a margin, and their distance from the exact robustness depends on the operands. A generalized-mean measure that is also continuously differentiable follows the same design [12]. A smooth, idempotent, and commutative conjunction has the derivative 1/M1/M with respect to each of MM equal nonzero operands [13]. A comparison of four smooth measures composes per-node error bounds through the specification by the recursion we also use and allows different operator parameters at different levels of the specification [6].

Sparsemax is the Euclidean projection onto the probability simplex [10], and regularized maxima with their use in differentiable dynamic programming supply the operator we build on [11]. The binary polynomial smooth minimum in [14], Section 5.2.4] coincides with Qγ−Q_{\gamma}^{-} of Equation (7) for two entries. Our contribution is the lower-bound construction for both extrema at any number of entries, its composition through STL, and the allocation result at equal error.

Our operators stand between the extrema and the means. Every sample within a threshold of the extremum contributes, so tied or nearly tied violating samples share the derivative as they do under a mean, and every sample beyond the threshold receives none. It is observed in [9] that a measure which considers only the most critical time suits control in safety-critical applications and that the exponents of the power means set how much the other times contribute. The parameter γ\gamma has that role here, with two guarantees: a lower bound of the exact robustness with an error known before optimization, where a mean preserves the sign alone, and a weight on the violating samples bounded below independently of the number of other samples (Corollary 1). To our knowledge no earlier smooth measure provides both, and none of the works above gives the weight on the violating samples beyond a tie.

Problem Formulation

Specifications and exact robustness

Let xt+1=fh(xt,ut)x_{t+1}=f_h(x_t,u_t) be a discrete-time robot model with sampling period h>0h>0 and fixed initial state x0x_0. The controls U=(u0,…,uT−1)U=(u_0,\ldots,u_{T-1}) lie in a box U\mathcal{U} of actuator bounds and generate the sampled trajectory X(U)=(x0,…,xT)X(U)=(x_0,\ldots,x_T) over the horizon H=ThH=Th. An STL specification in negation normal form is built from the grammar

ϕ::=μ∣¬μ∣ϕ∧ψ∣ϕ∨ψ∣GIϕ∣FIϕ∣ϕUIψ,(1)\phi::= \mu\mid\neg\mu\mid\phi\wedge\psi\mid\phi\vee\psi\mid G_I\phi\mid F_I\phi\mid\phi\mathbin{\mathsf{U}}_I\psi, \tag*{(1)}

where μ\mu is a predicate with a continuously differentiable value gμ(xt)g_\mu(x_t) that is nonnegative when the predicate holds, so that ρtμ=gμ(xt)\rho^\mu_t=g_\mu(x_t) and ρt¬μ=−gμ(xt)\rho^{\neg\mu}_t=-g_\mu(x_t), and I={a,…,b}I=\{a,\ldots,b\} with integers 0≤a≤b0\le a\le b is a window of sample offsets. The robustness of a specification at sample tt is defined recursively from the predicate values by

ρtϕ∧ψ=min⁡{ρtϕ,ρtψ},ρtϕ∨ψ=max⁡{ρtϕ,ρtψ},\rho^{\phi\wedge\psi}_t=\min\{\rho^\phi_t,\rho^\psi_t\},\qquad\rho^{\phi\vee\psi}_t=\max\{\rho^\phi_t,\rho^\psi_t\},
ρtGIϕ=min⁡j∈Iρt+jϕ,ρtFIϕ=max⁡j∈Iρt+jϕ,\rho^{G_I\phi}_t=\min_{j\in I}\rho^\phi_{t+j},\qquad\rho^{F_I\phi}_t=\max_{j\in I}\rho^\phi_{t+j},
ρtϕUIψ=max⁡j∈Imin⁡{ρt+jψ,min⁡0≤i≤jρt+iϕ}.(2)\rho^{\phi\mathbin{\mathsf{U}}_I\psi}_t=\max_{j\in I}\min\left\{\rho^\psi_{t+j},\min_{0\le i\le j}\rho^\phi_{t+i}\right\}. \tag*{(2)}

and we say that the sampled trajectory satisfies ϕ\phi when ρ(X)=ρ0ϕ≥0\rho(X)=\rho^\phi_0\ge0. We use the until semantics with a closed prefix [9], [15], in which the witness at offset j∈Ij\in I requires ψ\psi at t+jt+j and ϕ\phi at every sample from tt through t+jt+j. Unrolling Equation (2) over the samples gives a finite acyclic evaluation graph whose leaves are predicate values and whose internal nodes are minima and maxima. A node is evaluated only where every sample its window reads exists, so the horizon of a specification is at most HH. We write ch⁡(v)\operatorname{ch}(v) for the children of node vv and mvm_v for their number. Figure 2 shows the two levels of an until node.

Evaluation graph for an until node

Figure 2. The until node ϕUIψ\phi\mathbin{\mathsf{U}}_{I}\psi at sample tt for a window of four offsets. The outer maximum ranges over the witnesses j∈Ij\in I, and the child of witness jj is a minimum over ρt+jψ\rho^\psi_{t+j} and the closed prefix ρtϕ,…,ρt+jϕ\rho^\phi_t,\ldots,\rho^\phi_{t+j}. Each node is labeled with its error band bm(γ)b_m(\gamma) of Proposition 1.

Constrained trajectory optimization

We seek controls of least effort E(U)E(U) that satisfy a specification ϕ=⋀j=1Jϕj\phi=\bigwedge_{j=1}^{J}\phi_j,

min⁡U∈UE(U)subject toρ0ϕj(X(U))≥0,j=1,…,J.(3)\min_{U\in\mathcal{U}} E(U)\quad\text{subject to}\quad\rho^{\phi_j}_0(X(U))\ge0,\quad j=1,\ldots,J. \tag*{(3)}

The conjunction at the top of the specification is imposed exactly as JJ constraints. Since each ρ0ϕj\rho^{\phi_j}_0 is nonsmooth in UU, a gradient-based solver replaces every extremum node of the graph by a smooth function of its children and solves

min⁡U∈UE(U)subject toρ~j(X(U))≥c,j=1,…,J,(4)\min_{U\in\mathcal{U}} E(U)\quad\text{subject to}\quad\widetilde{\rho}_j(X(U))\ge c,\quad j=1,\ldots,J, \tag*{(4)}

with a margin c≥0c\ge0. The smoothing thus sets the feasible set of Equation (4) and the search direction of the solver.

Two requirements on the smoothing

The first requirement concerns the feasible set.

Definition 1. A smoothed robustness ρ~\widetilde{\rho} is sound if ρ~(X)≥0\widetilde{\rho}(X)\ge0 implies ρ(X)≥0\rho(X)\ge0 for every trajectory XX. It is a lower bound with budget B≥0B\ge0 if ρ(X)−B≤ρ~(X)≤ρ(X)\rho(X)-B\le\widetilde{\rho}(X)\le\rho(X) for every XX.

A lower bound is sound, and a margin on it is a margin on the exact robustness, since ρ~≥c\widetilde{\rho}\ge c implies ρ≥c\rho\ge c. With lower bounds ρ~j\widetilde{\rho}_j the feasible set of Equation (4) lies inside that of Equation (3), every feasible trajectory satisfies the specification, and the solver may return the first one it reaches. If ρ~j≥c\widetilde{\rho}_j\ge c can hold where ρ0ϕj<0\rho^{\phi_j}_0<0, the feasible set contains violating trajectories, which a solver that minimizes the effort can return.

The second requirement concerns the search direction. By the chain rule, the gradient of a smoothed robustness with respect to the controls is a weighted sum ∑ℓπℓ∇Ugℓ(X(U))\sum_\ell\pi_\ell\nabla_Ug_\ell(X(U)) over the predicate leaves ℓ\ell. The leaf weight πℓ\pi_\ell is the sum over root-to-leaf paths of the products of the derivatives of the smooth extrema along the path. At one extremum node with child values z∈Rmz\in\mathbb{R}^m, exact extremum AA and smooth replacement A~\widetilde{A}, we call ∑i∈C∂A~(z)/∂zi\sum_{i\in C}\partial\widetilde{A}(z)/\partial z_i the weight on the children CC. On a violating trajectory the children that attain the minimum of a temporal operator over predicates are violating samples, and the number of its other children grows with the horizon.

Problem 1. Find smooth replacements of the minimum and the maximum such that, for every specification of Equation (1), (R1) the smoothed robustness is a lower bound whose budget depends only on the evaluation graph and the smoothing parameters, and (R2) at a node whose kk extreme children are separated from its NN other children by a gap Δ>0\Delta>0, the weight on the kk children stays bounded away from zero as NN grows.

Every smooth extremum tends to the exact one as its worst-case error sup⁡z∣A~(z)−A(z)∣\sup_z|\widetilde{A}(z)-A(z)| tends to zero, and its gradient then changes more abruptly with the trajectory. We therefore pose (R2) at a fixed worst-case error ε\varepsilon per node and compare two smoothings at equal ε\varepsilon.

Sparsemax Lower Extrema

The operators

For z∈Rmz\in\mathbb{R}^m and γ>0\gamma>0, the quadratically regularized maximum over the simplex Sm={p∈Rm:p≥0,1Tp=1}S_m=\{p\in\mathbb{R}^m:p\ge0,\mathbf{1}^{\mathsf T}p=1\} and its maximizer are

Mγ(z)=max⁡p∈Sm(pTz−γ2∥p∥2),pγ(z)=ΠSm(z/γ).(5)M_\gamma(z)=\max_{p\in S_m}\left(p^{\mathsf T}z-\frac{\gamma}{2}\|p\|^2\right),\qquad p_\gamma(z)=\Pi_{S_m}(z/\gamma). \tag*{(5)}

The objective is strictly concave, completing the square gives the Euclidean projection ΠSm\Pi_{S_m}, which is the sparsemax map [10], and the envelope theorem gives ∇Mγ(z)=pγ(z)\nabla M_\gamma(z)=p_\gamma(z). The optimality conditions of the projection are

pγ,i(z)=(zi−θ)+γ,∑i=1m(zi−θ)+=γ.(6)p_{\gamma,i}(z)=\frac{(z_i-\theta)_+}{\gamma},\qquad\sum_{i=1}^{m}(z_i-\theta)_+=\gamma. \tag*{(6)}

so every entry at or below the threshold θ\theta receives a derivative of exactly zero (Figure 1(b)). The maximum of the penalty over the simplex is γ/2\gamma/2 and its minimum is γ/(2m)\gamma/(2m), so Mγ(z)M_\gamma(z) lies between max⁡izi−γ/2\max_i z_i-\gamma/2 and max⁡izi−γ/(2m)\max_i z_i-\gamma/(2m) [11 Lemma 1]. Shifting by these two constants gives lower approximations of both extrema,

Qγ+(z)=Mγ(z)+γ2m,Qγ−(z)=−Mγ(−z)−γ2.(7)Q_\gamma^+(z)=M_\gamma(z)+\frac{\gamma}{2m},\qquad Q_\gamma^-(z)=-M_\gamma(-z)-\frac{\gamma}{2}. \tag*{(7)}

Proposition 1 (Error bands). Let bm(γ)=γ2(1−1/m)b_m(\gamma)=\frac{\gamma}{2}(1-1/m). For every z∈Rmz\in\mathbb{R}^m,

0≤max⁡izi−Qγ+(z)≤bm(γ),0\le\max_i z_i-Q_\gamma^+(z)\le b_m(\gamma),
0≤min⁡izi−Qγ−(z)≤bm(γ).(8)0\le\min_i z_i-Q_\gamma^-(z)\le b_m(\gamma). \tag*{(8)}

Both operators are continuously differentiable and nondecreasing in every entry, with gradients pγ(z)p_\gamma(z) and pγ(−z)p_\gamma(-z) in the simplex.

Proof. A vertex that attains max⁡izi\max_i z_i gives Mγ(z)≥max⁡izi−γ/2M_\gamma(z)\ge\max_i z_i-\gamma/2. Every p∈Smp\in S_m satisfies p⊤z≤max⁡izip^\top z\le\max_i z_i and ∥p∥22≥1/m\lVert p\rVert_2^2\ge1/m, so Mγ(z)≤max⁡izi−γ/(2m)M_\gamma(z)\le\max_i z_i-\gamma/(2m). Applying both bounds to zz and to −z-z gives (8). The gradients follow from the chain rule, and a gradient in the simplex has nonnegative entries.

The band does not depend on zz and is at most γ/2\gamma/2 for every mm, at minimum and maximum nodes alike. Figure 3(a) shows Qγ−Q_\gamma^- inside its band.

The minima of sparsemax and of the sound LSE

Figure 3. The minima of sparsemax and of the sound LSE on k=10k = 10 entries at the minimum and NN entries a gap Δ\Delta above it, at equal worst-case error ε=0.2\varepsilon= 0.2; N=400N = 400 in (a) and (b). (a) Both values lie in the band [min⁡z−ε,min⁡z][\min z-\varepsilon,\min z]. (b) Weight on one minimal entry (solid) and on one other entry (dashed), exactly zero for sparsemax once Δ≥γ/k\Delta\ge\gamma/k. (c) Weight on the kk entries against NN (Theorem 2): WQ=1W_Q = 1 at every ratio Δ/ε\Delta/\varepsilon shown, since kΔ≥γk\Delta\ge\gamma there, and each WLW_L curve is labeled by its ratio.

A lower bound on the evaluation graph

Replace the extremum at every internal node vv by the operator of (7) with the number mvm_v of its children and its parameter γv\gamma_v, and let ρ~v\tilde{\rho}_v and ρv\rho_v be the smoothed and exact values of the node. A predicate leaf may itself be evaluated by a smooth function that lies at most ev≥0e_v\ge0 below the exact predicate and never above it. Define the budget

Bv={ev,leaf,bmv(γv)+max⁡u∈ch⁡(v)Bu,otherwise.(9)B_v= \begin{cases} e_v, & \text{leaf},\\ b_{m_v}(\gamma_v)+\max_{u\in\operatorname{ch}(v)}B_u, & \text{otherwise}. \end{cases} \tag*{(9)}

which is the recursion that composes per-node bands of LSE and softmax operators in [6]. Every node is evaluated as one operator over all of its children, as Figure 2 draws the two levels of an until; the operators are not associative, so splitting a node into nested ones changes the function and adds a band to its path.

Theorem 1 (Lower bound). On a finite acyclic evaluation graph of minima and maxima whose leaves satisfy 0≤ρv−ρ~v≤ev0\le\rho_v-\tilde{\rho}_v\le e_v, every node satisfies

0≤ρv−ρ~v≤Bv.(10)0\le\rho_v-\tilde{\rho}_v\le B_v. \tag*{(10)}

At the root, BvB_v is the largest sum, along a root-to-leaf path, of the bands of its nodes and the error of its leaf.

Proof. The claim holds at the leaves by assumption. Suppose it holds at every child of a node, and let aa and a~\tilde{a} collect the exact and smoothed child values, AA the node’s exact extremum, and QQ its operator of (7). Monotonicity of AA and Proposition 1 give A(a)≥A(a~)≥Q(a~)A(a)\ge A(\tilde{a})\ge Q(\tilde{a}). Since AA is nonexpansive in the infinity norm, A(a)−A(a~)≤max⁡uBuA(a)-A(\tilde{a})\le\max_u B_u, and A(a~)−Q(a~)≤bmv(γv)A(\tilde{a})-Q(\tilde{a})\le b_{m_v}(\gamma_v) by Proposition 1. Adding the two gives (10), and unrolling (9) gives the path sum. □\square

The smoothed robustness is therefore a lower bound in the sense of Definition 1, which is (R1). The budget is fixed by the graph and the parameters before any trajectory is evaluated. An until node is one maximum over ∣I∣|I| witnesses whose child for witness jj is a minimum over j+2j+2 values, so it adds two bands to a path for any window length,

BU=b∣I∣(γout)+max⁡j∈I{bj+2(γj)+max⁡{Bϕ,Bψ}}.(11)B_U=b_{|I|}(\gamma_{\mathrm{out}})+\max_{j\in I}\left\{b_{j+2}(\gamma_j)+\max\{B_\phi,B_\psi\}\right\}. \tag*{(11)}

The statements concern the sampled semantics in exact arithmetic. They do not cover the behavior between samples.

The log-sum-exp at an until node

The LSE maximum L‾β(z)=β−1log⁡∑i=1meβzi\overline{L}_\beta(z)=\beta^{-1}\log\sum_{i=1}^m e^{\beta z_i} lies above the maximum, and when nn entries attain the maximum,

log⁡nβ≤L‾β(z)−max⁡izi≤log⁡mβ.(12)\frac{\log n}{\beta}\le\overline{L}_\beta(z)-\max_i z_i\le\frac{\log m}{\beta}. \tag*{(12)}

The LSE minimum −L‾β(−z)-\overline{L}_\beta(-z) lies below the minimum. We call a graph with these two operators the plain LSE. Its excess at a maximum grows with the number of tied entries, and an until operator produces such ties.

Proposition 2 (Sign flip at until). Let the exact value of an until node with window II be −δ<0-\delta< 0, attained by nn of its witnesses. Replace the maximum over witnesses by L‾β\overline{L}_{\beta} and every inner minimum by a lower approximation whose error on the attaining witnesses is at most ee. Then the smoothed value ρ^\hat{\rho} of the node satisfies

ρ^≥−δ−e+log⁡nβ.(13)\hat{\rho} \ge-\delta-e+\frac{\log n}{\beta}. \tag*{(13)}

Suppose that ϕ\phi attains its minimum over the samples t,…,t+max⁡It,\ldots,t+\max I before the window opens (a≥1a\ge1), that this minimum is −δ<0-\delta<0, and that ψt+j≥−δ\psi_{t+j}\ge-\delta for at least one j∈Ij\in I. Then the exact value of the node is −δ-\delta, and the attaining witnesses are exactly those jj.

Proof. The smoothed inner values of the nn attaining witnesses are at least −δ−e-\delta-e. Since L‾β\overline{L}_{\beta} is nondecreasing in every entry and its other entries contribute positive terms, ρ^\hat{\rho} is at least L‾β\overline{L}_{\beta} of nn entries equal to −δ−e-\delta-e, which is (13). For the second statement, the prefix of every witness contains the minimizing sample, so its inner minimum is min⁡{ρt+jψ,−δ}\min\{\rho_{t+j}^{\psi},-\delta\}, which equals −δ-\delta when ρt+jψ≥−δ\rho_{t+j}^{\psi}\ge-\delta and is smaller otherwise. □

With β=log⁡∣I∣/ε\beta=\log|I|/\varepsilon, the plain LSE value of the violated node is positive whenever δ+e<εlog⁡n/log⁡∣I∣\delta+e<\varepsilon\log n/\log|I|. A trajectory whose deepest violation of ϕ\phi up to the end of the window occurs before the window opens, and which satisfies ψ\psi throughout the window, ties all ∣I∣|I| witnesses. The plain LSE value is then positive for every violation δ<ε−e\delta<\varepsilon-e, so the constraint of an until conjunct in (4) holds with c=0c=0 on a violating trajectory. By Theorem 1, the operators of (7) give it a negative value.

Gradient allocation at equal error

Soundness alone is available from the LSE as well. Subtracting its worst-case excess gives the lower maximum

Lβ(z)=L‾β(z)−log⁡mβ,(14)L_{\beta}(z)=\overline{L}_{\beta}(z)-\frac{\log m}{\beta}, \tag*{(14)}

which by (12) lies at most log⁡m/β\log m/\beta below the maximum and never above it. It is the generalized mean with generating function eβxe^{\beta x} [9 Section IV-C]. The LSE minimum has the same band below the minimum [7]. A graph with LβL_{\beta} at maximum nodes and the LSE minimum at minimum nodes is therefore a lower bound by the argument of Theorem 1. This graph is the sound LSE. Its gradient is the softmax of βz\beta z, which is positive on every entry. To compare the two families at one node of m>1m>1 entries, we give them the same worst-case error ε\varepsilon,

β=log⁡mε,γ=2ε1−1/m.(15)\beta=\frac{\log m}{\varepsilon},\qquad\gamma=\frac{2\varepsilon}{1-1/m}. \tag*{(15)}

Theorem 2 (Gradient allocation). Let a maximum node have k≥1k\ge1 children equal to 00 and N≥1N\ge1 children equal to −Δ-\Delta, with Δ>0\Delta>0 and m=k+Nm=k+N. The weights of LβL_{\beta} and of Qγ+Q_{\gamma}^{+} on the kk children are

WL=kk+Ne−βΔ,WQ=min⁡{1,km+kNΔmγ}.(16)W_L=\frac{k}{k+Ne^{-\beta\Delta}},\qquad W_Q=\min\left\{1,\frac{k}{m}+\frac{kN\Delta}{m\gamma}\right\}. \tag*{(16)}

and WQ=1W_Q=1 if and only if Δ≥γ/k\Delta\ge\gamma/k. Under (15), with kk, ε\varepsilon, and Δ\Delta fixed and N→∞N\to\infty,

WQ→min⁡{1,kΔ2ε},WL→{0,Δ<ε,k/(k+1),Δ=ε,1,Δ>ε.(17)W_Q\to\min\left\{1,\frac{k\Delta}{2\varepsilon}\right\},\qquad W_L\to \begin{cases} 0,&\Delta<\varepsilon,\\ k/(k+1),&\Delta=\varepsilon,\\ 1,&\Delta>\varepsilon. \end{cases} \tag*{(17)}

The same statements hold at a minimum node after negating the children.

Proof. WLW_L is the sum of the softmax weights of the kk children. For Qγ+Q_{\gamma}^{+}, if the NN children are above threshold, symmetry and (6) give θ=−(NΔ+γ)/m\theta=-(N\Delta+\gamma)/m, so each of the kk children has weight (NΔ+γ)/(mγ)(N\Delta+\gamma)/(m\gamma), and θ<−Δ\theta<-\Delta holds precisely when kΔ<γk\Delta<\gamma. Otherwise the NN children receive zero and the kk children 1/k1/k each, which proves (16). Under (15), γ→2ε\gamma\to2\varepsilon and N/m→1N/m\to1, which gives the limit of WQW_Q, and Ne−βΔ=(N/m)m1−Δ/εNe^{-\beta\Delta}=(N/m)m^{1-\Delta/\varepsilon} diverges, tends to one, or vanishes as Δ\Delta is below, at, or above ε\varepsilon. □

Corollary 1 (Weight under a gap). Let the kk largest children of a maximum node exceed each of its NN other children by at least Δ>0\Delta>0. Then, for every NN and all values of the children, WQ≥min⁡{1,kΔ/γ}W_Q\ge\min\{1,k\Delta/\gamma\} and WL≥k/(k+Ne−βΔ)W_L\ge k/(k+Ne^{-\beta\Delta}). The configuration of Theorem 2 attains the bound on WLW_L for every NN.

Proof. Let cc be the smallest of the kk children and θ\theta the threshold of (6). If c−θ≤Δc-\theta\le\Delta, every other child lies at or below θ\theta and WQ=1W_Q=1. Otherwise each of the kk children has weight at least (c−θ)/γ>Δ/γ(c-\theta)/\gamma>\Delta/\gamma. The bound on WLW_L holds because the softmax weight of the kk children increases with their values and decreases with those of the others. □

Remark 1 (Unequal children). The kk children need not be equal. Let them take values −δi≤0-\delta_i\le0 with min⁡iδi=0\min_i\delta_i=0, above the NN others at −Δ-\Delta. The softmax sum gives WL=keff/(keff+Ne−βΔ)W_L=k_{\mathrm{eff}}/(k_{\mathrm{eff}}+Ne^{-\beta\Delta}) with the effective count keff=∑ie−βδi≤kk_{\mathrm{eff}}=\sum_i e^{-\beta\delta_i}\le k, where Ne−βΔNe^{-\beta\Delta} becomes ∑je−βΔj\sum_j e^{-\beta\Delta_j} if the others lie at −Δj-\Delta_j, and (6) gives WQ=1W_Q=1 if and only if ∑i(Δ−δi)≥γ\sum_i(\Delta-\delta_i)\ge\gamma. Both statements reduce to (16) for equal children.

Theorem 2 and Corollary 1 answer (R2): the sparsemax weight on the kk children is bounded below independently of NN and of the values of the other children, is the whole weight once Δ≥γ/k\Delta\ge\gamma/k, and, since γ≤4ε\gamma\le4\varepsilon under Equation (15) for every m≥2m\ge2, is at least min⁡{1,kΔ/(4ε)}\min\{1,k\Delta/(4\varepsilon)\} at every NN. For Δ<ε\Delta<\varepsilon the sound LSE has no such bound, since its weight in the configuration of Theorem 2 is the smallest possible and decays as N−(1−Δ/ε)N^{-(1-\Delta/\varepsilon)} (Figure 3(b,Figure 3c)). For Δ>ε\Delta>\varepsilon the weight of the sound LSE on the kk children also tends to 11, so choosing ε\varepsilon below the gap restores its weight. The gap is a property of the trajectory, however, and is not known when ε\varepsilon is chosen. Sparsemax keeps the whole weight for every ε≤kΔ(1−1/m)/2\varepsilon\le k\Delta(1-1/m)/2, at every NN. This range exceeds the range ε<Δ\varepsilon<\Delta of the sound LSE by the factor k(1−1/m)/2k(1-1/m)/2, which is above one for k≥3k\ge3. A smaller γ\gamma widens that range of gaps, but the gradient of the lower extrema is Lipschitz in the Euclidean norm with constant 1/γ1/\gamma, so the constraint becomes less smooth, and as γ→0\gamma\to0 the operator tends to the exact extremum; at equal ε\varepsilon this constant, (1−1/m)/(2ε)(1-1/m)/(2\varepsilon), is below the LSE gradient’s log⁡m/(2ε)\log m/(2\varepsilon) for every m≥2m \ge2. The matching Equation (15) equalizes the worst-case error and not the realized error. At a tie of kk entries of a minimum node whose other entries lie far above the tie, the error of Qγ−Q_\gamma^{-} is ε(1−1/k)/(1−1/m)\varepsilon(1-1/k)/(1-1/m) and that of the LSE minimum tends to εlog⁡k/log⁡m\varepsilon\log k/\log m, which is smaller for 1<k<m1 < k < m, so sparsemax gives the smaller value at equal ε\varepsilon.

The inner minimum of an until node runs over every sample of the prefix, so a trajectory that violates ϕ\phi at kk samples and then keeps ρϕ\rho^\phi a gap Δ\Delta above the violation for NN samples gives the node the structure of Theorem 2, with NN growing by one per sampling period of the wait. Through the chain rule the controls receive ∑ipγ,i∇Uzi\sum_i p_{\gamma,i}\nabla U z_i, so the NN samples contribute nothing under sparsemax once Δ≥γ/k\Delta\ge\gamma/k and almost everything under the sound LSE once WLW_L is small. Whether this weight moves the trajectory out of the violation depends on the dynamics (§ 5).

Numerical Examples

Planar unicycle

A unicycle with position (x,y)(x,y) and heading θ\theta follows x+=x+hvcos⁡θx^+ = x + hv\cos\theta, y+=y+hvsin⁡θy^+ = y + hv\sin\theta, θ+=θ+hω\theta^+ = \theta+ h\omega with h=0.1h = 0.1 s, speed ∣v∣≤1\lvert v\rvert\le1 m/s, and turn rate ∣ω∣≤π/2\lvert\omega\rvert\le\pi/2 rad/s. Four disks lie in a square workspace of side 10 m (Figure 4(a)), and the predicate of a disk is the signed distance to its boundary in metres. The unicycle must stay out of Red until it is in Green within a window of 2 s, then reach Blue and stay there for 2 s, never enter the Obstacle, and stay in the workspace,

Figure 4. Planar unicycle. (a) The regions and the two fixed trajectories: S1S_1 cuts into Red and waits beside it, S2S_2 passes Red at a clearance of 0.3 m. (b) Distance from Red of the trajectories returned at c=0c=0 under the plain LSE (solid) and the sound LSE (dashed), GMR of order (−10,10)(-10,10), and sparsemax, from the initial trajectory S1S_1 (dotted).

ϕ=(¬Red UI1 Green)∧FI2G[0,2]Blue∧G¬Obstacle∧GBoundary.(18)\phi= (\neg\mathrm{Red}\ \mathbin{\mathbf{U}}_{I_1}\ \mathrm{Green}) \land\mathbf{F}_{I_2}\mathbf{G}_{[0,2]}\mathrm{Blue} \land\mathbf{G}\neg\mathrm{Obstacle} \land\mathbf{G}\mathrm{Boundary}. \tag*{(18)}

Two fixed trajectories round Red on the way to Green. S1S_1 cuts into Red on an arc concentric with it, so k=21k = 21 samples lie inside Red at a depth of at most δ=0.015\delta= 0.015 m, and then waits 0.023 m outside Red until the window I1I_1 opens. We lengthen the wait from 3 to 130 s, which keeps N=31N = 31 to 1301 samples a gap Δ=0.038\Delta= 0.038 m above the violation. S2S_2 passes Red at a clearance of 0.3 m at one point and satisfies ϕ\phi with exact robustness 0.3, which the until conjunct sets.

We compare five robustness measures. The plain LSE, the sound LSE, and sparsemax have the same worst-case error ε=0.1\varepsilon= 0.1 m per node under Equation (15), so δ=0.15ε\delta= 0.15\varepsilon and Δ=0.38ε\Delta= 0.38\varepsilon. The generalized-mean robustness (GMR) [9] replaces a conjunction of dd operands by the power mean (1d∑ixip)1/p(\frac{1}{d}\sum_i x_i^p)^{1/p}, the geometric mean at p=0p = 0, when every operand is positive and by −(1d∑i∣min⁡{xi,0}∣q)1/q-(\frac{1}{d}\sum_i \lvert\min\{x_i,0\}\rvert^q)^{1/q} otherwise. It evaluates each witness of until as a two-operand conjunction of the right operand with the conjunction over the prefix. It is sound for all pp and qq [9 Theorem 2], since its sign is that of the exact robustness, and it preserves the sign and not a margin (§ 2). We use the orders (p,q)=(0,1)(p,q) = (0,1), a setting used in [9], and (−10,10)(-10,10), whose power means lie closer to the extrema. As p→−∞p \to-\infty and q→∞q \to\infty GMR tends to the exact robustness [9 Sections IV-B and IV-C], as the LSE and sparsemax do for ε→0\varepsilon\to0, so its order sets how much the other samples contribute against its closeness to the exact robustness, as ε\varepsilon does.

On S1S_1 the unicycle is in Green through the whole window, so all 21 witnesses tie and the plain LSE is positive (Table I) on a trajectory 0.015 m inside Red, within 0.006ε0.006\varepsilon of the bound of Proposition 2 with an inner-minimum error of 0.62ε0.62\varepsilon; the error of sparsemax, 0.95ε0.95\varepsilon, arises at the inner minimum over the tied samples (Proposition 1), and both orders of GMR have the correct sign. On S2S_2, at a clearance of 0.3 m, the plain LSE and GMR exceed it, whereas the sound LSE and sparsemax give margins that Theorem 1 certifies. The weight of sparsemax on the samples inside Red stays 1, that of both LSE variants falls as Theorem 2 predicts for Δ<ε\Delta< \varepsilon, and that of GMR scales, by eqs. (12) and (15) of [9], as (k/(2d))1/q(k/(2d))^{1/q} with the dd samples of the prefix.

measurevalue S1S_1value S2S_2weight on S1S_1 3 sweight on S1S_1 130 sreturned ρ\rho c=0c=0returned ρ\rho c=0.2c=0.2
exact−0.015-0.0150.3000.300
plain LSE+0.024+0.0240.3570.3570.680.680.190.19−0.058-0.0580.1460.146
sound LSE−0.076-0.0760.2580.2580.680.680.190.190.0450.0450.2180.218
GMR (0,1)(0,1)−0.0001-0.00011.691.690.0430.0430.0070.007<0.001< 0.001<0.001< 0.001
GMR (−10,10)(-10,10)−0.009-0.0090.490.490.710.710.600.60<0.001< 0.0010.1410.141
sparsemax−0.110-0.1100.2140.2141.0001.0001.0001.0000.0870.0870.2480.248

Table I. Planar unicycle at ε=0.1\varepsilon= 0.1 m: values of ϕ\phi on the fixed trajectories at the 3 s wait, weight on the samples of S1S_1 inside Red at waits of 3 and 130 s, and exact robustness of the trajectory returned from S1S_1 at constraint level cc. Entries shown as <0.001< 0.001 lie in (0,0.001)(0,0.001).

We then minimize the effort E=1T∑t∥ut/umax⁡∥2E = \frac{1}{T}\sum_t \lVert u_t/u_{\max}\rVert^2 subject to Equation (4), from S1S_1, with a first-order augmented Lagrangian method under single shooting over the box-bounded controls: 400 updates, each a step along the normalized gradient of the augmented Lagrangian under an Armijo backtracking, with the multiplier and penalty of each conjunct revised every ten updates. Every smoothed constraint then holds within 0.0003 m, and the exact robustness values that follow are measured on the returned trajectories. With c=0c = 0 every constraint of the plain LSE holds on a trajectory that cuts 0.058 m into Red (Figure 4(b)). The constraint of GMR at zero is the exact constraint, and the trajectory of order (−10,10)(-10, 10) touches Red. The sound LSE and sparsemax keep the unicycle 0.045 and 0.087 m outside. With c=0.2c = 0.2 m only these two lower bounds return a trajectory whose exact robustness is at least cc, at efforts 1% and 4% above that of the plain LSE. From S2S_2 the plain LSE returns a violating trajectory with c=0c = 0, and the two lower bounds meet c=0.2c = 0.2 m. The authors of GMR instead maximize it in the cost under a margin constraint [9].

Manipulator beside a person

A simulated seven-joint Franka Panda manipulator under torque control shares a table with a person. It picks a part outside a zone, a ball of radius 0.2 m centred 0.5 m in front of its base and reserved for the person’s reach, and hands it over inside the zone (Figure 5). Each predicate is a distance or speed margin divided by its threshold. The length is a smooth norm, ∥x∥2+η2\sqrt{\lVert x\rVert^2+\eta^2} in a margin of the form threshold minus length and ∥x∥2+η2−η\sqrt{\lVert x\rVert^2+\eta^2}-\eta in one of the form length minus threshold, with η\eta one percent of the smallest threshold, so every leaf lies at most ev=0.01e_{\mathrm{v}}=0.01 below its exact value and never above it. With times in seconds, a horizon HH, a pick window [w,w+1][w,w+1], and a handover window IhI_{\mathrm{h}} after it, the specification is

Manipulator, person and zone at five times, with exact predicate values and sample weights

Figure 5. A violating initial trajectory of the manipulator (H=10H = 10 s, exact robustness −0.05). Top: manipulator, person and zone (green) at five times. Bottom left: exact predicate values; the end effector is inside the zone for 0.3 s and then waits at the pick pose. Bottom right: weight on the samples inside the zone at ε=0.2\varepsilon= 0.2, medians over the four trajectories (markers), with the curves of Remark 1 for the LSE and sparsemax and straight lines for GMR.

ϕ=G[0,H]⋀ℓ,ssep⁡ℓs∧G[0,H]⋀ℓ(⋀sslow⁡ℓs∨speed⁡ℓ)∧(clear⁡ U[w,w+1]pick⁡)∧FIhG[0,0.8]hand⁡,(19)\phi= \mathbf{G}_{[0,H]}\bigwedge_{\ell,s}\operatorname{sep}_{\ell s}\land\mathbf{G}_{[0,H]}\bigwedge_{\ell}\left(\bigwedge_s\operatorname{slow}_{\ell s}\lor\operatorname{speed}_{\ell}\right) \land\left(\operatorname{clear}\ \mathbf{U}_{[w,w+1]}\operatorname{pick}\right)\land\mathbf{F}I_{\mathrm{h}}\mathbf{G}_{[0,0.8]}\operatorname{hand}, \tag*{(19)}

where sep and slow bound the separation of the manipulator’s spheres ℓ\ell from the person’s spheres ss, speed bounds their speed, clear is the distance of the end effector from the zone, and pick and hand are tolerances about two poses. The thresholds are a separation of 0.10 m for sep, 0.30 m and 0.25 m/s for slow and speed, and 0.05 m about the pick and handover targets; the pick window opens at w=H−2.78w=H-2.78 s and the handover window IhI_{\mathrm{h}} follows it and its dwell ends at HH. We sample at h=0.02h=0.02 s, simulate with the Warp implementation of MuJoCo [16], and differentiate it in reverse mode.

On four initial trajectories, which differ in one intermediate configuration, the end effector overshoots into the zone on its way to the pick pose, and the manipulator then waits at that pose until the pick window closes at H−1.78H-1.78 s. In units of the worst-case error ε=0.2\varepsilon=0.2 per node, the overshoot is 0.25ε0.25\varepsilon deep and the pick pose lies a gap Δ=0.375ε\Delta=0.375\varepsilon above it. The end effector is inside the zone at k=18k=18 or 19 samples, and the wait contains N=287N=287, 787, 1787, and 3787 samples at horizons of 10, 20, 40, and 80 s. Each trajectory violates the until conjunct with exact robustness −0.05-0.05 and satisfies the other three conjuncts.

The manipulator waits at the pick pose through the whole pick window, so all 51 witnesses tie and the plain LSE is positive on the violated conjunct (Table II), as Proposition 2 predicts. The sound LSE and sparsemax give values below the exact one and within the budget BU=2ε+ev=0.41B_{\mathrm{U}}=2\varepsilon+e_{\mathrm{v}}=0.41 of (11). The weight of sparsemax on the samples inside the zone is 1.000 at every horizon, because every sample of the wait lies beyond the threshold θ\theta of (6). The weight of the LSE falls from 0.216 to 0.036 and stays within 5% of the expression of Remark 1 (Figure 5). By eqs. (12) and (15) of [9], the weight of GMR scales as (k/(2d))1/q(k/(2d))^{1/q}. The chain rule carries these weights to the torques. The part of the gradient with respect to the normalized torques ut/umax⁡u_t/u_{\max} that passes through the samples inside the zone, in the Euclidean norm over all samples, is the same at 10 and 80 s under sparsemax and falls by a factor of 5.4 under the LSE and of 10 under GMR of order (0,1)(0,1).

measurevalueweight on 10 sweight on 80 storque gradient through the samples inside the zone 10 storque gradient through the samples inside the zone 80 s
exact−0.050-0.050
plain LSE+0.023+0.0230.2160.0363.620.67
sound LSE−0.177-0.1770.2160.0363.620.67
GMR (0,1)(0,1)−0.0006-0.00060.0240.00240.400.039
GMR (−10,10)(-10,10)−0.029-0.0290.5880.46710.18.0
sparsemax−0.220-0.2201.0001.00016.8216.82

Table II. The until conjunct on the violating initial trajectories of the manipulator at ε=0.2\varepsilon=0.2, medians over the four trajectories: value at H=10H=10 s, sum of the leaf weights on the samples inside the zone, and norm of the part of the torque gradient that passes through those samples.

We repeat the optimization on the torques with c=0c=0 from initial trajectories with exact robustness −0.05-0.05 and −0.10-0.10, overshoots of 1.0 and 2.0 cm, at 16 pick and handover locations and horizons of 10, 20, and 40 s with the solver of the unicycle example, whose normalized step removes the gradient’s size from the update. In the median over the 16 locations, the first exactly satisfying trajectory comes at update 1 or 2 under sparsemax and GMR of order (−10,10)(-10,10) at every horizon and from 4.5 to 19.5 updates, growing with the horizon, under the sound LSE (Table III). Under the solver’s own constraint the medians are 10 to 20 updates for sparsemax and 12.5 to 29 for the sound LSE, and 3 of 32 sparsemax trajectories at 40 s never meet it, since its realized error is larger (Table II). After 100 updates at 40 s the median exact robustness is near zero under the plain LSE, whose constraints hold at the violating initial trajectory so its first updates reduce the effort alone, and under GMR, which preserves the sign and not a margin, while the two lower bounds keep their realized errors as margins.

Conclusion

The sparsemax lower extrema are lower bounds with an error per node of at most γ/2\gamma/2 for any number of samples, and their weight on kk samples a gap Δ\Delta beyond all others is at least min⁡{1,kΔ/γ}\min\{1,k\Delta/\gamma\} for every horizon. At equal worst-case error ε\varepsilon this weight is at least min⁡{1,kΔ/(4ε)}\min\{1,k\Delta/(4\varepsilon)\}, while the weight of the sound LSE tends to zero as the number of other samples grows when Δ<ε\Delta<\varepsilon (Theorem 2 and Corollary 1). Sparsemax has costs. Its minimum’s band is attained at a tie, so at equal worst-case error sparsemax gives the smaller value (Section IV-D) and rejects every trajectory whose exact margin lies below its realized error, 0.17 against 0.13 for the sound LSE in Table II, which can leave no feasible plan where feasibility is tight. A sample beyond the threshold receives no derivative, so nothing warns the solver of one about to become critical, and in a nested specification a zero at an inner node hides that sample from the nodes above it. The operators are once continuously differentiable, and the update advantage we measured is a first-order one. GMR preserves the sign of the exact robustness and not a margin, so under an effort cost with a threshold of zero its trajectories end at an exact robustness near zero, where a lower bound keeps its realized error as a margin. For future work, we seek to exploit the sparse Hessian of sparsemax when the sampled states are decision variables, through sparse automatic differentiation for second-order solvers.

measureρ0\rho_0first satisfying update after 100 updates, 40 sρ100\rho_{100}effort
10 s20 s40 s
plain LSE−0.05666 [5, 7]0.001 (−0.006)0.61
−0.10717^{1}727^{2}7 [7, ?]−0.0005 (−0.15)0.50
sound LSE−0.054.51017 [14, ?]0.097 (0.06)0.94
−0.1061119.5 [13, ?]0.083 (0.04)0.94
GMR (0, 1)−0.053515^{1}515^{1} [5, 6]0.003 (−0.02)0.33
−0.10616^{1}737^{3}747^{4} [5, 15]0.005 (−0.03)0.33
GMR (−10, 10)−0.05111 [1, 2]0.014 (−0.003)0.65
−0.10222 [2, 3]0.009 (−0.005)0.67
sparsemax−0.05111 [1, 2]0.172 (0.16)0.97
−0.10222 [2, 4]0.166 (0.15)0.98

Table 3. Optimization on the torques from the violating initial trajectories, the same 16 locations for every measure, c=0c = 0, 100 updates: median first update with a nonnegative exact robustness at 10, 20, and 40 s, with quartiles at 40 s; at 40 s, the median and smallest exact robustness after 100 updates and the median effort relative to the initial trajectory, E100/E0E_{100}/E_0. A superscript counts the locations that never satisfied, left out of the median.

Acknowledgment

The authors acknowledge the use of Claude LLMs [17] for code development, visualizations, and manuscript review.

References

References

  1. [1]O. Maler and D. Nickovic, “Monitoring temporal properties of continuous signals,” in International symposium on formal techniques in real-time and fault-tolerant systems. Springer, 2004, pp. 152–166.DOI
  2. [2]A. Donzé and O. Maler, “Robust satisfaction of temporal logic over real-valued signals,” in International conference on formal modeling and analysis of timed systems. Springer, 2010, pp. 92–106.DOI
  3. [3]K. Leung, N. Aréchiga, and M. Pavone, “Backpropagation through signal temporal logic specifications: Infusing logical structure into gradient-based methods,” The International Journal of Robotics Research, vol. 42, no. 6, pp. 356–370, 2023.arxiv.org/abs/2008.00097
  4. [4]P. Kapoor, K. Mizuta, E. Kang, and K. Leung, “Stlcg++: A masking approach for differentiable signal temporal logic specification,” IEEE Robotics and Automation Letters, 2025.DOI
  5. [5]Y. V. Pant, H. Abbas, and R. Mangharam, “Smooth operator: Control using the smooth robustness of temporal logic,” in 2017 IEEE Conference on Control Technology and Applications (CCTA). IEEE, 2017, pp. 1235–1240.DOI
  6. [6]S. Welikala, H. Lin, and P. J. Antsaklis, “Smooth robustness measures for symbolic control via signal temporal logic,” 2023.arxiv.org/abs/2305.09116
  7. [7]Y. Gilpin, V. Kurtz, and H. Lin, “A smooth robustness measure of signal temporal logic for symbolic control,” IEEE Control Systems Letters, vol. 5, no. 1, pp. 241–246, 2021.arxiv.org/abs/2006.05239
  8. [8]N. Medhimpour, C.-I. Vasile, and C. Belta, “Arithmetic-geometric mean robustness for control from signal temporal logic specifications,” in 2019 American Control Conference (ACC). IEEE, 2019, pp. 1690–1695.
  9. [9]———, “Generalized mean robustness for signal temporal logic,” IEEE Transactions on Automatic Control, vol. 70, no. 3, pp. 1949–1956, 2025.
  10. [10]A. Martins and R. Astudillo, “From softmax to sparsemax: A sparse model of attention and multi-label classification,” in International conference on machine learning. PMLR, 2016, pp. 1614–1623.arxiv.org/abs/1602.02068
  11. [11]A. Mensch and M. Blondel, “Differentiable dynamic programming for structured prediction and attention,” in International Conference on Machine Learning. PMLR, 2018, pp. 3462–3471.arxiv.org/abs/1802.03676
  12. [12]S. Uzun, P. Elango, P.-L. Garoche, and B. Acikmese, “Optimization with temporal and logical specifications via generalized mean-based smooth robustness measures,” arXiv preprint arXiv:2405.10996, 2024.arxiv.org/abs/2405.10996
  13. [13]P. Varnai and D. V. Dimarogonas, “On robustness metrics for learning stl tasks,” in 2020 American Control Conference (ACC). IEEE, 2020, pp. 5394–5399.arxiv.org/abs/2003.06041
  14. [14]Y. Mao, “Successive convexification of non-convex optimal control problems: Theory and applications,” Ph.D. dissertation, University of Washington, Seattle, WA, USA, 2021.
  15. [15]S. Sadraddini and C. Belta, “Robust temporal logic model predictive control,” in 2015 53rd Annual Allerton Conference on Communication, Control, and Computing (Allerton). IEEE, 2015, pp. 772–779.DOI
  16. [16]E. Todorov, T. Erez, and Y. Tassa, “Mujoco: A physics engine for model-based control,” in 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems. IEEE, 2012, pp. 5026–5033.DOI
  17. [17]Anthropic, “Claude,” Large language model, 2026.

Paper details

vlnc:W_7p42vd5n
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Engineering

Claude LLMs

View statement
Looking for related papers…
Contents