Introduction
Imitation learning typically requires access to expert actions—the specific control signals used to achieve a goal. However, in many real-world scenarios, we only have access to observations of the expert's behavior, such as a video of a human performing a task. This setting, known as Imitation from Observation (IfO), is challenging because the agent must infer the underlying "how" from the visible "what."
Traditional approaches like Behavioral Cloning from Observation (BCO) attempt to learn an inverse dynamics model through extensive environment interaction. This process is often slow and computationally expensive. Imitating Latent Policies from Observation (ILPO) addresses this by first discovering the structure of the policy offline and only then mapping it to real-world controls.
Methodology
The ILPO framework operates in two distinct phases: offline latent policy learning and online action remapping.
Step 1: Learning Latent Policies (Offline)
In the first phase, the agent analyzes expert demonstrations—sequences of states—without action labels. It assumes the existence of a discrete set of "latent actions" ($z$) that drive transitions. Two components are trained simultaneously:
- Forward Dynamics Model ($G$): Predicts the next state given a current state and a latent action. It employs a "minimum loss" ($L_{min}$) function that encourages the model to discover distinct modes of movement (e.g., moving left vs. jumping).
- Latent Policy ($\pi$): Predicts the latent action the expert likely performed in a given state.
Step 2: Action Remapping (Online)
After learning the policy structure, the agent interacts briefly with the environment. By taking a real action ($a$) and observing the resulting state change, it identifies the latent action ($z$) that produces the most similar effect. This allows the agent to learn an Action Remapping Network, bridging the gap between its internal latent representations and actual environment controls.
Experimental Evaluation
The researchers evaluated ILPO across several benchmarks, including classic control tasks (Cartpole, Acrobot, and Mountain Car) and a complex visual domain, CoinRun. These environments test the agent's ability to handle both simple physics and procedurally generated visual inputs.
Key Results
ILPO demonstrates significant improvements in sample efficiency and final performance compared to previous methods.
- Rapid Convergence: In Cartpole and Acrobot, ILPO reached expert-level performance in fewer than 100 environment interaction steps.
- Superior Performance: ILPO significantly outperformed BCO in the Mountain Car and CoinRun environments. Notably, in CoinRun, ILPO successfully learned from raw pixels where BCO struggled to converge.
- Robustness: The method proved robust to the choice of the number of latent actions ($|Z|$), even when it did not perfectly match the true number of available actions ($|A|$).
Discussion and Future Work
The "joystick analogy" captures the essence of ILPO: just as a person can learn the strategy of a game by watching a friend play before ever touching the controller, ILPO learns the policy first. This separation of policy learning from control mapping is the key to its efficiency.
While highly effective, current limitations include the assumption of discrete action spaces and deterministic transitions. Future research may explore extending ILPO to continuous control tasks and "cross-embodiment" scenarios, where an agent learns from an expert with a different physical structure.
Summary updated