[Paper Review] Safe Imitation Learning via Fast Bayesian Reward Inference from Preferences
The paper introduces Bayesian Reward Extrapolation (Bayesian REX), which uses demonstrated trajectory preferences to efficiently infer reward functions and provide high-confidence policy evaluation for imitation learning on high-dimensional tasks like Atari. It enables fast posterior sampling and competitive imitation performance without access to ground-truth rewards.
Bayesian reward learning from demonstrations enables rigorous safety and uncertainty analysis when performing imitation learning. However, Bayesian reward learning methods are typically computationally intractable for complex control problems. We propose Bayesian Reward Extrapolation (Bayesian REX), a highly efficient Bayesian reward learning algorithm that scales to high-dimensional imitation learning problems by pre-training a low-dimensional feature encoding via self-supervised tasks and then leveraging preferences over demonstrations to perform fast Bayesian inference. Bayesian REX can learn to play Atari games from demonstrations, without access to the game score and can generate 100,000 samples from the posterior over reward functions in only 5 minutes on a personal laptop. Bayesian REX also results in imitation learning performance that is competitive with or better than state-of-the-art methods that only learn point estimates of the reward function. Finally, Bayesian REX enables efficient high-confidence policy evaluation without having access to samples of the reward function. These high-confidence performance bounds can be used to rank the performance and risk of a variety of evaluation policies and provide a way to detect reward hacking behaviors.
Motivation & Objective
- Motivate safe imitation learning by enabling uncertainty quantification over rewards learned from demonstrations.
- Develop a scalable Bayesian reward inference method that leverages trajectory preferences to avoid inner-loop MDP solves.
- Enable high-confidence policy evaluation in imitation learning without access to reward samples or an MDP model.
- Demonstrate applicability to high-dimensional visual domains (Atari) and show competitive performance versus point-estimate methods.
Proposed method
- Formulate reward inference from demonstration preferences using a pairwise ranking likelihood (Bradley–Terry model).
- Represent the reward as R(s)=w^T φ(s) with φ(s) learned via self-supervised pre-training of a low-dimensional state embedding.
- Pre-train φ(s) with self-supervised tasks (inverse dynamics, forward dynamics, temporal distance, variational autoencoder) and T-REX ranking loss; freeze φ and only learn the last layer weights w.
- Use MCMC to sample from the posterior P(w|D,𝒫) with P(D,𝒫|R_θ) defined by the pairwise ranking likelihood, avoiding full MDP solves.
- Cache trajectory embeddings Φ_τ to compute P(D,𝒫|R_θ) efficiently as w^TΦ_τ, enabling scalable posterior sampling (e.g., 100,000 samples in ~5 minutes on a laptop).
- Leverage the linear reward structure to compute policy values across the posterior with a single matrix-vector product WΦ_{cpi_{eval}} to obtain high-confidence bounds (VaR) on policy performance.
Experimental results
Research questions
- RQ1Can demonstration preferences enable fast Bayesian reward inference in high-dimensional visual control?
- RQ2Can Bayesian reward inference from preferences provide useful high-confidence policy evaluation bounds without an MDP solver or reward samples?
- RQ3How does Bayesian REX compare to existing IRL methods and rank-based approaches on Atari-scale tasks?
- RQ4What role do self-supervised pre-training and feature representations play in scalable Bayesian imitation learning?
Key findings
- Bayesian REX can generate about 100,000 posterior samples for Atari tasks in 5 minutes on a laptop.
- Imitation learning with Bayesian REX achieves competitive or better performance than state-of-the-art methods that output only point estimates of the reward.
- Bayesian REX enables efficient high-confidence policy evaluation, producing lower bounds on policy value under reward uncertainty without reward samples.
- On Atari games, Bayesian REX with preferences yields better-than-demonstrator performance on average across multiple games.
- The method can help detect reward hacking by providing uncertainty-based performance bounds and risk rankings of evaluation policies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.