Deconfounding Imitation Learning with Variational Inference
Risto Vuorio, Pim de Haan, Johann Brehmer, Hanno Ackermann, Daniel Dijkman, Taco Cohen
TL;DR
This paper addresses the failure of naive imitation learning when the expert observes latent information $\theta$ not available to the imitator, causing causal confounding. It introduces a variational inference framework that learns an inference model $q_\phi(\hat{\theta}|\tau)$ and a latent-conditional policy $\pi_\eta(a|s,\hat{\theta})$ to realize the interventional policy $\pi_{int}$, with theoretical identifiability under strong assumptions and a practical online-offline learning strategy using exploration data. The approach circumvents the need for expert queries or IRL by jointly training a dynamics model $p_\psi(s'|s,a,\hat{\theta})$ and leveraging ELBO-based objectives to recover the latent and align the imitator with the expert under the latent. Empirically, the method deconfounds imitation in a multi-armed bandit and several confounded MDPs, outperforming naive BC and competitive with or surpassing IRL-based baselines in key settings, thereby offering a scalable path to high-fidelity imitation when full observability is unavailable.
Abstract
Standard imitation learning can fail when the expert demonstrators have different sensory inputs than the imitating agent. This is because partial observability gives rise to hidden confounders in the causal graph. In previous work, to work around the confounding problem, policies have been trained using query access to the expert's policy or inverse reinforcement learning (IRL). However, both approaches have drawbacks as the expert's policy may not be available and IRL can be unstable in practice. Instead, we propose to train a variational inference model to infer the expert's latent information and use it to train a latent-conditional policy. We prove that using this method, under strong assumptions, the identification of the correct imitation learning policy is theoretically possible from expert demonstrations alone. In practice, we focus on a setting with less strong assumptions where we use exploration data for learning the inference model. We show in theory and practice that this algorithm converges to the correct interventional policy, solves the confounding issue, and can under certain assumptions achieve an asymptotically optimal imitation performance.
