Skip to main content
QUICK REVIEW

[Paper Review] Hyperparameter Selection for Imitation Learning

Léonard Hussenot, Marcin Andrychowicz|arXiv (Cornell University)|May 25, 2021
Human Pose and Action RecognitionComputer Science7 citations
TL;DR

This paper addresses the critical gap in imitation learning (IL) where hyperparameters (HPs) are typically tuned using the true environment reward—something unavailable in real IL settings. The authors propose and empirically evaluate proxy metrics like action MSE and state distribution divergence to guide HP selection without access to the true reward, demonstrating that these proxies enable effective HP tuning and transfer across environments, especially for simpler algorithms like Behavioral Cloning.

ABSTRACT

We address the issue of tuning hyperparameters (HPs) for imitation learning algorithms in the context of continuous-control, when the underlying reward function of the demonstrating expert cannot be observed at any time. The vast literature in imitation learning mostly considers this reward function to be available for HP selection, but this is not a realistic setting. Indeed, would this reward function be available, it could then directly be used for policy training and imitation would not be necessary. To tackle this mostly ignored problem, we propose a number of possible proxies to the external reward. We evaluate them in an extensive empirical study (more than 10'000 agents across 9 environments) and make practical recommendations for selecting HPs. Our results show that while imitation learning algorithms are sensitive to HP choices, it is often possible to select good enough HPs through a proxy to the reward function.

Motivation & Objective

  • To address the fundamental problem of hyperparameter selection in imitation learning when the true environment reward is unknown and inaccessible.
  • To evaluate the effectiveness of proxy metrics—such as action MSE and state distribution divergence—as alternatives to the true reward for HP tuning.
  • To investigate the transferability of hyperparameters across different environments and tasks, especially when the reward function is not available.
  • To provide practical recommendations for tuning IL algorithms in realistic settings where expert demonstrations are available but reward signals are not.
  • To establish a new evaluation protocol for IL that aligns with real-world deployment constraints, avoiding reliance on the true reward for HP selection.

Proposed method

  • Propose and evaluate multiple proxy metrics for HP selection, including action mean squared error (MSE) between agent and expert actions on expert states, and state distribution divergence between agent and expert trajectories.
  • Use offline validation sets to compute proxy metrics, enabling HP tuning without environment interaction, particularly for Behavioral Cloning (BC).
  • Perform large-scale hyperparameter sweeps across 9 continuous-control environments (from OpenAI Gym and Adroit), training over 10,000 agents to assess HP sensitivity and transferability.
  • Investigate HP transfer from environments with accessible rewards to those without, comparing performance across algorithm families (BC, AIL, PWIL).
  • Use early stopping based on proxy metrics to improve generalization and avoid overfitting during HP tuning.
  • Compare proxy-based HP selection against the standard practice of using the true environment return, highlighting the performance gap when the true reward is unavailable.

Experimental results

Research questions

  • RQ1Can proxy metrics such as action MSE or state distribution divergence effectively replace the true environment reward for hyperparameter selection in imitation learning?
  • RQ2How does the performance of IL algorithms vary when hyperparameters are selected using proxies versus the true reward, especially in the absence of the latter?
  • RQ3To what extent can hyperparameters learned in one environment be transferred to another, particularly when the reward function is not available in the target environment?
  • RQ4How does the choice of proxy metric affect the generalization and robustness of the final policy across different tasks and algorithm types?
  • RQ5Which IL algorithms exhibit better hyperparameter transferability and sensitivity, and what factors (e.g., task difficulty, algorithm complexity) influence this?

Key findings

  • IL algorithms are highly sensitive to hyperparameter choices, and performance degrades significantly when HPs are tuned using the true reward in settings where it is not available.
  • Action MSE and state distribution divergence serve as effective proxy metrics for hyperparameter selection, enabling performance close to that achieved with the true reward.
  • Hyperparameter transfer is more effective within the same environment suite (e.g., from one Gym environment to another) than across different suites (e.g., Gym to Adroit), though transfer still succeeds in many cases.
  • Behavioral Cloning (BC) exhibits superior hyperparameter transferability compared to more complex algorithms like AIL and PWIL, likely due to its simpler supervised learning objective.
  • The two hardest tasks—Humanoid and relocate—show the worst hyperparameter transfer performance, indicating that task difficulty negatively impacts transferability.
  • Using validation set metrics like action MSE during HP tuning helps prevent overfitting and improves generalization, especially in high-dimensional control settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.