Introduction
Traditional Reinforcement Learning (RL) often relies on meticulously engineered reward functions to guide robotic agents. These rewards typically require specialized sensors or instrumented environments to track progress, such as measuring the exact distance between a gripper and an object. Such dependencies limit the scalability of RL in real-world scenarios where external reward signals are unavailable. This paper addresses the challenge of self-supervised control, enabling robots to learn complex behaviors directly from raw visual input (pixels) without human-provided rewards or pre-engineered vision modules.
Methods
The authors propose a goal-conditioned RL framework where the objective is defined simply as reaching a target observation. Two key components drive this system:
- Goal Relabeling (Hindsight Experience Replay): To overcome the sparsity of reaching random goals, the system uses hindsight. If an agent fails to reach Goal A but arrives at State B, the trajectory is relabeled as a successful attempt to reach Goal B, allowing the agent to learn from every interaction.
- The Structured Q Architecture: The core innovation is a specific structure for the state-action value function ($Q$). Instead of a standard black-box neural network, the authors propose: $$Q(o_t, a_t, o_g) = \gamma^{\|f(\phi(o_t), a_t) - \phi(o_g)\|}$$ Here, $\phi$ is an image encoder, $f$ is a learned forward model in the embedding space, and $\gamma$ is a discount factor. This structure forces the embedding space to organize itself such that the Euclidean distance between points corresponds to the minimum number of time-steps required to travel between them.
By using a goal-conditioned variant of Maximum a Posteriori Policy Optimization (MPO) combined with Retrace, the algorithm achieves efficient off-policy learning.
Datasets and Environments
The approach was evaluated using three simulated environments in the MuJoCo physics engine:
- Visual Point-mass: A 2D navigation task viewed from a top-down perspective.
- Wall Point-mass: A U-shaped maze requiring the agent to navigate around a central wall, testing its ability to handle non-linear paths.
- Jaco Arm Reacher: A complex 7-degree-of-freedom (DOF) robotic arm task using 96x96 pixel frontal camera views.
All training data was generated through self-supervised interaction within these simulations, requiring no external datasets.
Key Insights
- Reachability-based Embeddings: In raw pixel space, Euclidean distance does not reflect the effort required to move between states. By forcing the $Q$-function to follow the power-law of the discount factor, the latent space naturally represents reachability.
- Hybrid RL: The structured $Q$ function embeds a forward model within a model-free agent. This architecture provides the planning advantages of model-based RL while maintaining the stability of model-free methods.
- Generalization: Conditioning the policy on goal images allows the robot to learn the fundamental primitive of moving between any two reachable states, rather than mastering a single specific task.
Key Results
The experimental results demonstrated that the "Structured Q" architecture significantly outperforms standard "Unstructured" and "Shared Encoding" baselines across all tested environments. Notably, the method successfully scaled to the high-dimensional Jaco arm task, reaching goals it had never specifically encountered during training.
Analysis of the learned value functions showed they accurately reflected the temporal distance to goals. In the U-maze task, the agent correctly identified that points on opposite sides of a wall were "far" in terms of reachability, even if they were visually similar.
Limitations and Future Work
Despite its success, the method faces several challenges. Agents often exhibited "jitter" upon reaching a goal, likely due to visual aliasing where a single image lacks necessary velocity information. Additionally, while the representation is robust, the agents still require better intrinsic motivation to explore distant states in complex environments like the U-maze. Finally, the current model assumes environment reversibility; future research will explore non-symmetric distance measures for tasks that are inherently one-way, such as dropping or breaking objects.
Summary updated