Towards Generalisable Imitation Learning Through Conditioned Transition Estimation and Online Behaviour Alignment
Nathan Gavenski, Matteo Leonetti, Odinaldo Rodrigues
TL;DR
The paper tackles ILfO limitations by introducing UfO, a fully unsupervised two-stage framework that learns from state transitions alone. In the reconstruction stage, a policy and a conditioned generator jointly approximate the environment dynamics to align agent transitions with teacher transitions without action labels; this is followed by an online adversarial refinement stage that uses a recurrent discriminator to further align the agent with the teacher through safe online interaction. UfO demonstrates state-of-the-art performance and the lowest trajectory variance across five MuJoCo environments, including cases where the agent surpasses the teacher, highlighting strong generalisation and robustness to unseen states. By reframing imitation through transition-conditioned learning rather than action inference, UfO mitigates behaviour-seeking biases and reduces dependency on action-level supervision, offering a general framework for observational learning with potential implications for offline RL and sim-to-real transfer.
Abstract
State-of-the-art imitation learning from observation methods (ILfO) have recently made significant progress, but they still have some limitations: they need action-based supervised optimisation, assume that states have a single optimal action, and tend to apply teacher actions without full consideration of the actual environment state. While the truth may be out there in observed trajectories, existing methods struggle to extract it without supervision. In this work, we propose Unsupervised Imitation Learning from Observation (UfO) that addresses all of these limitations. UfO learns a policy through a two-stage process, in which the agent first obtains an approximation of the teacher's true actions in the observed state transitions, and then refines the learned policy further by adjusting agent trajectories to closely align them with the teacher's. Experiments we conducted in five widely used environments show that UfO not only outperforms the teacher and all other ILfO methods but also displays the smallest standard deviation. This reduction in standard deviation indicates better generalisation in unseen scenarios.
