Introduction
Reinforcement Learning (RL) typically requires a carefully designed reward function to guide an agent toward a goal. While a simple binary reward (e.g., "1 for success, 0 for failure") is easy to define, it is often too sparse for an agent to learn anything useful in a reasonable timeframe. To overcome this, researchers usually "shape" the reward, such as rewarding the agent for getting physically closer to a goal.
However, manual reward shaping is a major bottleneck. It requires expert intuition and often relies on ground-truth information—like exact coordinates—that isn't available when a robot is learning directly from raw camera observations. Furthermore, Euclidean distance is a poor proxy for difficulty; a goal might be physically close but require a complex series of maneuvers to reach.
To address this, researchers introduce Dynamical Distance Learning (DDL), a method that automatically learns a "distance" between states based on the expected number of time steps to travel between them. By using these learned distances as reward signals, robots can learn complex skills directly from raw images using minimal human supervision.
Methodology: Distance by Dynamics, Not Geometry
The core idea of DDL is to define distance not by physical geometry, but by dynamics: how many time steps does it take the current policy to get from state A to state B?
- Distance Evaluation: Unlike prior methods that use complex Temporal Difference (TD) learning to estimate distances, DDL uses simple supervised regression. The agent rolls out its current policy, records the trajectories, and trains a neural network to predict the number of steps between any two states visited in the same episode. This approach proves much more stable and effective for high-dimensional inputs like images.
- Policy Improvement: The agent uses the negative of this learned distance as a reward. Crucially, instead of just greedily minimizing the distance to the goal, DDL minimizes the cumulative distance along the entire path. This encourages safe behavior, preventing the agent from taking risky shortcuts that might lead to dead ends.
- Goal Proposals:
- Semi-Supervised (DDLfP): A human is shown a few images of states the robot reached and simply clicks the one that looks closest to the desired task.
- Unsupervised (DDLUS): The agent autonomously sets its own goals by picking the states that are currently "dynamically furthest" from its starting point, pushing the frontier of its known environment.
Key Insights and Results
The authors evaluated DDL on several challenging benchmarks, including MuJoCo locomotion tasks (Ant, HalfCheetah, Hopper), a 2D S-Maze, and a custom 9-DoF robotic hand task (DClaw) requiring the rotation of a valve.
A key insight from these experiments is that time acts as a universal metric. In a dynamical system, DDL captures the "reachability" of states, automatically accounting for obstacles and physical constraints that Euclidean metrics ignore. Furthermore, in the unsupervised setting, DDL naturally drives exploration. By trying to reach the furthest states, the agent discovers complex locomotion gaits without ever being explicitly told to move forward.
Real-World Success: DDL learned to rotate a physical valve 180 degrees using raw image observations in just 8 hours. Remarkably, it achieved this using only 10 human preference labels, performing as well as agents trained with hand-engineered, perfect reward functions.
Image-Based Robustness: In simulations, DDL successfully learned tasks from 3072-dimensional image inputs where prior distance-learning methods failed completely.
Limitations and Future Directions
While highly effective, DDL currently requires on-policy data (data collected by the current version of the robot's policy) for its distance estimator, which limits sample efficiency. Future work could explore using off-policy data to accelerate learning. Additionally, the theoretical proof that DDL finds the shortest path relies on deterministic environments; its performance in highly stochastic settings remains an open question.
Ultimately, while DDL excels at learning single skills, it paves the way for a future where a single dynamical distance model could be pre-trained on massive amounts of unlabeled robot data and subsequently fine-tuned for diverse, complex tasks.
Summary updated