Online Adaptation for Enhancing Imitation Learning Policies
Federico Malato, Ville Hautamaki
TL;DR
This work addresses the fragility of imitation learning when expert datasets fail to fully capture task dynamics. It introduces Bayesian online adaptation (BOA), which combines an IL policy's action distribution with expert-derived actions via a Dirichlet-Multinomial framework and a retrieval-based expert search. By updating action beliefs in real time using counts from retrieved expert experiences and sampling from the posterior, BOA enhances robustness and can rescue policies that would otherwise fail. Across ten MiniWorld tasks, BOA improves numerical rewards and provides perceptual benefits, while maintaining interpretable action selection dynamics and real-time inference via efficient search.
Abstract
Imitation learning enables autonomous agents to learn from human examples, without the need for a reward signal. Still, if the provided dataset does not encapsulate the task correctly, or when the task is too complex to be modeled, such agents fail to reproduce the expert policy. We propose to recover from these failures through online adaptation. Our approach combines the action proposal coming from a pre-trained policy with relevant experience recorded by an expert. The combination results in an adapted action that closely follows the expert. Our experiments show that an adapted agent performs better than its pure imitation learning counterpart. Notably, adapted agents can achieve reasonable performance even when the base, non-adapted policy catastrophically fails.
