Contrastive Representation for Data Filtering in Cross-Domain Offline Reinforcement Learning
Xiaoyu Wen, Chenjia Bai, Kang Xu, Xudong Yu, Yang Zhang, Xuelong Li, Zhen Wang
TL;DR
This work tackles cross-domain offline reinforcement learning where source-domain dynamics differ from the target, causing performance drops when data are naively merged. It introduces the mutual-information gap ΔI between joint state-action information and future states as a robust domain discrepancy measure and derives a contrastive objective to estimate ΔI directly via InfoNCE, using target-domain transitions as positives and source-domain transitions as negatives. The method IGDF uses learned encoders to score source transitions and selectively shares the most compatible transitions with the target, optionally weighting TD-errors by a learned score, and provides a performance bound showing how reducing ΔI tightens the gap between target and shared data performance. Empirically, IGDF plus an offline RL backbone outperforms state-of-the-art baselines across diverse Mujoco dynamics-shift tasks, achieving superior data efficiency (e.g., using 10% target data to reach near 90% of full-target performance) and demonstrating robustness to large domain gaps. The approach offers a practical, theoretically grounded way to exploit cross-domain data in offline RL with broad applicability and minimal tuning.
Abstract
Cross-domain offline reinforcement learning leverages source domain data with diverse transition dynamics to alleviate the data requirement for the target domain. However, simply merging the data of two domains leads to performance degradation due to the dynamics mismatch. Existing methods address this problem by measuring the dynamics gap via domain classifiers while relying on the assumptions of the transferability of paired domains. In this paper, we propose a novel representation-based approach to measure the domain gap, where the representation is learned through a contrastive objective by sampling transitions from different domains. We show that such an objective recovers the mutual-information gap of transition functions in two domains without suffering from the unbounded issue of the dynamics gap in handling significantly different domains. Based on the representations, we introduce a data filtering algorithm that selectively shares transitions from the source domain according to the contrastive score functions. Empirical results on various tasks demonstrate that our method achieves superior performance, using only 10% of the target data to achieve 89.2% of the performance on 100% target dataset with state-of-the-art methods.
