Goal-conditioned offline reinforcement learning through state space partitioning

Mianchu Wang, Yue Jin, Giovanni Montana

Abstract

Offline reinforcement learning (RL) aims to create policies for sequential decision-making using exclusively offline datasets. This presents a significant challenge, especially when attempting to accomplish multiple distinct goals or outcomes within a given scenario while receiving sparse rewards. Prior methods using advantage weighting for offline goal-conditioned learning improve policies monotonically. However, they still face challenges from distribution shift and multi-modality that arise due to conflicting ways to reach a goal. This issue is especially challenging in long-horizon tasks, where the presence of multiple, often conflicting, solutions makes it hard to identify a single optimal policy for transitioning from a state to a desired goal. To address these challenges, we introduce a complementary advantage-based weighting scheme that incorporates an additional source of inductive bias. Given a value-based partitioning of the state space, the contribution of actions expected to lead to target regions that are easier to reach, compared to the final goal, is further increased. Our proposed approach, Dual-Advantage Weighted Offline Goal-conditioned RL (DAWOG), outperforms several competing offline algorithms in widely used benchmarks. Furthermore, we provide a theoretical guarantee that the learned policy will not be inferior to the underlying behavior policy.

Introduction

Offline Goal-Conditioned Reinforcement Learning (GCRL) is a powerful framework for learning versatile agents from static datasets. However, it faces two primary hurdles: sparse rewards and multi-modality. In long-horizon tasks, the reward signal is often too weak to guide the agent effectively. Moreover, datasets often contain multiple ways to reach a goal, leading to "confused" policies that average these paths rather than selecting the optimal one. Standard imitation learning (Behavior Cloning) often fails in these scenarios, resulting in policies that take unnecessary detours or get stuck at branching points.

Multi-modality in offline datasets often leads to sub-optimal paths (red circle) at branching points (green circle), confusing standard imitation-based agents.

Methodology: The DAWOG Algorithm

To overcome these challenges, we propose DAWOG (Dual-Advantage Weighted Offline GCRL). The core innovation is a dual-weighting scheme that combines global goal-directed signals with local, region-based milestones.

State Space Partitioning

We partition the state space into $K$ regions based on the goal-conditioned value function $V(s, g)$. This effectively discretizes the distance to the goal into manageable segments. States with low value are far from the goal (Region 1), while high-value states are near (Region $K$).

Dual-Advantage Weighting

DAWOG re-weights actions in the offline dataset during supervised learning using two advantage functions:

  1. Global Advantage ($A$): Measures how much an action contributes to reaching the final goal.
  2. Target Region Advantage ($\tilde{A}$): Measures how effectively an action moves the agent into the next "better" region (e.g., from region $k$ to $k+1$).

By focusing on the next region, DAWOG introduces a short-horizon inductive bias that provides a denser and more reliable learning signal than the global goal alone. This synergy allows the agent to maintain focus on the ultimate prize while following efficient "stepping stones."

Experimental Evaluation

We evaluated DAWOG on challenging benchmarks including AntMaze (D4RL) and Gym Robotics (Fetch).

Performance in Complex Mazes

In the large-diverse AntMaze task, which is characterized by high multi-modality, DAWOG achieved a score of 52.0, significantly outperforming baselines like GCSL (32.6) and g-TD3 (39.8). Qualitative analysis shows that DAWOG successfully identifies direct paths where other methods might fail or take sub-optimal detours.

DAWOG learns to prioritize direct paths to the goal, avoiding the sub-optimal loops common in baseline policies.

Stability and Robustness

DAWOG also showed superior performance in the Gym Robotics suite, particularly in the difficult FetchSlide task (9.9 vs 3.05 for GCSL). The use of target region values helps mitigate overestimation bias, leading to more stable learning and better generalization to unseen goals. Ablation studies confirmed that both global and region advantages are necessary for this performance leap.

Conclusion

DAWOG addresses the fundamental challenges of long-horizon offline GCRL by decomposing the problem into a sequence of region-based sub-tasks. By combining global and local advantage weighting, it effectively navigates multi-modal datasets to learn efficient, goal-directed policies. Future work includes exploring adaptive partitioning strategies to further enhance performance in complex environments.

Summary updated

BibTeX
@article{wang2024goal,
  author = {Mianchu Wang and Yue Jin and Giovanni Montana},
  title = {{Goal-conditioned offline reinforcement learning through state space partitioning}},
  journal = {Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=X9o4MKd9vD},
}
Figure