Abstract
Goal-Conditioned Reinforcement Learning (GCRL) aims to develop agents capable of reaching arbitrary goals. However, standard approaches often rely on hand-crafted distance metrics that fail to account for environment physics or heterogeneous goal representations. We present GPIM (Goal-conditioned Policy with Intrinsic Motivation), a framework that decouples task generation from policy optimization. By utilizing a learned discriminator as a proxy reward, GPIM enables agents to autonomously discover and master diverse skills across high-dimensional state spaces and complex environments, outperforming existing baselines in both efficiency and success rate.
Introduction
In the quest for general-purpose autonomous agents, GCRL serves as a foundational paradigm. The objective is to learn a policy that can reach any given goal state. Traditionally, this is achieved using distance metrics (e.g., L2 norm) in an embedding space to provide rewards. However, this approach suffers from two critical flaws:
- Metric Blindness: Simple geometric distances do not respect environmental constraints. For instance, moving toward a wall is rewarded the same as moving toward an open door if the Euclidean distance is identical.
- Heterogeneity: Comparing low-level states (like robot joint angles) to high-level goals (like text descriptions or images) is mathematically non-trivial.
GPIM addresses these challenges by allowing an agent to "invent" its own tasks and learn to solve them through intrinsic motivation, bypassing the need for human-engineered reward functions.
The GPIM Framework
The core innovation of GPIM is the decoupling of task generation from policy optimization. The architecture consists of three primary components working in tandem:
- The Latent-Conditioned Policy ($\pi_\mu$): This "explorer" policy is conditioned on a latent variable $\omega$ representing a skill. It learns to perform diverse, reproducible behaviors by maximizing the mutual information between its states and the latent code.
- The Discriminator ($q_\phi$): Trained alongside the explorer, the discriminator learns to identify which latent skill $\omega$ produced a given state. This learned model effectively captures the dynamics and constraints of the environment.
- The Goal-Conditioned Policy ($\pi_\theta$): This "student" policy learns to reach specific perceptual goals. Instead of using a distance metric, it is rewarded by the discriminator. When the explorer reaches a state, that state is relabeled as a goal for the student, and the discriminator provides a well-shaped reward signal based on the agent's own understanding of the environment.
Experimental Evaluation
The authors evaluated GPIM across a diverse set of benchmarks designed to test various aspects of RL complexity, ranging from simple navigation to hard-exploration Atari games.
- 2D Navigation & Object Manipulation: Tested the ability to handle heterogeneous goals (e.g., "move to the red square").
- Atari Games: Environments like Montezuma’s Revenge and Seaquest tested the framework's capability in hard-exploration scenarios.
- MuJoCo Simulations: High-dimensional continuous control tasks like Swimmer and HalfCheetah tested dynamic trajectory following.
- Robotic Control: A Panda robot setup was used to demonstrate the ability to imitate complex hand movements tracked via MediaPipe.
Key Insights and Results
GPIM consistently outperformed state-of-the-art methods such as RIG and DISCERN. Several key insights emerged from the results:
- Discriminators as "Smart" Rewards: Learned discriminators act as reward functions that are inherently aware of environmental physics. These rewards are naturally "convex," providing smoother gradients for policy optimization compared to sparse or geometric rewards.
- Robustness to Heterogeneity: GPIM excels when states and goals exist in different modalities (e.g., joint angles vs. text). The shared latent structure allows the agent to bridge the gap between abstract objectives and physical actions.
- Dynamic Goal Following: A unique emergent property of GPIM is its ability to follow time-varying trajectories (e.g., figure-eight patterns) in complex environments, despite being trained primarily on static goals during the discovery phase.
Conclusion and Future Work
GPIM represents a significant step toward autonomous skill acquisition in reinforcement learning. By decoupling discovery from learning, it provides a robust mechanism for agents to master complex environments without human intervention.
However, limitations remain. The dual-policy approach currently requires higher interaction time with the environment. Future research will focus on improving sample efficiency and incorporating safety constraints to prevent dangerous behaviors during the autonomous exploration phase. Additionally, implementing self-paced curriculum learning could further accelerate the student policy's mastery of increasingly difficult tasks.
Summary updated