Instance based Generalization in Reinforcement Learning

Martin Bertran, Natalia Martinez, Mariano Phielipp, Guillermo Sapiro
11/2/2020
cs.LGstat.ML
rl

Official code: MartinBertran/InstanceAgnosticPolicyEnsembles (3 stars, C++, GPL-3.0, last commit 2022-10-16).

Abstract

Agents trained via deep reinforcement learning (RL) routinely fail to generalize to unseen environments, even when these share the same underlying dynamics as the training levels. Understanding the generalization properties of RL is one of the challenges of modern machine learning.

Show full abstract

Towards this goal, we analyze policy learning in the context of Partially Observable Markov Decision Processes (POMDPs) and formalize the dynamics of training levels as instances. We prove that, independently of the exploration strategy, reusing instances introduces significant changes on the effective Markov dynamics the agent observes during training. Maximizing expected rewards impacts the learned belief state of the agent by inducing undesired instance specific speedrunning policies instead of generalizeable ones, which are suboptimal on the training set. We provide generalization bounds to the value gap in train and test environments based on the number of training instances, and use insights based on these to improve performance on unseen levels. We propose training a shared belief representation over an ensemble of specialized policies, from which we compute a consensus policy that is used for data collection, disallowing instance specific exploitation. We experimentally validate our theory, observations, and the proposed computational solution over the CoinRun benchmark.

View on arXivView PDF

Code Implementations(1)

GPL-3.0
32C++, PythonOct 22, 20204 years agoGPL-3.0

Similar Papers

Cite this paper

@article{bertran2020instance,
  title  = {Instance based Generalization in Reinforcement Learning},
  author = {Martin Bertran and Natalia Martinez and Mariano Phielipp and Guillermo Sapiro},
  year   = {2020},
  eprint = {2011.01089},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.01089}
}

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

Discussion