Experience Replay with Random Reshuffling
Yasuhiro Fujita
TL;DR
This paper tackles inefficiencies in reinforcement learning experience replay caused by sampling with replacement. It adapts random reshuffling (RR) from supervised learning to RL via two methods: RR-C for uniform experience replay and RR-M for prioritized experience replay, supported by theory and simulations. The approaches reduce variance in how often transitions are sampled and yield modest performance gains on Atari benchmarks across several algorithms, while remaining simple to implement. The work provides practical drop-in replacements for standard sampling and broadens the applicability of RR in RL contexts.
Abstract
Experience replay is a key component in reinforcement learning for stabilizing learning and improving sample efficiency. Its typical implementation samples transitions with replacement from a replay buffer. In contrast, in supervised learning with a fixed dataset, it is a common practice to shuffle the dataset every epoch and consume data sequentially, which is called random reshuffling (RR). RR enjoys theoretically better convergence properties and has been shown to outperform with-replacement sampling empirically. To leverage the benefits of RR in reinforcement learning, we propose sampling methods that extend RR to experience replay, both in uniform and prioritized settings, and analyze their properties via theoretical analysis and simulations. We evaluate our sampling methods on Atari benchmarks, demonstrating their effectiveness in deep reinforcement learning. Code is available at https://github.com/pfnet-research/errr.
