On Context Distribution Shift in Task Representation Learning for Offline Meta RL

Chenyang Zhao, Zihao Zhou, Bin Liu
4/1/2023
cs.LGcs.AI

Official code: ZJLAB-AMMI/HS-OMRL (3 stars, last commit 2023-08-08).

Abstract

Offline Meta Reinforcement Learning (OMRL) aims to learn transferable knowledge from offline datasets to enhance the learning process for new target tasks. Context-based Reinforcement Learning (RL) adopts a context encoder to expediently adapt the agent to new tasks by inferring the task representation, and then adjusting the policy based on this inferred representation. In this work, we focus on context-based OMRL, specifically on the challenge of learning task representation for OMRL. We conduct experiments that demonstrate that the context encoder trained on offline datasets might encounter distribution shift between the contexts used for training and testing. To overcome this problem, we present a hard-sampling-based strategy to train a robust task context encoder. Our experimental findings on diverse continuous control tasks reveal that utilizing our approach yields more robust task representations and better testing performance in terms of accumulated returns compared to baseline methods. Our code is available at https://github.com/ZJLAB-AMMI/HS-OMRL.

View on arXivView PDF

Code Implementations(1)

ZJLAB-AMMI/HS-OMRLOfficial100%

Python code to implement hard sampling based task representation learning for robust offline meta RL

31PythonApr 1, 20233 years ago
imbalanced-learningimportance-samplingmeta-reinforcement-learningoffline-reinforcement-learningreinforcement-learning-algorithms

Similar Papers

Cite this paper

@article{zhao2023context,
  title  = {On Context Distribution Shift in Task Representation Learning for Offline Meta RL},
  author = {Chenyang Zhao and Zihao Zhou and Bin Liu},
  year   = {2023},
  eprint = {2304.00354},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.00354v2}
}

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/2304.00354.svg)](https://codeofpaper.com/paper/2304.00354)

Discussion