Zero-shot Imitation Policy via Search in Demonstration Dataset
Federco Malato, Florian Leopold, Andrew Melnik, Ville Hautamaki
TL;DR
This work introduces Zero-shot Imitation Policy (ZIP), a search-based imitation framework that avoids extensive training by indexing a dataset of expert demonstrations in a latent space produced by a pretrained Video Pre-Training model. At test time, ZIP retrieves the most similar past situation using the $L_1$ distance between embeddings and imitates its actions, switching references when latent divergence or time thresholds are reached. Across MineRL BASALT FindCave experiments, ZIP yields strong perceptual evaluations and the highest quantitative success rate among evaluated agents, while requiring significantly less training time than traditional imitation-learning baselines. The results demonstrate effective zero-shot adaptation in discrete-action environments and point to future improvements via scalable latent-space indexing and relevance-aware data ranking.
Abstract
Behavioral cloning uses a dataset of demonstrations to learn a policy. To overcome computationally expensive training procedures and address the policy adaptation problem, we propose to use latent spaces of pre-trained foundation models to index a demonstration dataset, instantly access similar relevant experiences, and copy behavior from these situations. Actions from a selected similar situation can be performed by the agent until representations of the agent's current situation and the selected experience diverge in the latent space. Thus, we formulate our control problem as a dynamic search problem over a dataset of experts' demonstrations. We test our approach on BASALT MineRL-dataset in the latent representation of a Video Pre-Training model. We compare our model to state-of-the-art, Imitation Learning-based Minecraft agents. Our approach can effectively recover meaningful demonstrations and show human-like behavior of an agent in the Minecraft environment in a wide variety of scenarios. Experimental results reveal that performance of our search-based approach clearly wins in terms of accuracy and perceptual evaluation over learning-based models.
