Abstract
In this paper, we present a method for learning from video demonstrations by using human feedback to construct a mapping between the standard representation of the agent and the visual representation of the demonstration. In this way, we leverage the advantages of both these representations, i.e., we learn the policy using standard state representations, but are able to specify the expected behavior using video demonstration. We train an autonomous agent using a single video demonstration and use human feedback (using numerical similarity rating) to map the standard representation to the visual representation with a neural network. We show the effectiveness of our method by teaching a hopper agent in the MuJoCo to perform a backflip using a single video demonstration generated in MuJoCo as well as from a real-world YouTube video of a person performing a backflip. Additionally, we show that our method can transfer to new tasks, such as hopping, with very little human feedback.
Introduction
In Reinforcement Learning (RL), the reward function serves as the primary signal for agent behavior. However, designing these functions for complex movements, such as a backflip, is notoriously difficult and time-consuming. Traditional alternatives like imitation learning often require internal joint angle data from experts, while learning directly from video typically necessitates multiple camera angles to resolve 3D motion. This paper introduces a method to bridge these gaps by using a single video demonstration and a small amount of human feedback to guide an autonomous agent.
Methods
The core of the system is a Similarity Predictor network that acts as a bridge between the agent's internal state-action trajectories and the visual demonstration.
The Workflow
- Human-in-the-loop: A human watches a clip of the agent and a clip of the demonstration video, providing a similarity rating from 1 (not similar) to 5 (very similar).
- Reward Generation: The Similarity Predictor learns to mimic these human ratings. This network processes visual clips via a pre-trained VGGNet and internal trajectories via a multi-layer perceptron. To handle initial data skew (where most ratings are low), the authors utilized an "Additional Layer" architecture and equal sampling of high-rating examples.
- Optimization: The agent uses Trust Region Policy Optimization (TRPO) to maximize the predicted similarity rating, which serves as the reward signal.
- Asynchronous Training: The agent practices, the human provides feedback on new attempts, and the similarity predictor is refined simultaneously.
Results and Key Insights
The researchers evaluated their method using the MuJoCo "Hopper" environment, testing it against both synthetic demonstrations and real-world YouTube footage.
- Performance: With 350 human feedback samples, the proposed method achieved 2 backflips per episode, doubling the performance of state-of-the-art preference-based methods using the same amount of feedback.
- Cross-Kinematic Learning: The system successfully taught the one-legged Hopper robot to backflip based on a YouTube video of a human. This suggests the similarity predictor learns high-level behavioral concepts rather than simple pixel-matching.
- Transfer Learning: Once the relationship between the robot's joints and the visual world is established, the model can adapt to new tasks (like hopping) with significantly less data—only 55 human samples were needed to nearly double the reward compared to training from scratch.
Limitations and Future Work
While effective, the authors identify several areas for improvement. Currently, feedback is provided for entire 0.3-second clips; future iterations could allow users to point out specific moments of error. Additionally, the researchers aim to test if this single-video approach scales to more complex, multi-step robotic manipulations beyond backflips and hopping.
Summary updated