Abstract
Offline Reinforcement Learning (RL) aims to derive optimal policies from fixed datasets without environment interaction. Existing methods often struggle with either extrapolation errors in value-based approaches or limited compositionality in imitation-based approaches. We introduce Policy-Guided Offline RL (POR), which decouples the policy into a task-specific Guide-Policy and a task-agnostic Execute-Policy. By focusing on state-compositionality rather than action-compositionality, POR enables agents to "stitch" together fragments of suboptimal trajectories. Our evaluation on the D4RL benchmark demonstrates that POR achieves state-of-the-art performance, particularly in challenging long-horizon tasks like AntMaze.
Introduction
The primary challenge in offline RL is learning from data that may not contain optimal trajectories. RL-based methods, such as Q-learning, attempt to find optimal actions but frequently suffer from "extrapolation error," where they over-estimate the value of out-of-distribution (OOD) actions. Conversely, imitation-based methods like Behavior Cloning (BC) are stable but limited by the quality of the dataset; they cannot easily compose actions to find paths better than those recorded.
POR addresses this by shifting the focus from "what action to take" to "what state to visit next." This approach leverages state-compositionality, allowing the agent to navigate toward high-value states identified within the dataset distribution.
Methodology: The POR Framework
POR decomposes the decision-making process into two distinct, decoupled components:
- Guide-Policy ($g_\omega$): This component identifies the optimal next state $s'$ from the current state $s$. It is trained using expectile regression to maximize future rewards while staying within the support of the dataset. This ensures the predicted next state is reachable and high-value.
- Execute-Policy ($\pi_\theta$): This is an inverse dynamics model that determines the action $a$ required to transition from $s$ to $s'$. It is trained via supervised learning on the entire dataset, effectively learning the environment's "physics" in a task-agnostic manner.
Key Insights: State-Stitching
The core advantage of POR is its ability to perform "state-stitching." In traditional RL, "action-stitching" is limited by the specific actions recorded at a state. In contrast, state-stitching allows an agent to recognize that a state reached in one suboptimal trajectory can serve as a bridge to a high-reward path found in another. As shown in Figure 1, the Guide-Policy can effectively map out paths toward the goal by selecting the best adjacent states, even if the original data was highly fragmented.
Experimental Results
We evaluated POR on the D4RL benchmark, focusing on MuJoCo locomotion and AntMaze tasks.
D4RL Performance
POR achieved state-of-the-art (SOTA) results in 11 out of 18 D4RL tasks. It demonstrated significant improvements over established baselines like CQL and IQL.
AntMaze Dominance
AntMaze tasks are particularly challenging because they require stitching together fragments of paths to reach a distant goal. POR excels here; for instance, in the "Large-Diverse" task, POR achieved a score of 73.4, compared to 45.6 for CQL and 47.5 for IQL.
Task Adaptation
In a custom Four-room environment, we demonstrated that the Execute-Policy is truly task-agnostic. When the reward structure changed (e.g., adding obstacles), only the Guide-Policy required retraining. The agent's fundamental understanding of movement (the Execute-Policy) remained valid, showcasing the power of this decoupling.
Conclusion and Future Work
POR provides a robust framework for offline RL by combining the stability of imitation learning with the performance gains of state-based value optimization. While highly effective, future work is needed to address potential error accumulation in long-horizon tasks and to scale the Guide-Policy to extremely high-dimensional state spaces, possibly through latent representation learning.
Summary updated