Learning Temporal Distances: Contrastive Successor Features Can Provide a Metric Structure for Decision-Making

Vivek Myers, Chongyi Zheng, Anca Dragan, Sergey Levine, Benjamin Eysenbach
6/24/2024
cs.LGcs.AI

No official code found. Best implementation: vivekmyers/contrastive_metrics (30 stars, last commit 2024-07-11).

Abstract

Temporal distances lie at the heart of many algorithms for planning, control, and reinforcement learning that involve reaching goals, allowing one to estimate the transit time between two states. However, prior attempts to define such temporal distances in stochastic settings have been stymied by an important limitation: these prior approaches do not satisfy the triangle inequality. This is not merely a definitional concern, but translates to an inability to generalize and find shortest paths. In this paper, we build on prior work in contrastive learning and quasimetrics to show how successor features learned by contrastive learning (after a change of variables) form a temporal distance that does satisfy the triangle inequality, even in stochastic settings. Importantly, this temporal distance is computationally efficient to estimate, even in high-dimensional and stochastic settings. Experiments in controlled settings and benchmark suites demonstrate that an RL algorithm based on these new temporal distances exhibits combinatorial generalization (i.e., "stitching") and can sometimes learn more quickly than prior methods, including those based on quasimetrics.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Learning Temporal Distances: Contrastive Successor Features Can Provide a Metric Structure for Decision-Making"

304PythonJun 4, 20242 years ago

Similar Papers

Cite this paper

@article{myers2024learning,
  title  = {Learning Temporal Distances: Contrastive Successor Features Can Provide a Metric Structure for Decision-Making},
  author = {Vivek Myers and Chongyi Zheng and Anca Dragan and Sergey Levine and Benjamin Eysenbach},
  year   = {2024},
  eprint = {2406.17098},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.17098v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.17098.svg)](https://codeofpaper.com/paper/2406.17098)

Discussion