DADiff: Diffusion-Driven Cross-Domain Policy Adaptation for Reinforcement Learning
Machine LearningArtificial Intelligence
Summary
The authors propose a new method called DADiff to help reinforcement learning policies adjust when used in different environments with changing dynamics. Unlike past methods that used classifiers or representation learning, they use a generative model to detect differences in how states change between source and target environments. They then adapt the policy by either changing rewards or selecting data based on these differences. Their experiments show that this method works better than previous approaches for dealing with environment shifts.
Authors
Hanyang Chen, Anirudh Satheesh, Longchao Da, Hua Wei
Abstract
Transferring policies across domains poses a vital challenge in reinforcement learning, due to the dynamics mismatch between the source and target domains. In this paper, we consider the setting of online dynamics adaptation, where policies are trained in the source domain with sufficient data, while only limited interactions with the target domain are allowed. There are a few existing works that address the dynamics mismatch by employing domain classifiers, value-guided data filtering, or representation learning. Instead, we study the domain adaptation problem from a generative modeling perspective. Specifically, we introduce DADiff, a diffusion-based framework that leverages the discrepancy between source and target domain generative trajectories in the generation process of the next state to estimate the dynamics mismatch. Both reward modification and data selection variants are developed to adapt the policy to the target domain. We also provide a theoretical analysis to show that the performance difference of a given policy between the two domains is bounded by the generative trajectory deviation. More discussions on the applicability of the variants and the connection between our theoretical analysis and the prior work are further provided. We conduct extensive experiments in environments with various shifts to validate the effectiveness of our method. The results demonstrate that our method provides superior performance compared to existing approaches, effectively addressing the dynamics mismatch. We provide the code of our method at https://github.com/hanyang-chen/DADiff-release