Approximate Thompson Sampling via Epistemic Neural Networks

Ian Osband, Zheng Wen, Seyed Mohammad Asghari, Vikranth Dwaracherla, Morteza Ibrahimi +2 more
2/18/2023
cs.LGcs.AI

No official code found. Best implementation: google-deepmind/enn_acme (30 stars, Apache-2.0, last commit 2022-08-25).

Abstract

Thompson sampling (TS) is a popular heuristic for action selection, but it requires sampling from a posterior distribution. Unfortunately, this can become computationally intractable in complex environments, such as those modeled using neural networks. Approximate posterior samples can produce effective actions, but only if they reasonably approximate joint predictive distributions of outputs across inputs. Notably, accuracy of marginal predictive distributions does not suffice. Epistemic neural networks (ENNs) are designed to produce accurate joint predictive distributions. We compare a range of ENNs through computational experiments that assess their performance in approximating TS across bandit and reinforcement learning environments. The results indicate that ENNs serve this purpose well and illustrate how the quality of joint predictive distributions drives performance. Further, we demonstrate that the \textit{epinet} -- a small additive network that estimates uncertainty -- matches the performance of large ensembles at orders of magnitude lower computational cost. This enables effective application of TS with computation that scales gracefully to complex environments.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
304Shell, PythonMay 24, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{osband2023approximate,
  title  = {Approximate Thompson Sampling via Epistemic Neural Networks},
  author = {Ian Osband and Zheng Wen and Seyed Mohammad Asghari and Vikranth Dwaracherla and Morteza Ibrahimi and Xiuyuan Lu and Benjamin Van Roy},
  year   = {2023},
  eprint = {2302.09205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.09205v1}
}

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

Discussion