All models

sb3_dqn_cnn_policy

A convolutional Q-network that maps stacked Atari frames to one value per action.

Reinforcement learning and control · 12 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (16 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.7M
Operations
12
Framework
PyTorch
Recurrent
No
Published
NIPS 2013 Deep Learning Workshop
Cited by
9,472 (as of 23 October 2026)
Authors
Volodymyr Mnih, Koray Kavukcuoglu, David Silver and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m9034
Graph hash
81d26e7e7d6c9c3b8348ba3593aed8c685fb772aba40dcf97d9606d40dc8f9cf
Skeleton hash
540507978ec0ffa03acd8dd98a70fd0cf8c163a8257bc3a6f980e0559656a053
Architecture hash
ac3ecaf358f681915d8a36043d6b5dd49b90180b88c919ce2bb5c29b678f4f0c
Diagram SHA-256
3b5c41916b9aed07538acdb98e69bfaa39608dae3774cb8da331ff1248987d99
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DQN, the deep Q-network, is a convolutional neural network trained with a variant of Q-learning to estimate future rewards from raw pixels. The paper presents it as the first deep learning model to successfully learn control policies directly from high-dimensional sensory input using reinforcement learning.

The input to the network is a stack of the last 4 preprocessed frames. The network has a separate output unit for each possible action, and only the state representation is given as input. The paper gives the advantage of this design as computing the Q-values for all possible actions in a state with a single forward pass. Training uses experience replay, which randomly samples previous transitions and so smooths the training distribution over many past behaviors.

The paper applied the method to seven Atari 2600 games from the Arcade Learning Environment, with no adjustment of the architecture or learning algorithm. It reports that the method outperformed all previous approaches on six of the games and surpassed a human expert on three. A 2015 Nature paper tested the deep Q-network agent across a set of 49 games, using the same algorithm, network architecture and hyperparameters. This model's network comes from Stable Baselines3, a set of implementations of reinforcement learning algorithms in PyTorch.

Key idea. The paper trained a convolutional neural network with a variant of Q-learning to learn control policies for Atari 2600 games directly from raw pixels.

  • DQN
  • Deep Q-Network
  • deep Q-learning
  • Q-network
  • deep reinforcement learning
  • Atari
  • Atari 2600
  • experience replay
  • Stable Baselines3

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

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