Entropy Regularized Task Representation Learning for Offline Meta-Reinforcement Learning

Authors

  • Mohammadreza Nakhaeinezhadfard Department of Electrical Engineering and Automation (EEA), Aalto University, Finland
  • Aidan Scannell Department of Electrical Engineering and Automation (EEA), Aalto University, Finland Finnish Center for Artifcial Intelligence, Finland
  • Joni Pajarinen Department of Electrical Engineering and Automation (EEA), Aalto University, Finland

DOI:

https://doi.org/10.1609/aaai.v39i18.34160

Abstract

Offline meta-reinforcement learning aims to equip agents with the ability to rapidly adapt to new tasks by training on data from a set of different tasks. Context-based approaches utilize a history of state-action-reward transitions – referred to as the context – to infer a representation of the current task, and then condition the agent, i.e., the policy and value function, on this task representation. Intuitively, the better the task representation captures the underlying tasks, the better the agent can generalize to new tasks. Unfortunately, context-based approaches suffer from distribution mismatch, as the context in the offline data does not match the context at test time, limiting their ability to generalize to the test task. This leads to the task representation overfitting to the offline training data. Intuitively, the task representation should be independent of the behavior policy used to collect the offline data. To address this issue, we approximately minimize the mutual information between the distribution over the task representation and behavior policy by maximizing the entropy of behavior policy conditioned on the task representation. We validate our approach in MuJoCo environments, showing that compared to baselines, our task representation more faithfully represents the underlying tasks, leading to outperforming prior methods in both in-distribution and out-of-distribution tasks.

Published

2025-04-11

How to Cite

Nakhaeinezhadfard, M., Scannell, A., & Pajarinen, J. (2025). Entropy Regularized Task Representation Learning for Offline Meta-Reinforcement Learning. Proceedings of the AAAI Conference on Artificial Intelligence, 39(18), 19616–19623. https://doi.org/10.1609/aaai.v39i18.34160

Issue

Section

AAAI Technical Track on Machine Learning IV