Skip to main content
QUICK REVIEW

[Paper Review] Mask-based Latent Reconstruction for Reinforcement Learning

Changyuan Yu, Zhizheng Zhang|arXiv (Cornell University)|Jan 28, 2022
Reinforcement Learning in RoboticsComputer Science21 citations
TL;DR

MLR adds a mask-based self-supervised objective that reconstructs latent state representations from masked video observations, improving sample efficiency in both continuous and discrete RL benchmarks.

ABSTRACT

For deep reinforcement learning (RL) from pixels, learning effective state representations is crucial for achieving high performance. However, in practice, limited experience and high-dimensional inputs prevent effective representation learning. To address this, motivated by the success of mask-based modeling in other research fields, we introduce mask-based reconstruction to promote state representation learning in RL. Specifically, we propose a simple yet effective self-supervised method, Mask-based Latent Reconstruction (MLR), to predict complete state representations in the latent space from the observations with spatially and temporally masked pixels. MLR enables better use of context information when learning state representations to make them more informative, which facilitates the training of RL agents. Extensive experiments show that our MLR significantly improves the sample efficiency in RL and outperforms the state-of-the-art sample-efficient RL methods on multiple continuous and discrete control benchmarks. Our code is available at https://github.com/microsoft/Mask-based-Latent-Reconstruction.

Motivation & Objective

  • Promote more informative state representations for vision-based RL.
  • Enable joint optimization of representation learning and policy learning without extra data collection.
  • Leverage mask-based modeling tailored to RL by reconstructing latent features rather than pixels.
  • Investigate practical masking strategies and target spaces to understand real gains in RL.

Proposed method

  • Randomly mask space-time cubes in the input observation sequence (cube masking).
  • Encode masked observations with an online encoder and original observations with a momentum encoder.
  • Use a transformer-based latent decoder to predict latent representations conditioned on actions and temporal position.
  • Train with a latent-space reconstruction loss based on cosine similarity between predicted and target latent features.
  • Combine the MLR loss with the base RL objective via a weighted sum in training (L_total = L_rl + lambda L_mlr).
  • Employ stop-gradient on the target latent representations to avoid collapse.

Experimental results

Research questions

  • RQ1Does mask-based latent reconstruction improve representation learning for RL from pixel inputs?
  • RQ2What masking strategies (spatial, temporal, spatial-temporal) yield the best performance in RL?
  • RQ3Is latent-space reconstruction more effective than pixel-space reconstruction for RL?
  • RQ4How should reconstruction targets be chosen (latent space vs pixel space) and what is the impact on policy learning?

Key findings

  • MLR significantly improves sample efficiency and outperforms state-of-the-art sample-efficient RL methods on multiple benchmarks.
  • On DMControl-100k, MLR outperforms Baseline by 25.3% mean and 34.7% median scores, and surpasses PlayVirtual by 43.5% (mean) and 35.5% (median).
  • On DMControl-500k, MLR achieves the best median score and comparable mean score to the strongest SOTA method.
  • On Atari-100k, MLR attains an IQM of 0.432, which is 28.2% higher than SPR and 15.5% higher than PlayVirtual, and an OG of 0.522 that improves over SPR and PlayVirtual.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.