All models

Rainbow

Distributional DQN heads for Atari: C51's atoms, QR-DQN and IQN quantiles, and the Rainbow combination.

Reinforcement learning and control · 20 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 (25 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
7.5M
Operations
20
Framework
PyTorch
Recurrent
No
Published
ICML 2017
Cited by
710 (as of 17 October 2026)
Authors
Marc G. Bellemare, Will Dabney, Rémi Munos
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
m2454
Graph hash
3b684f47196c350f06779c6fe4cf3fdec29584f7dc917bc76ac70ab33dfa0057
Skeleton hash
62a5c5679793db12eb1c9b9cf1abda856e36696159bc5f87c3d69d7bb7df989b
Architecture hash
2a2cbfc391809ba28544cae03379bded10a70ae4f425d60500adb0801c50d11a
Diagram SHA-256
a5af342b1f35fb7016af80dc6bbad59cc8a6a33b535b5ab94a95e821a4911940
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

About this model's family

These models are distributional variants of DQN: instead of predicting one expected value per action, they learn the distribution of the random return a reinforcement learning agent receives. The founding paper argued for this in contrast to the common approach of modelling only the expectation of the return. Each builds on DQN, a convolutional network that reads a stack of raw pixel frames and approximates action values.

C51 models the value distribution as a discrete distribution over a fixed set of atoms between VMIN and VMAX. Its authors chose VMAX = −VMIN = 10 from preliminary experiments and called the resulting architecture Categorical DQN. QR-DQN transposes that parametrization: instead of fixed locations with adjustable probabilities, it assigns fixed uniform probabilities to N adjustable locations. The quantile approach also removes the need for domain knowledge about the bounds of the return distribution. IQN goes further and learns the full quantile function, a continuous map from probabilities to returns. Rainbow instead examines six extensions to DQN and integrates them into a single agent.

Tianshou is a reinforcement learning library based on pure PyTorch. Dopamine is a research framework for fast prototyping whose agents, including C51, Rainbow and IQN, are implemented with JAX. In the original authors' TensorFlow implementation, C51 trained at roughly 75% of DQN's speed. Within 50 million frames, C51 had outperformed a fully trained DQN agent on 45 out of 57 games.

Key idea. Using the distributional perspective to design algorithms that apply Bellman's equation to the learning of approximate value distributions rather than expected values. The later members replace the fixed categorical support with adjustable quantile locations. Rainbow integrates the categorical distributional loss with the other DQN extensions into one agent.

  • C51
  • Categorical DQN
  • QR-DQN
  • QRDQN
  • Quantile Regression DQN
  • IQN
  • Implicit Quantile Network
  • Rainbow
  • Rainbow DQN
  • distributional RL
  • Distributional DQN
  • value distribution
  • Atari
  • Tianshou
  • Dopamine

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

Cite the paper

@misc{bellemare2017distributionalperspectivereinforcementlearning,
      title={A Distributional Perspective on Reinforcement Learning}, 
      author={Marc G. Bellemare and Will Dabney and Rémi Munos},
      year={2017},
      eprint={1707.06887},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1707.06887}, 
}