When Does Non-Uniform Replay Matter in Reinforcement Learning?

Michal Korniak, Mikołaj Czarnecki, Yarden As, Piotr Miłoś, Pieter Abbeel, Michal Nauman

TL;DR

Experience replay is a cornerstone of off-policy reinforcement learning (RL), but when do non-uniform sampling strategies actually beat simple uniform replay? This paper reveals that non-uniform replay is highly effective in "low replay volume" regimes—where data collection outpaces optimization—and introduces a simple, mathematically optimal Truncated Geometric sampler that boosts sample efficiency with virtually zero computational overhead.

What Problem Does This Paper Address?

Off-policy RL algorithms rely on experience replay buffers to store and reuse past transitions. While uniform sampling is the standard default, many non-uniform alternatives (like prioritizing by TD-error or recency) have been proposed to improve learning. However, it has historically been unclear when and why these complex strategies actually provide a benefit over uniform sampling.

Prior work analyzed replay through "whole-training exposure" (how often a transition is sampled over its lifetime), but this metric conflates optimization intensity with sampling bias. The authors address this gap by introducing a per-step view of replay, isolating the roles of optimization intensity, recency, and sample diversity to provide practical guidance for replay design.

Methods

The authors decompose replay behavior into three distinct per-step factors:

  1. Replay Volume: The total number of transitions replayed per environment step (determined by the Update-to-Data (UTD) ratio $\times$ batch size).
  2. Expected Recency: How recent the sampled transitions are on average.
  3. Sampling Entropy: The diversity or concentration of the sampling distribution.
Decomposition of replay factors into recency, volume, and entropy.

Based on this framework, they propose the Truncated Geometric Sampler. This method smoothly biases sampling toward recent data while mathematically maximizing entropy (diversity) for a given recency target. Crucially, it uses a closed-form inverse cumulative distribution function (CDF), allowing for constant-time $O(1)$ sampling without the heavy tree-maintenance overhead seen in Prioritized Experience Replay (PER).

Datasets

The paper evaluates its findings across a massive suite of continuous-control benchmarks spanning 98 tasks:

  • HumanoidBench: Used for large-scale parallel simulation (29 tasks) and multi-task learning (20 tasks).
  • Isaac Lab: 6 high-dimensional robot simulation tasks.
  • DeepMind Control Suite (DMC): Dog (4 tasks) and Humanoid (3 tasks).
  • Meta-World: 50 robotic manipulation tasks.
  • MyoSuite: 10 musculoskeletal control tasks.

Key Insights and Ideas

  • Replay Volume Modulates Success: When replay volume is high (lots of gradient updates per environment step), uniform replay naturally samples recent transitions frequently enough, rendering non-uniform strategies redundant. Non-uniform replay shines when volume is low, which is common in parallel simulation or multi-task learning where data collection outpaces optimization.
Impact of varying replay volume via UTD and batch size.
  • Entropy is a Hidden Variable: It is not just about sampling recent data; it is about how you sample it. Strategies that sharply restrict the sampling window (low entropy, like Emphasizing Recent Experience (ERE)) perform poorly compared to smooth, full-support distributions (high entropy, like Truncated Geometric) that maintain sample diversity.
The entropy-recency frontier showing how Truncated Geometric maximizes entropy.
  • PER is a Computational Bottleneck: Prioritized Experience Replay (PER) provides minimal sample efficiency gains in these settings while incurring a massive wall-clock time penalty due to priority tree updates.

Key Results

  • Performance Gains: In low-volume regimes (FastTD3 on HumanoidBench parallel simulation), Truncated Geometric achieved a +14.1% Area Under the Curve (AUC) gain over uniform sampling. In multi-task learning (BRC on HumanoidBench), it yielded a +12.9% AUC gain.
  • Efficiency: Computationally, Truncated Geometric added only +11.1% wall-clock time overhead compared to uniform sampling, whereas PER exploded training time by +206.7%.
Performance and wall-clock time trade-offs on HumanoidBench.

Limitations and Future Work

The study is primarily empirical and focuses entirely on continuous-control off-policy RL. The authors note that extending this per-step analysis to discrete-action domains (like Atari) and value-based agents with distinct exploration/target-network dynamics remains an open challenge. Additionally, exploring adaptive schedules for the recency parameter ($\alpha$) instead of a fixed value could yield further improvements.

Summary updated

BibTeX
@inproceedings{korniak2026when,
  author = {Michal Korniak and Mikołaj Czarnecki and Yarden As and Piotr Miłoś and Pieter Abbeel and Michal Nauman},
  title = {{When Does Non-Uniform Replay Matter in Reinforcement Learning?}},
  booktitle = {RLxF @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=7mKeif4R5R},
}
Figure