Explore to Generalize in Zero-Shot RL

Ev Zisselman, Itai Lavie, Daniel Soudry, Aviv Tamar
6/5/2023
cs.LG

No official code found. Best implementation: EvZissel/expgen (6 stars, MIT, PyTorch, last commit 2025-11-30).

Abstract

We study zero-shot generalization in reinforcement learning-optimizing a policy on a set of training tasks to perform well on a similar but unseen test task. To mitigate overfitting, previous work explored different notions of invariance to the task. However, on problems such as the ProcGen Maze, an adequate solution that is invariant to the task visualization does not exist, and therefore invariance-based approaches fail. Our insight is that learning a policy that effectively $\textit{explores}$ the domain is harder to memorize than a policy that maximizes reward for a specific task, and therefore we expect such learned behavior to generalize well; we indeed demonstrate this empirically on several domains that are difficult for invariance-based approaches. Our $\textit{Explore to Generalize}$ algorithm (ExpGen) builds on this insight: we train an additional ensemble of agents that optimize reward. At test time, either the ensemble agrees on an action, and we generalize well, or we take exploratory actions, which generalize well and drive us to a novel part of the state space, where the ensemble may potentially agree again. We show that our approach is the state-of-the-art on tasks of the ProcGen challenge that have thus far eluded effective generalization, yielding a success rate of $83\%$ on the Maze task and $74\%$ on Heist with $200$ training levels. ExpGen can also be combined with an invariance based approach to gain the best of both worlds, setting new state-of-the-art results on ProcGen.

View on arXivView PDF

Code Implementations(1)

EvZissel/expgenCommunity100%
PyTorchMIT

Official PyTorch implementation of ExpGen (NeurIPS'23).

63PythonOct 20, 202310 months agoMIT
deep-learningdeep-reinforcement-learningppoproximal-policy-optimizationpytorch+1 more

Similar Papers

Cite this paper

@article{zisselman2023explore,
  title  = {Explore to Generalize in Zero-Shot RL},
  author = {Ev Zisselman and Itai Lavie and Daniel Soudry and Aviv Tamar},
  year   = {2023},
  eprint = {2306.03072},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.03072v3},
  journal = {NEURIPS 2023 2023}
}

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

Discussion