Learning Temporal Distances: Contrastive Successor Features Can Provide a Metric Structure for Decision-Making
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Object Manipulation | OGBench cube play (Double) | Success Rate3 | 39 | |
| Object Manipulation | OGBench cube play (Quadruple) | Success Rate0.00e+0 | 28 | |
| Goal-conditioned locomotion | OGBench HumanoidMaze-Stitch Medium | Success Rate62 | 19 | |
| Goal-conditioned locomotion | OGBench HumanoidMaze-Stitch Large | Success Rate18 | 19 | |
| Object Manipulation | OGBench cube play (Triple) | Success Rate1 | 19 | |
| Goal Reaching | antmaze teleport-navigate v0 | Success Rate49 | 17 | |
| Navigation | humanoidmaze medium-navigate v0 (test) | Success Rate49 | 16 | |
| Navigation | humanoidmaze-large-navigate v0 (test) | Success Rate20 | 16 | |
| Manipulation | OGBench cube-triple-noisy | Success Rate4 | 16 | |
| Manipulation | scene-play v0 | Success Rate20 | 16 |