arXiv:2611.02218cs.RONov 2026

Manuscript Offprint

arXiv:2611.02218

Beyond Ensemble Disagreement: Predictive STL Monitoring of RL Locomotion under Distribution Shift

Qurban Ali, Badaruddin Chachar, Maqsood Ali, Sajjad Ali Rajper

Qurban Ali 1^{1}, Badaruddin Chachar 2^{2}, Maqsood Ali 3,4^{3,4}, Sajjad Ali Rajper 5^{5}

  1. Sindh Madressatul Islam University, Karachi, Pakistan

  2. Shah Abdul Latif University, Ghotki, Pakistan

  3. University of Camerino, Camerino, Italy

  4. Institute of Biophysics, CNR, Palermo, Italy

  5. University of Mirpurkhas, Mirpurkhas, Pakistan

qurban@smiu.edu.pk 1^{1}; badaruddin.chachar@salu.edu.pk 2^{2}

maqsoodali@cnr.it 3,4^{3,4}; sajjadali@umpk.edu.pk 5^{5}

Abstract: RL locomotion policies trained under nominal simulation conditions may encounter distribution shifts that compromise safety. Predictive monitors could anticipate violations, but their world-model forecasts may become unreliable under shift, and ensemble disagreement is not calibrated. We evaluate predictive Signal Temporal Logic (STL) monitoring for frozen Ant-v5 and HalfCheetah-v5 policies using closed-loop world-model rollouts and a three-model ensemble. Across external-force, observation-noise, and mass shifts, predicted robustness ranks HalfCheetah's future STL violations strongly, whereas disagreement does not reliably track observation prediction error or violations. Under severe noise, violations remain common (64.2 ± 24.4% at K=20 across three PPO seeds), yet current-state robustness without prediction comes within 0.03 AUROC of predictive robustness. Penalizing predicted robustness by disagreement does not consistently improve ranking. Ant provides complementary per-specification evidence, but its composite target has no positive violations and its any-violation target is single-class in most evaluated seed-condition slices. Overall, predictive robustness provides useful STL-specific ranking but little demonstrated additional ranking value over the current state; these findings caution against treating ensemble disagreement as a reliable indicator of safety uncertainty.

Keywords: Signal Temporal Logic, runtime verification, world models, ensemble disagreement, distribution shift, predictive safety

1 Introduction

Reinforcement learning (RL) has become a powerful approach for learning locomotion policies in simulated robotic environments [1]. However, policies trained under fixed simulation conditions often encounter distribution shifts during deployment, such as external disturbances, observation noise, changes in physical parameters, or variations in terrain properties, which can compromise safety. These shifts can cause degraded locomotion, loss of balance, or entry into states that violate safety requirements.

To address this challenge, runtime safety monitoring complements policy training: a monitor evaluates a frozen policy against explicit safety specifications during deployment. Signal Temporal Logic (STL) suits this purpose because quantitative robustness values continuously measure satisfaction or violation [2]. Runtime monitors can be broadly classified as reactive or predictive. Reactive monitors assess observed states after the fact—including interpretable STL-based retrospective monitoring [3, 4] and simpler threshold- or barrier-style checks—whereas predictive monitors anticipate future violations. Learned world models enable predictive monitoring by rolling the policy

10th Conference on Robot Learning (CoRL 2026), Austin TX, USA.

Figure

Figure 1: Predictive STL monitoring pipeline. The current observation oto_t feeds the frozen PPO policy and the world-model ensemble, whose members each generate a KK-step closed-loop rollout by repeatedly querying the policy on predicted observations. Predicted trajectories are evaluated with STL and aggregated into predictive robustness PP and STL disagreement UρU_\rho; independently, OO is evaluated on the observed trajectory τt:t+K\tau_{t:t+K}, and SUPS_{\text{UP}} penalizes PP by UρU_\rho.

forward in closed loop and evaluating safety specifications on forecasted states before they are reached [5] (distinct from model-based RL planning and learning). We instantiate the world model as a lightweight feedforward latent-dynamics ensemble (not a recurrent/stochastic Dreamer-class model), so conclusions about disagreement informativeness are scoped to this architecture class (see Sec. 8). A key challenge is that prediction quality may degrade under distribution shift, so a monitor that ignores model uncertainty may make confident but incorrect safety assessments.

Deep ensembles provide a practical measure of predictive disagreement [6], but whether disagreement reliably indicates prediction error or future safety violations under distribution shift remains unclear. In particular, disagreement is not equivalent to calibrated predictive uncertainty or safety risk. Three gaps motivate this study: (i) predictive STL monitoring has received less attention than retrospective monitoring [3, 4, 7, 8, 9]; (ii) the reliability of ensemble disagreement under distribution shift remains insufficiently understood [6, 10, 11]; and (iii) its usefulness for downstream safety-failure prediction has not been systematically compared across observation, latent, and STL representations using failure-prediction and selective prediction metrics [12, 7, 13].

To address these gaps, this paper asks: when a learned world model predicts that a future trajectory is safe, can ensemble disagreement identify situations in which that prediction is unreliable under distribution shift? Let ρ^\hat{\rho} denote predicted STL robustness and ρ\rho the robustness of the corresponding observed trajectory. We empirically examine (H1) Uρ↑⇒∣ρ^−ρ∣↑U_\rho \uparrow \Rightarrow |\hat{\rho} - \rho| \uparrow and (H2) Uρ↑⇒Pr⁡(Yt(K)=1)↑U_\rho \uparrow \Rightarrow \Pr(Y_t^{(K)}=1) \uparrow. We develop and evaluate a predictive monitoring framework on Ant-v5 [14] and HalfCheetah-v5 [15] under external forces, observation noise, and mass variation. We report quantitative window-level failure-prediction results for HalfCheetah-v5; Ant-v5 serves primarily as a per-specification complement (Sec. 7.1). Across the evaluated settings, we find no consistent evidence that disagreement reliably predicts error or future violations. Predicted robustness ranks failures more strongly, but a current-state robustness baseline recovers most of that ranking, so the evidence for predictive (as opposed to reactive) monitoring is modest.

The contributions of this paper are as follows:

  1. Framework. We develop a predictive STL monitoring framework for frozen RL locomotion policies based on closed-loop, policy-conditioned world-model rollouts, using ensemble variation in predicted STL robustness as an empirical disagreement measure (not a calibrated estimate; Section 5.2).

  2. Evaluation. We evaluate on Ant-v5 and HalfCheetah-v5 using independently trained PPO policies and a primary multi-seed evaluation over three PPO seeds. We compare retrospective and predictive STL monitoring under external forces, observation noise, and mass variation, with failure-prediction, association, and horizon analyses. We add a current-state robustness baseline and a safe-at-start analysis that separates early warning from detection of already-unsafe states.

  3. Replication. To support reproducibility, we provide the replication package at [16].