Context Shift Reduction for Offline Meta-Reinforcement Learning

Yunkai Gao, Rui Zhang, Jiaming Guo, Fan Wu, Qi Yi +8 more
2/12/2026

No official code found. Best implementation: MoreanP/CSRO (12 stars, last commit 2024-05-06).

Abstract

Offline meta-reinforcement learning (OMRL) utilizes pre-collected offline datasets to enhance the agent's generalization ability on unseen tasks. However, the context shift problem arises due to the distribution discrepancy between the contexts used for training (from the behavior policy) and testing (from the exploration policy). The context shift problem leads to incorrect task inference and further deteriorates the generalization ability of the meta-policy. Existing OMRL methods either overlook this problem or attempt to mitigate it with additional information. In this paper, we propose a novel approach called Context Shift Reduction for OMRL (CSRO) to address the context shift problem with only offline datasets. The key insight of CSRO is to minimize the influence of policy in context during both the meta-training and meta-test phases. During meta-training, we design a max-min mutual information representation learning mechanism to diminish the impact of the behavior policy on task representation. In the meta-test phase, we introduce the non-prior context collection strategy to reduce the effect of the exploration policy. Experimental results demonstrate that CSRO significantly reduces the context shift and improves the generalization ability, surpassing previous methods across various challenging domains.

View on arXivView PDF

Code Implementations(1)

MoreanP/CSROCommunity100%
123Ruby, ShellOct 23, 20232 years ago

Similar Papers

Cite this paper

@article{gao2026context,
  title  = {Context Shift Reduction for Offline Meta-Reinforcement Learning},
  author = {Yunkai Gao and Rui Zhang and Jiaming Guo and Fan Wu and Qi Yi and Shaohui Peng and Siming Lan and Rui Chen and Zidong Du and Xingui Hu and Qi Guo and Ling Li and Yunji Chen},
  year   = {2026},
  eprint = {2311.03695},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.03695},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.03695.svg)](https://codeofpaper.com/paper/2311.03695)

Discussion