DAQN: Deep Auto-encoder and Q-Network

Daiki KimuraarXiv 2018 · OpenReview

Abstract

The deep reinforcement learning method usually requires a large number of training images and executing actions to obtain sufficient results. When it is extended to a real-task in the real environment with an actual robot, the method requires more training images due to complexities or noises of the input images, and executing a lot of actions on the real robot also becomes a serious problem. Therefore, we propose an extended deep reinforcement learning method that applies a generative model to initialize the network for reducing the number of training trials. In this paper, we used a deep Q-network (DQN) method as the deep reinforcement learning method and a deep auto-encoder (AE) as the generative model. We conducted experiments on three different tasks: a cart-pole game, an Atari game, and a real-game with an actual robot. The proposed method trained more efficiently on all tasks than the previous method, achieving a 2.5 times speedup on a task with real environment images.

Introduction

Deep Reinforcement Learning (DRL) is notoriously "sample hungry," often requiring millions of interactions to learn effective policies. While feasible in simulation, this requirement is a significant barrier for real-world robotics, where every action incurs costs in time, energy, and mechanical wear. Furthermore, real-world visual inputs are inherently messy, containing complex backgrounds and sensor noise that differ significantly from clean, simulated pixels.

The authors tackle the challenge of making DRL feasible for physical tasks by reducing the "trial and error" phase through smarter network initialization. By pre-training the agent's visual system using unsupervised learning, the agent can begin its reinforcement learning phase with a pre-existing understanding of its environment.

Methodology

The proposed DAQN (Deep Auto-encoder and Q-Network) framework utilizes a two-stage training pipeline:

  1. Unsupervised Pre-training: Before the agent attempts to earn rewards, it observes its environment to learn a compressed representation of input images using a Deep Auto-encoder (AE). This stage is unsupervised, meaning data can be collected through random movement or passive observation.
  2. Reinforcement Learning: The decoder portion of the AE is discarded, and the encoder layers are used to initialize a Deep Q-Network (DQN). A task-specific fully-connected layer (the "action head") is added, and the network is then trained using standard DRL algorithms.
Overview of the DAQN framework combining a generative model for state representation with reinforcement learning.

Unlike previous transfer learning attempts in DRL that only transferred initial layers, DAQN transfers all encoder layers, providing a more robust starting point for learning complex tasks.

Experimental Setup

The researchers evaluated DAQN across three distinct environments to test its versatility and scaling:

  • Cart-pole: A classic control theory baseline.
  • Atari Breakout: A standard benchmark involving complex game rules and high-dimensional image inputs.
  • Real-world Rock-Paper-Scissors: The primary focus of the study. A custom dataset of 50,000 images was created, featuring variations in lighting, backgrounds, and hand gestures to simulate real-world complexity.

Results and Discussion

DAQN demonstrated superior learning efficiency and final performance across all tested domains. The most dramatic improvements were observed in the real-world task, where the complexity of the input data is highest.

  • 2.5x Speedup: In the Rock-Paper-Scissors task, DAQN reached a 90% winning ratio 2.5 times faster than a standard DQN starting from scratch.
  • Improved Performance: DAQN achieved a final winning ratio of 94.9%, outperforming the standard DQN's 93.2%.
Comparison of average rewards during the test phase for DAQN versus standard DQN, showing faster convergence and higher final performance.

Key Insights

  • Pre-training Utility: An agent does not need a reward signal to understand visual geometry. By using an auto-encoder first, the agent learns to extract meaningful features (like the shape of a hand) before tackling the logic of the task.
  • Domain Relevance: Pre-training on domain-specific data (even just the empty background of the workspace) was highly effective, whereas pre-training on unrelated datasets like MNIST actually hindered performance.

Conclusion

DAQN offers a practical path toward deploying reinforcement learning on physical robots by significantly reducing the required number of real-world trials. While training times remain substantial, the efficiency gains from unsupervised pre-training make complex robotic tasks more accessible. Future work will explore extending this framework to continuous control methods and dynamic environments.

Summary updated

Abstract

The deep reinforcement learning method usually requires a large number of training images and executing actions to obtain sufficient results. When it is extended a real-task in the real environment with an actual robot, the method will be required more training images due to complexities or noises of the input images, and executing a lot of actions on the real robot also becomes a serious problem. Therefore, we propose an extended deep reinforcement learning method that is applied a generative model to initialize the network for reducing the number of training trials. In this paper, we used a deep q-network method as the deep reinforcement learning method and a deep auto-encoder as the generative model. We conducted experiments on three different tasks: a cart-pole game, an atari game, and a real-game with an actual robot. The proposed method trained efficiently on all tasks than the previous method, especially 2.5 times faster on a task with real environment images.
BibTeX
@misc{kimura2018daqn,
  author = {Daiki Kimura},
  title = {{DAQN: Deep Auto-encoder and Q-Network}},
  year = {2018},
  eprint = {1806.00630},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.00630},
}
Figure