Papers › Safe Imitation Learning via Fast Bayesian Reward Inference from Preferences

Safe Imitation Learning via Fast Bayesian Reward Inference from Preferences

21 Feb 2020ICML 2020 1arXiv:2002.09089archive 2025-07-28

Daniel S. Brown, Russell Coleman, Ravi Srinivasan, Scott Niekum

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2002.09089")

Code

Syntology Ran 5 of 10 code samples harvested from 2 repositories linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 8 samples from 1 repository, 4 ran; community: 2 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

dsbrown1331/bayesianrex officialmentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 5 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
1ran · fixture could not drive it
5unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_l2 dsbrown1331/bayesianrex/code/LinearFeatureMCMC_auxiliary.py official repository ran · honoured contract MIT (permissive) · 596357f074d947e6 · report
create_mcmc_likelihood_data dsbrown1331/bayesianrex/code/LinearFeatureMCMC_auxiliary.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · d02b4c9f8709dee9 · report
create_training_data dsbrown1331/bayesianrex/code/LearnAtariRewardLinear.py official repository ran · our draft was wrong MIT (permissive) · 2c0910a0bc8022d0 · report
reconstruction_loss dsbrown1331/bayesianrex/code/LearnAtariRewardLinear.py official repository ran · our draft was wrong MIT (permissive) · cfe0f494b5c6542d · report
calc_linearized_pairwise_ranking_loss dsbrown1331/bayesianrex/code/LinearFeatureMCMC_auxiliary.py official repository unverified MIT (permissive) · 58181c5e66390b8d · report
get_weight_vector dsbrown1331/bayesianrex/code/LinearFeatureMCMC_auxiliary.py official repository unverified MIT (permissive) · b0e91e00b56dcd92 · report
mcmc_map_search dsbrown1331/bayesianrex/code/LinearFeatureMCMC_auxiliary.py official repository unverified MIT (permissive) · f3987c649d049ce3 · report
write_weights_likelihood dsbrown1331/bayesianrex/code/LinearFeatureMCMC_auxiliary.py official repository unverified MIT (permissive) · e18e2b6a06d313ad · report
calc_linearized_pairwise_ranking_loss dsbrown1331/brex_gridworld_cpp/python/bayesianREX_basic.py community ran · fixture could not drive it MIT (permissive) · 28c2d8ba6dfc0f57 · report
mcmc_map_search dsbrown1331/brex_gridworld_cpp/python/bayesianREX_basic.py community unverified MIT (permissive) · 9f5cef830fea3e84 · report

Tasks

Atari GamesBayesian InferenceImitation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: Bayesian REX

Bayesian REX

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections