Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Variational Reinforcement Learning for Complex Observations

Xiao Ma, Siwei Chen|arXiv (Cornell University)|Aug 6, 2020
Reinforcement Learning in RoboticsComputer Science41 references6 citations
TL;DR

This paper proposes Contrastive Variational Reinforcement Learning (CVRL), a model-based RL framework that uses contrastive learning to learn robust latent world models from complex visual observations without pixel-level reconstruction. By maximizing mutual information between states and observations via a contrastive objective, CVRL achieves superior performance on tasks with dynamic shadows and cluttered backgrounds, outperforming state-of-the-art methods on Natural Mujoco and box-pushing tasks while maintaining strong sample efficiency.

ABSTRACT

Deep reinforcement learning (DRL) has achieved significant success in various robot tasks: manipulation, navigation, etc. However, complex visual observations in natural environments remains a major challenge. This paper presents Contrastive Variational Reinforcement Learning (CVRL), a model-based method that tackles complex visual observations in DRL. CVRL learns a contrastive variational model by maximizing the mutual information between latent states and observations discriminatively, through contrastive learning. It avoids modeling the complex observation space unnecessarily, as the commonly used generative observation model often does, and is significantly more robust. CVRL achieves comparable performance with state-of-the-art model-based DRL methods on standard Mujoco tasks. It significantly outperforms them on Natural Mujoco tasks and a robot box-pushing task with complex observations, e.g., dynamic shadows. The CVRL code is available publicly at https://github.com/Yusufma03/CVRL.

Motivation & Objective

  • To address the challenge of learning effective world models in deep reinforcement learning when observations are high-dimensional and contain complex, irrelevant visual distractors such as dynamic shadows and moving backgrounds.
  • To improve robustness and sample efficiency in model-based RL by replacing generative observation modeling with discriminative contrastive representation learning.
  • To enable long-horizon planning and decision-making in complex environments through a hybrid actor-critic and latent-guided model predictive control (MPC) framework.
  • To demonstrate that mutual information maximization via contrastive learning leads to more stable and accurate world models than traditional variational autoencoder-based generative modeling under complex observations.

Proposed method

  • CVRL introduces a contrastive evidence lower bound (CELBO), a novel objective that maximizes mutual information between latent states and observations by contrasting real state-observation pairs against fake pairs.
  • The method employs a contrastive variational world model that learns representations by scoring real pairs (s_t, o_t) against negative pairs (s_t, o'_t), avoiding direct reconstruction of complex observations.
  • A hybrid actor-critic policy is trained using SAC (Soft Actor-Critic) to provide robust and efficient policy updates, especially in high-dimensionally complex observation spaces.
  • Latent-guided Model Predictive Control (MPC) is used for long-horizon planning, leveraging the learned world model to generate action sequences.
  • The framework integrates online learning with a world model trained via CELBO, enabling sample-efficient and robust decision-making in naturalistic environments.
  • Negative samples are generated by random augmentation or by sampling from different trajectories, with the contrastive loss encouraging the model to distinguish relevant from irrelevant observations.

Experimental results

Research questions

  • RQ1Can contrastive representation learning improve the robustness of world models in model-based RL under complex visual observations?
  • RQ2Does replacing generative observation modeling with discriminative contrastive learning lead to better performance on tasks with dynamic and cluttered visual backgrounds?
  • RQ3How does the combination of contrastive learning, latent-guided MPC, and SAC improve long-horizon decision-making in continuous control tasks?
  • RQ4What is the contribution of each component (contrastive learning, MPC, SAC) to overall performance, especially in challenging environments?
  • RQ5How does CVRL compare to state-of-the-art model-based RL methods like Dreamer in terms of sample efficiency and robustness on complex tasks?

Key findings

  • CVRL significantly outperformed state-of-the-art model-based RL methods on the Natural Mujoco benchmark, which features complex observations such as dynamic shadows and variable backgrounds.
  • On the robot box-pushing task with complex visual distractors, CVRL achieved the highest cumulative reward and the shortest execution length, outperforming both Dreamer and SAC.
  • Abllation studies showed that the contrastive learning component was essential—CVRL-reward-only and CVRL-generative variants performed significantly worse, confirming that contrastive learning drives robustness.
  • The removal of latent-guided MPC (CVRL-no-MPC) led to performance degradation on 8 out of 10 tasks, especially on long-horizon tasks like cartpole-swingup and quadruped-walk.
  • The hybrid actor-critic (CVRL-no-SAC) showed reduced performance on tasks with high state-observation coupling, indicating that SAC provides critical training signals when world model errors are high.
  • On standard Mujoco tasks with simpler observations, CVRL performed comparably to Dreamer, but underperformed slightly on walker-run and cheetah-run, suggesting that contrastive learning is less effective when observation complexity is low.

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.