Abstract
Offline goal-conditioned reinforcement learning (RL) presents a significant challenge: balancing the stability of supervised imitation learning with the performance potential of value-based methods. Traditional offline RL algorithms often suffer from instability due to the "deadly triad"—the combination of function approximation, off-policy learning, and bootstrapping. We present Distance Weighted Supervised Learning (DWSL), a framework that avoids bootstrapping by modeling the distribution of temporal distances between states as a supervised classification task. By utilizing a LogSumExp operator to estimate minimum distances, DWSL enables stable policy improvement. Experimental results across diverse robotics benchmarks demonstrate that DWSL outperforms state-of-the-art offline RL and imitation learning methods, particularly in high-dimensional, image-based environments and on unstructured human-collected datasets.
Introduction
The objective of offline goal-conditioned RL is to train agents to reach arbitrary goals using static datasets of past interactions. These datasets are often suboptimal, unstructured, or collected by humans, making them difficult to learn from using standard techniques. Currently, practitioners face a stark trade-off. Imitation Learning (IL) is stable and easy to scale via supervised learning, but it is limited by the quality of the data; it essentially clones the behavior of the dataset, even if that behavior is mediocre. Conversely, Reinforcement Learning (RL) can theoretically improve upon suboptimal data by estimating value functions. However, offline RL is notoriously unstable. The reliance on bootstrapping—using current value estimates to update future estimates—often leads to divergent values and catastrophic failure in high-dimensional settings like image-based robotics.
DWSL seeks a middle ground: an algorithm that retains the robustness and simplicity of supervised learning while performing the value estimation necessary to surpass the performance of the original data.
Methodology
DWSL replaces the unstable Bellman updates found in traditional RL with a three-phase supervised pipeline. This approach eliminates bootstrapping entirely, ensuring that the training objective remains a stable supervised learning target.
1. Learning Distance Distributions
Instead of regressing to a single scalar value, DWSL trains a discrete classifier to predict the probability distribution of the number of time-steps ($k$) between any two states in the dataset. This process utilizes "hindsight relabeling," where every state reached within a trajectory is treated as a potential goal for previous states in that same trajectory. By treating distance estimation as a classification problem over discrete time buckets, the model becomes more robust to outliers and modeling errors than standard regression.
2. Estimating Minimum Distance
To derive a useful signal for policy improvement, the framework must identify the "shortest path" to a goal. DWSL applies a LogSumExp operator over the learned discrete distance distribution. This provides a smooth, differentiable estimate of the minimum distance to a goal. Crucially, this estimate is derived directly from the data distribution without the need for iterative Bellman updates, avoiding the primary source of instability in offline RL.
3. Policy Extraction via Advantage Weighting
The final step involves training a policy using weighted imitation learning. Actions are not cloned blindly; instead, they are weighted by their "advantage." In the DWSL framework, the advantage is defined by how much a specific action reduces the estimated distance to the goal compared to the current state's baseline distance. This allows the agent to prioritize high-progress actions and ignore suboptimal ones.
Experimental Evaluation
The authors evaluated DWSL across a wide range of simulated robotics benchmarks, including image-based Fetch and Hand Reach tasks, the Franka Kitchen dataset (unstructured human "play" data), and Robomimic human demonstrations.
Key Findings
- Performance Superiority: DWSL matched or outperformed goal-conditioned supervised learning (GCSL) on 26 out of 27 tested datasets.
- Image-Based Robustness: In high-dimensional image domains, DWSL surpassed prior state-of-the-art offline RL algorithms (such as GoFAR and GCIQL) on 6 out of 8 Gym Robotics tasks.
- Stability under Shift: DWSL demonstrated remarkable stability under image augmentations. While standard temporal-difference (TD) learning methods often collapse when the input distribution shifts, DWSL maintained a Pearson correlation of 0.957 with true values, compared to 0.808 for the best RL baseline.
- Human Data Success: On 4 out of 5 human-collected datasets—scenarios where RL typically struggles due to the non-Markovian nature of human behavior—DWSL outperformed the best RL baselines.
Discussion and Limitations
The primary strength of DWSL is its stability. Because it avoids bootstrapping, it is significantly easier to tune and scale than traditional RL. It consistently maintains behavior cloning as a performance lower bound, ensuring that the agent never performs worse than the data it was trained on.
However, DWSL has a notable limitation regarding "stitching." Stitching refers to the ability to combine segments of different trajectories to find a novel path not seen in the data. Because DWSL does not use dynamic programming, it struggles with tasks like AntMaze, which require complex long-range planning across disjoint trajectories. In these specific scenarios, traditional RL methods that utilize Bellman updates still hold an advantage.
Conclusion
Distance Weighted Supervised Learning offers a robust alternative to traditional offline RL. By reframing value estimation as a supervised distance classification task, DWSL achieves state-of-the-art results on complex, image-based robotics tasks while avoiding the instabilities of bootstrapping. Future work may involve scaling DWSL to Transformer-based architectures or pre-training distance models on large-scale, action-free video datasets to further enhance its generalization capabilities.
Summary updated