Infinite Time Horizon Safety of Bayesian Neural Networks

Mathias Lechner, Đorđe Žikelić, Krishnendu Chatterjee, Thomas A. Henzinger
11/4/2021
cs.LG
rlbayesian

Official code: mlech26l/bayesian_nn_safety (0 stars, Python, Apache-2.0, last commit 2022-04-11).

Abstract

Bayesian neural networks (BNNs) place distributions over the weights of a neural network to model uncertainty in the data and the network's prediction. We consider the problem of verifying safety when running a Bayesian neural network policy in a feedback loop with infinite time horizon systems.

Show full abstract

Compared to the existing sampling-based approaches, which are inapplicable to the infinite time horizon setting, we train a separate deterministic neural network that serves as an infinite time horizon safety certificate. In particular, we show that the certificate network guarantees the safety of the system over a subset of the BNN weight posterior's support. Our method first computes a safe weight set and then alters the BNN's weight posterior to reject samples outside this set. Moreover, we show how to extend our approach to a safe-exploration reinforcement learning setting, in order to avoid unsafe trajectories during the training of the policy. We evaluate our approach on a series of reinforcement learning benchmarks, including non-Lyapunovian safety specifications.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code repository of the NeurIPS 2021 paper Infinite Time Horizon Safety of Bayesian Neural Networks

01PythonOct 7, 20214 years agoApache-2.0
bayesian-deep-learningbayesian-neural-networksneural-networks

Similar Papers

Cite this paper

@article{lechner2021infinite,
  title  = {Infinite Time Horizon Safety of Bayesian Neural Networks},
  author = {Mathias Lechner and Đorđe Žikelić and Krishnendu Chatterjee and Thomas A. Henzinger},
  year   = {2021},
  eprint = {2111.03165},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.03165}
}

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/2111.03165.svg)](https://codeofpaper.com/paper/2111.03165)

Discussion