Skip to main content
QUICK REVIEW

[Paper Review] Safe Driving via Expert Guided Policy Optimization

Zhenghao Peng, Quanyi Li|arXiv (Cornell University)|Oct 13, 2021
Reinforcement Learning in RoboticsComputer Science39 references4 citations
TL;DR

This paper proposes Expert Guided Policy Optimization (EGPO), a novel Expert-in-the-loop Reinforcement Learning method that integrates a guardian—comprising an expert policy and a switch function—to ensure safe exploration and provide corrective demonstrations. By combining constrained optimization to limit intervention frequency and offline RL to stabilize learning from off-policy demonstrations, EGPO achieves superior safety, sample efficiency, and generalization in safe driving tasks, outperforming baselines significantly in both training and test-time performance.

ABSTRACT

When learning common skills like driving, beginners usually have domain experts standing by to ensure the safety of the learning process. We formulate such learning scheme under the Expert-in-the-loop Reinforcement Learning where a guardian is introduced to safeguard the exploration of the learning agent. While allowing the sufficient exploration in the uncertain environment, the guardian intervenes under dangerous situations and demonstrates the correct actions to avoid potential accidents. Thus ERL enables both exploration and expert's partial demonstration as two training sources. Following such a setting, we develop a novel Expert Guided Policy Optimization (EGPO) method which integrates the guardian in the loop of reinforcement learning. The guardian is composed of an expert policy to generate demonstration and a switch function to decide when to intervene. Particularly, a constrained optimization technique is used to tackle the trivial solution that the agent deliberately behaves dangerously to deceive the expert into taking over. Offline RL technique is further used to learn from the partial demonstration generated by the expert. Safe driving experiments show that our method achieves superior training and test-time safety, outperforms baselines with a substantial margin in sample efficiency, and preserves the generalizabiliy to unseen environments in test-time. Demo video and source code are available at: https://decisionforce.github.io/EGPO/

Motivation & Objective

  • To address the critical challenge of training safety in real-world reinforcement learning, especially in high-risk domains like autonomous driving.
  • To develop a framework that enables safe exploration by integrating a human-in-the-loop guardian that intervenes only when necessary and provides corrective demonstrations.
  • To prevent agents from exploiting the guardian by deliberately inducing interventions, ensuring the agent learns robust, safe behaviors.
  • To effectively leverage partial, off-policy demonstrations from the expert to improve sample efficiency and policy generalization.
  • To demonstrate the method’s effectiveness in real-world driving environments with high safety and performance.

Proposed method

  • The guardian mechanism consists of a switch function that detects risky behaviors and triggers expert intervention, and an expert policy that provides corrective actions during interventions.
  • A Lagrangian-based constrained optimization is applied to limit the frequency of interventions, preventing the agent from exploiting the expert for safety.
  • The Lagrangian multiplier is updated via a PID controller to stabilize dual optimization in off-policy RL, improving convergence and training stability.
  • Offline reinforcement learning with the CQL (Conservative Q-Learning) objective is used to train the agent on the off-policy demonstration data collected from the guardian.
  • The method combines online exploration with expert demonstrations, where the only reward signal is intervention occurrence, enabling effective imitation learning.
  • The switch function is learned statistically rather than via handcrafted rules, allowing it to generalize across diverse dangerous scenarios.

Experimental results

Research questions

  • RQ1Can a guardian mechanism that combines intervention and demonstration improve training safety and sample efficiency in reinforcement learning?
  • RQ2How can we prevent agents from exploiting the guardian by inducing frequent interventions to bypass learning?
  • RQ3To what extent can offline RL techniques stabilize policy learning when demonstrations are highly off-policy and partial?
  • RQ4Does the proposed method generalize better to unseen environments compared to standard safe RL and imitation learning baselines?
  • RQ5Can the method achieve high performance with minimal environmental interaction, especially when human supervision is costly?

Key findings

  • EGPO achieves a test success rate of 0.85 ± 0.05 and an episodic return of 388.37 ± 10.01, significantly outperforming baselines in both safety and sample efficiency.
  • The ablation study shows that removing intervention minimization causes the agent to drive toward the road boundary, resulting in zero success rate and a cost of 1.0, proving its necessity.
  • Using a lower-quality expert (30% success rate) increases training cost and degrades performance, validating that training safety is bounded by expert safety.
  • The PID controller for Lagrangian multiplier update stabilizes training, and removing it leads to highly unstable learning, confirming its importance.
  • EGPO outperforms Behavior Cloning and IL baselines even when using less human data, demonstrating its efficiency in imitation learning.
  • In a human-in-the-loop experiment, EGPO reached 90% success rate with only 15,000 environment steps, while SAC-Lag required 185,000 steps, highlighting its superior sample efficiency.

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.