English

Contextual Transformer for Offline Meta Reinforcement Learning

Machine Learning 2022-11-16 v1 Artificial Intelligence

Abstract

The pretrain-finetuning paradigm in large-scale sequence models has made significant progress in natural language processing and computer vision tasks. However, such a paradigm is still hindered by several challenges in Reinforcement Learning (RL), including the lack of self-supervised pretraining algorithms based on offline data and efficient fine-tuning/prompt-tuning over unseen downstream tasks. In this work, we explore how prompts can improve sequence modeling-based offline reinforcement learning (offline-RL) algorithms. Firstly, we propose prompt tuning for offline RL, where a context vector sequence is concatenated with the input to guide the conditional policy generation. As such, we can pretrain a model on the offline dataset with self-supervised loss and learn a prompt to guide the policy towards desired actions. Secondly, we extend our framework to Meta-RL settings and propose Contextual Meta Transformer (CMT); CMT leverages the context among different tasks as the prompt to improve generalization on unseen tasks. We conduct extensive experiments across three different offline-RL settings: offline single-agent RL on the D4RL dataset, offline Meta-RL on the MuJoCo benchmark, and offline MARL on the SMAC benchmark. Superior results validate the strong performance, and generality of our methods.

Keywords

Cite

@article{arxiv.2211.08016,
  title  = {Contextual Transformer for Offline Meta Reinforcement Learning},
  author = {Runji Lin and Ye Li and Xidong Feng and Zhaowei Zhang and Xian Hong Wu Fung and Haifeng Zhang and Jun Wang and Yali Du and Yaodong Yang},
  journal= {arXiv preprint arXiv:2211.08016},
  year   = {2022}
}

Comments

Accepted by Foundation Models for Decision Making Workshop at Neural Information Processing Systems, 2022

R2 v1 2026-06-28T05:56:09.034Z