Towards Effective Context for Meta-Reinforcement Learning: an Approach based on Contrastive Learning
Not on the map. Why?
Abstract (arXiv)
Context, the embedding of previous collected trajectories, is a powerful construct for Meta-Reinforcement Learning (Meta-RL) algorithms. By conditioning on an effective context, Meta-RL policies can easily generalize to new tasks within a few adaptation steps. We argue that improving the quality of context involves answering two questions: 1. How to train a compact and sufficient encoder that can embed the task-specific information contained in prior trajectories? 2. How to collect informative trajectories of which the corresponding context reflects the specification of tasks? To this end, we propose a novel Meta-RL framework called CCM (Contrastive learning augmented Context-based Meta-RL). We first focus on the contrastive nature behind different tasks and leverage it to train a compact and sufficient context encoder. Further, we train a separate exploration policy and theoretically derive a new information-gain-based objective which aims to collect informative trajectories in a few steps. Empirically, we evaluate our approaches on common benchmarks as well as several complex sparse-reward environments. The experimental results show that CCM outperforms state-of-the-art algorithms by addressing previously mentioned problems respectively.
Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Sep 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 10; 2023: 9; 2024: 2; 2025: 1; 2026: 1.
29 papers.
Sort:
By area:
- 2022Contextualize Me -- The Case for Context in Reinforcement Learningcited by 41
- 2021CARL: A Benchmark for Contextual and Adaptive Reinforcement Learningcited by 21
- 2021Contrastive Reinforcement Learning of Symbolic Reasoning Domainscited by 17
- 2023Context Shift Reduction for Offline Meta-Reinforcement Learningcited by 17
- 2022Simplifying Polylogarithms with Machine Learningcited by 14
- 2022Model-based Lifelong Reinforcement Learning with Bayesian Explorationcited by 12
- 2021A Theoretical Understanding of Gradient Bias in Meta-Reinforcement Learningcited by 11
- 2022Distributionally Adaptive Meta Reinforcement Learningcited by 11
- 2024Efficient Recurrent Off-Policy RL Requires a Context-Encoder-Specific Learning Ratecited by 10
- 2023ContraBAR: Contrastive Bayes-Adaptive Deep RLcited by 9
- 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expressioncited by 9
- 2023Generalizable Task Representation Learning for Offline Meta-Reinforcement Learning with Data Limitationscited by 9
17 more
- 2021Improving Context-Based Meta-Reinforcement Learning with Self-Supervised Trajectory Contrastive Learningcited by 8
- 2022Meta-Learning Parameterized Skillscited by 7
- 2022Contextual Transformer for Offline Meta Reinforcement Learningcited by 7
- 2023Imitate the Good and Avoid the Bad: An Incremental Approach to Safe Reinforcement Learningcited by 7
- 2022PAnDR: Fast Adaptation to New Environments from Offline Experiences via Decoupling Policy and Environment Representationscited by 6
- 2023Offline Imitation from Observation via Primal Wasserstein State Occupancy Matchingcited by 5
- 2023First-Explore, then Exploit: Meta-Learning to Solve Hard Exploration-Exploitation Trade-Offscited by 4
- 2021Foresee then Evaluate: Decomposing Value Estimation with Latent Future Predictioncited by 3
- 2022Meta Reinforcement Learning with Successor Feature Based Contextcited by 3
- 2022Prototypical context-aware dynamics generalization for high-dimensional model-based reinforcement learningcited by 3
- 2025Task-Aware Virtual Training: Enhancing Generalization in Meta-Reinforcement Learning for Out-of-Distribution Taskscited by 3
- 2021Provably Improved Context-Based Offline Meta-RL with Attention and Contrastive Learningcited by 2
- 2023On Task-Relevant Loss Functions in Meta-Reinforcement Learning and Online LQRcited by 1
- 2022Decomposed Mutual Information Optimization for Generalized Context in Meta-Reinforcement Learningcited by 0
- 2023Learning Embeddings for Sequential Tasks Using Population of Agentscited by 0
- 2024Skill-aware Mutual Information Optimisation for Generalisation in Reinforcement Learningcited by 0
- 2026T3S: Improving Multi-Task Reinforcement Learning with Task-Specific Feature Selector and Schedulercited by 0
- 2026T3S: Improving Multi-Task Reinforcement Learning with Task-Specific Feature Selector and Scheduler31 Aug 2026
- 2025Task-Aware Virtual Training: Enhancing Generalization in Meta-Reinforcement Learning for Out-of-Distribution Tasks5 Feb 2025
- 2024Skill-aware Mutual Information Optimisation for Generalisation in Reinforcement Learning7 Jun 2024
- 2024Efficient Recurrent Off-Policy RL Requires a Context-Encoder-Specific Learning Rate24 May 2024
- 2023Generalizable Task Representation Learning for Offline Meta-Reinforcement Learning with Data Limitations26 Dec 2023
- 2023Imitate the Good and Avoid the Bad: An Incremental Approach to Safe Reinforcement Learning16 Dec 2023
- 2023On Task-Relevant Loss Functions in Meta-Reinforcement Learning and Online LQR9 Dec 2023
- 2023Context Shift Reduction for Offline Meta-Reinforcement Learning7 Nov 2023
- 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expression2 Nov 2023
- 2023Offline Imitation from Observation via Primal Wasserstein State Occupancy Matching2 Nov 2023
- 2023First-Explore, then Exploit: Meta-Learning to Solve Hard Exploration-Exploitation Trade-Offs5 Jul 2023
- 2023Learning Embeddings for Sequential Tasks Using Population of Agents5 Jun 2023
17 more
- 2023ContraBAR: Contrastive Bayes-Adaptive Deep RL4 Jun 2023
- 2022Prototypical context-aware dynamics generalization for high-dimensional model-based reinforcement learning23 Nov 2022
- 2022Contextual Transformer for Offline Meta Reinforcement Learning15 Nov 2022
- 2022Model-based Lifelong Reinforcement Learning with Bayesian Exploration20 Oct 2022
- 2022Decomposed Mutual Information Optimization for Generalized Context in Meta-Reinforcement Learning9 Oct 2022
- 2022Distributionally Adaptive Meta Reinforcement Learning6 Oct 2022
- 2022Meta Reinforcement Learning with Successor Feature Based Context29 Jul 2022
- 2022Simplifying Polylogarithms with Machine Learning8 Jun 2022
- 2022Meta-Learning Parameterized Skills7 Jun 2022
- 2022PAnDR: Fast Adaptation to New Environments from Offline Experiences via Decoupling Policy and Environment Representations6 Apr 2022
- 2022Contextualize Me -- The Case for Context in Reinforcement Learning9 Feb 2022
- 2021A Theoretical Understanding of Gradient Bias in Meta-Reinforcement Learning31 Dec 2021
- 2021CARL: A Benchmark for Contextual and Adaptive Reinforcement Learning5 Oct 2021
- 2021Contrastive Reinforcement Learning of Symbolic Reasoning Domains16 Jun 2021
- 2021Improving Context-Based Meta-Reinforcement Learning with Self-Supervised Trajectory Contrastive Learning10 Mar 2021
- 2021Foresee then Evaluate: Decomposing Value Estimation with Latent Future Prediction3 Mar 2021
- 2021Provably Improved Context-Based Offline Meta-RL with Attention and Contrastive Learning22 Feb 2021
- 2023Context Shift Reduction for Offline Meta-Reinforcement Learningcited by 17
- 2023Generalizable Task Representation Learning for Offline Meta-Reinforcement Learning with Data Limitationscited by 9
- 2022Contextual Transformer for Offline Meta Reinforcement Learningcited by 7
- 2021Provably Improved Context-Based Offline Meta-RL with Attention and Contrastive Learningcited by 2
- 2023Generalizable Task Representation Learning for Offline Meta-Reinforcement Learning with Data Limitations26 Dec 2023
- 2023Context Shift Reduction for Offline Meta-Reinforcement Learning7 Nov 2023
- 2022Contextual Transformer for Offline Meta Reinforcement Learning15 Nov 2022
- 2021Provably Improved Context-Based Offline Meta-RL with Attention and Contrastive Learning22 Feb 2021
- 2022Contextualize Me -- The Case for Context in Reinforcement Learningcited by 41
- 2021CARL: A Benchmark for Contextual and Adaptive Reinforcement Learningcited by 21
- 2021Contrastive Reinforcement Learning of Symbolic Reasoning Domainscited by 17
- 2022Simplifying Polylogarithms with Machine Learningcited by 14
- 2022Model-based Lifelong Reinforcement Learning with Bayesian Explorationcited by 12
- 2021A Theoretical Understanding of Gradient Bias in Meta-Reinforcement Learningcited by 11
- 2022Distributionally Adaptive Meta Reinforcement Learningcited by 11
- 2024Efficient Recurrent Off-Policy RL Requires a Context-Encoder-Specific Learning Ratecited by 10
- 2023ContraBAR: Contrastive Bayes-Adaptive Deep RLcited by 9
- 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expressioncited by 9
- 2021Improving Context-Based Meta-Reinforcement Learning with Self-Supervised Trajectory Contrastive Learningcited by 8
- 2022Meta-Learning Parameterized Skillscited by 7
12 most cited of 24 All 24 (JSON)
- 2026T3S: Improving Multi-Task Reinforcement Learning with Task-Specific Feature Selector and Scheduler31 Aug 2026
- 2025Task-Aware Virtual Training: Enhancing Generalization in Meta-Reinforcement Learning for Out-of-Distribution Tasks5 Feb 2025
- 2024Skill-aware Mutual Information Optimisation for Generalisation in Reinforcement Learning7 Jun 2024
- 2024Efficient Recurrent Off-Policy RL Requires a Context-Encoder-Specific Learning Rate24 May 2024
- 2023Imitate the Good and Avoid the Bad: An Incremental Approach to Safe Reinforcement Learning16 Dec 2023
- 2023On Task-Relevant Loss Functions in Meta-Reinforcement Learning and Online LQR9 Dec 2023
- 2023Efficient Symbolic Policy Learning with Differentiable Symbolic Expression2 Nov 2023
- 2023Offline Imitation from Observation via Primal Wasserstein State Occupancy Matching2 Nov 2023
- 2023First-Explore, then Exploit: Meta-Learning to Solve Hard Exploration-Exploitation Trade-Offs5 Jul 2023
- 2023Learning Embeddings for Sequential Tasks Using Population of Agents5 Jun 2023
- 2023ContraBAR: Contrastive Bayes-Adaptive Deep RL4 Jun 2023
- 2022Model-based Lifelong Reinforcement Learning with Bayesian Exploration20 Oct 2022
12 newest of 24 All 24 (JSON)