Skip to main content
QUICK REVIEW

[Paper Review] Shaping Rewards for Reinforcement Learning with Imperfect Demonstrations using Generative Models

Yuchen Wu, Melissa Mozifian|arXiv (Cornell University)|Nov 2, 2020
Reinforcement Learning in RoboticsComputer Science41 references6 citations
TL;DR

This paper proposes a reward shaping method for reinforcement learning that uses generative models—specifically normalizing flows and GANs—to learn state-and-action-dependent potentials from imperfect demonstrations. Unlike prior approaches that treat demonstrations as hard constraints, this method treats them as unbiased advice, enabling faster, more data-efficient learning even with suboptimal or noisy demonstrations, as validated in simulation and on a real Franka Emika Panda robot arm.

ABSTRACT

The potential benefits of model-free reinforcement learning to real robotics systems are limited by its uninformed exploration that leads to slow convergence, lack of data-efficiency, and unnecessary interactions with the environment. To address these drawbacks we propose a method that combines reinforcement and imitation learning by shaping the reward function with a state-and-action-dependent potential that is trained from demonstration data, using a generative model. We show that this accelerates policy learning by specifying high-value areas of the state and action space that are worth exploring first. Unlike the majority of existing methods that assume optimal demonstrations and incorporate the demonstration data as hard constraints on policy optimization, we instead incorporate demonstration data as advice in the form of a reward shaping potential trained as a generative model of states and actions. In particular, we examine both normalizing flows and Generative Adversarial Networks to represent these potentials. We show that, unlike many existing approaches that incorporate demonstrations as hard constraints, our approach is unbiased even in the case of suboptimal and noisy demonstrations. We present an extensive range of simulations, as well as experiments on the Franka Emika 7DOF arm, to demonstrate the practicality of our method.

Motivation & Objective

  • To address the inefficiency and slow convergence of model-free reinforcement learning in real robotic systems.
  • To overcome the limitations of existing methods that assume optimal demonstrations and impose hard constraints on policy optimization.
  • To enable robust policy learning from suboptimal, noisy, or multi-modal demonstrations without introducing bias.
  • To develop a reward shaping framework that treats demonstrations as advice rather than constraints.
  • To demonstrate practical applicability on a real 7DOF robotic arm in a peg insertion task.

Proposed method

  • The method uses a two-phase approach: offline training of a generative model (normalizing flow or GAN) on demonstration data to learn a state-and-action potential function Φ(s,a).
  • The learned potential function is used to shape the sparse task reward, creating a dense, informative reward signal that guides exploration.
  • The reward shaping potential is trained to model the joint distribution of states and actions in the demonstrations, without assuming optimality.
  • The online RL phase uses TD3 with the shaped reward, where the potential function biases the policy toward high-value regions of the state-action space.
  • The approach avoids hard constraints on the policy by not enforcing demonstration actions directly, preserving the ability to find optimal solutions.
  • The method gracefully handles multi-modal action distributions by modeling the full density of demonstrated behaviors.

Experimental results

Research questions

  • RQ1Can generative models effectively shape rewards in reinforcement learning using imperfect demonstrations?
  • RQ2Does reward shaping with learned potentials outperform behavioral cloning or constrained imitation learning in the presence of suboptimal demonstrations?
  • RQ3Can this method improve data efficiency and convergence speed in high-dimensional robotic control tasks?
  • RQ4How robust is the method to noisy or multi-modal demonstrations compared to existing approaches?
  • RQ5Can the method be successfully deployed on a real robotic system with sparse rewards?

Key findings

  • The method achieved successful peg insertion in approximately 200 episodes on a real Franka Emika Panda robot arm, significantly outperforming standard TD3.
  • With the proposed shaping, the robot collected dense cumulative rewards in as few as 20 steps, indicating effective early exploration and goal discovery.
  • Unlike λ-weighted TD3+BC, the method is insensitive to hyperparameter tuning of the relative RL and imitation objective weights.
  • GAIL failed to solve the peg insertion task even with optimal demonstrations, highlighting the limitations of standard imitation learning under sparse rewards.
  • The method successfully learned a policy that avoids suboptimal behaviors present in demonstrations, maintaining unbiased optimization toward the true optimal solution.
  • The approach demonstrated robustness to suboptimal and noisy demonstrations, with no need for a forgetting schedule or manual hyperparameter tuning of demonstration influence.

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.