ATraDiff: Accelerating Online Reinforcement Learning with Imaginary Trajectories
Qianlan Yang, Yu-Xiong Wang
TL;DR
ATraDiff tackles the long-standing data-efficiency problem in online reinforcement learning with sparse rewards by learning a diffusion-based generator from offline data to synthesize full trajectories. It introduces a trajectory-centric diffusion model capable of state- and image-level generation, plus a coarse-to-precise length strategy and an online adaptation loop to counter distribution shifts. By augmenting the replay buffer with synthetic trajectories and adapting the generator during online learning, ATraDiff achieves state-of-the-art performance across online, offline-to-online, and offline RL benchmarks, often outperforming transition-focused data augmentation methods. The approach is designed as a general, plug-in enhancement for any replay-buffer-based RL algorithm, offering substantial improvements especially in complex tasks and environments with distribution shifts.
Abstract
Training autonomous agents with sparse rewards is a long-standing problem in online reinforcement learning (RL), due to low data efficiency. Prior work overcomes this challenge by extracting useful knowledge from offline data, often accomplished through the learning of action distribution from offline data and utilizing the learned distribution to facilitate online RL. However, since the offline data are given and fixed, the extracted knowledge is inherently limited, making it difficult to generalize to new tasks. We propose a novel approach that leverages offline data to learn a generative diffusion model, coined as Adaptive Trajectory Diffuser (ATraDiff). This model generates synthetic trajectories, serving as a form of data augmentation and consequently enhancing the performance of online RL methods. The key strength of our diffuser lies in its adaptability, allowing it to effectively handle varying trajectory lengths and mitigate distribution shifts between online and offline data. Because of its simplicity, ATraDiff seamlessly integrates with a wide spectrum of RL methods. Empirical evaluation shows that ATraDiff consistently achieves state-of-the-art performance across a variety of environments, with particularly pronounced improvements in complicated settings. Our code and demo video are available at https://atradiff.github.io .
