Explore modules

Prioritized Replay Importance Weights

Oversample surprising experiences and see exactly what importance weights do—and do not—correct.

Free theory article

Oversample surprising experiences and see exactly what importance weights do—and do not—correct.

Concept & interpretation

Experience replay allows reinforcement learning agents to learn from past transitions. Instead of sampling uniformly, prioritized experience replay samples transitions with a higher magnitude of Temporal Difference (TD) error more frequently. To avoid bias, importance sampling weights are used to correct the expectation.

Experiment

Use the interactive module to see how importance weights affect expected updates:Prioritized Replay Importance Weights

  1. Set Errors to Increasing.
  2. Set Priority exponent to 1.
  3. Set Correction exponent to 1 and Normalization to Raw. Notice that the expected weighted error exactly matches the uniform target mean.
  4. Change Normalization to Maximum. The expected weighted error is now scaled down compared to the uniform mean.
  5. Change Correction exponent to 0. Notice that the expected weighted error diverges from the uniform target mean, revealing bias.
Read the full free theory article