An empirical evaluation of active inference in multi-armed bandits

Dimitrije Markovic, Hrvoje Stojic, Sarah Schwoebel, Stefan J. Kiebel
1/21/2021
cs.LG

Official code: dimarkov/aibandits (21 stars, Jupyter Notebook, GPL-3.0, last commit 2025-06-25).

Abstract

A key feature of sequential decision making under uncertainty is a need to balance between exploiting--choosing the best action according to the current knowledge, and exploring--obtaining information about values of other actions. The multi-armed bandit problem, a classical task that captures this trade-off, served as a vehicle in machine learning for developing bandit algorithms that proved to be useful in numerous industrial applications.

Show full abstract

The active inference framework, an approach to sequential decision making recently developed in neuroscience for understanding human and animal behaviour, is distinguished by its sophisticated strategy for resolving the exploration-exploitation trade-off. This makes active inference an exciting alternative to already established bandit algorithms. Here we derive an efficient and scalable approximate active inference algorithm and compare it to two state-of-the-art bandit algorithms: Bayesian upper confidence bound and optimistic Thompson sampling. This comparison is done on two types of bandit problems: a stationary and a dynamic switching bandit. Our empirical evaluation shows that the active inference algorithm does not produce efficient long-term behaviour in stationary bandits. However, in the more challenging switching bandit problem active inference performs substantially better than the two state-of-the-art bandit algorithms. The results open exciting venues for further research in theoretical and applied machine learning, as well as lend additional credibility to active inference as a general framework for studying human and animal behaviour.

View on arXivView PDF

Code Implementations(1)

dimarkov/aibanditsOfficial100%
GPL-3.0

Active inference implementation of dynamic multi-armed bandits

212Jupyter Notebook, PythonApr 10, 20201 years agoGPL-3.0

Similar Papers

Cite this paper

@article{markovic2021empirical,
  title  = {An empirical evaluation of active inference in multi-armed bandits},
  author = {Dimitrije Markovic and Hrvoje Stojic and Sarah Schwoebel and Stefan J. Kiebel},
  year   = {2021},
  eprint = {2101.08699},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.08699}
}

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

Discussion