Skip to main content
QUICK REVIEW

[Paper Review] Recovery RL: Safe Reinforcement Learning with Learned Recovery Zones

Brijen Thananjeyan, Ashwin Balakrishna|arXiv (Cornell University)|Oct 29, 2020
Reinforcement Learning in RoboticsComputer Science35 references20 citations
TL;DR

Recovery RL proposes a two-policy framework that decouples task learning from safety enforcement by pretraining a recovery policy on offline data to avoid constraint violations. It achieves 2–20× better trade-off between task success and constraint violations than prior methods in simulation and 3× better in physical robot experiments.

ABSTRACT

Safety remains a central obstacle preventing widespread use of RL in the real world: learning new tasks in uncertain environments requires extensive exploration, but safety requires limiting exploration. We propose Recovery RL, an algorithm which navigates this tradeoff by (1) leveraging offline data to learn about constraint violating zones before policy learning and (2) separating the goals of improving task performance and constraint satisfaction across two policies: a task policy that only optimizes the task reward and a recovery policy that guides the agent to safety when constraint violation is likely. We evaluate Recovery RL on 6 simulation domains, including two contact-rich manipulation tasks and an image-based navigation task, and an image-based obstacle avoidance task on a physical robot. We compare Recovery RL to 5 prior safe RL methods which jointly optimize for task performance and safety via constrained optimization or reward shaping and find that Recovery RL outperforms the next best prior method across all domains. Results suggest that Recovery RL trades off constraint violations and task successes 2 - 20 times more efficiently in simulation domains and 3 times more efficiently in physical experiments. See https://tinyurl.com/rl-recovery for videos and supplementary material.

Motivation & Objective

  • Address the challenge of safe exploration in real-world reinforcement learning, where extensive exploration risks damaging robots or environments.
  • Overcome the conflict between maximizing task performance and minimizing unsafe behaviors during learning.
  • Reduce reliance on online constraint violations during training by leveraging offline data to pre-learn dangerous states and recovery actions.
  • Decouple task policy optimization from safety constraints to avoid suboptimal policies caused by joint optimization.
  • Enable efficient, safe policy learning in high-dimensional observation spaces, such as images, on physical robotic systems.

Proposed method

  • Use two distinct policies: a task policy that optimizes only the task reward and a recovery policy that activates when constraint violations are likely.
  • Pretrain the recovery policy and a risk-aware Q-function using offline data collected from human demonstrations or prior unsafe experiences.
  • Define a recovery set as the region of the MDP where future constraint violations are probable, based on offline data and risk estimation.
  • Train the task policy using action relabeling to associate actions with their actual outcomes, improving sample efficiency and success rates.
  • Use a risk-aware Q-function to estimate the probability of future constraint violations and trigger the recovery policy when risk exceeds a threshold.
  • Allow online fine-tuning of both policies while preserving the safety guarantees established during offline pretraining.

Experimental results

Research questions

  • RQ1Can offline pretraining of recovery policies improve safety and sample efficiency in reinforcement learning without relying on online constraint violations?
  • RQ2How does decoupling task optimization from safety enforcement affect the performance and robustness of learned policies?
  • RQ3To what extent does Recovery RL outperform joint optimization methods in balancing task success and constraint violation?
  • RQ4How sensitive is Recovery RL to the amount of offline data used for pretraining the recovery policy?
  • RQ5Can Recovery RL generalize to high-dimensional visual observations and real-world robotic control tasks?

Key findings

  • Recovery RL outperforms five state-of-the-art safe RL methods across six simulation domains, achieving a 2–20× better trade-off between task success and constraint violations.
  • In physical robot experiments on an image-based obstacle avoidance task, Recovery RL reduced constraint violations by 3× compared to the next best baseline.
  • Performance degrades significantly when offline pretraining of the recovery policy and risk function is omitted, highlighting the importance of offline data.
  • Recovery RL achieves good performance with as few as 1,000 offline transitions, with performance dropping only when data drops below this threshold.
  • Action relabeling during task policy training is critical—without it, task success rates drop dramatically.
  • Recovery RL is less sensitive to hyperparameter tuning than prior methods, particularly for the risk threshold and risk coefficient.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.