This repository provides code for simulating emergent collective motion from groups of continuous-time and -space active inference agents. This code serves as companion for the paper "Collective behavior from surprise minimization" (2024) by Conor Heins, Beren Millidge, Lancelot Da Costa, Richard Mann, Karl Friston, and Iain Couzin.
This codebase contains both JAX
and a Julia
implementations of a multi-agent active inference algorithm for generating collective motion. The JAX
implementation (in the jax
folder) is the recommended implementation, especially because all code automatically takes advantage of GPU-support on machines with NVIDIA-capable GPUs (see here for the official instructions).