Article view

pymdp: A Python library for active inference in discrete state spaces

By Conor Heins, Beren Millidge, Daphne Demekas, Brennan Klein, Karl John Friston, Iain D. Couzin, Alexander Tschantz

Article information

Publication
Published 4 May 2022
Institutions at publication
University of Oxford; Brain Network Dynamics Unit; VERSES (United States); Imperial College London; Wellcome Centre for Human Neuroimaging; UCL Queen Square Institute of Neurology; University College London
123 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

pymdp offers a suite of robust, tested, and modular routines for simulating active inference agents equipped with partially-observable Markov Decision Process (POMDP) generative models. Mathematically, a POMDP comprises a joint distribution over observations o, hidden states s, control states u and hyperparameters φ: P (o, s, u, φ). This joint distribution further factorizes into a set of categorical and Dirichlet distributions: the likelihoods and priors of the generative model. With pymdp, one can build a generative model using a set of prior and likelihood distributions, initialize an agent, and then link it to an external environment to run active inference processes -all in a few lines of code. The Agent and Env (environment) APIs of pymdp are built according to the standardized framework of OpenAIGym commonly used in reinforcement learning, where an agent and environment object recursively exchange observations and actions over time (Brockman et al., 2016).

Citations per year

Citations per year
YearCitations
2022 8
2023 20
2024 30
2025 20
2026 45

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 123 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
United Kingdom3
United States1