arXiv:2609.31606cs.ROSep 2026

Manuscript Offprint

arXiv:2609.31606

Learning Robot Policies from Sparse Success Signals via STL-Guided Stein Variational Policy Gradient

Hongrui Zheng, Cristian Ioan Vasile, Antonio Loquercio, Rahul Mangharam

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hongrui Zheng 1^{1}, Cristian Ioan Vasile 2^{2}, Antonio Loquercio †,1^{\dagger,1}, Rahul Mangharam †,1^{\dagger,1}

Figure

Start

Incoming

Contact

Return

In target

Fig. 1. STL-SVPG combines Signal Temporal Logic (STL) robustness gradients and Stein Variational Gradient Descent (SVGD) to train low-level control policies in tasks with very sparse success signals, such as the drone's ping-pong task shown above. Shown is a successful real-world rollout of a policy trained in simulation with our approach. From left to right: initial hover, incoming ball, contact, ball return, and in target. Red circles highlight the ball.

Abstract—Learning robot policies for tasks with sparse success signals is challenging when completion depends on coordinated actions, precise contact outcomes, or satisfying several conditions together. Intricate physical interactions with the world further complicate these requirements. Prior work using conventional reward shaping mechanisms provides dense feedback but local progress might not translate into eventual task completion. We present Signal Temporal Logic-guided Stein Variational Policy Gradient (STL-SVPG), a population-based method that uses smooth STL robustness as a trajectory-level training objective. Differentiating this objective through the dynamics assigns credit to policy actions according to their effect on the complete task specification, rather than local progress alone. We evaluate the approach on six quadcopter and manipulator tasks that involves event-triggered responses, strictly ordered behavior, responses within specified deadlines, and physical interaction with the world. STL-SVPG achieves the highest mean success rate among the compared methods on five of six benchmarks. Simulation-trained policies trained in simulation transfer temporal and contact task behavior to the real world.

I. INTRODUCTION

Learning low-level robot control policies is challenging when task success signals are extremely sparse. Exploration may produce many unsuccessful trajectories before encountering a successful one, leaving little feedback to distinguish useful behavior or identify which actions matter. For example, a robot may need to coordinate several movements before completing an assembly, or strike an object so that it reaches a distant target. Ordering, timing, and simultaneous constraints can further restrict the set of successful trajectories.

Reward shaping [1] and model-based reinforcement learning are two common ways to assist learning in these settings. Handcrafted or automatically designed dense rewards [2] provide intermediate guidance, but require choices about which behaviors to encourage. Designing informative dense rewards is an iterative engineering process: changes to the task can require redesign and repeated training and evaluation. Automated reward design reduces manual effort but still relies on this feedback loop. Learned models in RL [3] can support lookahead and policy improvement with predicted experience, but do not by themselves provide informative task feedback. When useful outcomes require long action sequences, short planning horizons may miss them, while prediction errors can compound over longer model rollouts.

Therefore, for these sparse-completion tasks, informative feedback from unsuccessful trajectories is essential to practical learning efficiency: otherwise, policy improvement must wait for rare successful exploration. Signal Temporal Logic (STL) [4] does exactly this by specifying logical and temporal requirements over real-valued signals. The robustness semantics [5], [6] is a quantitative measure that assign the margin to success to a trajectory instead of a binary signal.

However, optimizing the robustness objectives through robot dynamics remains challenging: while smooth robustness makes gradients available, they remain concentrated on a few critical steps, vanishing over long trajectories [7], [8], [9]. STL-SVPIO [10] addresses these challenges by applying Stein variational optimization through differentiable STL robustness to optimize control sequences in nonlinear dynamical systems. However, similarly to prior work in STL planning [11], [7], it only finds open-loop control sequences from fixed initial conditions, with long computation time that makes online re-planning infeasible.

To amortize this computation, prior work trains a feedback policy using STL robustness as a reward [12], [13]. However, this leaves temporal credit assignment to exploration, while differentiable predictive controllers still rely on online trajectory prediction and backup mechanisms. These limitations motivate learning low-level feedback policies by differentiating trajectory-level robustness, where unsuccessful rollouts are still valuable training signals.

We propose STL-SVPG to learn low-level control policies

†^{\dagger}Equal Advising. 1^{1}Department of Electrical and Systems Engineering, University of Pennsylvania, Philadelphia, PA, USA. 2^{2}Mechanical Engineering and Mechanics Department, Lehigh University, Bethlehem, PA, USA. Correspond to hongruiz@engineering.upenn.edu.

for tasks with sparse success signals by exploiting an explicit STL specification of task completion. We use smooth STL robustness to quantify how trajectories satisfy or violate the specification. In contrast to reward engineering, the STL specification generates quantitative feedback from the same temporal requirements used to judge completion, reducing the need to design sub-task rewards. Like prior STL-based approaches for policy optimization [12], [13], we derive learning feedback from quantitative satisfaction of the task specification. In contrast to prior work, however, our approach couples trajectory-level robustness gradients with Stein Variational Gradient Descent (SVGD) [14], [15], resulting in a population of feedback policies that interact during learning: kernel-weighted updates share improvement directions between similar policies, while repulsive forces encourage diversity of behaviors. This strategy couples exploitation and exploration during optimization.

The goal of this paper is to leverage STL task specifications' ability to provide improvement signal even in unsuccessful rollouts to train low-level control policies for robots in tasks with sparse success signals. Empirically, our framework achieves the highest mean success among a set of reinforcement learning baselines with shaped dense rewards on five of six benchmarks. In addition, the policies trained with STL-SVPG in simulation transfer zero-shot to physical hardware. Overall, our contributions are as follows:

  1. We introduce STL-SVPG, a specification driven policy learning framework that turns overall task requirements into actionable policy gradients for low-level feedback control even from unsuccessful trajectories.

  2. A policy optimization method that shares information amongst a population of policy parameters that combines task-directed improvements with population-based exploration.

  3. We investigate what makes this learning framework effective: how STL robustness gradients guide improvement and how population interactions expand exploration for better policies.

  4. Validation of simulation-only trained STL-SVPG policies on two tasks in the real world.

References (33)