Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Distributional Reinforcement Learning

Learns the whole distribution of returns instead of just their average.

The idea

Two actions can have the same mean return but very different risk. Distributional methods (C51, QR-DQN) represent the return as a distribution, for example a histogram over fixed values ("atoms"), and apply a distributional Bellman update. This richer signal improves learning and enables risk-sensitive behaviour.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Represent Z(s, a) as probabilities over a fixed set of return values.
  2. 2Shift and scale the next state's distribution by r and γ.
  3. 3Project it back onto the fixed support.
  4. 4Minimise the cross-entropy (or quantile loss) to the prediction.
1/4

Step by step

  1. 1Represent Z(s, a) as probabilities over a fixed set of return values.
  2. 2Shift and scale the next state's distribution by r and γ.
  3. 3Project it back onto the fixed support.
  4. 4Minimise the cross-entropy (or quantile loss) to the prediction.

Where it is used

Stronger DQN variants and risk-aware control.

Watch out for

More outputs and a more involved loss.

Related