TL;DR
This paper introduces a method for unsupervised third-person imitation learning, allowing an agent to learn a task by watching a teacher perform it from a different viewpoint. By utilizing "domain confusion" techniques, the authors force the agent to learn features that are invariant to perspective, effectively bridging the visual gap between how a teacher looks and how a student acts.
What Problem Does This Paper Address?
In Reinforcement Learning (RL), defining a reward function is notoriously difficult. Imitation Learning (IL) solves this by letting an agent learn from expert demonstrations. However, most IL methods require first-person demonstrations, where the training data is recorded exactly from the agent's perspective (using the same sensors and viewpoint).
Humans don't learn this way. We can watch another person (third-person) and translate those movements to our own bodies (first-person). For robots, this is known as the "correspondence problem." If a robot watches a human video to learn to pick up a cup, the camera angle, the background, and the "arm" look completely different. This paper aims to solve this discrepancy without being told explicitly how the two viewpoints relate.
Methods
The authors build upon Generative Adversarial Imitation Learning (GAIL), which treats imitation as a game between a policy (the student) and a discriminator (the judge).
To handle the third-person perspective, they introduce two clever modifications to the architecture:
- Domain Confusion: They add a second discriminator ($D_D$) whose only job is to identify which "domain" (viewpoint) a feature came from. They use a Gradient Reversal Layer during training. This forces the feature extractor to strip away any information that identifies the viewpoint, leaving only "domain-agnostic" features that represent the core of the task.
- Temporal Context (Velocity): Recognizing that a single static image can't distinguish an expert from a novice (e.g., both might be at the same spot, but one is moving toward the goal and the other is lost), the model takes two frames as input ($t$ and $t+n$). This allows the discriminator to account for the velocity and intent of the agent.
The final objective is a minimax game: the policy tries to fool the reward discriminator, while the feature extractor tries to confuse the domain discriminator.
Datasets
The researchers evaluated their approach using the MuJoCo physics simulator across three customized domains:
- Pointmass: An agent moves to a target. The expert and novice views differ by camera angle (~40°) and target color.
- Reacher: A two-joint arm reaches for a point. Domains differ by camera angle, arm length, and target color. This was particularly challenging as the background changed from gray to black.
- Inverted Pendulum: Balancing a pole. Here, the camera angle remained the same, but the color of the pendulum changed.
Key Insights and Ideas
- Invariance is Key: The core insight is that for imitation to work across perspectives, the agent must learn to ignore the "where" (viewpoint) and focus on the "what" (the task state).
- Adversarial Training as a Bridge: By setting up a competition where the network is punished for knowing which camera it's looking through, the system naturally finds the commonalities between different perspectives.
- The Necessity of Motion: The paper demonstrates that "velocity" (multi-frame input) is not just a bonus—it is essential for the discriminator to provide a meaningful reward signal in complex environments.
Key Results
- Successful Transfer: The proposed algorithm successfully recovered reasonable policies for all three tasks using only third-person, pixel-level demonstrations.
- Ablation Success: The authors showed that without the domain confusion loss, the agent fails to learn because the discriminator simply learns to distinguish the expert based on the camera angle rather than the behavior.
- Robustness to Angle: In the Pointmass environment, the agent could still learn effectively even as the camera angle difference increased, though performance followed a linear decay as the perspectives became too disparate.
- Baseline Comparison: The method significantly outperformed "naive" transfer (taking a policy trained on one view and dropping it into another), which usually resulted in zero success.
Limitations and Future Work
- Hyperparameter Sensitivity: The weight of the domain confusion loss ($\lambda$) is a sensitive hyperparameter. If it's too high, it destroys all information; if it's too low, the features remain domain-specific.
- Simple Environments: While impressive, the experiments were conducted in simulated environments with relatively clean backgrounds. Real-world visual clutter remains a significant hurdle.
- Extreme Viewpoints: The authors noted that if the camera angles are too different (e.g., top-down vs. side-view), the domain-invariant representation might lose too much information to be useful.
- Future Direction: The authors suggest jointly training policy and cost features at the pixel level to allow for better reuse of image features across different robotic platforms.
Summary updated