TL;DR
The paper introduces SYNTHER (Synthetic Experience Replay), a novel method that uses diffusion generative models to artificially upsample an agent’s reinforcement learning (RL) data. By generating highly realistic synthetic transitions, SYNTHER dramatically improves sample efficiency and performance across both offline and online RL tasks without requiring any modifications to the underlying RL algorithms.
What Problem Does This Paper Address?
Deep learning has achieved massive success in vision and language by training large neural networks on massive datasets. Deep reinforcement learning (RL) attempts to replicate this using an experience replay buffer—a repository of past interactions. However, unlike computer vision, an RL agent must collect its own data, which is often scarce, expensive, or dangerous to obtain.
When data is limited, RL agents quickly overfit, preventing researchers from scaling up network architectures. Traditional data augmentation techniques (like adding random noise to states) help slightly but often generate physically impossible transitions that confuse the agent. The authors ask a fundamental question: Can modern generative models completely replace or significantly augment real datasets in reinforcement learning?
Methods
SYNTHER leverages recent breakthroughs in diffusion models—specifically the Elucidated Diffusion Model (EDM) framework—to learn the complex joint distribution of environment transitions. Instead of generating images, the diffusion model learns to generate tabular transition tuples:
$$\mathbf{x} = (s, a, r, s', d)$$
where $s$ is the state, $a$ is the action, $r$ is the reward, $s'$ is the next state, and $d$ is the terminal flag.
The authors adapt this approach to three distinct paradigms:
- Offline SYNTHER: The diffusion model is trained once on a small, static offline dataset and then sampled extensively to generate a massive synthetic dataset (e.g., upsampling to 5 million transitions) on which a standard offline RL agent is trained.
- Online SYNTHER: The diffusion model is trained continually alongside an online agent. As the agent collects real data, the diffusion model updates and populates a parallel synthetic replay buffer, allowing the agent to perform many more gradient steps per real environment interaction (a high update-to-data or UTD ratio).
- Latent SYNTHER for Pixels: To scale to pixel-based (image) observations, SYNTHER avoids the high computational cost of generating raw images. Instead, it trains the diffusion model to generate features inside the low-dimensional latent space of a pre-trained, frozen CNN encoder.
Datasets
The authors evaluated SYNTHER across a rigorous suite of standard RL benchmarks:
- D4RL: Standard offline RL datasets covering MuJoCo locomotion tasks (halfcheetah, walker2d, hopper) and navigation tasks (maze2d, AntMaze).
- DeepMind Control Suite (DMC) & OpenAI Gym: Used for online evaluation (cheetah-run, quadruped-walk, reacher-hard, etc.).
- V-D4RL: A pixel-based offline RL benchmarking suite used to validate the latent-space generation approach.
Key Insights and Ideas
- Diffusion Outperforms VAEs and GANs: Prior attempts to use generative models (like VAEs or GANs) for experience replay failed to match real-data performance. Diffusion models are uniquely capable of capturing the sharp, multi-modal distributions inherent in behavioral data.
- Diversity with Accuracy: Unlike simple heuristic augmentations (e.g., adding Gaussian noise), which quickly degrade physics accuracy as diversity increases, SYNTHER generates novel transitions that are far from the original dataset yet remain highly compliant with true environment dynamics.
- Unlocking Scaling Laws for RL: Historically, making RL networks larger often degraded performance due to severe overfitting on small datasets. SYNTHER's synthetic data acts as a regularizer, finally allowing larger networks (6x more parameters) to yield substantial performance gains.
Key Results
- Data Parity and Compression: In offline settings, agents trained entirely on synthetic data generated by SYNTHER achieved performance identical to (and sometimes better than) agents trained on the original real data. This allows for up to 12.9× data compression.
- Extreme Upsampling: On the walker2d-medium-expert task, SYNTHER achieved near-original performance levels using only 3% of the original dataset as a seed for the diffusion model.
- Algorithmic Simplicity Online: In online tasks, combining a standard Soft Actor-Critic (SAC) agent with SYNTHER and a UTD ratio of 20 matched or outperformed REDQ—a state-of-the-art, highly complex algorithm specifically engineered for data efficiency—without any algorithmic modifications to SAC.
- Pixel-Based Success: In the pixel-based V-D4RL benchmark, generating data in the latent space led to an overall performance boost of +9.5% for DrQ+BC and +6.8% for Behavior Cloning.
Limitations and Future Work
- The Terminal Variable Bottleneck: Modeling the binary terminal flag ($d$) alongside continuous states and actions within a continuous diffusion framework is challenging. The authors currently rely on a simple rounding threshold (0.5), which can be problematic in environments where terminations are extremely rare (e.g., expert datasets).
- Latent Space Dependency: For pixel environments, SYNTHER relies on a pre-trained, frozen encoder. If the initial dataset lacks coverage, the encoder's latent space might be flawed. Future work includes generating transitions directly in the raw image space or leveraging large, pre-trained visual foundation models.
- Computational Overhead: Training a diffusion model online adds wall-clock time, though the authors note it is still faster than running large ensembles of neural networks like those used in REDQ.
Summary updated