All models

C51_Categorical

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

Reinforcement learning and control · 14 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 (17 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
2.2M
Operations
14
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
m275
Graph hash
efcf32df32703a20b4046dd625d31943923f8d393d6f61c63317e24739afd255
Skeleton hash
9c790b7f8471e5988381ac402893d30da7dd64f9a647f081a699f9d5cd170f61
Architecture hash
f46230a4b29cd8fe0fdfb76754f99d6aafa9e576814e16384e901090ae9fc6ae
Diagram SHA-256
c0eaaf582247bc38d383fff507e90c31d92adaec64f9f3f5c71eca5416fb832b
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}, 
}