Reinforcement learning (RL) is notoriously "data-hungry." In complex, open-world environments, an agent starting from scratch is likely to spend millions of steps randomly flailing without ever receiving a positive reward signal—a classic manifestation of the exploration problem. To solve this, researchers often turn to Hierarchical Reinforcement Learning (HRL), where a high-level policy selects "skills" or "goals," and a low-level policy executes the actual motor movements. However, training these hierarchies on massive, unlabelled datasets (like human gameplay videos) is difficult. Existing methods often use continuous latent variables to represent skills, which struggle to capture the sheer variety of behaviors in large datasets or fail to reconstruct the long sequences of actions required for complex tasks.
To address these challenges, researchers have introduced PTGM (Pre-Training Goal-based Models). PTGM significantly boosts the sample efficiency of RL by using large, task-agnostic datasets to "teach" an agent basic skills before it ever starts a specific task. By clustering high-dimensional goals into a discrete action space and using a pre-trained "goal prior" to guide exploration, PTGM allows agents to solve complex, long-horizon challenges that stymie traditional RL methods.
Methodology: The PTGM Architecture
PTGM tackles the hierarchical RL problem through three main components designed to provide temporal abstractions and behavior regularization:
- Goal-Conditioned Low-Level Policy: Instead of relying on abstract "latent skills," the low-level policy is trained to reach specific states (goals). It is pre-trained using behavior cloning and hindsight relabeling on a large dataset. Given a current state and a target goal, it predicts the next action.
- Discrete Goal Clustering: To avoid the "curse of dimensionality," the high-level policy is not allowed to pick any point in the environment as a goal. Instead, the authors use t-SNE and K-Means to cluster states from the dataset into a discrete "menu" of representative goals (e.g., 100 or 1000 clusters). This transforms a complex continuous optimization problem into a simpler discrete choice.
- Pre-trained Goal Prior: A separate model is trained to predict which goals are "reasonable" or "likely" given the current state, based on the original dataset. During RL, the high-level policy is rewarded for task success but penalized (via KL divergence) if it deviates too far from this prior. This keeps the agent's exploration grounded in human-like behavior.
Experiments and Key Insights
The researchers evaluated PTGM on two distinct benchmarks: the Kitchen robotic manipulation environment from the D4RL benchmark, and Minecraft via the MineDojo simulator. The Minecraft experiments utilized the VPT (Video Pre-Training) contractor dataset, which contains 39 million frames of human gameplay. The agent was tested on five difficult tasks, including "Harvest log," "Combat spider," and the notoriously difficult "Mine iron ore."
Several key insights emerged from the evaluation:
- Discretization is a Feature, Not a Bug: One might assume that forcing an agent to choose from a limited set of cluster centers would reduce its capability. In reality, it acts as a powerful regularizer. It filters out "impossible" goals and provides the RL agent with a clean, interpretable set of macro-actions.
- The Power of Temporal Abstraction: PTGM performs best when the low-level policy is allowed to run for a long time (e.g., $k=100$ steps) per goal. This effectively "shrinks" the time horizon of the task from thousands of raw actions to just a few dozen high-level decisions.
- Goal Generalization: A surprising finding was that a single goal (like "attacking a sheep") is often general enough to work for other similar tasks (like "attacking a pig") because the low-level policy learns the intent of the goal rather than just a fixed trajectory.
Key Results
PTGM demonstrated significant improvements in both sample efficiency and overall task success compared to existing baselines like SPiRL and TACO.
Most notably, PTGM was the only method capable of solving the "Mine iron ore" task, which requires over 1,000 exploration steps to find rare underground resources. In the "Harvest log" task, PTGM achieved high success rates within 250,000 environment steps, whereas baselines either failed completely or required significantly more data. Furthermore, visualizing the goal clusters showed that they naturally mapped to semantic human behaviors, enhancing the interpretability of the model.
Limitations and Future Work
While powerful, PTGM has a few limitations. First, it suffers from dataset bias; it is limited by the diversity of its pre-training data. If a behavior isn't in the dataset, the agent cannot easily "discover" it through this goal-based framework. Second, there is a strong representation dependency. The success of the clustering depends heavily on having a good state representation (the authors used MineCLIP embeddings). In environments without high-quality pre-trained encoders, PTGM might struggle.
Moving forward, scaling toward even larger, "internet-scale" datasets will be the next step in making these goal-based agents truly general-purpose.
Summary updated