Abstract
Inverse reinforcement learning (IRL) methods infer an agent's reward function using demonstrations of expert behavior. A Bayesian IRL approach models a distribution over candidate reward functions, capturing a degree of uncertainty in the inferred reward function. This is critical in some applications, such as those involving clinical data. Typically, Bayesian IRL algorithms require large demonstration datasets to ensure posterior concentration, which may not be available in practice. In this work, we incorporate existing domain-specific data to achieve better posterior concentration rates. We study a common setting in clinical and biological applications where we have access to expert demonstrations and known reward functions for a set of training tasks. Our aim is to learn the reward function of a new test task given limited expert demonstrations. Existing Bayesian IRL methods impose restrictions on the form of input data, thus limiting the incorporation of training task data. To better leverage information from training tasks, we introduce kernel density Bayesian inverse reinforcement learning (KD-BIRL). Our approach employs a conditional kernel density estimator, which uses the known reward functions of the training tasks to improve the likelihood estimation across a range of reward functions and demonstration samples. Our empirical results highlight KD-BIRL's faster concentration rate in comparison to baselines, particularly in low test task expert demonstration data regimes. Additionally, we are the first to provide theoretical guarantees of posterior concentration for a Bayesian IRL algorithm. Taken together, this work introduces a principled and theoretically grounded framework that enables Bayesian IRL to be applied across a variety of domains, especially those with limited expert demonstration datasets.
Introduction
Inverse Reinforcement Learning (IRL) is the process of deducing an agent's underlying goals—represented as a reward function—by observing their actions. While Bayesian IRL (BIRL) provides a powerful framework for quantifying uncertainty in these inferences, it faces two significant hurdles in real-world applications. First, it is notoriously "data-hungry," requiring extensive expert demonstrations to achieve posterior concentration. In sensitive domains like clinical medicine, such data is often scarce. Second, traditional BIRL is computationally expensive, as it typically requires solving a Reinforcement Learning (RL) problem (calculating the optimal Q-value function) within every iteration of the posterior sampling process.
To address these challenges, we introduce KD-BIRL (Kernel Density Bayesian Inverse Reinforcement Learning). This framework leverages "supplementary data" from related tasks where reward functions are already known to accelerate learning in new, data-limited environments.
Methodology
The core innovation of KD-BIRL is the use of Conditional Kernel Density Estimation (CKDE) to approximate the likelihood function. Unlike standard approaches that evaluate the optimality of an action for a given reward by solving the Bellman equation, KD-BIRL utilizes a library of training tasks where both demonstrations and rewards are known.
The Likelihood Shift
Instead of solving an MDP at every step, the algorithm asks: "How similar is this candidate reward to rewards observed in training, and how similar are the associated actions?" By using CKDE, the model effectively "memorizes" the relationship between rewards and actions from the training data. This bypasses the need to solve for the optimal policy during the inference phase, resulting in a massive computational speedup.
Feature-Based Rewards and Sampling
To handle high-dimensional environments, rewards are represented as a linear combination of features ($R = w^T\phi$). This allows the kernel density estimator to operate in a lower-dimensional weight space. For posterior sampling, the model employs Hamiltonian Monte Carlo (HMC), which is made significantly more efficient by the absence of the inner-loop RL problem.
Theoretical Guarantees
A key contribution of this work is the first formal proof of posterior concentration for a Bayesian IRL algorithm. We demonstrate that as more data is gathered, the KD-BIRL posterior is guaranteed to shrink around the true reward function (posterior consistency), providing a rigorous foundation for the method.
Experimental Evaluation
We evaluated KD-BIRL against state-of-the-art baselines, such as AVRIL, across two primary environments:
- Gridworld (2x2 to 10x10): Used to test scalability and the algorithm's ability to identify reward equivalence classes.
- Sepsis Treatment Environment: A high-dimensional simulation of an ICU setting. Using a Variational Auto-Encoder (VAE) to project 47 clinical features into a 3D latent space, we tasked the model with learning the reward function for administering fluids and vasopressors.
Key Results
- Superiority in Low-Data Regimes: KD-BIRL excels when expert data is scarce (e.g., $n < 1000$ samples). In these scenarios, standard BIRL often fails to concentrate, while KD-BIRL uses its training library to maintain accuracy.
- Faster Concentration: In the Sepsis environment, KD-BIRL achieved a significantly lower Expected Value Difference (EVD)—the loss incurred by following the learned reward versus the true reward—compared to baselines.
- Stability: KD-BIRL produced more stable and tightly clustered posterior distributions, whereas baseline models often exhibited high uncertainty or "flat" posteriors in data-constrained settings.
Discussion and Limitations
While KD-BIRL offers significant advantages, its performance is tied to the quality of the training data. The model assumes training demonstrations are near-optimal; sub-optimal expert data could skew the likelihood estimation. Furthermore, the method relies on high-quality state features ($\phi$) and is sensitive to the choice of "bandwidth" in the kernel density estimation.
Future work will explore more advanced density estimation techniques, such as Diffusion Models or Gaussian Processes, to further refine the likelihood approximation in even higher-dimensional state spaces. Nevertheless, KD-BIRL represents a principled step forward in making Bayesian IRL practical for data-limited, high-stakes domains.
Summary updated