[Paper Review] Deep Bayesian Reward Learning from Preferences
This paper proposes Bayesian Reward Extrapolation (B-REX), a deep Bayesian inverse reinforcement learning method that scales to high-dimensional visual control tasks by using preference labels over demonstrations and successor features to efficiently sample from the posterior over reward functions without solving MDPs. B-REX enables high-confidence performance bounds for imitation policies, demonstrating competitive performance with state-of-the-art point-estimate methods and detecting reward hacking via worst-case risk analysis.
Bayesian inverse reinforcement learning (IRL) methods are ideal for safe imitation learning, as they allow a learning agent to reason about reward uncertainty and the safety of a learned policy. However, Bayesian IRL is computationally intractable for high-dimensional problems because each sample from the posterior requires solving an entire Markov Decision Process (MDP). While there exist non-Bayesian deep IRL methods, these methods typically infer point estimates of reward functions, precluding rigorous safety and uncertainty analysis. We propose Bayesian Reward Extrapolation (B-REX), a highly efficient, preference-based Bayesian reward learning algorithm that scales to high-dimensional, visual control tasks. Our approach uses successor feature representations and preferences over demonstrations to efficiently generate samples from the posterior distribution over the demonstrator's reward function without requiring an MDP solver. Using samples from the posterior, we demonstrate how to calculate high-confidence bounds on policy performance in the imitation learning setting, in which the ground-truth reward function is unknown. We evaluate our proposed approach on the task of learning to play Atari games via imitation learning from pixel inputs, with no access to the game score. We demonstrate that B-REX learns imitation policies that are competitive with a state-of-the-art deep imitation learning method that only learns a point estimate of the reward function. Furthermore, we demonstrate that samples from the posterior generated via B-REX can be used to compute high-confidence performance bounds for a variety of evaluation policies. We show that high-confidence performance bounds are useful for accurately ranking different evaluation policies when the reward function is unknown. We also demonstrate that high-confidence performance bounds may be useful for detecting reward hacking.
Motivation & Objective
- To enable safe and robust imitation learning in high-dimensional visual control tasks by reasoning about reward uncertainty.
- To overcome the computational intractability of traditional Bayesian IRL, which requires repeated MDP solving in the inner loop.
- To develop a deep Bayesian IRL method that scales to complex tasks with raw pixel inputs and preference-based demonstrations.
- To enable high-confidence off-policy evaluation of imitation policies when the ground-truth reward is unknown.
- To detect reward hacking by computing probabilistic worst-case performance bounds using posterior samples.
Proposed method
- B-REX uses pairwise preference labels over demonstrations to train a neural network to predict reward functions, avoiding the need to solve MDPs.
- It employs successor feature representations to model the expected future state visitation, enabling efficient value function generalization.
- The method samples from the posterior distribution over reward functions using a variational inference framework with a likelihood based on pairwise preference rankings.
- Posterior samples are used to compute high-confidence performance bounds, such as the 5th percentile (0.05-VaR) of policy returns across the reward posterior.
- A consumer-grade laptop can generate tens of thousands of posterior samples in minutes, enabling scalable uncertainty quantification.
- The approach leverages deep neural networks for function approximation and is trained end-to-end on raw visual observations from Atari games.
Experimental results
Research questions
- RQ1Can Bayesian inverse reinforcement learning be made computationally tractable for high-dimensional visual control tasks?
- RQ2Can preference-based supervision over demonstrations replace full MDP solving in Bayesian IRL?
- RQ3Can posterior samples from a deep Bayesian IRL method enable high-confidence off-policy evaluation when the true reward is unknown?
- RQ4Can worst-case performance bounds derived from the posterior detect reward hacking in imitation learning?
- RQ5How well does B-REX perform compared to state-of-the-art deep imitation learning methods that use point estimates of the reward function?
Key findings
- B-REX generates tens of thousands of posterior reward samples in minutes on a consumer laptop, enabling scalable Bayesian inference in high-dimensional settings.
- The imitation policies learned via B-REX are competitive with a state-of-the-art deep imitation learning method that uses only a point estimate of the reward function.
- The 0.05-VaR (5th percentile) performance bound computed from B-REX's posterior accurately ranks policies and identifies high-risk behaviors, such as the No-Op policy in Breakout that exploits sparse rewards.
- Ground-truth returns of partially trained policies were highly correlated with both the mean posterior reward and the 0.05-VaR, validating the reliability of the bounds.
- The No-Op policy, which never releases the ball in Breakout, had a high expected return under the posterior but a very low 0.05-VaR (-134.9), indicating high risk and potential reward hacking.
- The posterior distribution can be used to detect policies that overfit to spurious features correlated with intent but not with actual task performance.
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.