Minimax Optimal Online Imitation Learning via Replay Estimation

Gokul Swamy, Nived Rajaraman, Matthew Peng, Sanjiban Choudhury, J. Andrew Bagnell +3 more
5/30/2022
cs.LGstat.ML

Official code: gkswamy98/replay_est (3 stars, Python, PyTorch, last commit 2023-01-14).

Abstract

Online imitation learning is the problem of how best to mimic expert demonstrations, given access to the environment or an accurate simulator. Prior work has shown that in the infinite sample regime, exact moment matching achieves value equivalence to the expert policy.

Show full abstract

However, in the finite sample regime, even if one has no optimization error, empirical variance can lead to a performance gap that scales with $H^2 / N$ for behavioral cloning and $H / \sqrt{N}$ for online moment matching, where $H$ is the horizon and $N$ is the size of the expert dataset. We introduce the technique of replay estimation to reduce this empirical variance: by repeatedly executing cached expert actions in a stochastic simulator, we compute a smoother expert visitation distribution estimate to match. In the presence of general function approximation, we prove a meta theorem reducing the performance gap of our approach to the parameter estimation error for offline classification (i.e. learning the expert policy). In the tabular setting or with linear function approximation, our meta theorem shows that the performance gap incurred by our approach achieves the optimal $\widetilde{O} \left( \min({H^{3/2}} / {N}, {H} / {\sqrt{N}} \right)$ dependency, under significantly weaker assumptions compared to prior work. We implement multiple instantiations of our approach on several continuous control tasks and find that we are able to significantly improve policy performance across a variety of dataset sizes.

View on arXivView PDF

Code Implementations(1)

PyTorch

Contains implementation of the replay estimation algorithm from "Minimax Optimal Online Imitation Learning via Replay Estimation."

31PythonMay 25, 20223 years ago
deep-learningganimitation-learningpytorchreinforcement-learning

Similar Papers

Cite this paper

@article{swamy2022minimax,
  title  = {Minimax Optimal Online Imitation Learning via Replay Estimation},
  author = {Gokul Swamy and Nived Rajaraman and Matthew Peng and Sanjiban Choudhury and J. Andrew Bagnell and Zhiwei Steven Wu and Jiantao Jiao and Kannan Ramchandran},
  year   = {2022},
  eprint = {2205.15397},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.15397}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.15397.svg)](https://codeofpaper.com/paper/2205.15397)

Discussion