Introduction
Robot imitation learning typically requires expensive first-person view (FPV) demonstrations. However, learning from third-person view (TPV) videos—similar to how humans learn by watching others—is much more scalable. The primary challenge in Third-Person Imitation Learning (TPIL) is the extreme visual gap between FPV and TPV. In mobile or robotic arm tasks, FPV is dominated by egomotion, where the background shifts wildly while the agent is invisible. Conversely, TPV features a static background with a visible agent. This paper introduces a self-supervised dual auto-encoder model that explicitly disentangles "state" and "viewpoint" representations to bridge this gap, enabling robots to learn control policies from third-person observations alone.
Methodology
The proposed architecture utilizes a Dual Auto-Encoder (AE) to process FPV and TPV inputs separately. The core innovation is the structured latent space, which forces the network to separate what is happening (state) from where the camera is (viewpoint).
The latent representation is split into two distinct vectors: a state representation ($h$) and a viewpoint representation ($v$). The model is trained using three primary losses:
- Time-Contrastive Loss: Enforces temporal consistency by pulling state representations ($h$) of temporally adjacent frames closer together while pushing distant frames apart.
- Representation Permutation Loss: This novel loss ensures true disentanglement by swapping the viewpoint vector ($v$) between different cameras or the state vector ($h$) across different timesteps. The decoder must then reconstruct the image corresponding to this new combination, forcing $h$ to encode only task state and $v$ to encode only camera angle.
- Reconstruction Loss: A standard pixel-wise loss ensuring latent vectors capture sufficient information to rebuild the original images.
During policy learning, the viewpoint vector $v$ is discarded, and the viewpoint-agnostic state vector $h$ is used to train the agent via Proximal Policy Optimization (PPO).
Experimental Setup
The method was evaluated on two simulated environments with synchronized FPV-TPV video pairs:
- Minecraft (MineRL): A navigation task where the agent walks to a diamond block. The dataset includes 8 trajectories with 1 FPV and 8 randomized TPV viewpoints.
- Panda Environment (PyBullet): A continuous-action manipulation task where a robotic arm picks up an object. The dataset contains 30 trajectories with 1 FPV (end-effector camera) and 9 TPVs.
Key Results and Discussion
The proposed model achieved significantly lower alignment errors between FPV and TPV sequences compared to the Multi-view Time-Contrastive Network (TCN) baseline. In the Panda environment, alignment error dropped from 0.2861 (baseline) to 0.1550.
Furthermore, the learned representations led to superior imitation learning performance:
- Minecraft: Success rate increased to 52% (vs. 31% for the baseline).
- Panda: Success rate reached 44% (vs. 32% for the baseline).
The results demonstrate that explicit disentanglement via permutation is a highly effective self-supervised signal. It removes the need for labeled viewpoint coordinates or camera calibration. While the current method requires synchronized data and produces somewhat blurry reconstructions, it proves that egomotion is a solvable domain gap, allowing policies to transfer across radically different perspectives with high data efficiency.
Summary updated