Research
Beyond Ensemble Disagreement: Predictive STL Monitoring of RL Locomotion under Distribution Shift
Policies trained in simulation can behave unsafely when deployed under forces, sensor noise, or changed body mass, so the authors ask whether a learned world model can roll the policy forward and…

- arXiv
- 2611.02218 · accepted · CORL workshop
- Published
- 2026-11-01
- Authors
- Qurban Ali, Badaruddin Chachar, Maqsood Ali, Sajjad Ali Rajper
In plain words
Policies trained in simulation can behave unsafely when deployed under forces, sensor noise, or changed body mass, so the authors ask whether a learned world model can roll the policy forward and flag upcoming STL violations before they happen. The natural way to know when such a forecast is untrustworthy is to look at how much an ensemble of world models disagrees, and the paper tests whether that intuition holds.
AI summary
Overview
Research area: Safe reinforcement learning for robot locomotion — specifically runtime safety monitoring with Signal Temporal Logic (STL), learned world models, and deep-ensemble disagreement under distribution shift.
Technical level: Advanced. The paper assumes familiarity with reinforcement learning (PPO), STL robustness semantics, learned latent dynamics models, and ranking metrics such as AUROC/AUPRC and risk–coverage curves.
Scope: An empirical evaluation of whether ensemble disagreement in predicted STL robustness is a reliable warning signal for future safety violations of frozen locomotion policies (Ant-v5, HalfCheetah-v5) when the deployment conditions differ from training.
What This Paper Is About
Policies trained in simulation can behave unsafely when deployed under forces, sensor noise, or changed body mass, so the authors ask whether a learned world model can roll the policy forward and flag upcoming STL violations before they happen. The natural way to know when such a forecast is untrustworthy is to look at how much an ensemble of world models disagrees, and the paper tests whether that intuition holds. The headline answer is largely negative: disagreement does not reliably track either prediction error or future violations, and simply checking the current state's STL robustness recovers most of the useful ranking.
Key Contributions
- A predictive STL monitoring framework for frozen RL locomotion policies, built on closed-loop, policy-conditioned world-model rollouts in which each ensemble member repeatedly queries the frozen policy on its own predicted observations, and ensemble variation in predicted STL robustness is used as an empirical (explicitly not calibrated) disagreement measure.
- A multi-seed evaluation on Ant-v5 and HalfCheetah-v5 under external forces (5 N, 15 N), Gaussian observation noise (σ ∈ {0.01, 0.05, 0.15}), mass scaling ({0.8, 1.3, 1.6}), friction scaling (0.5×), and compound shifts, comparing retrospective against predictive STL monitoring with failure-prediction, association, and horizon analyses across three PPO seeds.
- Two additional analyses that stress-test the value of prediction: a current-state robustness baseline (no forecasting) and a safe-at-start analysis that separates early warning from detection of states that are already unsafe.
- A replication package released to support reproducibility of the per-window results and trained ensembles.
Main Findings
- Predicted robustness ranks violations strongly. On the HalfCheetah any-violation target at K = 10, the negative predicted robustness score (−P) reaches AUROC 0.92 ± 0.08 on the baseline condition and 0.98 ± 0.00 under noise 0.15, with AUPRC of 0.97 ± 0.02 and 0.97 ± 0.03 respectively; across the eight reported conditions −P ranges from 0.81 to 0.98 AUROC.
- STL-space disagreement is near chance. The same table gives U_ρ AUROC of 0.47–0.56 across conditions (baseline 0.50 ± 0.08; noise 0.15 0.56 ± 0.18; compound 0.45 ± 0.02), with AUPRC close to prevalence.
- Observation- and latent-space disagreement are no better. At K = 10, U_o and U_z give AUROC in the range 0.44–0.54; at K = 20 under severe noise they score 0.47 ± 0.18 and 0.46 ± 0.07 versus 0.65 ± 0.16 for U_ρ and 0.99 ± 0.02 for −P.
- Violations are common under severe noise. At K = 20 across three PPO seeds, the any-violation prevalence is 64.2 ± 24.4%. In the seed-0 severe-noise slice, composite-label prevalence is 35.6% while any-violation prevalence is 95.6%, showing how much the target definition matters.
- Current-state robustness nearly matches prediction. Instantaneous robustness without any forecasting (−O_t) achieves AUROC 0.79–0.97, within 0.03 of −P (0.81–0.98). Among windows that are safe at the start (60–70% of windows), 30–45% still go on to violate a specification, yet −O_t stays within 0.02 AUROC of −P there, while U_ρ is weaker and less consistent (0.30–0.67).
- Disagreement does not track prediction error. Seed-averaged correlations between U_ρ and mean L2 prediction error are negative or near zero: r = −0.19 ± 0.16 at baseline and −0.18 ± 0.07 under noise 0.15, with single-seed correlations flipping sign at small sample sizes.
- Penalizing robustness by disagreement does not help. On the composite-label target, raising λ from 0 to 5 reduces AUROC from 0.88 to 0.84 under severe noise while increasing the flag rate. On the any-violation target the change is 0.983 ± 0.003 to 0.989 ± 0.004 at K = 10, which the authors decline to interpret as a robust improvement.
- Abstention by disagreement barely reduces risk. Risk–coverage curves are essentially flat under severe noise; at 70% coverage the retained violation rate moves only from 55.9% to 53.4%. The S_UP < 0 flag rule fires at 5.2% against 55.9% prevalence, giving recall of at most about 9%.
- Ensemble size mainly rescales disagreement. Ablations over M ∈ {2, 3, 5, 10} largely stabilize the magnitude of U_ρ without consistently improving failure discrimination.
- Predictive bias is environment-dependent. Predictive scores are mildly pessimistic for Ant-v5 (P about 0.04 below O at K = 10) but systematically optimistic for HalfCheetah-v5 (P exceeds O by 0.01–0.06); matching the deployment noise process in the rollout moves the noise-0.15 bias only from +0.12 to +0.13, so model mismatch beyond sensing is implicated.
- Ant-v5 mainly provides a caveat, not a counterexample. Its any-violation target is single-class (79–100% positive) in 21 of 24 evaluated seed-condition slices (8 conditions × 3 seeds), and its composite target has no positive violations at all. The three slices that admit both classes give AUROC(−P) of 0.98–1.00, and a per-specification disagreement analysis reaches U_ρ AUROC 0.73–0.83 in two small-sample conditions (baseline and mass 1.6×) — descriptive results the authors explicitly say do not establish a stable counterexample.
Methodology in Plain English
The authors take already-trained locomotion policies and freeze them — nothing about the policy is retrained or adapted. They then train a small ensemble (three models by default) of lightweight world models, each of which learns to encode an observation into a latent state, predict the next latent state given an action, and decode back to observation space. All ensemble members are trained only on nominal (unshifted) data and are never adapted at test time, so the study measures how disagreement behaves under shift in a fixed-model setting.
At each moment during deployment, each ensemble member runs a closed-loop rollout of length K: it predicts the next observation, feeds that prediction back to the frozen policy to get the next action, predicts again, and repeats. Because the policy is queried at every step rather than the dynamics being propagated open-loop, the forecast captures the policy's own reactions to its imagined future. Each member's predicted trajectory is then scored with STL, producing a robustness value per member; the mean across members is the predictive score P, and the standard deviation across members is the disagreement U_ρ. Analogous spread measures are computed in observation space (U_o) and latent space (U_z), and a penalized score S_UP = ρ̄ − λU_ρ is swept over λ ∈ {0, 1, 2, 5}.
Ground truth comes from the trajectory that actually occurs over the same window: a window is labeled as a violation if at least one specification has negative robustness on the observed segment. The specifications cover roll, pitch, height, airborne contacts, forward velocity, and a recovery obligation (if height drops below 0.45, it must exceed 0.5 within 50 steps). Because the recovery specification needs a 50-step response interval, it is excluded from the predictive composite at the evaluated horizons (K ∈ {1, 5, 10, 20}) and appears only as a per-specification diagnostic.
Evaluation ranks windows by each score and measures AUROC/AUPRC against the violation labels, plus descriptive Pearson correlations between disagreement and prediction error, and risk–coverage curves for disagreement-based abstention. Everything is repeated over three PPO seeds with ten episodes per condition, and reported as mean ± standard deviation across seeds.
Why This Matters
Impact on research. The paper pushes back on a widely used heuristic — that ensemble disagreement is a usable proxy for "my model is uncertain here, so don't trust this prediction." It shows that, for this class of lightweight feedforward latent-dynamics ensembles, disagreement can sit at chance while a plain robustness margin separates violations almost perfectly, and that adding a disagreement penalty or disagreement-based abstention does not fix this. It also introduces a current-state baseline and a safe-at-start split that future predictive-monitoring papers will need to beat, and it documents a target-definition pitfall: composite STL labels and any-violation labels can have wildly different prevalence (35.6% versus 95.6% in one slice), and single-class targets silently make AUROC meaningless.
Real-world applications:
- Legged and wheeled robot deployment: runtime monitors that decide when to hand control back to a safe fallback controller when a policy trained in simulation meets mud, ice, or a heavier payload.
- Sim-to-real transfer pipelines: an acceptance test that checks whether a policy's safety margins hold under parameter perturbation before hardware deployment.
- Safety assurance and certification arguments: quantitative evidence about which monitoring signals are and are not trustworthy, useful when writing the assurance case for an autonomous platform.
- Robot fleet health monitoring: STL specifications over proprioceptive signals as an interpretable operational envelope, with the caveat that forecasting may not add much over the current state.
Industry relevance. Teams already running STL or similar rule-based monitors in production can read this as a caution against buying uncertainty estimates cheaply from ensembles, and as a reminder that multiple world-model rollouts cost extra compute for limited demonstrated benefit in these settings. For organizations building learned-dynamics safety layers, the finding that the current observation is nearly as informative as a 20-step forecast is directly budget-relevant.
Future Directions
- Conformal calibration. The authors name conformal calibration as future work; the open question is whether calibrated prediction sets, rather than raw ensemble spread, can supply the reliability signal that disagreement failed to provide, and under which distributional assumptions.
- Richer world-model architectures. The conclusions are explicitly scoped to lightweight feedforward ensembles. Whether recurrent or stochastic-latent (Dreamer-style) ensembles yield more informative disagreement — or merely correlated errors of a different flavor — is untested.
- Conditional testing of disagreement. The paper notes that −P's advantage over U_ρ is partly structural, since −P is evaluated against the same STL predicates used to build the label, and that it does not test whether U_ρ adds information conditional on −P. That conditional analysis is the natural next experiment.
- Specification and aggregation sensitivity. Sensitivity to alternative specification sets, recovery thresholds, aggregation weights, windowing strides, and unit-normalized composites remains untested, as does extension beyond two simulated MuJoCo environments and three PPO seeds toward real robotic systems with genuine state-estimation, actuation, contact, and latency effects.
Target Audience
Researchers and graduate students working on runtime verification, safe reinforcement learning, and sim-to-real transfer for robotics; practitioners building safety monitors for learned controllers who need to know which uncertainty signals to trust; and engineers who already use STL-based monitoring and are considering adding learned world-model forecasting. Readers without a background in STL semantics or ranking metrics will find the results section dense, though the central message — disagreement is not a safety signal, and the current state is a strong baseline — is accessible without it.
Authors’ 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…
The full abstract on arXivRelated papers
- Distributed Predictive Flocking for a Swarm of Miniature Vibration-Driven Robots in a Confined Arena 2026-10-26 · cs.RO · Key terms of the title in common
- PROOF: Perceptive Robustness via Out-of-Distribution Fallback for Legged Locomotion 2026-11-13 · cs.RO · Key terms of the title in common
- Predictive Safety Curricula for Robust Legged Locomotion 2026-09-29 · cs.RO · Key terms of the title in common
- Model-Informed Safe Reinforcement Learning for Bipedal Locomotion via Step-to-Step Prediction 2026-09-28 · cs.RO · Key terms of the title in common
- RoboMonitor: Label-Efficient Runtime Monitoring of Robot Task Execution via Predictive Representation Learning 2026-09-25 · cs.RO · Key terms of the title in common