Contrastive Diffuser: Planning Towards High Return States via Contrastive Learning
Abstract
Applying Diffusion in reinforcement learning for long-term planning has gained much attention recently. Depending on the capability of diffusion in modeling the underlying distribution, those methods leverage the diffusion to generate the subsequent trajectories for planning, and achieve significant improvement. However, these methods neglect the differences of samples in offline datasets, in which different states have different returns. They simply leverage diffusion to learn the distribution of data, and generate the trajectories whose states have the same distribution with the offline datasets. As a result, the probability of these models reaching the high-return states is largely dependent on the distribution in the dataset. Even equipped with the guidance model, the performance is still suppressed. To address these limitations, in this paper, we propose a novel method called CDiffuser, which devises a return contrast mechanism to pull the states in generated trajectories towards high-return states while pushing them away from low-return states. Experiments on nine commonly used D4RL benchmarks demonstrate the effectiveness of our proposed method. Our code is publicly available at https://anonymous.4open.science/r/ContrastiveDiffuser.
BibTeX
@misc{shan2024contrastive,
author = {Yixiang Shan and Zhengbang Zhu and Ting Long and Yi Chang and Weinan Zhang},
title = {{Contrastive Diffuser: Planning Towards High Return States via Contrastive Learning}},
year = {2024},
eprint = {2402.02772},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2402.02772},
}Ask Althea to put this paper to the test.