Latent Variable Representation for Reinforcement Learning

Tongzheng Ren, Chenjun Xiao, Tianjun Zhang, Na Li, Zhaoran Wang, sujay sanghavi, Dale Schuurmans, Bo Dai

Introduction

Reinforcement Learning (RL) faces a fundamental tension between expressivity and tractability. Deep RL methods (like SAC or PPO) are highly expressive but often struggle with the "curse of dimensionality" and lack efficient exploration strategies for non-linear functions. Conversely, Model-Based RL aims for sample efficiency by learning a world model, but planning and quantifying uncertainty in general non-linear models is computationally grueling.

While "Linear MDPs" offer a beautiful theoretical framework where exploration (via Upper Confidence Bound, or UCB, bonuses) is mathematically sound, real-world transitions are rarely linear. This paper asks: Can we use deep latent variable models to transform complex environments into a linear space where we can plan and explore efficiently?

To answer this, the authors introduce Latent Variable Representation (LV-Rep), a framework that bridges expressive deep latent variable models with the theoretical tractability of Linear MDPs. By combining variational learning with kernel embeddings, they develop an RL algorithm that is computationally practical for complex control tasks and provably efficient in its exploration.

Methodology: The LV-Rep Framework

The core contribution of this work is viewing transition dynamics through a latent space $Z$. The framework is built on four key pillars:

  1. The Linear Bridge: The authors prove that if a transition $T(s'|s,a)$ can be decomposed into a latent variable structure—specifically $\int p(z|s,a)p(s'|z)dz$—it naturally induces a Linear MDP. Here, the latent distribution $p(z|s,a)$ acts as the "feature map."
  2. Variational Learning: Instead of relying on a difficult Maximum Likelihood Estimation (MLE) oracle, the authors utilize the Evidence Lower Bound (ELBO). This allows them to leverage standard deep learning tools (similar to those used in Variational Autoencoders) to learn the representation, making the theory "runnable" on a GPU.
  3. Kernel-Based Planning: To handle cases where the latent space $Z$ is infinite or continuous, they use Random Fourier Features to approximate the value function. This transforms the complex integral over the latent space into a simple linear function.
  4. UCB Exploration: Because the model is now "linear" in this learned feature space, the system can compute a standard elliptical uncertainty bonus (UCB). This encourages the agent to visit state-action pairs where the latent representation is poorly understood.

The authors provide two implementations of this framework: LV-Rep-C (for continuous latent variables) and LV-Rep-D (for discrete latent variables).

Key Results and Empirical Performance

The authors evaluated their approach on two major continuous control benchmarks: standard locomotion tasks in MuJoCo (e.g., HalfCheetah, Ant, Humanoid) and DeepMind Control Suite for sparse-reward scenarios (e.g., Hopper-hop, Humanoid-run).

Performance comparison across continuous control benchmarks.
  • State-of-the-Art Performance: As shown in the performance tables, LV-Rep significantly outperformed both model-based (PETS, ME-TRPO) and model-free (SAC, PPO) baselines across MuJoCo environments. In challenging environments like Walker and Ant, where many model-based methods fail, LV-Rep achieved top-tier scores.
  • Solving Sparse Rewards: The most striking result emerged in sparse-reward tasks. In environments like Hopper-hop and Humanoid-run, standard baselines (SAC, PPO, Dreamer) often failed to learn anything, returning scores near zero. LV-Rep, guided by its principled uncertainty quantization, was able to explore effectively and solve these tasks.
  • Sample Efficiency: The agent reached high performance levels within 200K environment steps, demonstrating much faster convergence than pure model-free approaches.

Key Insights

  • Latent Variables as Features: Latent variables are not just for compression; they serve as the fundamental features that linearize the Bellman equation.
  • Infinite Latent Spaces: By using kernel theory (RKHS), the authors show that the latent space doesn't have to be a small, discrete set. It can be infinite, provided the "effective dimension" is controlled.
  • Uncertainty Quantization: The framework provides a mathematically sound way to quantify uncertainty in specific parts of the latent space, which is the key to smart exploration.

Limitations and Future Work

While highly effective, the LV-Rep framework has a few limitations. The balance between updating the representation and updating the policy is a critical hyperparameter that requires careful tuning. Additionally, maintaining the inverse covariance matrix for the UCB bonus can become computationally expensive as the feature dimension increases. Finally, empirical performance varied between the discrete and continuous versions depending on the specific task, suggesting that the "topology" of the latent space matters.

Future directions include applying this framework to "Pixel-to-Control" tasks (RL from images), where latent variable models are already popular but currently lack these robust exploration guarantees.

Summary updated

BibTeX
@inproceedings{ren2023latent,
  author = {Tongzheng Ren and Chenjun Xiao and Tianjun Zhang and Na Li and Zhaoran Wang and sujay sanghavi and Dale Schuurmans and Bo Dai},
  title = {{Latent Variable Representation for Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=mQpmZVzXK1h},
}
Figure