Horizon Generalization in Reinforcement Learning
Vivek Myers, Catherine Ji, Benjamin Eysenbach
TL;DR
The paper addresses horizon generalization in goal-conditioned RL, proposing that policies invariant to planning can generalize from short-horizon to long-horizon goals. By formalizing planning invariance around a quasimetric distance $d(s,g)$ and a planning operator ${\textsc{Plan}}$, it proves that quasimetric policies can be invariant to planning and thus generalize across horizons. It introduces successor-based quasimetric distances $d_{SD}$, develops theoretical results linking planning invariance to horizon generalization, and validates these ideas empirically in high-dimensional and complex environments, observing correlations with reduced Bellman errors. The findings suggest practical directions—especially quasimetric architectures and planning-inspired objectives—for designing RL systems capable of long-horizon reasoning without relying on external planners, with potential impact on robotics and other long-horizon control tasks.
Abstract
We study goal-conditioned RL through the lens of generalization, but not in the traditional sense of random augmentations and domain randomization. Rather, we aim to learn goal-directed policies that generalize with respect to the horizon: after training to reach nearby goals (which are easy to learn), these policies should succeed in reaching distant goals (which are quite challenging to learn). In the same way that invariance is closely linked with generalization is other areas of machine learning (e.g., normalization layers make a network invariant to scale, and therefore generalize to inputs of varying scales), we show that this notion of horizon generalization is closely linked with invariance to planning: a policy navigating towards a goal will select the same actions as if it were navigating to a waypoint en route to that goal. Thus, such a policy trained to reach nearby goals should succeed at reaching arbitrarily-distant goals. Our theoretical analysis proves that both horizon generalization and planning invariance are possible, under some assumptions. We present new experimental results and recall findings from prior work in support of our theoretical results. Taken together, our results open the door to studying how techniques for invariance and generalization developed in other areas of machine learning might be adapted to achieve this alluring property.
