Playing Atari with Deep Reinforcement Learning

Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, Martin A. RiedmillerarXiv 2013

Introduction

The quest for general artificial intelligence requires agents that can learn to perform a wide variety of tasks directly from high-dimensional sensory input. Historically, reinforcement learning (RL) systems relied heavily on hand-crafted features, which limited their flexibility and required significant domain expertise for every new environment. This paper introduces the Deep Q-Network (DQN), the first deep learning model to successfully learn control policies directly from raw pixels using reinforcement learning.

The Challenge of Deep Reinforcement Learning

Applying deep learning to RL presents several unique challenges that are not present in traditional supervised learning:

  1. Delayed Rewards: Unlike classification where labels are immediate, RL agents may receive rewards only after a long sequence of actions, making it difficult to attribute success to specific moves.
  2. Data Correlation: Successive states in a game (consecutive video frames) are highly correlated, violating the independent and identically distributed (i.i.d.) assumption central to most deep learning optimization techniques.
  3. Non-stationary Distributions: As the agent's policy improves, the distribution of states it encounters changes, creating a "moving target" for the neural network and potentially leading to divergence.

Methodology: The Deep Q-Network (DQN)

The DQN architecture utilizes a Convolutional Neural Network (CNN) to approximate the optimal action-value function (Q-function). The network takes the last four frames of the game as input—downsampled to 84x84 pixels—and outputs a Q-value for each possible action. This Q-value represents the expected future reward for taking that action in the current state.

To address the stability issues of RL, the authors introduced Experience Replay. The agent stores its transitions $(state, action, reward, next\_state)$ in a replay buffer. During training, random minibatches are sampled from this buffer to update the network. This approach breaks the temporal correlation of the data and allows the model to learn from a more diverse set of experiences, preventing it from overfitting to recent, highly correlated sequences.

Experimental Setup

The DQN agent was evaluated using the Arcade Learning Environment (ALE), which provides a standardized interface to Atari 2600 games. The agent was tested on seven diverse games: Beam Rider, Breakout, Enduro, Pong, Qbert, Seaquest, and Space Invaders*. Crucially, the same network architecture and hyperparameters were used across all games, demonstrating the model's general-purpose learning capabilities.

A selection of Atari 2600 games used to evaluate the DQN agent, including Pong, Breakout, and Space Invaders.

Results and Discussion

The DQN agent achieved state-of-the-art performance, outperforming previous RL methods on six of the seven games. Most notably, the agent surpassed human expert performance in Breakout, Enduro, and Pong.

While the "Average Reward" metric is the primary goal, it is often noisy during training due to the stochastic nature of the environment and the agent's exploration strategy. However, the authors found that the agent's predicted Q-values tend to increase more smoothly, providing a more stable indicator of learning progress as the model converges on an optimal policy.

The average reward per episode on the game Breakout during training, showing a clear upward trend as the agent learns.

Limitations and Future Directions

Despite its breakthroughs, DQN faces challenges in games requiring long-term strategic planning or those with extremely sparse rewards, such as Space Invaders. In these scenarios, the agent's performance, while superior to previous algorithms, still lags behind human experts. Furthermore, the use of reward clipping—while beneficial for stability—limits the agent's ability to distinguish between rewards of different magnitudes. Future research will focus on improving temporal abstraction and handling varying reward scales to further close the gap with human-level general intelligence.

Summary updated

BibTeX
@misc{mnih2013playing,
  author = {Volodymyr Mnih and Koray Kavukcuoglu and David Silver and Alex Graves and Ioannis Antonoglou and Daan Wierstra and Martin A. Riedmiller},
  title = {{Playing Atari with Deep Reinforcement Learning}},
  year = {2013},
  eprint = {1312.5602},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1312.5602},
}
Figure