Integrating Contrastive Learning with Dynamic Models for Reinforcement Learning from Images

Bang You, Oleg Arenz, Youping Chen, Jan Peters
3/2/2022
cs.LGcs.AI
rlcontrastive-ssl

Official code: BangYou01/Pytorch-CoDy (5 stars, Python, last commit 2021-07-27).

Abstract

Recent methods for reinforcement learning from images use auxiliary tasks to learn image features that are used by the agent's policy or Q-function. In particular, methods based on contrastive learning that induce linearity of the latent dynamics or invariance to data augmentation have been shown to greatly improve the sample efficiency of the reinforcement learning algorithm and the generalizability of the learned embedding.

Show full abstract

We further argue, that explicitly improving Markovianity of the learned embedding is desirable and propose a self-supervised representation learning method which integrates contrastive learning with dynamic models to synergistically combine these three objectives: (1) We maximize the InfoNCE bound on the mutual information between the state- and action-embedding and the embedding of the next state to induce a linearly predictive embedding without explicitly learning a linear transition model, (2) we further improve Markovianity of the learned embedding by explicitly learning a non-linear transition model using regression, and (3) we maximize the mutual information between the two nonlinear predictions of the next embeddings based on the current action and two independent augmentations of the current state, which naturally induces transformation invariance not only for the state embedding, but also for the nonlinear transition model. Experimental evaluation on the Deepmind control suite shows that our proposed method achieves higher sample efficiency and better generalization than state-of-art methods based on contrastive learning or reconstruction.

View on arXivView PDF

Code Implementations(1)

51PythonJul 27, 20215 years ago

Similar Papers

Cite this paper

@article{you2022integrating,
  title  = {Integrating Contrastive Learning with Dynamic Models for Reinforcement Learning from Images},
  author = {Bang You and Oleg Arenz and Youping Chen and Jan Peters},
  year   = {2022},
  eprint = {2203.01810},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.01810}
}

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

Discussion