Abstract
Goal-Conditioned Reinforcement Learning (GC-RL) often struggles with sparse rewards in long-horizon tasks. Goal-Conditioned Supervised Learning (GCSL) mitigates this using hindsight relabeling but suffers from a mathematical bias toward short-horizon goals. We present TraIL (Trajectory Iterative Learner), which enhances GCSL by predicting intermediate sub-goals. By decomposing long-distance objectives into manageable segments, TraIL significantly improves performance across complex navigation and robotic manipulation benchmarks.
The GCSL Horizon Bias
In GC-RL, agents are tasked with reaching specific target states. GCSL simplifies this by treating any visited state as a goal for the preceding actions. However, the authors identify a critical limitation: GCSL is inherently biased toward short-horizon goals. Because it samples random segments from trajectories, the training distribution is heavily skewed toward states that are spatially and temporally close.
This bias means the model learns very little about the complex actions required to reach distant goals. Mathematically, the GCSL objective is monotonically decreasing with respect to distance, leading to poor generalization in long-horizon scenarios.
Methods: Trajectory Iterative Learner (TraIL)
To address the horizon bias, TraIL introduces a Trajectory Encoder that learns to predict the entire path—represented as sub-goals—between the current state and the final target. Instead of predicting a single action for a distant goal, the agent predicts where it should be at a relative time $t$ (e.g., halfway to the goal).
Technical Components
- Sub-goal Prediction with MDNs: Since multiple paths may lead to a goal, TraIL uses Mixture Density Networks (MDNs) to model sub-goals as a mixture of Gaussians, capturing the multi-modal nature of valid trajectories.
- Self-consistency and Edge Losses: To ensure logical paths, TraIL employs a self-consistency loss, requiring that intermediate sub-goal predictions remain consistent across different temporal scales. Edge losses further constrain the model to predict the start state at $t=0$ and the goal state at $t=1$.
During execution, the agent performs hierarchical inference: it first predicts a sub-goal at the midpoint ($t=0.5$) and then queries the policy for the action required to reach that intermediate target. This effectively shortens the prediction horizon for the low-level controller.
Experimental Results
TraIL was evaluated against standard GCSL across several challenging environments, including discrete grid-worlds, continuous navigation tasks, and high-dimensional robotic control.
- Navigation: In a Discrete 9-rooms environment, TraIL achieved a 71.9% success rate (eventually reaching 99% with more updates), significantly outperforming GCSL's 56.7%. Similar gains were observed in the Continuous 4-rooms task.
- Lunar Lander: In a modified version requiring precise landing coordinates and velocities, TraIL outperformed GCSL by a wide margin (54.3% vs 34.1%).
- Robotic Manipulation: On a 7-degree-of-freedom Panda Motion Planning task involving obstacle avoidance, TraIL improved success rates from 69.3% to 76.7%.
Discussion and Limitations
The effectiveness of sub-goal prediction depends on the environment's topology. In "forgiving" environments like Large Rooms, sub-goals provide a helpful directional guide. However, in highly sensitive environments like the Double Spiral, small errors in sub-goal prediction can lead to total failure if the agent is directed into an incorrect corridor.
Future work aims to extend TraIL to visual domains, where sub-goals would be predicted directly in pixel space, and to develop more sophisticated heuristics for selecting optimal intermediate targets beyond the simple midpoint strategy.
Summary updated