Skip to main content
QUICK REVIEW

[Paper Review] Offline Reinforcement Learning from Images with Latent Space Models

Rafael Rafailov, Tianhe Yu|arXiv (Cornell University)|Dec 21, 2020
Reinforcement Learning in RoboticsComputer Science44 references16 citations
TL;DR

LOMPO proposes a latent space model-based offline reinforcement learning algorithm that learns visuomotor policies from image data by training a variational autoencoder with an ensemble of latent dynamics models. It quantifies uncertainty via model disagreement in the latent space, penalizes rewards based on this uncertainty, and optimizes policies in a pessimistic, uncertainty-regularized MDP, achieving state-of-the-art performance on image-based locomotion and manipulation tasks without environment interaction.

ABSTRACT

Offline reinforcement learning (RL) refers to the problem of learning policies from a static dataset of environment interactions. Offline RL enables extensive use and re-use of historical datasets, while also alleviating safety concerns associated with online exploration, thereby expanding the real-world applicability of RL. Most prior work in offline RL has focused on tasks with compact state representations. However, the ability to learn directly from rich observation spaces like images is critical for real-world applications such as robotics. In this work, we build on recent advances in model-based algorithms for offline RL, and extend them to high-dimensional visual observation spaces. Model-based offline RL algorithms have achieved state of the art results in state based tasks and have strong theoretical guarantees. However, they rely crucially on the ability to quantify uncertainty in the model predictions, which is particularly challenging with image observations. To overcome this challenge, we propose to learn a latent-state dynamics model, and represent the uncertainty in the latent space. Our approach is both tractable in practice and corresponds to maximizing a lower bound of the ELBO in the unknown POMDP. In experiments on a range of challenging image-based locomotion and manipulation tasks, we find that our algorithm significantly outperforms previous offline model-free RL methods as well as state-of-the-art online visual model-based RL methods. Moreover, we also find that our approach excels on an image-based drawer closing task on a real robot using a pre-existing dataset. All results including videos can be found online at https://sites.google.com/view/lompo/ .

Motivation & Objective

  • To enable safe and sample-efficient learning of visuomotor policies from static, pre-collected image datasets without online environment interaction.
  • To address the challenge of uncertainty quantification in high-dimensional visual dynamics models, which is computationally prohibitive in pixel space.
  • To improve generalization and robustness to distributional shift in image-based control by leveraging uncertainty in a learned latent space.
  • To develop a tractable yet theoretically grounded method that maintains pessimism and avoids model exploitation in offline RL from raw observations.
  • To outperform existing model-free and online visual model-based RL methods on image-based control benchmarks.

Proposed method

  • Train a variational autoencoder with a convolutional encoder, shared deterministic transition model (GRU), and stochastic transition models (MLPs) to learn a disentangled latent representation from image sequences.
  • Construct an ensemble of latent dynamics models where each model shares the same deterministic transition but has independent stochastic components to capture uncertainty.
  • Use the inference model to posterior-sample latent states from observed image sequences, enabling transition modeling in the latent space.
  • Generate synthetic rollouts in the latent space using the ensemble of forward models, with actions sampled from the policy and transitions predicted using stochastic dynamics models.
  • Compute a penalized reward based on disagreement among the ensemble models in the latent space, which acts as a pessimism regularizer to prevent distributional shift.
  • Optimize the policy using off-policy algorithms (e.g., SAC) on a combined replay buffer of real transitions and synthetic latent transitions, with uncertainty-penalized returns.

Experimental results

Research questions

  • RQ1Can offline model-based RL be effectively applied to image-based control tasks where state representations are not available?
  • RQ2Does uncertainty quantification in the latent space provide a tractable and effective alternative to direct uncertainty estimation in pixel space?
  • RQ3Can ensemble disagreement in the latent dynamics model serve as a reliable proxy for uncertainty to improve generalization and safety in offline RL?
  • RQ4Does learning in a latent penalized MDP lead to better performance than standard model-free or online model-based methods on image-based benchmarks?
  • RQ5Can the proposed method generalize to multi-task and out-of-distribution settings in vision-based control?

Key findings

  • LOMPO significantly outperforms state-of-the-art model-free offline RL methods on image-based locomotion and manipulation tasks, including DeepMind Control, D’Claw Screw, Adroit Pen, and Door Open environments.
  • LOMPO achieves performance comparable to or better than online visual model-based RL methods such as DreamerV2, despite training exclusively from offline data with no environment interaction.
  • The method demonstrates strong generalization to out-of-distribution states and lighting variations, indicating robustness to distributional shift.
  • The use of latent-space uncertainty via ensemble disagreement leads to a pessimistic regularizing effect that prevents overfitting and model exploitation.
  • LOMPO achieves high sample efficiency and stability across multiple image-based control tasks, including a real-world robotic manipulation task.
  • Ablation studies confirm that uncertainty penalization and the use of latent dynamics are critical for performance, with ablation on uncertainty modeling leading to significant performance drops.

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.