Skip to main content
QUICK REVIEW

[Paper Review] Self-supervised Learning of Distance Functions for Goal-Conditioned Reinforcement Learning

Srinivas Venkattaramanujam, Eric Crawford|arXiv (Cornell University)|Jul 5, 2019
Reinforcement Learning in RoboticsComputer Science23 references11 citations
TL;DR

This paper proposes a self-supervised method to learn a dynamics-aware distance function for goal-conditioned reinforcement learning by training a neural network to predict the square-root of the commute time between states under a policy. The approach enables online, domain-knowledge-free training of goal-conditioned policies in complex environments, significantly reducing reliance on hand-designed distance metrics while improving sample efficiency and curriculum learning.

ABSTRACT

Goal-conditioned policies are used in order to break down complex reinforcement learning (RL) problems by using subgoals, which can be defined either in state space or in a latent feature space. This can increase the efficiency of learning by using a curriculum, and also enables simultaneous learning and generalization across goals. A crucial requirement of goal-conditioned policies is to be able to determine whether the goal has been achieved. Having a notion of distance to a goal is thus a crucial component of this approach. However, it is not straightforward to come up with an appropriate distance, and in some tasks, the goal space may not even be known a priori. In this work we learn a distance-to-goal estimate which is computed in terms of the number of actions that would need to be carried out in a self-supervised approach. Our method solves complex tasks without prior domain knowledge in the online setting in three different scenarios in the context of goal-conditioned policies a) the goal space is the same as the state space b) the goal space is given but an appropriate distance is unknown and c) the state space is accessible, but only a subset of the state space represents desired goals, and this subset is known a priori. We also propose a goal-generation mechanism as a secondary contribution.

Motivation & Objective

  • Address the challenge of designing effective distance functions for goal-conditioned reinforcement learning, which often requires significant domain knowledge.
  • Overcome limitations of L2 distance by learning a dynamics-aware distance metric that reflects actual environmental transition costs.
  • Enable online, self-supervised training of distance functions in conjunction with policy learning, reducing dependency on pre-defined goal spaces or reward shaping.
  • Develop an automatic curriculum generation mechanism that leverages the learned distance function to select feasible and progressively difficult goals.
  • Mitigate the issue of expanding epsilon-spheres in on-policy distance training, which can hinder goal reachability evaluation and hyperparameter tuning.

Proposed method

  • Define the distance between two states as the square root of the expected commute time (first passage time in both directions) under a behavior policy.
  • Train a neural network to embed states such that the p-norm of their embeddings approximates this commute-time-based distance.
  • Use online experience collected by the policy to train the distance network in a self-supervised manner, with contrastive loss based on temporal proximity.
  • Leverage the connection to the graph Laplacian to justify the existence of such an embedding space and ensure theoretical grounding.
  • Implement an off-policy training scheme for the distance predictor to avoid the expanding epsilon-sphere problem observed in on-policy training.
  • Integrate the learned distance function into a goal-conditioned policy training pipeline, enabling automatic goal generation via action noise in the goal space.

Experimental results

Research questions

  • RQ1Can a self-supervised distance function be learned online that reflects the true environmental dynamics rather than static state differences?
  • RQ2How does the choice between on-policy and off-policy training of the distance predictor affect the stability and scalability of the goal-conditioned learning process?
  • RQ3To what extent can the learned distance function replace hand-designed metrics like L2 distance in complex, high-dimensional environments?
  • RQ4Can the learned distance function enable effective automatic curriculum learning for goal-conditioned policies without prior knowledge of the goal space?
  • RQ5What are the practical implications of the expanding epsilon-sphere phenomenon in on-policy distance learning, and how can it be mitigated?

Key findings

  • The proposed method learns a dynamics-aware distance function that significantly outperforms L2 distance in environments where state proximity does not imply task proximity.
  • The self-supervised distance network successfully approximates the theoretical commute time distance, with embeddings that preserve temporal transition costs in the state space.
  • On-policy training of the distance predictor leads to an expanding epsilon-sphere, where the region of states considered 'near' a goal grows over time, complicating hyperparameter tuning.
  • Off-policy training stabilizes the distance function and prevents the epsilon-sphere from expanding, making it more suitable for reliable goal evaluation and curriculum learning.
  • The method enables effective automatic goal generation using action noise, achieving performance comparable to GoalGAN without requiring GAN training or feasibility checks.
  • Empirical results in Maze Ant and Free Ant environments show that the approach reduces reliance on domain knowledge and improves sample efficiency in online goal-conditioned RL.

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.