Nonparametric Bayesian Inverse Reinforcement Learning with Data-Parallel Gibbs Sampling

Sai Anirudh Katupilla, Shreeya Dasa Lakshminath
7/10/2026
cs.LG
rlbayesian

Official code: dasashreeya/np_bayes_irl (0 stars, Python, last commit 2026-10-17).

Abstract

Inverse Reinforcement Learning recovers reward functions from expert demonstrations, but standard formulations assume that all demonstrations come from a single expert. When demonstrations are pooled from multiple experts with distinct preferences, parametric methods recover an averaged reward that fits no individual expert well.

Show full abstract

We implement Nonparametric Bayesian Inverse Reinforcement Learning with a Dirichlet Process prior over reward functions, allowing the number of latent reward types to be inferred jointly with the rewards themselves. Inference uses a collapsed Gibbs sampler combining a Chinese Restaurant Process update for cluster assignments with a Metropolis-Hastings update for reward weights, and soft value iteration as the inner planning routine. We evaluate on a 10x10 ObjectWorld grid with two and three ground-truth reward types. The serial sampler recovers K=2 with Adjusted Rand Index of 1.000, substantially outperforming a Maximum Entropy IRL baseline (ARI=0.000). Extension to K=3 shows that the sampler correctly identifies the number of clusters in all runs; assignment ARI of 0.48-0.58 reflects behavioral overlap between expert types that persists across grid instantiations, revealing that reliable K=3 evaluation on ObjectWorld requires controlled object placement rather than random seeding. We further parallelize the sampler across CPU cores using Ray on HPC hardware, achieving a peak speedup of 4.79x at 8 workers, and characterize a throughput-versus-accuracy tradeoff arising from the consensus merge heuristic used during state aggregation. Code and a containerized environment are available at https://github.com/dasashreeya/np_bayes_irl.

View on arXivView PDF

Code Implementations(1)

Nonparametric Bayesian IRL with parallelized Gibbs sampling .

01PythonMar 17, 20261 months ago

Similar Papers

Cite this paper

@article{katupilla2026nonparametric,
  title  = {Nonparametric Bayesian Inverse Reinforcement Learning with Data-Parallel Gibbs Sampling},
  author = {Sai Anirudh Katupilla and Shreeya Dasa Lakshminath},
  year   = {2026},
  eprint = {2607.09886},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.09886v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.09886.svg)](https://codeofpaper.com/paper/2607.09886)

Discussion