Learning Temporal Distances: Contrastive Successor Features Can Provide a Metric Structure for Decision-Making
Vivek Myers, Chongyi Zheng, Anca Dragan, Sergey Levine, Benjamin Eysenbach
TL;DR
This work defines a temporal distance for goal-reaching in stochastic environments that satisfies the triangle inequality by applying a simple change of variables to contrastive successor features. The distance, d_{SD}, is grounded in discounted future occupancy measures and extended to state-action spaces, with theoretical guarantees that it forms a quasimetric. The authors implement two distillation schemes (CMD-1 and CMD-2) to learn a usable quasimetric via contrastive learning, culminating in a MRN-based parameterization that supports efficient RL with policy extraction. Empirical results on synthetic navigation and a 111-dimensional AntMaze task show strong combinatorial generalization (stitching) and competitive performance, illustrating the practical impact of metric-distilled temporal distances for goal-conditioned control.
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.
