Introduction
In online reinforcement learning (RL), agents learn from a continuous, non-i.i.d. stream of experience. To stabilize learning and decorrelate observations, the standard approach is to use a replay buffer—a memory bank of past transitions from which the agent samples.
However, uniform sampling from this buffer is highly inefficient because not all experiences are equally valuable. While Prioritized Experience Replay (PER) attempts to solve this by sampling important transitions more frequently, it introduces a "scarcity" problem: if a highly useful transition is rare, the agent risks overfitting to that specific data point by replaying it too often.
To address this, researchers propose a shift from non-parametric memory (storing exact copies of past events) to parametric generative memory. By using a conditional diffusion model, an agent can not only revisit the past but "densify" it, generating novel, highly relevant transitions that fill the gaps in its experience without overfitting to a sparse set of real samples.
The Prioritized Generative Replay Framework
The core contribution of this work is the Prioritized Generative Replay (PGR) framework. Instead of maintaining a static list of transitions, the agent's memory is powered by a conditional diffusion model.
The framework operates on two primary mechanisms:
- Densification: By training a diffusion model on the agent's collected experience, the system can synthesize an infinite stream of new transitions $(s, a, s', r)$. This leverages the generative model's capacity to interpolate between known data points and generalize across the state space.
- Guidance: The diffusion model is conditioned on a relevance function, $\mathcal{F}$. During the replay phase, the system prompts the model to generate transitions that score highly on this relevance metric.
The authors evaluated several relevance functions, including return-based metrics (conditioning on high predicted future reward) and TD-Error (focusing on transitions that "surprise" the value function). However, they found that Intrinsic Curiosity—based on the error of a learned forward dynamics model—was the most effective. Curiosity pushes the generative model to produce data at the "learning frontier": areas the agent has visited but has not yet mastered.
Key Insights: Curiosity and Overfitting
While return-based guidance might seem intuitive, it often leads to myopic behavior. Curiosity-guided PGR, on the other hand, provides the policy with diverse, challenging data.
Crucially, PGR mitigates overfitting. In standard RL, a high "dormant ratio" (the fraction of inactive neurons in a policy network) is a strong indicator of overfitting. By generating new transitions rather than simply upweighting old ones, PGR provides a richer, more diverse training signal that keeps the network active and learning. Interestingly, the performance gains do not stem from the conditional generations having lower mean squared error (MSE) than unconditional ones; rather, the gains come from generating the right kind of data that focuses training on the most informative parts of the state space.
Results and Performance
The authors benchmarked PGR across several standard RL environments, including the DeepMind Control Suite (DMC), OpenAI Gym, and DMLab.
- Superior Sample Efficiency: Curiosity-guided PGR consistently outperformed model-free baselines (like SAC and REDQ) as well as unconditional generative replay (SynthER). In challenging, sparse-reward tasks like Finger-Turn-Hard, PGR achieved nearly double the performance of the next best baseline.
- Scaling with UTD: PGR allows agents to train with significantly higher Update-to-Data (UTD) ratios. While standard methods degrade when training too many times on the same data, PGR’s ability to synthesize novel transitions allows the agent to continue learning effectively.
- Low Overhead: Despite the complexity of using a diffusion model, PGR adds less than 5% training time overhead compared to unconditional generative baselines, making it a highly practical addition to existing RL pipelines.
Limitations and Future Work
While PGR is a powerful tool for data augmentation, it cannot entirely replace real environment interactions. The authors note a "real data floor": if the ratio of synthetic to real data becomes too extreme (e.g., >87% synthetic), performance begins to degrade. Additionally, the success of PGR is inherently tied to the capacity of the underlying generative model; in extremely high-dimensional environments, the diffusion model may struggle to capture dynamics accurately.
Future directions include exploring more sophisticated relevance functions and investigating PGR's potential for "sim-to-real" transfer, where generative memory could help agents adapt more rapidly to real-world conditions.
Summary updated