Beyond Ensemble Disagreement: Predictive STL Monitoring of RL Locomotion under Distribution Shift
Organizations: Sindh Madressatul Islam University, Karachi, Pakistan · Shah Abdul Latif University, Ghotki, Pakistan · University of Camerino, Camerino, Italy · Institute of Biophysics, CNR, Palermo, Italy ·
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 ( at across three PPO seeds), yet current-state robustness without prediction comes within 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.
Figures & tables
| AUROC | AUPRC | ||||
|---|---|---|---|---|---|
| Condition | Viol% | ||||
| baseline | |||||
| noise 0.05 | |||||
| noise 0.15 | |||||
| mass 0.8x | |||||
| mass 1.6x | |||||
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Composite STL | |||||||
| Condition | ( ) | Viol% | |||||
| Ant-v5 | |||||||
| baseline | (3) | — | 0.0 | ||||
| force 5N | (3) | — | 0.0 | ||||
| force 15N | (19) | — | 0.0 | ||||
| noise 0.05 | (5) | — | 0.0 | ||||
| Environment | ||||
|---|---|---|---|---|
| Ant-v5 | 0.30 | 0.31 | 0.32 | 0.34 ∗ |
| HalfCheetah-v5 | 2.52 | 2.49 | 2.48 | 2.50 |
| Horizon | |||||
|---|---|---|---|---|---|
| Environment | Metric | ||||
| Ant-v5 | — | ||||
| — | |||||
| HalfCheetah-v5 | |||||
| Horizon | ||||
| Condition | ||||
| Ant-v5 | ||||
| baseline | — | |||
| force 5N | — | |||
| force 15N | ||||
| noise 0.05 | — | |||
| Horizon | ||||
| Condition | ||||
| Ant-v5: violation rate (%) | ||||
| All conditions | 0.0 | 0.0 | 0.0 | 0.0 |
| HalfCheetah-v5: correlation ( ) | ||||
| baseline | ||||
| force 5N | ||||
| Ant-v5 (force 15N) | |||
|---|---|---|---|
| HalfCheetah-v5 (noise ) | |||
| Ant-v5 | HalfCheetah-v5 | |||
| Condition | no_falls | recovery | no_falls | recovery |
| baseline | 88.9 | 88.9 | 90.0 | 64.4 |
| noise 0.15 | 100 | 100 | 95.6 | 50.0 |
| mass 1.6x | 79.2 | 75.0 | 98.9 | 76.7 |
| friction 0.5x | 100 | 100 | 95.6 | 66.7 |
| compound | 100 | 100 | 98.9 | 75.6 |
| Condition | seed | Viol% | ||||
|---|---|---|---|---|---|---|
| baseline | 0 | 36 | 88.9 | 1.00 | 0.76 | 0.81 |
| mass 1.6x | 0 | 24 | 79.2 | 0.98 | 0.83 | 0.87 |
| friction 0.5x | 42 | 44 | 95.5 | 1.00 | 0.42 | 1.00 |
| Viol% | AUROC( ) | AUROC( ) | AUPRC( ) | AUPRC( ) | ||
|---|---|---|---|---|---|---|
| 1 | 990 | 10.2 | 0.15 | 0.90 | 0.06 | 0.74 |
| 5 | 190 | 23.7 | 0.29 | 0.79 | 0.17 | 0.67 |
| 10 | 90 | 35.6 | 0.36 | 0.73 | 0.28 | 0.63 |
| 20 | 40 | 67.5 | 0.41 | 0.71 | 0.64 | 0.82 |
| All windows (AUROC) | Safe-at-start | |||||||
|---|---|---|---|---|---|---|---|---|
| Condition | Safe% | viol% | ||||||
| baseline | ||||||||
| noise 0.05 | ||||||||
| noise 0.15 | ||||||||
| mass 0.8x | ||||||||
| mass 1.6x | ||||||||
| baseline | noise 0.15 | |||||
|---|---|---|---|---|---|---|
| viol% | viol% | |||||
| 0.08 | ||||||
| 0.10 | ||||||
| 0.12 | ||||||
| AUROC( ) | Flag rate % | |
| 0 | ||
| 1 | ||
| 2 | ||
| 5 | ||
Safe RL
Safe reinforcement learning studies how agents can learn and act while respecting safety constraints and limiting harmful outcomes.
See all 232 papers