Skill-aware Mutual Information Optimisation for Generalisation in Reinforcement Learning

Xuehui Yu, Mhairi Dunion, Xin Li, Stefano V. Albrecht
6/7/2024
cs.LGcs.AIcs.RO

No official code found. Best implementation: uoe-agents/SaMI (11 stars, last commit 2025-04-08).

Abstract

Meta-Reinforcement Learning (Meta-RL) agents can struggle to operate across tasks with varying environmental features that require different optimal skills (i.e., different modes of behaviour). Using context encoders based on contrastive learning to enhance the generalisability of Meta-RL agents is now widely studied but faces challenges such as the requirement for a large sample size, also referred to as the $\log$-$K$ curse. To improve RL generalisation to different tasks, we first introduce Skill-aware Mutual Information (SaMI), an optimisation objective that aids in distinguishing context embeddings according to skills, thereby equipping RL agents with the ability to identify and execute different skills across tasks. We then propose Skill-aware Noise Contrastive Estimation (SaNCE), a $K$-sample estimator used to optimise the SaMI objective. We provide a framework for equipping an RL agent with SaNCE in practice and conduct experimental validation on modified MuJoCo and Panda-gym benchmarks. We empirically find that RL agents that learn by maximising SaMI achieve substantially improved zero-shot generalisation to unseen tasks. Additionally, the context encoder trained with SaNCE demonstrates greater robustness to a reduction in the number of available samples, thus possessing the potential to overcome the $\log$-$K$ curse.

View on arXivView PDF

Code Implementations(1)

uoe-agents/SaMICommunity100%

Official implementation of Skill-aware Mutural Information (SaMI) from the paper Skill-aware Mutual Information Optimisation for Generalisation in Reinforcement Learning.

113Shell, PythonJun 2, 20241 years ago

Similar Papers

Cite this paper

@article{yu2024skillaware,
  title  = {Skill-aware Mutual Information Optimisation for Generalisation in Reinforcement Learning},
  author = {Xuehui Yu and Mhairi Dunion and Xin Li and Stefano V. Albrecht},
  year   = {2024},
  eprint = {2406.04815},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.04815v3}
}

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/2406.04815.svg)](https://codeofpaper.com/paper/2406.04815)

Discussion