All models

a2c_lstm_policy

An Atari agent with convolutional layers, an LSTM, and separate policy and value heads.

Reinforcement learning and control · 13 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 (22 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
589K
Operations
13
Framework
PyTorch
Recurrent
No
Published
ICML 2016
Cited by
7,131 (as of 23 October 2026)
Authors
Volodymyr Mnih, Adrià Puigdomènech Badia, Mehdi Mirza 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
m3467
Graph hash
c231984461808a348f318873258e628548bd5015b6855ac7ef4ed680f1a57af6
Skeleton hash
712c1ffe1ed27ec59cc263392f40e5adc0cae2abdc7f41e78901c203b09370c6
Architecture hash
64a10ef7a94ccf574c7fd8b2a3542662d44575b6665538297eb5d7fb4568fc5c
Diagram SHA-256
743a0b3d61fe65378a62e096986b8dd927e862aa2f4d87c34139c4fa186a5dab
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

This is a recurrent actor-critic agent for reinforcement learning: a network that reads a game frame and returns two things, a probability for each action and an estimate of the value of the current state. It follows the recurrent agent of the paper Asynchronous Methods for Deep Reinforcement Learning, which has an additional 256 LSTM cells after the final hidden layer. The code is a PyTorch implementation of Asynchronous Advantage Actor Critic (A3C).

The paper is mostly about how such agents are trained. Parallel actor-learners update a shared model, and the authors found that this has a stabilizing effect on training. The policy and the value function typically share one convolutional network, with a softmax output for the policy and a linear output for the value. Adding the entropy of the policy to the objective function improved exploration.

Over 57 Atari games the paper reports that A3C beat the average score of the earlier methods it compared against, in half their training time and using only 16 CPU cores and no GPU. The PyTorch implementation is inspired by the Universe Starter Agent but uses an optimizer with shared statistics as in the original paper. A2C is a synchronous deterministic version of A3C.

Key idea. The paper shows that running parallel actor-learners asynchronously stabilizes training of neural network controllers, with asynchronous advantage actor-critic performing best among its four methods.

  • A3C
  • A3C LSTM
  • A2C
  • recurrent actor-critic
  • asynchronous advantage actor-critic
  • a2c_lstm_policy
  • actor-critic agent
  • Atari agent
  • deep reinforcement learning
  • LSTM policy

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

Cite the paper

@misc{mnih2016asynchronousmethodsdeepreinforcement,
      title={Asynchronous Methods for Deep Reinforcement Learning}, 
      author={Volodymyr Mnih and Adrià Puigdomènech Badia and Mehdi Mirza and Alex Graves and Timothy P. Lillicrap and Tim Harley and David Silver and Koray Kavukcuoglu},
      year={2016},
      eprint={1602.01783},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1602.01783}, 
}