Imitation Learning by Estimating Expertise of Demonstrators

Mark Beliaev, Andy Shih, Stefano Ermon, Dorsa Sadigh, Ramtin Pedarsani

Introduction

Standard Imitation Learning (IL) algorithms, like Behavioral Cloning (BC), operate on a fragile assumption: that all provided demonstrations are optimal. As datasets scale through crowdsourcing—such as in autonomous driving or robotics—this assumption quickly breaks down. Real-world data is a mixed bag of trajectories from users with widely varying skill levels. If a novice makes a mistake, standard BC dutifully learns to imitate that mistake.

While some methods attempt to filter data using reward signals or rankings, these approaches require extra supervision that is not always available. This paper asks a fundamental question: Can we improve imitation learning simply by knowing which demonstrator provided which trajectory, without knowing their actual skill level?

The ILEED Framework

The authors introduce ILEED (Imitation Learning by Estimating Expertise of Demonstrators), a novel framework that jointly learns an optimal policy and estimates the state-dependent expertise of demonstrators from suboptimal, unlabeled datasets. By treating demonstrator identity as a latent variable, the model learns to filter out noise and "cherry-pick" expert behavior.

The core components of ILEED include:

  • State-Dependent Expertise ($\rho$): Instead of assigning a single "skill score" per person, ILEED computes expertise as the sigmoid of the inner product between state embeddings and demonstrator embeddings. This captures the reality that a demonstrator might be an expert at one sub-task (e.g., "washing dishes") but a novice at another (e.g., "vacuuming").
  • Suboptimal Policy Modeling: For discrete actions, the model interpolates between a learned optimal policy and a uniform random policy based on the estimated expertise $\rho$. For continuous actions (using Gaussian Mixture Models), expertise scales the variance—high expertise yields precise actions, while low expertise yields noisy actions.
  • Joint Optimization: The model uses Maximum Likelihood Estimation to jointly optimize policy parameters, state embeddings, and demonstrator embeddings.
  • DeepMDP Auxiliary Loss: An optional latent transition loss encourages similar states to have similar embeddings, helping the model understand state difficulty and dynamics.

Key Insights

  • Identity as a Proxy for Quality: You do not need to know who the expert is. By simply grouping trajectories by demonstrator ID, the model identifies which groups consistently choose high-likelihood actions and which are noisy.
  • Generalizing Behavioral Cloning: ILEED is theoretically proven to be a generalization of BC. If you assume everyone is a perfect expert ($\rho=1$), ILEED collapses back into standard Behavioral Cloning.
  • Recovering Ground-Truth Rankings: In experiments on chess endgames, the model’s internal expertise estimates perfectly matched the ground-truth Elo ratings of the players, despite the model having no knowledge of chess rules or game outcomes.

Experimental Validation

The researchers evaluated ILEED across three distinct domains: MiniGrid (discrete grid-world with simulated noise), Robomimic (real-robot continuous control with human demonstrations), and Lichess (a dataset of ~10 million human chess games).

  • Broad Superiority: ILEED outperformed competing methods (including BC, GAIL, and IRIS) in 21 out of 23 experimental settings.
  • Significant Performance Boosts: On average, ILEED showed a 7% improvement in final reward, with gains up to 60% in highly noisy environments.
  • Outperforming the "Best": In multi-skill MiniGrid tasks, ILEED achieved a reward of 0.70 in the noisiest setting, while the "best" individual demonstrator in that same dataset only achieved 0.44. The model successfully synthesized a policy better than any single source.
  • Robotics Success: On the Robomimic human dataset, ILEED consistently beat BC-RNN (a strong baseline), effectively handling the nuances of human suboptimality in continuous action spaces.

Limitations & Future Directions

ILEED's success relies heavily on recovering effective state embeddings. If demonstrators fail to explore enough of the state space, the model struggles to estimate expertise accurately in those regions.

Furthermore, the current framework assumes suboptimality manifests as random noise (high variance). In reality, humans often make systematic errors (e.g., consistently overshooting a target). Future work could explore more complex demonstrator models that account for these biased failure modes, as well as modeling the uncertainty of the expertise estimates themselves.

Summary updated

Abstract

Many existing imitation learning datasets are collected from multiple demonstrators, each with different expertise at different parts of the environment. Yet, standard imitation learning algorithms typically treat all demonstrators as homogeneous, regardless of their expertise, absorbing the weaknesses of any suboptimal demonstrators. In this work, we show that unsupervised learning over demonstrator expertise can lead to a consistent boost in the performance of imitation learning algorithms. We develop and optimize a joint model over a learned policy and expertise levels of the demonstrators. This enables our model to learn from the optimal behavior and filter out the suboptimal behavior of each demonstrator. Our model learns a single policy that can outperform even the best demonstrator, and can be used to estimate the expertise of any demonstrator at any state. We illustrate our findings on real-robotic continuous control tasks from Robomimic and discrete environments such as MiniGrid and chess, out-performing competing methods in 21 out of 23 settings, with an average of 7% and up to 60% improvement in terms of the final reward.
BibTeX
@inproceedings{beliaev2022imitation,
  author = {Mark Beliaev and Andy Shih and Stefano Ermon and Dorsa Sadigh and Ramtin Pedarsani},
  title = {{Imitation Learning by Estimating Expertise of Demonstrators}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
}
Figure