ContraBAR: Contrastive Bayes-Adaptive Deep RL
Era Choshen, Aviv Tamar
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
9 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Scrutinize What We Ignore: Reining In Task Representation Shift Of Context-Based Offline Meta Reinforcement Learning cites Towards an Information Theoretic Framework of Context-Based Offline Meta-Reinforcement Learning
- MAMBA: an Effective World Model Approach for Meta-Reinforcement Learning cites VariBAD: A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learning
- MAMBA: an Effective World Model Approach for Meta-Reinforcement Learning cites Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPs
- Bridging State and History Representations: Understanding Self-Predictive RL cites Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPs
- Bridging State and History Representations: Understanding Self-Predictive RL cites CURL: Contrastive Unsupervised Representations for Reinforcement Learning
- Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPs cites VariBAD: A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learning
- CURL: Contrastive Unsupervised Representations for Reinforcement Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Towards an Information Theoretic Framework of Context-Based Offline Meta-Reinforcement Learning cites VariBAD: A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learning
- Automatic Data Augmentation for Generalization in Reinforcement Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Automatic Data Augmentation for Generalization in Reinforcement Learning cites CURL: Contrastive Unsupervised Representations for Reinforcement Learning
- DynaMITE-RL: A Dynamic Model for Improved Temporal Meta-Reinforcement Learning cites VariBAD: A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learning
Cited by top-tier papers9
- Bridging State and History Representations: Understanding Self-Predictive RLTianwei Ni, Benjamin Eysenbach, Erfan Seyedsalehi, Michel Ma et al.ICLR 2024 · 50 citations
- Towards an Information Theoretic Framework of Context-Based Offline Meta-Reinforcement LearningLanqing Li, Hai Zhang, Xinyu Zhang, Shatong Zhu et al.NeurIPS 2024 · 24 citations
- MAMBA: an Effective World Model Approach for Meta-Reinforcement LearningZohar Rimon, Tom Jurgenson, Orr Krupnik, Gilad Adler et al.ICLR 2024 · 15 citations
- DynaMITE-RL: A Dynamic Model for Improved Temporal Meta-Reinforcement LearningAnthony Liang, Guy Tennenholtz, Chih-Wei Hsu, Yinlam Chow et al.NeurIPS 2024 · 5 citations
- Scrutinize What We Ignore: Reining In Task Representation Shift Of Context-Based Offline Meta Reinforcement LearningHai Zhang, Boyuan Zheng, Tianying Ji, Jinhang Liu et al.ICLR 2025
Builds on11
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- CURL: Contrastive Unsupervised Representations for Reinforcement LearningMichael Laskin, Aravind Srinivas, Pieter AbbeelICML 2020 · 1,261 citations
- VariBAD: A Very Good Method for Bayes-Adaptive Deep RL via Meta-LearningLuisa M. Zintgraf, Kyriacos Shiarlis, Maximilian Igl, Sebastian Schulze et al.ICLR 2020 · 315 citations
- Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPsTianwei Ni, Benjamin Eysenbach, Ruslan SalakhutdinovICML 2022 · 162 citations
- Automatic Data Augmentation for Generalization in Reinforcement LearningRoberta Raileanu, Maxwell Goldstein, Denis Yarats, Ilya Kostrikov et al.NeurIPS 2021 · 143 citations
Related papers
- Robust Task Representations for Offline Meta-Reinforcement Learning via Contrastive LearningHaoqi Yuan, Zongqing LuICML 2022 · 53 citations
- Predictive Coding Enhances Meta-RL To Achieve Interpretable Bayes-Optimal Belief Representation Under Partial ObservabilityPo-Chen Kuo, Han Hou, Will Dabney, Edgar Y. WalkerNeurIPS 2025
- Towards Effective Context for Meta-Reinforcement Learning: an Approach based on Contrastive LearningHaotian Fu, Hongyao Tang, Jianye Hao, Chen Chen et al.AAAI 2021 · 61 citations
- Improving Generalization in Offline Meta-Reinforcement Learning via Cross-task ContextsHongcai He, Zetao Zheng, Anjie Zhu, Deqiang Ouyang et al.AAAI 2026
- Contrastive Learning as Goal-Conditioned Reinforcement LearningBenjamin Eysenbach, Tianjun Zhang, Sergey Levine, Ruslan SalakhutdinovNeurIPS 2022 · 331 citations
