An Equivalence between Loss Functions and Non-Uniform Sampling in Experience Replay

Scott Fujimoto, David Meger, Doina Precup
7/12/2020
89 citations
cs.LGstat.ML

Official code: sfujim/LAP-PAL (44 stars, Python, MIT, last commit 2021-12-07).

Abstract

Prioritized Experience Replay (PER) is a deep reinforcement learning technique in which agents learn from transitions sampled with non-uniform probability proportionate to their temporal-difference error. We show that any loss function evaluated with non-uniformly sampled data can be transformed into another uniformly sampled loss function with the same expected gradient.

Show full abstract

Surprisingly, we find in some environments PER can be replaced entirely by this new loss function without impact to empirical performance. Furthermore, this relationship suggests a new branch of improvements to PER by correcting its uniformly sampled loss function equivalent. We demonstrate the effectiveness of our proposed modifications to PER and the equivalent loss function in several MuJoCo and Atari environments.

View on arXivView PDF

Code Implementations(1)

sfujim/LAP-PALOfficial100%
MIT

Author's PyTorch implementation of LAP and PAL with TD3 and DDQN

447PythonJul 7, 20204 years agoMIT

Similar Papers

Cite this paper

@article{fujimoto2020equivalence,
  title  = {An Equivalence between Loss Functions and Non-Uniform Sampling in Experience Replay},
  author = {Scott Fujimoto and David Meger and Doina Precup},
  year   = {2020},
  eprint = {2007.06049},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.06049}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.06049.svg)](https://codeofpaper.com/paper/2007.06049)

Discussion