# Poster 30581

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30581

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello, I'm going to talk about our recent work on horizon generalization in reinforcement learning. This is work done by Vivek Myers, Catherine G, and Benjamin Eisenbach.
Reinforcement learning is appealing for its potential to use data to solve long-horizon reasoning problems. However, it is precisely this horizon that makes solving the RL problem difficult in real-world applications like healthcare, urban planning, robotics, and beyond. The number of possible solutions to a control problem often grows exponentially in the horizon. This bottleneck motivated us to study a form of generalization we term horizon generalization.
Informally, a goal condition policy generalizes over the horizon if, after training to reach nearby goals, which are easier to learn, a policy is more successful at reaching distant goals.
In our work, we theoretically motivate and empirically demonstrate horizon generalization. On the theory side, we 1. formalize horizon generalization, 2. introduce a practically achievable invariance on the policy, and 3. show that this invariance, which we call planning invariance, implies horizon generalization.
On the experiment side, we empirically link this invariance and horizon generalization and demonstrate that horizon generalization is possible in high degree of freedom settings, suggesting practical methods to achieve this powerful property. We begin with a high level overview of our analysis.
A key mathematical tool to understand horizon generalization is planning invariance. A goal condition policy is invariant to planning if it returns the same or similar performing actions when conditioned directly on the goal compared to conditioning on a series of intermediate waypoints.
As an example, we consider the task of maze navigation. On the left, the output action when conditioning on the long horizon goal, the purple star, is to go right. However, the output action when conditioning on an optimal intermediate waypoint, the brown star, is down. These two actions are not equivalent, and therefore the policy is not planning invariant.
On the right, we see that our agent outputs the same action, down, when conditioning on the purple or the waypoint brown star. This policy is thus playing invariant. In the same way that an image classification model that is invariant to rotations will generalize to images of different orientations, we prove that a policy invariant to planning, like the one on the right, will exhibit horizon generalization under certain assumptions.
Our two main theoretical results show that horizon generalization exists and is achievable via planning invariance. As a preliminary, we define a quasimetric policy that chooses actions minimizing a critic, D, which obeys the triangle inequality. At a high level, the triangle inequality is a form of self -consistency in the state space.
Our first theorem shows that quasi-metric policies are planning invariant under an optimal planner, so the policy network maps together, for example, point a waypoint pairs like S0, S2, and S0, S4 in the figure, thus outputting the same action. Our second theorem shows that such policies also generalize over the horizon. We use induction, invoking planning invariance to show the ability to navigate between tasks, say one step apart.
implies the ability to navigate between tasks two steps apart, and so on. With these theoretical results in hand, we ran experiments to study the extent to which current methods exhibit horizon generalization. So to start, how do we measure horizon generalization in practice?
In experimental settings, we do not specify our policy to perfectly generalize over the horizon, which each application of the induction argument from, say, horizon h to 2h incurring some error. Thus, in our experiments, we instead compare the relative success rates at some short training task with horizon h and long horizon evaluation tasks, i.e. 2h, beyond the training horizon. This is the parameter eta in the corner.
We measure and demonstrate horizon generalization in several different high degree of freedom environments, including ant, pictured here, ant maze, and humanoid.
Our ant results show that different architectures, like different algorithms, critic parameterizations, and losses exhibit different levels of horizon generalization, where CRL in yellow-orange and dark orange refers to contrastive RL, SAC in blue refers to soft actor critic, and CMD1 in purple refers to a quasi-metric method that constrains the critic to be a quasi-metric and is thus planning invariant by our theorem 1.
Aligning with our theoretical predictions, the most planning invariant policy, CMD1, exhibits the most horizon generalization, retaining success at horizons much longer than the horizons of the train tasks.
Additional experiments in ant maze left and humanoid right further support these results, where CMD is the planning invariant method, CRL is contrastive RL, and ADA is the horizon generalization parameter that measures the ratio of the success between navigating to a goal horizon 2 HOA and navigating to a goal HOA. For example, if we consider the 15 meter row in the left table, the CMD algorithm retains 93% of the success when evaluated.
evaluated on a goal 30 meters away compared to 15 meters away. The main takeaway from this work is that there are rich notions of generalization over the horizon in reinforcement learning. We empirically demonstrate that existing quasi-metric methods already exhibit this form of generalization in high-dimensional settings, suggesting practical methods to achieve this powerful property. Thank you for listening.
