ContraBAR: Contrastive Bayes-Adaptive Deep RL

Era Choshen, Aviv Tamar
6/4/2023
cs.LGcs.AIstat.ML

No official code found. Best implementation: ec2604/ContraBAR (13 stars, last commit 2023-05-21).

Abstract

In meta reinforcement learning (meta RL), an agent seeks a Bayes-optimal policy -- the optimal policy when facing an unknown task that is sampled from some known task distribution. Previous approaches tackled this problem by inferring a belief over task parameters, using variational inference methods. Motivated by recent successes of contrastive learning approaches in RL, such as contrastive predictive coding (CPC), we investigate whether contrastive methods can be used for learning Bayes-optimal behavior. We begin by proving that representations learned by CPC are indeed sufficient for Bayes optimality. Based on this observation, we propose a simple meta RL algorithm that uses CPC in lieu of variational belief inference. Our method, ContraBAR, achieves comparable performance to state-of-the-art in domains with state-based observation and circumvents the computational toll of future observation reconstruction, enabling learning in domains with image-based observations. It can also be combined with image augmentations for domain randomization and used seamlessly in both online and offline meta RL settings.

View on arXivView PDF

Code Implementations(1)

ec2604/ContraBARCommunity100%
130Ruby, ShellDec 28, 20213 years agoNOASSERTION

Cite this paper

@article{choshen2023contrabar,
  title  = {ContraBAR: Contrastive Bayes-Adaptive Deep RL},
  author = {Era Choshen and Aviv Tamar},
  year   = {2023},
  eprint = {2306.02418},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.02418v1},
  journal = {ICML 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/2306.02418.svg)](https://codeofpaper.com/paper/2306.02418)

Discussion