Abstract
Offline Goal-conditioned Reinforcement Learning (GCRL) faces significant challenges in trajectory stitching—the ability to combine segments of different trajectories to reach distant goals. Traditional Goal-conditioned Weighted Supervised Learning (GCWSL) methods often fail to generalize beyond the specific state-goal pairs present in the training data. We present Model-based Goal Data Augmentation (MGDA), a novel framework that leverages a learned dynamics model constrained by local Lipschitz continuity to generate reachable and diverse augmented goals. MGDA enables agents to effectively "stitch" trajectories, leading to substantial performance gains in complex navigation tasks across both state-based and vision-based environments.
Introduction
In the offline RL paradigm, agents must learn optimal policies from static datasets without environment interaction. GCWSL approaches simplify this by treating RL as a supervised learning problem, imitating successful paths. However, these methods typically lack the inherent ability to perform trajectory stitching. For instance, if a dataset contains paths from A to B and B to C, a standard GCWSL agent may not realize it can navigate from A to C. While previous augmentation strategies like SGDA (State-based) or TGDA (Trajectory-based) attempted to address this, they often introduced unreachable goals or goals that rendered the original actions sub-optimal, particularly in environments with complex geometry or obstacles.
Methodology: The MGDA Framework
MGDA is designed around three core principles for effective goal augmentation:
- Goal Diversity: Associating a single state with multiple potential goals derived from various trajectories.
- Action Optimality: Ensuring the original action taken at a state remains the optimal choice for the new, augmented goal.
- Goal Reachability: Guaranteeing that any augmented goal is physically reachable from the current state.
To implement these principles, MGDA learns a dynamics model ($\hat{f}$) from the offline dataset. The framework identifies "nearby states" that could have reached a specific goal and then samples new goals from the subsequent stages of those states' trajectories. A critical technical innovation is the enforcement of Local Lipschitz Continuity during model training. This mathematical constraint ensures that small perturbations in the state-action space result in bounded changes in the predicted next state, preventing the compounding errors that often lead to the generation of impossible or "hallucinated" transitions.
Experimental Evaluation
We evaluated MGDA on the Offline Point Maze benchmark, focusing on its ability to perform stitching in increasingly difficult configurations: Umaze, Medium, and Large. The experiments encompassed both coordinate-based (state) and raw pixel-based (vision) inputs.
MGDA was integrated into several prominent GCWSL baselines, including WGCSL, GoFar, DWSL, and SMORE. Across these configurations, MGDA consistently outperformed existing augmentation methods.
Key Results and Insights
- Stitching Performance: In the state-based "Large" maze—the most demanding stitching task—MGDA improved the success rate of the DWSL algorithm from near 0% to over 50%.
- Robustness to Obstacles: Unlike heuristic methods (e.g., TGDA) that rely on simple Euclidean distance, MGDA’s model-based approach is robust to environmental obstacles. It correctly identifies that two points separated by a wall are not "nearby," even if they are close in coordinate space.
- Scalability to Vision: MGDA demonstrated significant performance lifts in vision-based tasks, which are notoriously difficult due to high-dimensional input spaces.
Discussion and Conclusion
The success of MGDA highlights that intelligent data augmentation is more critical than simple data volume for improving generalization in offline RL. By treating original goals as "intersection states," MGDA provides a principled way to bridge disparate trajectories.
However, the method's effectiveness is somewhat sensitive to the dynamics model's architecture. Furthermore, while MGDA improves vision-based performance, the results are less consistent than in state-based tasks, suggesting a need for more robust representation learning in future iterations. Future work will explore scaling MGDA to more complex, high-dimensional robotic manipulation tasks where trajectory stitching is essential for long-horizon planning.
Summary updated