Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Implicit Quantile Networks (IQN)

Learns the return distribution as a function that maps any quantile to a return.

The idea

Instead of fixed atoms, IQN feeds a randomly sampled quantile level τ into the network along with the state and outputs the return at that quantile. Sampling many τ values approximates the full distribution, and sampling from a skewed distribution of τ gives risk-sensitive policies.

Watch it run

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

  1. 1Sample quantile levels τ from a distribution.
  2. 2Embed τ and combine it with the state features.
  3. 3Output the return estimate at each τ.
  4. 4Train with the quantile Huber loss against the Bellman target.
1/4

Step by step

  1. 1Sample quantile levels τ from a distribution.
  2. 2Embed τ and combine it with the state features.
  3. 3Output the return estimate at each τ.
  4. 4Train with the quantile Huber loss against the Bellman target.

Where it is used

Distributional agents with risk-sensitive control.

Watch out for

Costlier than fixed-atom methods.

Related