Skip to main content
QUICK REVIEW

[Paper Review] Offline Meta-Reinforcement Learning with Online Self-Supervision

Vitchyr H. Pong, Ashvin Nair|arXiv (Cornell University)|Jul 8, 2021
Reinforcement Learning in RoboticsComputer Science58 references8 citations
TL;DR

This paper proposes SMAC, a semi-supervised offline meta-RL method that mitigates distribution shift by collecting unlabeled online trajectories and generating synthetic rewards for self-supervised fine-tuning. It achieves performance on par with fully online meta-RL on challenging robotic manipulation and locomotion tasks, significantly outperforming prior offline meta-RL methods after the self-supervised phase.

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.

Motivation & Objective

  • To address the distribution shift problem in offline meta-RL, where meta-learned policies fail to adapt to online data collected by the exploration policy.
  • To enable efficient meta-RL training using only one-time reward labeling of offline data, reducing the need for costly online reward collection.
  • To improve generalization to new tasks by leveraging unlabeled online interactions with synthetically generated rewards.
  • To demonstrate that self-supervised online data collection can close the performance gap between offline and online meta-RL.
  • To validate that distribution shift in context vectors (z) is a key failure mode in offline meta-RL.

Proposed method

  • SMAC uses a pre-collected, reward-labeled offline dataset to meta-train a policy via the PEARL framework, enabling fast adaptation with latent context vectors (z).
  • After offline meta-training, the agent collects additional online trajectories without reward labels using the meta-learned exploration policy.
  • A reward prediction head is trained on the offline data to generate synthetic rewards for the unlabeled online trajectories.
  • The synthetic rewards are used to fine-tune the meta-policy via AWAC-style updates, enabling self-supervised adaptation to the new data distribution.
  • The method combines amortized inference from PEARL with offline RL optimization from AWAC, enabling sample-efficient adaptation.
  • The context vector (z) is conditioned on either offline or online histories to evaluate distribution shift and adaptation robustness.

Experimental results

Research questions

  • RQ1Does distribution shift in the context vector (z) distribution between offline data and online exploration trajectories degrade meta-RL performance?
  • RQ2Can self-supervised online data collection with synthetic rewards mitigate this distribution shift and improve adaptation to new tasks?
  • RQ3How does SMAC compare to fully online meta-RL and prior offline meta-RL methods in terms of zero-shot generalization to unseen tasks?
  • RQ4Is the performance gain from self-supervised fine-tuning due to improved adaptation or better exploration?
  • RQ5Can a semi-supervised approach achieve performance comparable to online meta-RL while minimizing human-provided reward labeling?

Key findings

  • SMAC significantly outperforms prior offline meta-RL methods, including BOReL and MACAW, on all six benchmark tasks, including the challenging Sawyer manipulation environment.
  • After self-supervised fine-tuning, SMAC achieves performance on par with fully online meta-RL on all tasks, demonstrating effective mitigation of distribution shift.
  • In the Ant Direction task, the policy's behavior becomes robust to both offline and online context histories after self-supervision, eliminating the prior performance gap.
  • The self-supervised phase improves performance more than the actor update ablation, indicating that distribution shift mitigation is key to success.
  • SMAC outperforms a meta-imitation learning baseline on all tasks, showing that self-supervised adaptation is more effective than imitation for generalization.
  • Visualization confirms that the adaptation procedure is sensitive to the history distribution (offline vs. online), and self-supervision resolves this sensitivity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.