Offline Meta-Reinforcement Learning with Online Self-Supervision
Vitchyr H. Pong, Ashvin Nair, Laura Smith, Catherine Huang, Sergey Levine
TL;DR
<3-5 sentence high-level summary>SMAC tackles offline meta-reinforcement learning by diagnosing a distribution shift in the adaptation context ${\bf z}$ that arises when offline data is used to train a meta-policy. It introduces a semi-supervised framework that first performs offline meta-training and then gathers unlabeled online data, labeling these new transitions with synthetic rewards via a learned reward decoder to bridge the shift. The method combines PEARL-style context encoding with AWAC-based offline updates and a self-supervised online phase, yielding substantial improvements across diverse multi-task robotics domains, often matching fully online meta-RL. This approach significantly lowers reward-labeling costs while preserving adaptation performance, enabling practical offline-to-online meta-learning in real-world tasks.
Abstract
Meta-reinforcement learning (RL) methods can meta-train policies that adapt to new tasks with orders of magnitude less data than standard RL, but meta-training itself is costly and time-consuming. If we can meta-train on offline data, then we can reuse the same static dataset, labeled once with rewards for different tasks, to meta-train policies that adapt to a variety of new tasks at meta-test time. Although this capability would make meta-RL a practical tool for real-world use, offline meta-RL presents additional challenges beyond online meta-RL or standard offline RL settings. Meta-RL learns an exploration strategy that collects data for adapting, and also meta-trains a policy that quickly adapts to data from a new task. Since this policy was meta-trained on a fixed, offline dataset, it might behave unpredictably when adapting to data collected by the learned exploration strategy, which differs systematically from the offline data and thus induces distributional shift. We propose a hybrid offline meta-RL algorithm, which uses offline data with rewards to meta-train an adaptive policy, and then collects additional unsupervised online data, without any reward labels to bridge this distribution shift. By not requiring reward labels for online collection, this data can be much cheaper to collect. We compare our method to prior work on offline meta-RL on simulated robot locomotion and manipulation tasks and find that using additional unsupervised online data collection leads to a dramatic improvement in the adaptive capabilities of the meta-trained policies, matching the performance of fully online meta-RL on a range of challenging domains that require generalization to new tasks.
