Consistent Zero-Shot Imitation with Contrastive Goal Inference
Kathryn Wantlin, Chongyi Zheng, Benjamin Eysenbach
TL;DR
Zero-shot imitation is pursued by pretraining interactive agents with self-supervised exploration so they can mimic unseen demonstrations at test time without any rewards or demonstrations. The core approach CIRL couples maximum-entropy inverse reinforcement learning with contrastive RL by inferring a latent goal $g$ under which trajectories maximize $\sum_t r_g(s_t,a_t)$, while the agent learns a goal-conditioned policy; goal inference uses a variational posterior $q_\xi(g|\tau)$ and a forward KL objective, with the posterior $p^\star(g|\tau) \propto p(g) p^\star(\tau|g)$ and the partition function $Z_g$ playing a key role. The method includes automatic goal sampling via GoalKDE and a mean-field variant of goal inference, and a theoretical consistency proof showing CIRL recovers the true goal distribution. Empirically, CIRL outperforms zero-shot baselines on URLB and standard GCRL benchmarks, demonstrating effective self-supervised pretraining for rapid adaptation to new tasks.
Abstract
In the same way that generative models today conduct most of their training in a self-supervised fashion, how can agentic models conduct their training in a self-supervised fashion, interactively exploring, learning, and preparing to quickly adapt to new tasks? A prerequisite for embodied agents deployed in real world interactions ought to be training with interaction, yet today's most successful AI models (e.g., VLMs, LLMs) are trained without an explicit notion of action. The problem of pure exploration (which assumes no data as input) is well studied in the reinforcement learning literature and provides agents with a wide array of experiences, yet it fails to prepare them for rapid adaptation to new tasks. Today's language and vision models are trained on data provided by humans, which provides a strong inductive bias for the sorts of tasks that the model will have to solve (e.g., modeling chords in a song, phrases in a sonnet, sentences in a medical record). However, when they are prompted to solve a new task, there is a faulty tacit assumption that humans spend most of their time in the most rewarding states. The key contribution of our paper is a method for pre-training interactive agents in a self-supervised fashion, so that they can instantly mimic human demonstrations. Our method treats goals (i.e., observations) as the atomic construct. During training, our method automatically proposes goals and practices reaching them, building off prior work in reinforcement learning exploration. During evaluation, our method solves an (amortized) inverse reinforcement learning problem to explain demonstrations as optimal goal-reaching behavior. Experiments on standard benchmarks (not designed for goal-reaching) show that our approach outperforms prior methods for zero-shot imitation.
