xTED: Cross-Domain Adaptation via Diffusion-Based Trajectory Editing
Haoyi Niu, Qimao Chen, Tenglong Liu, Jianxiong Li, Guyue Zhou, Yi Zhang, Jianming Hu, Xianyuan Zhan
TL;DR
The paper tackles data scarcity and domain gaps in reinforcement and imitation learning by proposing xTED, a diffusion-based trajectory editing framework that operates at the data level rather than the policy level. A target-domain diffusion prior is learned, and source-domain trajectories are edited by adding noise and denoising with this prior, controlled by a ratio $ kappa = k/K$, typically around 0.5, while preserving primitive task information. The method uses separate encoders/decoders for states, actions, and rewards and dependency-aware attention to capture temporal and causal dynamics, enabling effective cross-domain adaptation when integrating with downstream IL/RL methods. Empirical results in simulation and real-robot experiments show that edited source data consistently improves policy learning over targets-only or unedited-source baselines, and that xTED can also serve as a powerful single-domain data augmenter. Overall, xTED offers a flexible, task- and domain-agnostic data-level solution that can synergize with existing cross-domain methods and downstream policies for robust transfer in robotics and decision-making tasks.
Abstract
Reusing pre-collected data from different domains is an appealing solution for decision-making tasks, especially when data in the target domain are limited. Existing cross-domain policy transfer methods mostly aim at learning domain correspondences or corrections to facilitate policy learning, such as learning task/domain-specific discriminators, representations, or policies. This design philosophy often results in heavy model architectures or task/domain-specific modeling, lacking flexibility. This reality makes us wonder: can we directly bridge the domain gaps universally at the data level, instead of relying on complex downstream cross-domain policy transfer procedures? In this study, we propose the Cross-Domain Trajectory EDiting (xTED) framework that employs a specially designed diffusion model for cross-domain trajectory adaptation. Our proposed model architecture effectively captures the intricate dependencies among states, actions, and rewards, as well as the dynamics patterns within target data. Edited by adding noises and denoising with the pre-trained diffusion model, source domain trajectories can be transformed to align with target domain properties while preserving original semantic information. This process effectively corrects underlying domain gaps, enhancing state realism and dynamics reliability in source data, and allowing flexible integration with various single-domain and cross-domain downstream policy learning methods. Despite its simplicity, xTED demonstrates superior performance in extensive simulation and real-robot experiments.
