Skip to main content
QUICK REVIEW

[Paper Review] Pre-training Neural Networks with Human Demonstrations for Deep Reinforcement Learning

Gabriel Cruz, Yunshu Du|arXiv (Cornell University)|Sep 12, 2017
Anomaly Detection Techniques and ApplicationsComputer Science26 citations
TL;DR

This paper proposes pre-training deep reinforcement learning (DRL) agents using a small set of non-expert human demonstrations to accelerate feature learning. By initializing DRL networks with a supervised classifier trained on human trajectories, the method significantly reduces training time across DQN and A3C on Atari games, with up to 5x speedups in Pong and Freeway despite noisy, limited demonstrations.

ABSTRACT

Deep reinforcement learning (deep RL) has achieved superior performance in complex sequential tasks by using a deep neural network as its function approximator and by learning directly from raw images. A drawback of using raw images is that deep RL must learn the state feature representation from the raw images in addition to learning a policy. As a result, deep RL can require a prohibitively large amount of training time and data to reach reasonable performance, making it difficult to use deep RL in real-world applications, especially when data is expensive. In this work, we speed up training by addressing half of what deep RL is trying to solve --- learning features. Our approach is to learn some of the important features by pre-training deep RL network's hidden layers via supervised learning using a small set of human demonstrations. We empirically evaluate our approach using deep Q-network (DQN) and asynchronous advantage actor-critic (A3C) algorithms on the Atari 2600 games of Pong, Freeway, and Beamrider. Our results show that: 1) pre-training with human demonstrations in a supervised learning manner is better at discovering features relative to pre-training naively in DQN, and 2) initializing a deep RL network with a pre-trained model provides a significant improvement in training time even when pre-training from a small number of human demonstrations.

Motivation & Objective

  • Address the long training times in deep reinforcement learning (DRL) caused by learning state representations from raw images.
  • Reduce the sample complexity of DRL by pre-training neural network features using human demonstrations instead of random initialization.
  • Improve training efficiency without modifying policy learning algorithms, focusing solely on feature representation.
  • Demonstrate that pre-training with non-expert human demonstrations can yield significant performance gains in DRL.
  • Enable faster deployment of DRL in real-world settings where data collection is costly.

Proposed method

  • Pre-train a deep neural network using supervised learning on a small dataset of human demonstration trajectories, where each image frame is paired with the corresponding action taken.
  • Use the pre-trained classifier weights as the initial policy network for DRL agents, initializing the convolutional and fully connected layers.
  • Apply the pre-trained network as the initial policy in both Deep Q-Network (DQN) and Asynchronous Advantage Actor-Critic (A3C) algorithms.
  • Train the DRL agents from the pre-trained weights, allowing faster convergence compared to random initialization.
  • Evaluate performance on Atari 2600 games (Pong, Freeway, Beamrider) using standard DRL metrics such as human-normalized score and training steps to reach target performance.
  • Quantify feature similarity between pre-trained and final trained weights using mean squared error (MSE) across network layers to assess feature retention.

Experimental results

Research questions

  • RQ1Can pre-training a deep neural network with non-expert human demonstrations significantly reduce training time in deep reinforcement learning?
  • RQ2How does pre-training with limited, noisy human demonstrations compare to random weight initialization in terms of learning speed and final performance?
  • RQ3To what extent are the features learned during pre-training retained during subsequent deep RL training?
  • RQ4Does the quality of human demonstrations (e.g., noise, non-expertise) affect the effectiveness of pre-training in DRL?
  • RQ5Can this pre-training approach be generalized across different DRL algorithms like DQN and A3C?

Key findings

  • Pre-training with just 100 human demonstration episodes reduced training time by up to 5x in DQN on Pong and Freeway, significantly outperforming random initialization.
  • A3C achieved a 5x speedup in learning Pong when initialized with pre-trained weights, demonstrating strong generalization across algorithms.
  • The mean squared error (MSE) between pre-trained and final network weights was consistently lower than with random initialization, indicating that pre-trained features are preserved during RL training.
  • Visualization of convolutional filters showed that pre-trained features (e.g., edge and motion detectors) were retained and refined during DRL training, confirming feature transfer.
  • Even with imbalanced action distributions in demonstrations, the pre-trained classifier still learned useful features, suggesting robustness to data imbalance.
  • The method achieved consistent improvements across all three Atari games (Pong, Freeway, Beamrider), with the largest gains in Pong, which has a highly repetitive game state.

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.