# SafeExplorer: An Unbiased Mixed-Policy Gradient for Reinforcement Learning with Recovery Interventions

DevFeed: [SafeExplorer: An Unbiased Mixed-Policy Gradient for Reinforcement Learning with Recovery Interventions](<https://devfeed.tech/articles/safeexplorer-an-unbiased-mixed-policy-gradient-for-reinforcement-learning-with-recovery-interventions-94148.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.08925>)

Author: Elham Daneshmand, Majid Khadiv, Glen Berseth, Hsiu-Chin Lin

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>)

Tags: [bias](<https://devfeed.tech/tags/bias.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [estimator](<https://devfeed.tech/tags/estimator.md>), [falls](<https://devfeed.tech/tags/falls.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [imitation](<https://devfeed.tech/tags/imitation.md>), [performance](<https://devfeed.tech/tags/performance.md>), [policy](<https://devfeed.tech/tags/policy.md>), [ppo](<https://devfeed.tech/tags/ppo.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [reward](<https://devfeed.tech/tags/reward.md>), [robots](<https://devfeed.tech/tags/robots.md>)

## AI overview

SafeExplorer modifies PPO to reduce training falls when a recovery controller intervenes outside a designer-specified safe region. Its unbiased policy-gradient estimator applies the score function only within that region and does not require the recovery policy's density, addressing a limitation of importance sampling with deterministic recovery. It also uses a closed-form critic target at intervention states when dynamics and recovery are deterministic, and imitates actions only from successful recoveries. Across three simulated locomotion environments with ten seeds each, and assuming an available recovery controller, SafeExplorer produced 255x, 43x and 21x fewer falls than PPO on HalfCheetah, Ant and Unitree Go1 while matching or exceeding PPO's final reward. On Ant, it reached the success threshold on every seed; none of five baselines did. These results are limited to the reported simulations.

## Source excerpt

arXiv:2607.08925v2 Announce Type: replace Abstract: Training agents directly on the task they will be deployed on often leads to the best policy performance, but training on physical robots can cause damage through falls, so minimizing training falls is critical. A standard mitigation hands control to a separate recovery policy whenever the agent leaves a designer-specified safe region. The resulting mixed-policy rollouts bias the on-policy update, and importance sampling cannot remove this bias when the recovery policy is deterministic. We propose SafeExplorer, a drop-in modification of proximal policy optimization (PPO) built on an unbiased policy-gradient estimator of the mixed-policy return. The estimator uses the score function only inside the safe region and never evaluates the recovery policy's density, so deterministic recovery policies pose no problem. On final reward, the estimator matches or outperforms truncated importance sampling, which is itself biased for that same gradient. SafeExplorer also speeds up learning near the safe-region boundary with a closed-form critic target at recovery-triggering states when dynamics and recovery are deterministic, and an imitation loss that copies recovery actions only from successful recoveries. On three simulated locomotion environments with ten seeds each, and given an already available recovery controller, SafeExplorer incurs $255\times$, $43\times$, and $21\times$ fewer training falls than standard PPO on HalfCheetah, Ant, and Unitree Go1. SafeExplorer also matches or exceeds the final reward of PPO. On Ant, where 8.7% of recovery interventions end in a fall, over $40\times$ the HalfCheetah rate, SafeExplorer reaches the success threshold on every seed and none of the five baselines reaches the threshold on any seed.