Contrastive Learning as Goal-Conditioned Reinforcement Learning
In reinforcement learning (RL), it is easier to solve a task if given a good representation. While deep RL should automatically acquire such good representations, prior work often finds that learning representations in an end-to-end fashion is unstable and instead equip RL algorithms with additional representation learning parts (e.g., auxiliary losses, data augmentation). How can we design RL algorithms that directly acquire good representations? In this paper, instead of adding representation learning parts to an existing RL algorithm, we show (contrastive) representation learning methods can be cast as RL algorithms in their own right. To do this, we build upon prior work and apply contrastive representation learning to action-labeled trajectories, in such a way that the (inner product of) learned representations exactly corresponds to a goal-conditioned value function. We use this idea to reinterpret a prior RL method as performing contrastive learning, and then use the idea to pro
Tianjun Zhang Affiliation: UC Berkeley Sergey Levine Affiliation: Google Research Affiliation: UC Berkeley Ruslan Salakhutdinov Affiliation: CMU Abstract In reinforcement learning (RL), it is easier to solve a task if given a good representation. While deep RL should automatically acquire such good representations, prior work often finds that learning representations in an end-to-end fashion is unstable and instead equip RL algorithms with additional representation learning parts (e.g., auxiliary losses, data augmentation). How can we design RL algorithms that directly acquire good…
saved by
related reading
- Decoupling Representation Learning from Reinforcement Learningarxiv.org
- A Free Lunch from the Noise:Provable and Practical Exploration for Representation Learningarxiv.org
- Ch. 21 - Imitation Learningunderactuated.mit.edu
- Accelerating Goal-Conditioned Reinforcement Learning Algorithms and Researcharxiv.org
- [2201.08299] Goal-Conditioned Reinforcement Learning: Problems and Solutionsarxiv.org
- [2602.11399] Can We Really Learn One Representation to Optimize All Rewards?arxiv.org
- 2006.10742arxiv.org
- A (Long) Peek into Reinforcement Learning | Lil'Loglilianweng.github.io
- A General Goal-Conditioned Minecraft Model - Pantographpantograph.com
- [2507.13181] Spectral Bellman Method: Unifying Representation and Exploration in RLarxiv.org
- [2606.05555] Representation Learning Enables Scalable Multitask Deep Reinforcement Learningarxiv.org
- Self-Supervised Representation Learning | Lil'Loglilianweng.github.io