Learning from Demonstration Using MDP Induced Metrics

Francisco S. Melo, Manuel Lopes

Abstract: Learning from Demonstration (LfD) often faces a trade-off between the computational efficiency of supervised learning and the environmental awareness of Inverse Reinforcement Learning (IRL). This paper introduces a kernel-based supervised learning approach that utilizes metrics derived from the underlying Markov Decision Process (MDP). By embedding environmental dynamics into a distance metric, the proposed method achieves high-quality policy generalization at a fraction of the computational cost of IRL.

Introduction

The goal of LfD is to enable an agent to perform a task based on teacher demonstrations. Standard Supervised Learning (SL) treats demonstrations as (state, action) pairs, which is efficient but often fails to generalize because it ignores the transition dynamics of the environment. Conversely, IRL attempts to recover the teacher's reward function, a process that is computationally intensive as it requires solving the MDP repeatedly. This research addresses the gap by injecting structural knowledge of the environment directly into a classifier using MDP-induced metrics.

Methodology

The central innovation is the use of bisimulation-based metrics ($\delta_{dMDP}$) within a kernel-based classifier. In this framework, two states are considered "close" if taking the same actions leads to similar future outcomes, capturing functional similarity rather than mere physical proximity.

Figure 1: An example MDP where states 1 and 2 are functionally similar due to their transition structures.

The policy is modeled as a multinomial distribution over actions using a Bayesian approach. A Dirichlet distribution serves as a prior, and kernel regression extrapolates parameters to unvisited states. The kernel function $k(x, y)$ is defined using the MDP metric, ensuring that the classifier generalizes actions between states that are functionally equivalent according to the environment's transition rules. Additionally, an active learning strategy is employed to sample states where the posterior variance is highest, further improving sample efficiency.

Experimental Evaluation

The approach was tested on two environments:

  1. Randomly Generated MDPs: 50 worlds with varying states and actions to test general metric applicability.
  2. Cluster-World Scenario: A 72-state grid world with eight weakly connected clusters, designed to challenge standard SL methods with its asymmetric structure.

Results

In random worlds, the MDP-induced metric achieved a 73.9% correct classification rate, significantly outperforming simpler metrics like the Zero-one (57.9%) or Transition distance (60.6%).

Figure 2: Comparison of classification accuracy between the proposed MDP-induced metric (Ground Dist.) and Gradient-based IRL (Grad. IRL) as the percentage of sampled states increases.

As shown in Figure 2, the proposed method matches the performance of Gradient-based IRL (GIRL) in the Cluster-World test. While GIRL often struggled with local minima, the kernel-based approach scaled smoothly with demonstration size. Furthermore, the active learning strategy allowed the agent to reach high accuracy with significantly fewer samples compared to random sampling.

Conclusion

By leveraging MDP-induced metrics, this approach provides a computationally efficient alternative to IRL that remains sensitive to environmental dynamics. While the initial computation of the metric can be demanding for large state spaces and currently assumes known dynamics, it offers a powerful framework for robust policy generalization from minimal demonstrations. Future work will explore extensions to continuous state spaces and simultaneous learning of dynamics and policies.

Summary updated

BibTeX
@inproceedings{melo2010learning,
  author = {Francisco S. Melo and Manuel Lopes},
  title = {{Learning from Demonstration Using MDP Induced Metrics}},
  booktitle = {ECML/PKDD},
  year = {2010},
  doi = {10.1007/978-3-642-15883-4\_25},
}
Figure