Energy-Guided Diffusion Sampling for Offline-to-Online Reinforcement Learning
About
Combining offline and online reinforcement learning (RL) techniques is indeed crucial for achieving efficient and safe learning where data acquisition is expensive. Existing methods replay offline data directly in the online phase, resulting in a significant challenge of data distribution shift and subsequently causing inefficiency in online fine-tuning. To address this issue, we introduce an innovative approach, \textbf{E}nergy-guided \textbf{DI}ffusion \textbf{S}ampling (EDIS), which utilizes a diffusion model to extract prior knowledge from the offline dataset and employs energy functions to distill this knowledge for enhanced data generation in the online phase. The theoretical analysis demonstrates that EDIS exhibits reduced suboptimality compared to solely utilizing online data or directly reusing offline data. EDIS is a plug-in approach and can be combined with existing methods in offline-to-online RL setting. By implementing EDIS to off-the-shelf methods Cal-QL and IQL, we observe a notable 20% average improvement in empirical performance on MuJoCo, AntMaze, and Adroit environments. Code is available at \url{https://github.com/liuxhym/EDIS}.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Locomotion | D4RL Hopper-medium-replay v2 | Online Normalized Return103.5 | 12 | |
| Locomotion | D4RL walker2d medium-replay v2 | Online Normalized Return89.53 | 12 | |
| Locomotion | D4RL HalfCheetah Medium v2 | Online Return (Normalized)49.34 | 12 | |
| Locomotion | D4RL HalfCheetah-medium-replay v2 | Online Normalized Return46.65 | 12 | |
| Locomotion | D4RL Hopper Medium v2 | Online Normalized Return68.9 | 12 | |
| Offline-to-Online Reinforcement Learning | pen-cloned v1 | Avg Online Return97.31 | 8 | |
| Offline-to-Online Reinforcement Learning | door-cloned v1 | Average Online Return10.46 | 8 | |
| Offline-to-Online Reinforcement Learning | hammer-cloned v1 | Average Online Expected Return28 | 8 | |
| Offline-to-Online Reinforcement Learning | relocate cloned v1 | Average Online Expected Return0.14 | 8 | |
| Offline-to-Online Reinforcement Learning | Adroit Average | Average Online Return33.9775 | 8 |