Cross-Trajectory Representation Learning for Zero-Shot Generalization in RL

Bogdan Mazoure, Ahmed M. Ahmed, Patrick MacAlpine, R Devon Hjelm, Andrey Kolobov
6/4/2021
cs.LGcs.AI
rl

Official code: bmazoure/ctrl_public (9 stars, Python, last commit 2022-03-15).

Abstract

A highly desirable property of a reinforcement learning (RL) agent -- and a major difficulty for deep RL approaches -- is the ability to generalize policies learned on a few tasks over a high-dimensional observation space to similar tasks not seen during training. Many promising approaches to this challenge consider RL as a process of training two functions simultaneously: a complex nonlinear encoder that maps high-dimensional observations to a latent representation space, and a simple linear policy over this space.

Show full abstract

We posit that a superior encoder for zero-shot generalization in RL can be trained by using solely an auxiliary SSL objective if the training process encourages the encoder to map behaviorally similar observations to similar representations, as reward-based signal can cause overfitting in the encoder (Raileanu et al., 2021). We propose Cross-Trajectory Representation Learning (CTRL), a method that runs within an RL agent and conditions its encoder to recognize behavioral similarity in observations by applying a novel SSL objective to pairs of trajectories from the agent's policies. CTRL can be viewed as having the same effect as inducing a pseudo-bisimulation metric but, crucially, avoids the use of rewards and associated overfitting risks. Our experiments ablate various components of CTRL and demonstrate that in combination with PPO it achieves better generalization performance on the challenging Procgen benchmark suite (Cobbe et al., 2020).

View on arXivView PDF

Code Implementations(1)

Code for "Cross-Trajectory Representation Learning for Zero-Shot Generalization in RL"

91PythonMar 15, 20224 years ago

Similar Papers

Cite this paper

@article{mazoure2021crosstrajectory,
  title  = {Cross-Trajectory Representation Learning for Zero-Shot Generalization in RL},
  author = {Bogdan Mazoure and Ahmed M. Ahmed and Patrick MacAlpine and R Devon Hjelm and Andrey Kolobov},
  year   = {2021},
  eprint = {2106.02193},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.02193}
}

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

Discussion