Next Article in Journal
Forecasting Network Interface Flow Using a Broad Learning System Based on the Sparrow Search Algorithm
Next Article in Special Issue
Modeling Long-Range Dynamic Correlations of Words in Written Texts with Hawkes Processes
Previous Article in Journal
Contingency Table Analysis and Inference via Double Index Measures
Previous Article in Special Issue
Stochastic Chaos and Markov Blankets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Epistemic Communities under Active Inference

by
Mahault Albarracin
1,2,
Daphne Demekas
3,
Maxwell J. D. Ramstead
2,4 and
Conor Heins
2,5,6,7,*
1
Department of Cognitive Computing, Université du Québec a Montreal, Montreal, QC H2K 4M1, Canada
2
VERSES Labs, Los Angeles, CA 90016, USA
3
Department of Computing, Imperial College London, London SW7 5NH, UK
4
Wellcome Centre for Human Neuroimaging, University College London, London WC1N 3AR, UK
5
Department of Collective Behaviour, Max Planck Institute of Animal Behaviour, 78315 Radolfzell am Bodensee, Germany
6
Centre for the Advanced Study of Collective Behaviour, University of Konstanz, 78464 Konstanz, Germany
7
Department of Biology, University of Konstanz, 78457 Konstanz, Germany
*
Author to whom correspondence should be addressed.
Entropy 2022, 24(4), 476; https://doi.org/10.3390/e24040476
Submission received: 4 January 2022 / Revised: 11 March 2022 / Accepted: 24 March 2022 / Published: 29 March 2022

Abstract

:
The spread of ideas is a fundamental concern of today’s news ecology. Understanding the dynamics of the spread of information and its co-option by interested parties is of critical importance. Research on this topic has shown that individuals tend to cluster in echo-chambers and are driven by confirmation bias. In this paper, we leverage the active inference framework to provide an in silico model of confirmation bias and its effect on echo-chamber formation. We build a model based on active inference, where agents tend to sample information in order to justify their own view of reality, which eventually leads to them to have a high degree of certainty about their own beliefs. We show that, once agents have reached a certain level of certainty about their beliefs, it becomes very difficult to get them to change their views. This system of self-confirming beliefs is upheld and reinforced by the evolving relationship between an agent’s beliefs and observations, which over time will continue to provide evidence for their ingrained ideas about the world. The epistemic communities that are consolidated by these shared beliefs, in turn, tend to produce perceptions of reality that reinforce those shared beliefs. We provide an active inference account of this community formation mechanism. We postulate that agents are driven by the epistemic value that they obtain from sampling or observing the behaviours of other agents. Inspired by digital social networks like Twitter, we build a generative model in which agents generate observable social claims or posts (e.g., ‘tweets’) while reading the socially observable claims of other agents that lend support to one of two mutually exclusive abstract topics. Agents can choose which other agent they pay attention to at each timestep, and crucially who they attend to and what they choose to read influences their beliefs about the world. Agents also assess their local network’s perspective, influencing which kinds of posts they expect to see other agents making. The model was built and simulated using the freely available Python package pymdp. The proposed active inference model can reproduce the formation of echo-chambers over social networks, and gives us insight into the cognitive processes that lead to this phenomenon.

1. Introduction

1.1. Confirmation Bias and Conformity

The practice of exchanging ideas, sharing concepts and values between different minds, is a fundamental process that allows humans and other living agents to coordinate and operate socially. By sharing ideas, individuals and communities can better pursue their pragmatic goals and improve their understanding of the world and each other. Humans are compulsory cooperators [1]: human survival itself is predicated on the ability to access and leverage bodies of accumulated cultural knowledge. Over the course of evolutionary history, humans have developed an exquisitely sensitive capacity to discriminate reliable sources of information from unreliable ones, and to learn from other relevant human agents to improve their understanding or model of their world [2,3].
This epistemic process is not, however, without its flaws. There is evidence that humans process information by reasoning heuristically, which is hypothesised to limit the consumption of energy and facilitate rapid decision-making [4,5]. One such heuristic is confirmation bias, which implies that, all other things being equal, individuals prefer sticking to their own beliefs over changing their minds [6]. There is an extensive literature documenting the phenomenon of confirmation bias and its relation to cognitive dissonance. Individuals faced with information that conflicts with their core beliefs may be prone to cognitive dissonance, which is experienced as undesirable [7,8,9]. Tolerance for cognitive dissonance varies across individuals, but in general, the phenomenon significantly influences decision-making [8,10]. To avoid such dissonance, individuals tend to selectively seek information from ‘others like me’, others who they expect will share similar ideas, concepts, and values [8]. Confirmation bias has a social influence; in particular, individuals prefer sampling data from their in-group, and will seek to confirm their own ideas by foraging for confirmatory information from their in-group [11,12]. To make sure that they have access to other like-minded allies, agents are more likely to choose to belong to communities where their deeply held beliefs are promoted and shared, which limits the cognitive effort that is already expanded in the foraging of information [10]. In-group delivery of information influences how strongly this information is integrated, especially if group membership is important for the individual [13]. This sampling extends beyond other agents, to choice of media and environment. For instance, individuals generally choose news sources that fit their expectations [8].
This phenomenon of confirmation bias is echoed in another heuristic: conformity, the need to cohere with the beliefs of one’s in-group [14,15]. It is adaptive for agents to conform to the behaviours of others in their niche, in part for the very reasons highlighted above [16]. Conformity limits how much information any given agent has to gather to act appropriately, and the sources sampled from their in-group are generally trusted [17]. This is partly due to the fact that members of an in-group can be most precisely predicted: their behaviours are normed, and expected by the members of the group, in ways that generally benefit its members [18,19]. However, conformity has other benefits as well. Being able to sample from the group entails a continued relationship to other members. This will also enable members to acquire pragmatic resources beyond information (e.g., food and shelter), as the group generally provides for its members [20,21]. Being cut off from the group can lead to existential difficulties [22,23]. Group members can be sanctioned if they fail to conform to the norms, including epistemic norms [24,25].

1.2. The Spread of Ideas

These two heuristics—namely, confirmation bias and conformity—mutually reinforce each other. Specifically, to save energy, confirmation bias leads to agents’ being drawn to groups that validate their opinion, and thus increases the probability of behavioural and epistemic conformity [26]. Importantly, these two heuristics form the basis for information spread. Agents spread information through media and through connections to one another, given a network structure [27]. The spread of ideas and behaviours from one agent to another serves both local and larger-scale coordination [27,28].
The spread of ideas is facilitated when agents are already attuned to them. Individuals are more likely to adopt ideas that they believe will have a positive effect on them, especially if the outcome of sharing that information will be positive [29]. According to Falk and Scholz, this entails that sharing among group members of news that dovetails with group norms is likely to lead to the adoption of these ideas among the other group members, following the conformity heuristic mentioned earlier. One way to predict whether information will be coherent with the group norms is to assess it with respect to one’s own value system. Naturally, similar individuals within a given group who share values will be more likely to spread ideas [30,31].
This notion of attunement or synchronisation is fundamental. Synchronisation across network nodes lowers the cost of information flow [32], and increases the certainty of the message being spread, as well as the quality of its reception, even if the message itself may be prone to errors [33,34]. Specifically, a message will be more intelligible to group members who share a common set of codes, and agents are more likely to integrate new information if it fits with their understanding of the world [35,36,37].
Hashtags have been shown to be heavy carriers of information in echo-chambers. They tend to be used in partisan ways, to reach people of similar mindsets, as well as to signal one’s own partisanship affiliation [38]. The spread of information is optimised through hashtags as pseudo-meta-linguistic categorisation makers [39].

1.3. Communities Forming around Ideas

Thus, the beliefs and epistemic communities of agents develop together, synchronously. We label communities formed in this process of belief sharing as ‘epistemic communities’. Such communities share and spread a worldview, or a paradigm, and normalise sampling behaviours (i.e., manners of observing and engaging with the shared social world) that reinforce this view of the world [40]. Individuals in the community are tied together by these epistemic practices, further reinforcing the social signals which act as evidence for the shared model of the world [19].
One example of these communities is the echo-chamber, a phenomenon that has been studied significantly in social media [38,41,42,43,44,45,46,47]. Echo-chambers are an extreme example of epistemic communities, and they have components that enforce their formation and maintenance [48,49,50]. Echo-chambers tie people with similar views together, and tend to actively work against the engagement with, and assessment and evaluation of, external sources (e.g., information provided by members of the outgroup) [42,48]. Echo-chambers can become epistemically vulnerable when members can no longer assess whether a piece of information is true or not [48,51]. Similarly, only having access to a few sources limits how much information can be gathered, and relevant sources of evidence may fall through the gaps [49,52]. According to [52], error will be propagated, and it will be difficult to check errors against anything, as most minds in the echo-chamber are synchronised and therefore poised to make the same mistakes.

1.4. Volatility and Habit Formation

Studies on the perception of environmental volatility range from economics to psycho-education for the autism spectrum [53,54,55]. Optimal inference in a changing world requires integrating incoming sensory data with beliefs about the intrinsic volatility of the environment. Intuitively, environments with higher volatility change more quickly and thus have a shorter intrinsic timescale—and conversely for environments with lower volatility. For example, autistic individuals tend to pay more attention to small changes in the environment, giving them a better ability to track potentially important fluctuations in information [53]. On the other hand, this increased attention to environmental fluctuations may also lead to increased sensitivity to random, non-informative changes in the environment, a phenomenon that might be called (from a signal-detection perspective) a higher ‘false-positive’ rate [53].
When this type of precision dynamics [56] is applied to the social field at large, emergent epistemic phenomena can be explained. For instance, during the COVID-19 pandemic, the certainty around knowledge was very low, as information about the pandemic and the biology of the virus was limited [57,58]. In addition, alternative sources of information (e.g., anti-vaccine conspiracies) had become more prevalent and more influential in some social networks [59]. The gravity of the affliction, and the strength of the governmental response, also made any information on the topic vitally important, and worth one’s attention [60]. This prompted an intensive use of information technology in order for individuals to find answers (“doing one’s own research”). This excessive use points to the awareness by laypeople of the high volatility of the topic. The authors of [61] measured emotional volatility on social media in China during the pandemic, and explored the social dynamics underlying the emotional volatility.
Individuals can deal with volatility by using various coping mechanisms. One such mechanism is to constrain the uncertainty related to their own behaviours via habit formation [62,63,64,65,66,67,68,69,70,71]. In this paper, we model habit formation as a form of behavioural reinforcement, where behaviours become more probable as a function of how often they are engaged in [72,73]. If behaviour is initially goal- or information-driven, habit-learning can then ‘zero-in’ and isolate the invariant features of such (initially) goal-directed behaviour [74], mirroring the so-called transition from ‘model-based’ to ‘model-free’ decision-making in reinforcement learning [75,76]. After an agent has engaged in a given behaviour enough, even if that behaviour is initially pursued in a goal-driven manner, a habit can then be formed and become hard to ‘unlearn’ [77]. This view also supports the idea that, initially, habit-formation can be goal-driven. In the current context of echo chamber formation, confirmation bias may serve as the original ‘motivation’ that later underwrites preferential sampling behaviour. In combination with habit learning, it may then become impossible to stop enacting this peer-specific sampling, even in the face of changing information.

1.5. An Active Inference Model of Epistemic Communities

This paper introduces a computational model of epistemic communities, wherein individual agents share information with one another and come to form beliefs not only about their local environment, but also about the beliefs of other agents in their community. To understand this phenomenon, we leverage the active inference framework, a first-principles theory of cognition, which explains the manner in which agents select actions based on their causal model or understanding of the world. Active inference says that organisms act to minimise a quantity called variational free energy, which quantifies the divergence between expected and sensed data. From this point of view, to select an action is to infer ‘what I must be doing, given what I believe and what I sense’. Extensive work has been done in the field of active inference to study social systems and the way in which the minimisation of free energy could give rise to (eventually large-scale) behavioural coordination [3,15,78,79,80,81,82,83]. However, much of this work is still theoretical.
At first glance, it might appear difficult to model a phenomenon like confirmation bias using an active inference formulation, because action selection in active inference is guided by the principle of maximising Bayesian surprise or salience, which requires constantly seeking out information that is expected to ‘challenge’ one’s world model [84,85,86].
However, the key notion that allows ‘confirmation bias’ to nonetheless emerge under active inference is ultimately the subjective nature of information gain, also known as ‘epistemic value’. Crucially, this Bayesian surprise or information gain term is always an expected surprise—that is, what counts as an ‘information-maximising’ observation is always defined in relation to agent’s set of beliefs or generative model. Due to this inherent subjectivity, the true informativeness or epistemic value of an action can be arbitrarily far from the agent’s expectation thereof. Taking advantage of this, in the model presented here, we endow agents with what we refer to as epistemic confirmation bias. This is implemented by building a prior belief into the generative model, namely that agents are more likely to sample informative observations from agents with whom they agree a priori. Therefore, agents will sample agents with whom they agree under the (not necessarily true) belief that such agents are more likely to provide higher quality information.
We can make two important distinctions between the kind of polarisation that we observe in traditional opinion dynamics and the kind achieved through multi-agent active inference modelling. First, in traditional approaches, the implementation of bounded confidence to motivate polarisation is essentially a hard-coded restriction on the agents’ ability to perceive and therefore update their beliefs [87,88,89,90]. By contrast, in the active inference approach, polarisation is instead motivated by the positive effect of confirmation bias, which is integrated directly in the agents’ (likelihood) model of the world, which allows agents to acquire more evidence about their environment if the information comes from another agent that shares the same worldview. This means that agents are motivated implicitly in their generative models to gain more evidence about the world if this evidence confirms their preexisting beliefs. Second, in the traditional approaches, agents can directly perceive the ‘belief state’ of other agents, and thus, the opinion of one agent directly influences that of another [87,89]. This is an unrealistic assumption, since human agents have to infer the belief states of others by interpreting their behaviour. This aspect of belief inference is a cornerstone of the active inference approach: the belief of another agent is modelled as a hidden state of the world—thus agents do not have direct access to each others’ belief states. Instead, through inference, they come to hold beliefs about each others’ beliefs, in addition to a belief about some agent-independent ‘world states’ [19,91].
More recently, researchers have begun to build Bayesian models of opinion dynamics, motivated by the Bayesian brain hypothesis and the notion that decision-making is inherently probabilistic [92,93,94,95,96]. Generally, the active inference approach falls within the theoretical umbrella of Bayesian agent-based modelling, because there is a deep assumption that environmental states are inherently hidden (in our case, the belief states of other agents) and need to be inferred on the basis of prior beliefs and sensory observations (i.e., observing the behaviour of other agents). However, as sketched above, a crucial point that distinguishes approaches like active inference and planning as inference from the general Bayesian approach is the notion that actions themselves are inferred [97,98] While there have been models that use Bayesian inference for the inference of opinions (i.e., Bayesian belief states about some particular idea), the process of action selection within these works is still often added on after the fact using an arbitrary decision rule (e.g., a softmax function of an arbitrary value vector). Action selection is often cast as a noisy signal of the true belief state, such as in [96], which is then used to update neighbouring agents’ beliefs through Bayesian inference. Crucially, in active inference, behaviour itself is cast as the result of inference, specifically by sampling actions from a posterior distribution over actions. The posterior over actions is obtained by minimising the expected free energy of future beliefs, conditioned on actions. In other words, actions are selected in order to achieve goals and minimise future uncertainty, i.e., to maximise a lower bound on Bayesian model evidence.
Importantly for our purposes, one can supplement this goal-directed aspect of policy inference, driven by the expected free energy, with inflexible ‘prior preferences over actions’, i.e., habits. If this prior preference over actions is learned over time, then in the context of the opinion dynamics model presented here, this can lead to a propensity to continue sampling agents that have been sampled previously. The idea of choosing actions through inference in accordance with the minimisation of uncertainty is powerful as a modelling technique, because through the choice of policy preferences one can encode various social behaviours, such as conformity, habit formation, hostility, or indifference, while in this report, only habit formation, conformity, and polarisation are explored, we emphasise the potential of augmenting the current model to capture a wider range of features observed in human social behaviour.

1.6. Hypotheses

In this paper, we present a multi-agent model of opinion dynamics based on the active inference formulation. Our simulated agents are situated in a social network where they observe the behaviour of other agents and update their beliefs about a pair of abstract, mutually exclusive “Ideas” (e.g., the truth values of two competing claims), as well as the beliefs of their neighbours in the social network. Agents themselves have a prior preference to announce their beliefs via an action that is observable by other agents (e.g., posting/tweeting a “hashtag”). We show that the proposed active inference model can replicate confirmation bias, exposure effects, the formation of echo-chambers, and the exacerbation of these phenomena via habit-learning. These effects can be modelled by changing the parameters of individual generative models, i.e., the cognitive features of the individuals comprising the group. We also uncover interesting interactions between individual-level cognitive features and the network architecture that constrains their social interactions. The large-scale behaviour of the model can be used to test three hypotheses, which are motivated by the existing literature. We formulate and test three hypotheses as follows:
Hypothesis 1.
We cast confirmation bias in active inference as a form of ‘biased curiosity,’ in which agents selectively gather information from other agents with whom (they believe) they agree, under the assumption that like-minded agents provide higher-quality, more reliable information. We hypothesise that this ‘epistemic confirmation bias’ can mediate the formation of echo-chambers and polarisation in social networks of active inference agents. However, we further hypothesise that epistemic confirmation bias and network connectivity will bidirectionally modulate the formation of polarised epistemic communities, tuning the collective trade-off between deadlock (polarisation) and agreement (consensus).
Hypothesis 2.
We also consider the effect of agents’ beliefs about the volatility of their social environments. In particular, we examine how beliefs about social volatility impact exploratory sampling of other agents’ perspectives, which itself may interact with epistemic confirmation bias to determine the formation of echo-chambers. In particular, we hypothesise that beliefs about less quickly changing social environments (a belief in lower social volatility) will increase the likelihood of polarisation, as opposed to consensus.
Hypothesis 3.
Finally, we also hypothesise that we can model selective exposure effects and conformity through habit formation, which naturally emerges through Bayes-optimal learning of a prior distribution over policies. We hypothesise that a greater learning rate for habit formation will lead to clusters within the network, thus amplifying and quickening the formation of echo-chambers.
Using the multi-agent active inference model of opinion dynamics, we achieve simulation outcomes that reproduce phenomena observed in the opinion dynamics literature, such as polarisation and consensus. In the sections to follow, we first describe the generative model that each agent uses to engage in active inference, and then discuss how we couple the agents together in an opinion dynamics network. We conclude by presenting numerical results that investigate each of the three hypotheses laid out above.

2. An Active Inference Model of Opinion Dynamics

2.1. Overview

We present a multi-agent active inference model of opinion dynamics on an idealised social network. In the model, a group of agents simultaneously update their beliefs about an abstract, binary hidden state (that represents two conflicting “Ideas”) and the opinion states about these ideas, held by a limited set of neighbouring agents. Each agent also generates an action that is observable to other agents. In the context of digital social networks like Twitter, these observable actions could be analogised to ‘posts’, ‘tweets’ or ‘hashtags’, i.e., some abstract expression carrying information about the belief state of the agent generating that expression. Hereafter we refer to these actions as ‘tweeting a Hashtag’ and describe agents‘ behaviour as the decision to ‘tweet Hashtag 1 vs. Hashtag 2’, etc. Over time, each agent updates a posterior distribution (or belief) about which of the two Ideas is true, as well as a belief about what a connected set of other agents in the network believe (namely, those agents whom they ‘follow‘ or are ‘followed by’ in the social network). Both of these inferences are achieved by observing the behaviour of other agents, where, crucially, this behaviour depends on each agent’s beliefs (notably about other agents). In our formulation, agents can only observe the behaviour of other agents to whom they are specifically connected.
It is worth emphasising that in this formulation, there is no true hidden state that corresponds to the competing truth status of the two “Ideas.” Rather, this abstract binary hidden state is only contained in the generative model or internal representation of each agent. The only ‘real’ states of the system are the agents and their observable behaviour.
In the sections to follow, we first briefly summarise the previous literature on computational approaches to the study of opinion dynamics. We then review the formalism of active inference, from the specification of the generative models that each agent uses to represent their external world, to the update equations for state estimation and decision-making. Finally, we describe the simulations of multi-agent dynamics by linking an ensemble of such active inference agents into a network.

2.2. Opinion Dynamics Models

In previous models of opinion dynamics, individual agents are often characterised by one or a few variables that encode the current belief or opinion held by that agent [99,100,101]. Collections of agents then update their respective opinion variables by ‘observing’ other variables that (either deterministically or stochastically) depend on the opinions of other agents in the ensemble. The nature of the inter-agent interactions varies across different models, ranging from homogeneous, ‘mean-field’-like global potentials [102,103] to structured, heterogeneous networks with fixed or dynamic weights between agents [104,105]. The opinion variables can take scalar or vector-values [106,107], and have either discrete or continuous support [108,109,110,111].
Bayesian variants of opinion dynamics models explicitly take into account the uncertainty associated with the observations and decisions of agents, where now the updates to opinion variables become (exact or approximate) Bayesian updates [95,96,112,113]. The active inference model we present here is an example of such a Bayesian approach, with a few crucial distinctions, such as the approximate (as opposed to exact) nature of the Bayesian belief updating, and the fact that actions, in addition to opinions, are the result of inference. We will detail these distinctions further in the sections below on active inference.

2.3. Active Inference

Active inference is a biologically motivated framework that rests on first principles of self-organisation in complex, adaptive systems [86,97,114]. Particularly, it is premised on the notion that the internal states of any biological system are statistically insulated from the environment that generates sensory observations, and thus must engage in inference (about the causes of its sensory states) to behave optimally [115]. Active inference finesses this fundamental uncertainty by adding a Bayesian twist, proposing that biological systems entertain or entail a generative model of the latent environmental causes of their sensory inputs. Therefore, unlike classic reinforcement learning or reflexive behavioural algorithms (e.g., state-action policy mapping [72,116]), actions taken under active inference are guided by internal beliefs, which themselves are optimised with respect to an internal ‘world model,’ or representation of the world’s causal and data-generating structure.
Crucially, active inference agents represent their own actions (and their typical sensory consequences) in their generative model. By performing inference with respect to both hidden environment states of the world and the consequences of their own actions, active inference agents can evince behaviour that both (1) achieves their goals or fulfils preferences and (2) actively reduces uncertainty in the agent’s world model [86,97,115]. An active inference agent’s only imperative is to increase model evidence, or equivalently, to reduce surprise. Processes such as learning, perception, planning, and goal-directed behaviour emerge from this single drive to increase evidence for the agent’s generative model of the world.
In active inference, the agents never act directly on sensory data, but rather change their beliefs about what causes that data. Thus, the core step in active inference consists of optimising these beliefs using a generative model. This process is also known as Bayesian inference or Bayesian model inversion. Inference answers the question: “what is my best guess about the state of the world, given my sensory data and prior beliefs”? This can be formalised using Bayes’ rule:
P ( ϑ | y ) = P ( y | ϑ ) P ( ϑ ) ϑ P ( y | ϑ ) P ( ϑ )
where the optimal belief about ‘hidden’ or latent variables ϑ , given some sensory data y, is called the posterior distribution P ( ϑ | y ) . Bayes’ rule yields an analytic relationship between the generative model P ( y , ϑ ) and the posterior. Bayesian inference consists in calculating (either analytically or approximately) P ( ϑ | y ) . Active inference is no different: perception (the generation of a best guess about the current hidden states of the world) is formalised as the computation of a posterior distribution over hidden states s, and action (the active part of active inference) is formalised as the computation of a posterior distribution over policies π . In active inference, however, this problem is turned into one of approximate Bayesian inference, where instead of finding the optimal posterior P ( s | o ) , active inference agents instead approximate this optimal posterior with a variational posterior Q ( s ; ϕ ) , i.e., a belief over hidden states that is parameterised by variational parameters ϕ . The reason for this is that the exact inference is often computationally intractable. The marginalisation problem involved in exact Bayesian inference (expressed in Equation (1)) is often intractable for many realistic generative models. Variational inference turns this intractable calculation of the marginal into an optimisation problem, where a variational upper bound on surprise known as variational free energy (also known as negative model evidence in statistics) is minimised:
Q * ( s ; ϕ ) = argmin ϕ D K L Q ( s ; ϕ ) P ( o , s ) surprise bound D K L Q ( s ; ϕ ) P ( o , s ) = D K L Q ( s ; ϕ ) P ( s | o ) log P ( o ) surprise
where D K L ( q p ) is the Kullback–Leibler divergence, a non-negative measure of difference between probability distributions, where D K L ( q p ) = 0 when q = p . Variational inference thus consists of optimising the variational parameters ϕ in order to minimise the free energy, which itself renders the variational posterior a better approximation to the true posterior. When variational inference is exact, the bound becomes exact and the free energy reduces to the surprise or negative log evidence. The remaining (negative) surprise can be itself used as a score for model averaging and model selection [117,118].
Active inference agents achieve perception and action by minimising the surprise bound in Equation (2) with respect to variational beliefs about particular variables of their generative model. Optimising beliefs about variables that represent latent environmental states (often denoted s) is proposed as a formal model of perception, while optimising beliefs about variables that correspond to policies or control of the environment (often denoted by u or π ) is the formal analogue of planning and action. Therefore, active inference agents infer both hidden states (perception) and policies (action) through a process of variational inference. The update equations used for perception and planning under active inference are detailed in Section 2.10, Section 2.11 and Section 2.12.
Specifying a generative model P ( o , s ) is critical to determining the behaviour of active inference agents. In the following sections we introduce the discrete state space model, a partially observed Markov decision process or POMDP, with which we equip agents in the multi-agent opinion dynamics setting.

2.4. Generative Model

Formally, the generative model is a joint probability distribution P ( o , φ ) over observations o and latent variables φ . Intuitively, one can think of the generative model as the agent’s ‘representation’ of its environment, and specifically how that environment elicits observations [119]. In the discrete generative model described below, this generative model comprises assumptions about how hidden states s and actions u are probabilistically related to one another and to observations o .
In the current study, agents entertain partially observed Markov decision process generative models, or POMDPs [120,121]. POMDPs are a class of decision-making models commonly used to simulate planning and decision-making in environments where agents must at each timestep select one of a discrete set of mutually exclusive options. This is often represented using several random variables: a discrete set of actions u (also known as control states); hidden states s, which evolve according to (action-dependent) Markovian dynamics; and observations o, which probabilistically depend upon current hidden states. In most active inference models using POMDP generative models, hidden states, observations, and actions are discrete random variables—namely, they can take one of a finite set of values at a given time.
We include an additional latent variable, policies π , in the generative model. Policies are simply sequences of control states u. Using the terminology above, our generative model can be written down as P ( o ˜ , φ ˜ ) where φ ˜ = s ˜ , u ˜ , π . The tilde notation x ˜ denotes a sequence of random variables over time, e.g.,  s ˜ = s 1 , , T .
We can now write down the Markovian generative model as follows:
P o ˜ , s ˜ , u ˜ , π = P ( s 1 ) P ( u 1 ) P ( π ) τ = 2 T P s τ | s τ 1 , u τ P u τ | π τ = 1 T P o τ | s τ
The observation likelihood P ( o τ | s τ ) represents the agent’s probabilistic understanding of the relationship between hidden states s τ and concurrent observations o τ . Because both observations o ˜ and states s ˜ are discrete, this likelihood distribution will be represented as a multidimensional array, which we hereafter denote by A . Similarly, the transition distributions P ( s τ | s τ 1 , u τ ) , which are denoted by B , encode the agent’s beliefs about how hidden states and control states determine subsequent hidden states. It is by changing actions u τ that the agent can exert control on its environment, since the evolution of hidden states depends both on the past state s τ 1 and on the concurrent action u τ . Finally, the distribution P ( u τ | π τ ) represents the mapping between policies and actions.
In many POMDP models, we segregate observations o ˜ and hidden states (and controls) s ˜ (resp. u ˜ ) into distinct modalities (for observations) and factors (for hidden states/control states):
o ˜ = o ˜ ( 1 ) , o ˜ ( 2 ) , , o ˜ ( M ) s ˜ = s ˜ ( 1 ) , s ˜ ( 2 ) , , s ˜ ( F ) u ˜ = u ˜ ( 1 ) , u ˜ ( 2 ) , , u ˜ ( F )
where the superscripts refer to the index of the modality or factor index, respectively.
Observation modalities can be thought of as sensory ‘channels’ that provide distinct sorts of information. For example, in the context of human cognition, observation modalities might correspond to the information originating in different sense organs, e.g., the ears, eyes, or skin.
Hidden state factors may be thought of as the generative model’s latent representation of different features of the external world. Each of these factors has its own dynamics and can be thought of as statistically independent of other factors. For instance, an object might be described by both its spatial location and its colour—‘location’ and ‘colour’ would thus be candidates for distinct hidden state factors in a generative model of an object. This factorisation is motivated by our intuition that something like an object’s colour and location are independent. An additional, minor note is that control states (the agent’s representation of its own actions or ability to intervene on hidden states) are also divided into a set of control factors, with one control factor for every hidden state factor.
Given this factorisation, at any given time a single observation will thus comprise a set of modality-specific observations, one from each sensory channel, and a hidden state will comprise of a set of hidden states, one from each distinct hidden state factor.
Now that we have introduced the class of discrete generative models with which our active inference agents will be endowed, we are now in a position to articulate the particular structure of the generative model for a single agent. From here, using active inference to perform inference and action with respect to each single agent’s generative model, we can then ‘link together’ ensembles of these agents to form a complete opinion dynamics simulation.

2.5. An Individual Model of Opinion Formation

We describe a generative model of opinion formation for a single agent. Note that each active inference agent in the multi-agent simulations described below will be equipped with this same basic generative model. A single agent (hereafter: the ‘focal agent’) observes the actions of other agents, forms beliefs about an abstract binary environmental state, and chooses actions, which themselves are observable to other agents. The focal agent’s action consists of two simultaneous choices: an ‘expression’ action (choosing which observable expression to make) and an ‘observation’ action (choosing which other agent to attend to). As mentioned above, we analogise the ‘expression’ actions to posts made by users on online social networks (e.g., ‘tweets’, ‘re-tweets’, ‘shares’, ‘likes’), and the contents of these actions we refer to as ‘Hashtags.’ Crucially, an agent can only observe one neighbouring agent at a time. Therefore, at each timestep, a focal agent both tweets its own Hashtag and chooses to read the Hashtag tweeted by another single agent. See Figure 1 and Table 1 for a summary of the distributions and random variables that comprise a single agent’s generative model of opinion formation.

2.5.1. Hidden States

Each agent’s generative model comprises hidden states that fall into four categories—however, the actual number of hidden state factors per agent depends on their local network connectivity, so that a particular agent will usually have more than four hidden state factors. Nevertheless, we classify each hidden state factor into one of these four categories:
  • s Idea : A binary random variable that encodes the agent’s beliefs about an abstract environmental state that represents the truth value of two mutually exclusive Ideas or claims. This binary variable can thus take a value of either 0 or 1, to which we assign arbitrary labels of Idea 1 and Idea 2. If Idea 1 is true, then necessarily Idea 2 is false, and vice versa.
  • s MetaBelief (shortened to: s MB ): A set of binary random variables, each of which corresponds to a particular neighbour’s belief about which of the two Ideas is true. As a representation of another agent’s belief, we hereafter refer to this class of hidden state factor (and corresponding posteriors) as ‘meta-beliefs’. The values of this variable we label Believe Idea 1 and Believe Idea 2. Each agent will have one hidden state factor belonging to this category for each of its K neighbours, e.g.,  s MB 1 , s MB 2 , , s MB K .
  • s SelfTweet (shortened to: s T ): A binary random variable corresponding to what the focal agent is currently doing. By analogy with Twitter and other digital social media platforms, we refer to this action as ‘tweeting‘ or ‘posting’, and the variable can take a value of either 0 or 1, representing one of two possible contents (’Hashtags’). These two actions are thus labeled Tweet Hashtag 1 ( s SelfTweet = 0 ) and Tweet Hashtag 2 ( s SelfTweet = 1 ).
  • s WhoAttend (shortened to: s Who ): A multinomial random variable with as many discrete levels as the focal agent has neighbours, representing which of their neighbours’ actions the focal agent is currently attending to. For example, for an agent with three neighbours, this variable could take three values: ( 0 , 1 , 2 ) , which we label Attend Neighbour 1, Attend Neighbour 2, and Attend Neighbour 3, respectively.
For a single agent’s generative model, the precise number of ‘meta-belief’ hidden state factors (those belonging to the s MB class of factors) depends on how many neighbours the focal agent has. For instance, if a given agent i has three neighbours, then that agent’s generative model will have three meta-belief hidden state factors: s MB 1 , s MB 2 , and  s MB 3 , each representing the belief state of one of agent i’s three neighbours. Each agent has only one hidden state factor belonging to the other categories: s Idea , s T , and  s Who . However, the cardinality (i.e., number of levels) for the s Who hidden state factor will be equal to the focal agent’s number of neighbours. In the case of our agent i with three neighbours, therefore, the possible values of s Who will be ( 0 , 1 , 2 ) , corresponding to the action of attending to one of the three neighbours.

2.5.2. Control States

Each agent is also equipped with two control state factors. These state factors are the agent’s representation of its own actions in the environment. Control factors interact with hidden state factors to determine the next hidden state—thus, certain hidden state factors are deemed ‘controllable’ if they are paired with a control factor. In the current model, these two control state factors are paired with hidden state factors in Categories 3 and 4 above:
  • u T : A binary random variable corresponding to which ‘tweet action’ to take, i.e., Tweet Hashtag 1 vs. Tweet Hashtag 2. This control factor interacts with the s T hidden state factor.
  • u Who : A multinomial random variable corresponding to which neighbour to attend to, e.g., Attend Neighbour 1, Attend Neighbour 2, and Attend Neighbour 3. This control factor interacts with the s Who hidden state factor.

2.5.3. Observation Modalities

Just as we did for the hidden states, now we describe three categories of observation modalities for a single agent’s generative model:
  • o SelfTweet or o ST : A binary random variable representing the focal agent’s observation of its own tweet actions—these ‘self-observations’ take the values of Hashtag 1 and Hashtag 2.
  • o NeighbourTweet or o NT : A ternary random variable representing the observation of a neighbour agent’s actions—these take the values of Null, Hashtag 1, and Hashtag 2. Each agent has one ‘tweet observation’ modality for each of its K neighbours: o NT 1 , o NT 2 , o NT 3 , , o NT K , in the same way that the number of s MB factors depends on the number of neighbours. The purpose of the Null observation level will be clarified later on.
  • o WhoAttend or o Who : A multinomial random variable representing the observation of which neighbour the focal agent is attending to. This random variable has as many discrete levels as the focal agent has neighbours. For example, for an agent with three neighbours, this variable could take three values: ( 0 , 1 , 2 ) , which we label Attend Neighbour 1, Attend Neighbour 2, and Attend Neighbour 3.
A focal agent receives a full multi-modality observation per timestep:
o t = { o t ST , o t NT 1 , o t NT 2 , , o t NT K , o t Who }
Each single observation is thus a collection of observations, one from each modality. Because one observation is collected from each modality at every timestep, the cardinality of some modalities is increased by 1, creating an additional observation level which we can call the “Null” observation level. The Null observation is included to effectively ‘block’ the focal agent from seeing the Hashtags of neighbours they are not actively attending to. This observation level is designed to have maximal ambiguity with respect to hidden states—in other words, seeing a Null observation affords no information about hidden states and thus has no effect on inference. This will become more clear when the observation and transition likelihoods of the generative model are described.

2.6. Likelihoods

Having specified the random variables that form the support of a single agent’s POMDP generative model, we can now move onto describing the likelihoods that determine how hidden states relate to observations, and how hidden states relate to each other over time. The construction of these likelihoods is indispensable for understanding both the belief updating and the choice behaviour of active inference agents.
We begin with the observation likelihood model P ( o t | s t ) . This is also known as the ‘sensory likelihood’ or observation model, and is parameterised by a series of categorical distributions whose parameters we collectively encode as the columns of a multidimensional array called A . In other words:
P ( o t | s t ) = C a t ( A )
The entire A array is actually a set of tensors, with one sub-tensor per observation modality:
A = { A ST , A NT 1 , A NT 2 , , A NT K , A Who }
Each modality-specific likelihood tensor A m is a potentially multidimensional array that encodes the conditional dependencies between each combination of hidden states s t = { s t 1 , s t 2 , , s t F } and observations o t m for that modality. For example, in a likelihood array with two hidden state factors, entry [ A m ] i j k encodes the conditional probability P ( o t m = i | s t 1 = j , s t 2 = k ) , i.e., with the probability of observing outcome i within observation modality m under hidden state factor 1 being level j and hidden state factor 2 being level k. In the case of the generative model for opinion formation, these likelihood arrays will be of much higher dimensions than 3-D tensors; we will thus generally refer to the elements of a modality-specific A m array with the notation [ A m ] i j k , where the ellipses refer to an indefinite number of indexable lagging dimensions.
Each agent in the opinion dynamic model will have one A m array per observation modality. We will now step through them to describe their role in the generative model.

2.6.1. Self Tweet Likelihood

The array A ST represents the agent’s beliefs about how hidden states relate to o ST (which content the agent is tweeting, either Hashtag 1 or Hashtag 2). By construction, A ST encodes an assumption that o ST only depends on s T , the controllable hidden state factor corresponding to the tweet action. This is an unambiguous or isomorphic mapping, which we can express as follows:
A ST = P ( o t ST | s t T ) = I 2 = 1 0 0 1
In other words, the agent believes that the s T factor unambiguously signals its true value via the o ST observation modality. Each column of the matrix in Equation (6) represents a (conditioning) value of s T , and each row represents a (conditioned) value of o ST . The value of o ST does not depend on any of the other hidden state factors, which means that this identity matrix is uniformly ‘tiled’ across the other dimensions of the A ST array that represent the mapping between the remaining hidden state factors { s ( 1 ) , s ( 2 ) , } s T and o ST .

2.6.2. Neighbour Tweet Likelihood

The array A NT k represents the focal agent’s beliefs about how hidden states relate to o NT k , the focal agent’s observation of neighbour k’s tweet content. A NT k encodes an assumption that o NT k probabilistically depends on neighbour k’s belief about the two Ideas, i.e., that o NT k depends on s MB k . This can be expressed as:
A NT k = P ( o t NT k | s t MB k , s t Who = k ) = 0 h
where 0 represents a 1 × 2 vector of 0s, and  h is a 2 × 2 matrix that represents the ‘Hashtag semantics,’ i.e., the assumed relationship between neighbour k’s beliefs and what Hashtag they are expected to tweet. Importantly, the first row of the likelihood matrix in Equation (7) represents the probability of encountering the Null observation, for the various settings of hidden states. This observation always has probability 0 when the focal agent is sampling neighbour k, as represented by the condition s t Who = k . Otherwise, when s t Who k , the Null value will be expected with certainty. This can be expressed as:
A NT k = P ( o t NT k | s t MB k , s t Who k ) = 1 1 0 0 0 0
This inclusion of the Null is necessary to ensure that a focal agent only expects to read one of neighbour k’s tweet, if they are actively attending to neighbour k—otherwise, they receive a ‘blank’ observation that affords no information about hidden states (as represented by a maximally ambiguous likelihood over hidden states, i.e., a row of 1s). The lower two rows of the likelihood matrix in Equation (7) are occupied by the Hashtag semantics h , which we stipulatively define with a ‘Hashtag reliability’ parameter p h :
h = p h 1 p h 1 p h p h
Here, p h parameterises two Bernoulli distributions that, respectively, map between the two levels of s Idea and the two levels of o NT k . In the limiting case of p h = 1 , this means that the focal agent believes that neighbour i’s tweet content is unambiguous evidence for what Idea neighbour k believes in. On the other hand, as  p h 0 , h comes to resemble a maximum entropy distribution, in this case, according to the focal agent’s generative model, neighbour k’s tweet activity provides no information about its beliefs.
This basic conditional relationship outlined in Equations (7)–(9) enables agents to update their beliefs about the beliefs of their neighbours s MB according what they observe their neighbours tweeting. Intuitively, this mapping captures the focal agents’ beliefs that what their neighbours tweet is representative of what they believe. The accuracy of this mapping (the value of p h ) determines how strongly Hashtags reflect opinions or the strength of beliefs. However, in order to allow agents to update their beliefs about the truth-values of the Ideas per se (i.e., update a posterior distribution over s Idea ), we also construct A NT k such that agents believe that the validity or truth-values of the Ideas themselves s Idea probabilistically relate to o NT k . Importantly, we make this conditional relationship ‘biased’ in the sense that, according to A NT k , tweet observations are more precisely related to a particular setting of the s MB k factor, if and only if s Idea is aligned with that belief, i.e., when s MB k = s Idea . This can be formalised as an increased precision γ for subsets of those conditional distributions encoded by P ( o t NT k | s t MB k , s Idea ) , importantly those subsets when s t MB k = s Idea . As we will describe later, in the context of action, this leads to an ‘epistemic’ drive for the focal agent to attend to neighbours who (are believed to) share their opinions, leading to a confirmation bias effect. We therefore refer to this ‘biased precision’ γ as the epistemic confirmation bias (ECB).
P ( o t NT k = i | s t MB k = j , s Idea = j , s t Who = k , γ ) = e γ h i j l e γ h l j
Note that this additional precision term γ exponentiates the Hashtag semantics matrix h , which is already parameterised by the ‘Hashtag reliability’ parameter p h . In the context of inference, an increasing value of γ means that the focal agent believes that tweet observations o t NT k will provide more information about hidden states, only in the case that the neighbour k generating that tweet has ‘correct’ beliefs, i.e., their beliefs are aligned with the true Idea. In the context of decision-making, this means that agents believe that most informative observations come from those neighbours that have the ‘correct’ beliefs. Under active inference, actions that evince informative observations (i.e., observations that resolve the most uncertainty) are preferred. This drive is known as the ‘epistemic value’ or ‘salience’ [86]. Therefore, higher levels of γ will lead to increased epistemic value associated with sampling only those neighbours that the focal agent believes have veridical beliefs, according to its own beliefs about s Idea .

2.6.3. Neighbour Attend Likelihood

The array A Who represents the agent’s beliefs about how hidden states relate to o Who . This observation model is constructed such that o Who only depends on s Who , and specifically that agents can always unambiguously infer who they are currently attending to, based on o Who . This can be expressed succinctly as a K-dimensional identity matrix:
A Who = P ( o t Who | s t Who ) = I K
where K is the number of the focal agent’s neighbours. Since the value of o Who does not depend on any hidden state factors besides s Who , I K is ‘tiled’ across the remaining dimensions of the A Who array.

2.6.4. Transition Model

Now we move onto the transition likelihood model P ( s t | s t 1 , u t 1 ) . This is also known as the ‘dynamical likelihood’ and it is parameterised by a series of categorical distributions whose parameters are stored in a tensor B:
P ( s t | s t 1 ) = Cat ( B )
As there are multiple hidden state factors in our generative model, the full B array is actually split into a collection of sub-arrays, one for each hidden state factor:
B = { B Idea , B MB 1 , B MB 2 , , B MB K , B T , B Who }
Each sub-array B f contains the categorical parameters of the factor-specific transition likelihood P ( s t f | s t 1 f | u t 1 f ) . Note that this construction means that hidden state factors are assumed to be independent by the generative model. In the context of the opinion dynamics model, this means that a single agent assumes that the hidden state s Idea both does not affect and is not affected by the belief states of neighbouring agents s MB k , and furthermore that the belief states of neighbours do not affect one another. In the following sections, we summarise the transition models for each hidden state factor.

2.6.5. Environmental Dynamics and Volatility

The dynamics of s Idea according a focal agent’s generative model are described by B Idea . Since this is an uncontrollable hidden state factor, it can be expressed as a simple 2 × 2 matrix, which expresses the focal agent’s beliefs about the probability that s Idea (which Idea is “true”) switches over time. We parameterise this matrix with a precision parameter that we call ‘inverse environmental volatility’ ω Idea :
B Idea = P ( s t Idea = i | s t 1 Idea = j , ω Idea ) = e ω Idea I i j l e ω Idea I l j
where I is the 2 × 2 identity matrix. The higher the value of ω Idea , the more the focal agent believes that the same Idea remains valid over time (e.g., Idea 1 is likely to remain the ‘valid’ idea from one timestep to the next). Consequently, a lower value of ω Idea (and thus a higher value of ‘environmental volatility’) means that the focal agent believes that the truth value of the two Ideas changes less predictably over time (the hidden state is likely to oscillate between Idea 1 and Idea 2 ).

2.6.6. Meta-Belief Dynamics and Volatility

The dynamics of s MB k , or the meta-belief associated with neighbour k according to a focal agent’s generative model, is described by B MB k . Like s Idea , s MB k is an an uncontrollable hidden state factor, and the B MB k array can thus be expressed as a 2 × 2 matrix. Like B Idea , we parameterise B MB k with a precision parameter that we term ‘inverse social volatility’ ω Soc :
B MB k = P ( s t MB k = i | s t 1 MB k = j , ω Soc ) = e ω Soc I i j l e ω Soc I l j
The interpretation of ω Soc is similar to that of ω Idea : a higher value of ω Soc implies that the focal agent assumes that its neighbours have ‘stubborn’ opinions and are not likely to change over time. A lower value means that the focal agent assumes that its neighbours‘ opinions can easily change over time, or that its neighbours are ‘fickle’.

2.6.7. Tweet Control

Now we discuss the controllable dynamics of the hidden state factor corresponding to the Hashtag that the focal agent is tweeting: s SelfTweet or s T . Under the focal agent’s generative model, this factor only depends on the control state factor u T , and the corresponding B T array can thus be expressed as an identity matrix that maps from the action (Tweet Hashtag 1 vs. Tweet Hashtag 1) at timestep t 1 to the next tweet value at timestep t:
B T = P ( s t T | u t 1 T ) = I 2 = 1 0 0 1
This means that the agent can unambiguously determine what it tweets next (the value of s t + 1 T ) by means of actions u t T .

2.6.8. Neighbour Attendance Control

Similarly for the dynamics of s Who , under the focal agent’s generative model, this factor only depends on the control state factor u Who , and the corresponding B Who array can thus be expressed as an identity matrix that maps from the action of which of K neighbours to attend to at timestep t 1 , to the next value of s Who at timestep t, namely which neighbour is being attended to:
B Who = P ( s t Who | u t 1 Who ) = I K
Just like the dynamics of s T , s Who is thus fully controllable by the agent, i.e., determined by the value of u Who .

2.7. Priors

The next component of the generative model is the priors over observations P ( o ) , hidden states P ( s 0 ) , and actions P ( u ) . In discrete active inference models, we represent these as vectors C , D , and  E , respectively.

2.7.1. Observation Prior C

In active inference, goal-directed action is often motivated by appealing to a baseline prior over observations P ( o | C ) that specifies the agent’s preferences to encounter particular outcomes over others. This caches out value in terms of log probabilities or information, rather than classical constructs like ‘reward.’ Interestingly, this prior over observations does not come into play when performing inference about hidden states (i.e., it is not part of the generative model in Equation (3)), but only during decision-making and action. Under active inference, actions are selected to minimise a quantity called the expected free energy, a quasi-value function that scores policies by their ability to bring expected observations in alignment with preferred observations, while also maximising information gain (see the Section 2.11 for more details). In the current model, we do not rely on this C vector to encode goals, but rather motivate action through a conditional action prior (see the section on the E vector below). For this reason, in our model the C is a flat distribution over observations and does not contribute to decision-making in this context.

2.7.2. State Prior D

The prior over hidden states at the initial timestep is encoded by the so-called D vector, P ( s 0 | D ) . The  D vector encodes the agent’s beliefs about the initial state of the world, prior to having made any observations. In the context of the opinion formation generative model, it encodes baseline beliefs about which Idea is true, the meta-beliefs of the focal agent’s neighbours, as well as the initial tweet that the focal agent is making and the initial neighbour to whom the focal agent is attending.

2.7.3. Empirical Prior over Hashtag Control State: E T

We furnish the generative model with a special conditional prior over Hashtag control states P ( u 0 T | s Idea ) , parameterised by a mapping denoted by E T . This quasi-likelihood or link function renders the prior over Hashtag control states u 0 T an empirical prior, because of an explicit dependence on s t Idea . Under active inference, the final posterior over control states Q ( u t ) becomes a Bayesian average of the ‘value’ of each control state, as determined by the (negative) expected free energy (see the corresponding Section 2.11 below), as well as the prior probability of each control state as encoded by P ( u 0 ) . In the current model, we make the prior over control states an empirical prior parameterised by a ‘link function’ denoted by the E T vector. This makes the prior over the Hashtag control state u 0 T conditionally dependent on the s Idea hidden state factor of the generative model. In practice, this implies that the prior over those control states corresponding to tweet actions P ( u 0 T ) depends on the posterior over s t Idea , the hidden state corresponding to which Idea is true. This can be expressed as follows:
P ( u 0 T | s t Idea ) = Cat ( E T )
where the mapping encoded by the entries of Cat ( E T ) is an identity matrix that maps each value of s Idea to a single Hashtag control state (value of u 0 T ). At each timestep we approximate the prior at timestep t over s Idea with the agent’s current posterior belief Q ( s t Idea ) . The following sections on belief updating explain how one optimises the variational posterior over hidden states Q ( s t ) using observations. Once approximated in this way, we can re-express the empirical prior over Hashtag control states P ( u 0 T ) as:
P ( u 0 T ) = E Q ( s t ) [ P ( u 0 T | s t Idea ) ]
Agents are therefore more likely to take the action u T = Tweet Hashtag 1 if they believe more in Idea 1 than in Idea 2 (as reflected in the value of Q ( s t Idea ) ), and likewise are more likely to take the action u T = Tweet Hashtag 2 if they believe more in Idea 1 than in Idea 2. This empirical prior formulation thus renders the probability of taking a particular Tweet Hashtag action directly proportional to the agent’s belief in one of the two Ideas, as encoded in the variational posterior Q ( s t Idea ) .

2.7.4. Prior over Neighbour Attendance Control State: E Who

In addition to the prior over Hashtag control states P ( u 0 T ) , the generative model also contains a prior over the Neighbour Attendance control state u 0 Who . We parameterise this prior over control states using a categorical distribution E Who , whose probability itself is given by a Dirichlet distribution with parameters ε :
P ( u 0 Who | E Who ) = E [ D i r ( ε ) ]
The Dirichlet parameters ε , unlike the parameters of categorical distributions, are positive but not constrained to integrate to 1.0 . As hyperparameters of a conjugate prior distribution, they are often analogised to ‘pseudo-counts’ that score the prior number of times a given action has been taken (in this case, sampling a particular neighbour via the control state u 0 Who ). For instance, if the ε vector for an agent with three neighbours is initialised to have the values ( 5 , 2 , 1 ) , this means that the focal agent has a built-in propensity to take the action Attend Neighbour 1 rather than the actions Attend Neighbour 2 or Attend Neighbour 3 . Furthermore, in turn, taking the action Attend Neighbour 2 is twice as probable as taking the action Attend Neighbour 3 . As we will see in the following sections, this ‘habit vector’ ε can be learned over time by optimising a variational beliefs over E Who , which involves incrementing a Dirichlet ε vector that parameterises the posterior Q ( E Who ) .

2.8. Summary

This concludes the specification of a single agent’s generative model for opinion formation. Now that we have specified this generative model, we move on to define the family of the approximate posteriors (the agent’s beliefs) over hidden states and policies Q ( s , π ; ϕ ) as well as the variational free energy. In conjunction with the generative model, these can be used to derive the update equations used to perform active inference.

2.9. Approximate Posteriors and Free Energy

Under active inference, both perception and decision-making are cast as approximate inference problems, wherein the variational free energy (or bound on surprise) is minimised in order to optimise beliefs about hidden states (perception) and beliefs about policies (decision-making/action). In order to derive the equations that perform this optimisation, we therefore have to define the variational free energy. This free energy, equivalent to the bound defined in Equation (2), requires both an approximate posterior and a generative model. We defined a POMDP generative model for our active inference agents in the previous section; the remaining step before writing out the free energy is then to define an approximate posterior distribution. For compatibility with the categorical prior and likelihood distributions of the generative model defined in Equation (3), we will also define the approximate posterior as categorical distributions. Additionally, we will invoke a particular factorisation of the approximate posterior, also known as a mean-field approximation, that allows us to factorise the approximate posterior over hidden states across timesteps. We define the approximate posterior over hidden states and policies as follows:
Q ( s τ | π ) = C a t ( s π τ ) Q ( π ) = C a t ( π ) Q ( s 1 : T , π ) = Q ( π ) τ = 1 T Q ( s τ | π )
where the notation P ( x ) = C a t ( ϕ ) denotes a categorical distribution over some random variable x with parameters ϕ . While this simplification assumes that posterior beliefs at subsequent timesteps are statistically independent, as we will see below, the Markovian temporal structure of the generative model means that, in practice, beliefs about hidden states at one timestep are contextualised by empirical priors from past timesteps (posterior beliefs from earlier timesteps).
The full free energy for the POMDP generative model and the approximate posterior specified in Equation (16) can be written as follows:
F 1 : T = E Q ( s 1 : T , π ) [ ln Q ( s 1 : T , π ) ln P ( o 1 : T , s 1 : T , π ) ]
Equipped with the free energy, we can now derive update equations for hidden state estimation and policy inference that involve minimising F 1 : T .

2.10. State Estimation

Under active inference, hidden state estimation is analogised to perception—this is achieved by optimising the variational posterior Q ( s 1 : T | π ) over hidden states, given policies. Because our approximate posterior and generative models are defined using categorical distributions, the problem of state estimation becomes minimising free energy gradients of the form F s , where s are the parameters of the approximate posterior distribution over hidden states, Q ( s ) = C a t ( s ) .
At each timestep, the agent can take advantage of the mean-field factorisation of the posterior and the Markovian structure of the generative model to update only its beliefs about the current state of the world: Q ( s t ) . The optimal posterior at timestep t is then found by finding the solution to Q ( s t ) that minimises the timestep-specific free energy F t :
F t = E Q ( s t ) Q ( π ) [ ln Q ( s t ) ln P ( o t , s t | s t 1 , π ) ] F t Q ( s t ) = 0 Q * ( s t ) = σ ( ln P ( o t | s t ) + ln P ( s t | s t 1 , u t 1 ) P ( s t 1 ) )
This furnishes a simple belief update scheme for perception, where the optimal posterior Q * ( s t ) is a Bayesian integration of a likelihood term P ( o t | s t ) and a prior term P ( s t | s t 1 , u t 1 ) P ( s t 1 ) .
Further details on the form of the approximate posterior and the derivation of the time-dependent free energy can be found in Appendix A.

2.11. Policy Inference

Under active inference, policies π are also a latent variable of the generative model and thus must be inferred. Accordingly, planning and action also emerge as results of (approximate) Bayesian inference, where now the inference is achieved by optimising a variational posterior over policies Q ( π ) .
The optimal posterior that minimises the full variational free energy F 1 : T is found by taking the derivative of F 1 : T with respect to Q ( π ) and setting this gradient to 0, yielding the following free-energy-minimising solution for Q ( π ) :
Q * ( π ) = argmin Q ( π ) F = σ ( ln P ( π ) F ( π ) )
Therefore, in the same way that state estimation or optimisation of Q ( s ) in Equation (17) resembles a Bayesian average of a likelihood and a prior term, policy inference also becomes an average of the policy prior P ( π ) and the ‘evidence’ afforded to each policy, scored by F ( π ) . See Appendix A for a more detailed derivation of the optimal policy posterior Q * ( π ) .
The crucial component in understanding the behaviour of active inference agents lies in the specification of the policy prior, P ( π ) . Under the standard construct of active inference (However, see alternative derivations as in [122,123]), the probability of a policy is defined a priori to be proportional to the negative expected free energy of that policy:
P ( π ) = σ ( G ( π ) )
The expected free energy or EFE is denoted by G ( π ) , and it measures the free energy expected under pursuit of a policy. This expected or predictive nature of the EFE is crucial: although the standard free energy is typically a direct function of observations (and functional of beliefs), when evaluating the consequences of a policy in the future, observations are not known—therefore, the expected free energy must deal with predicted observations or predictive densities over observations. As we will see below, this counterfactual nature of the expected free energy is what endows action selection with inherently both goal-directed and information-seeking components.
The expected free energy is defined mathematically as:
G ( π ) = D K L [ Q ( s 1 : T , π ) | | P ˜ ( o 1 : T , s 1 : T , π ) ]
where P ˜ represents a generative model ‘biased’ towards the preferences of the agent. We can write this biased generative model at a single timestep as P ˜ ( o τ , s τ , π ) = P ( s τ | o τ ) P ˜ ( o τ ) , where P ˜ ( o τ ) represents a ‘biased prior’ over observations. Given the factorisation of the approximate posterior Q ( s , π ) over time as defined in (16), the EFE for a single timestep can also be defined as follows:
G ( π ) τ = D K L [ Q ( s τ | π ) P ˜ ( o τ , s τ ) ] E Q ( o τ | π ) D K L [ Q ( s τ | o τ , π ) Q ( s τ | π ) ] Epistemic Value E Q ( o τ | π ) [ ln P ˜ ( o τ ) ] Utility
where the first term, the epistemic value, scores policies according to how much information observations o τ expected under that policy provide about hidden states. This term is expressed here as the divergence between the states predicted under a policy, with and without conditioning on observations. The second term represents the degree to which expected outcomes under a policy will align with the biased prior over observations in the generative model. Since the prior over policies minimises expected free energy, policies with thus favoured states resolve uncertainty (maximise epistemic value) and satisfy prior preferences (maximise utility).
Having specified the prior over policies in terms of the (negative) expected free energy, we can now rewrite Equation (18) by expanding the prior in terms of G ( π ) :
Q * ( π ) = σ ( G ( π ) F ( π ) )
Additionally, in extensions introduced in [72], one has the option of augmenting the prior over policies with a ‘baseline policy’ or ‘habit vector’ P ( π 0 ) , also referred to as the E distribution. This means that the full expression for the optimal posterior can be written as (expanding ln P ( π ) as ln P ( π 0 ) G ):
Q * ( π ) = σ ( G ( π ) + ln P ( π 0 ) F ( π ) )
We introduce this ‘habit vector’ P ( π 0 ) explicitly here, because it will be one of the parameters we explore in the multi-agent model. Note that in the Section 2.13 below, we reformulate the prior over policies in terms of two separate priors over control states in order to disentangle the prior over policies that include particular Hashtag control states u T from the prior over policies that are specific to neighbour-attendance control states u Who .

2.12. Action Selection

Action selection results from sampling from the marginal posterior over actions, or ‘control states’. The marginal posterior over actions can be computed by marginalising out the posterior probability of policies using the policy-to-control mapping P ( u t | π ) :
Q ( u t ) = π P ( u t | π ) Q ( π )
This marginalisation is necessary because the mapping between policies and actions is not necessarily one-to-one: in the case of multi-timestep policies or multi-factor generative models, a particular control state u t might be entailed by more than one policy. Therefore, this marginalisation effectively computes the value of each action by summing together the posterior probabilities of all policies that include it. This entailment relation is encoded in the likelihood P ( u t | π ) .
Once the posterior over control states Q ( u t ) has been computed, an action a is simply sampled from this posterior marginal—this is then the action that the agent takes at timestep t:
a t Q ( u t )

2.13. Habit Learning

Under active inference, learning also emerges as a form of variational inference. However, this inference is not over hidden states, but rather over model parameters [72]. Such parameter inference is referred to as ‘learning’ because it is often assumed to occur on a fundamentally slower timescale than hidden state and policy inference. However, the update equations for model parameters follow the exact same principles as hidden state inference—namely, we optimise a variational posterior over model parameters Q ( ϕ ) by minimising the variational free energy F .
In the current model, we use ‘habit learning’ as originally described in [72] to model the development of so-called ‘epistemic habits,’ or the tendency for an originally epistemically motivated behaviour to become habitually driven, mimicking the transfer from model-based to model-free learning in the context of behavioural conditioning [75,76]. Technically, habit-learning reduces to updating a variational posterior over the categorical vector E Who , which parameterises the prior over the neighbour-attendance control state u Who .
Recall from the Section 2.7 that E Who is a vector of categorical parameters whose prior probability is given as a Dirichlet distribution:
P ( u 0 Who | E Who ) = E [ D i r ( ε ) ]
The Dirichlet distribution is a conjugate prior for categorical distributions, meaning that the resulting posterior will also be Dirichlet distributed. Motivated by this conjugacy, we can define a variational posterior over the ‘habits’ Q ( E Who ) parameterised by variational Dirichlet parameters ε . One then simply augments the generative model from Equation (3) with the prior over the categorical E Who parameters, which then allows one to define a new variational free energy, supplemented with the approximate posterior over E Who . Solving for the free-energy minimising solution with respect to the variational Dirichlet parameters ε leads to the following fixed-point solution for Q ( E Who ) [124]:
Q ( E Who ) = D i r ( ε ) ε * = ε + η · Q ( u t Who )
where η is a so-called ‘learning rate’ and Q ( u t Who ) are current posterior beliefs about u Who controls states. In other words, agents will update their posterior over actions or ‘habit vector’ according to how often they attend to a particular neighbour, as measured by the probability of each u Who action. In the current work, we eschew the usual ‘separation of timescales’ assumption used in learning simulations (e.g., in [72,125]) and update the posterior habit vector ε at every timestep, i.e., after every action. This means that agents in this context simultaneously infer which neighbour to attend to, based on the prerogative to minimise expected free energy, while also incorporating a continuously learned ‘habit’ based on the frequencies with which they attend to different neighbours.

2.14. Multi-Agent Simulations

Now that we have introduced the generative model used by single agents and the ensuing inference, action, and learning rules that each agent will use to update its beliefs over time, we proceed to describe the multi-agent simulation itself.
A single multi-agent opinion dynamics simulation consists of a group of N active inference agents, where in the current work N ranged from 12–30 agents. Each agent is equipped with the single generative model of opinion formation, as described in the previous sections. All simulations described below were conducted using pymdp, a freely available Python package for performing active inference in discrete state spaces [126].
At each timestep, all agents simultaneously (1) update their beliefs as a function of observations and then (2) take an action (i.e., selecting which Hashtag to tweet and which neighbour to attend to). Crucially, each agent’s observations are a function of its own actions at the previous timestep, as well as the actions of a select set of neighbours at the previous timestep. Each agent has a fixed set of neighbours, where the particular neighbours are determined by a randomly chosen network topology. In the current study, we set the neighbour-to-neighbour connectivity for all simulations using Erdős-Rényi (ER) networks with some connection parameter p, meaning that agents are connected with fixed probability p [127]. For the current purposes, we make these networks undirected or symmetric, so that any agents that share an edge can both observe each other’s tweet actions and choose to read each other’s tweets. The components of each agent’s generative model (i.e., the number of observation modalities, number of hidden state factors) is a function of its local connectivity and the number of neighbours that it has. For example, a random agent in the network that was initialised to have three other neighbours will have three hidden state factors corresponding to the ‘meta-beliefs’ of these three neighbours: s MB 1 , s MB 2 , and s MB 3 as well as three observation modalities that it will use to read each of those neighbours’ tweets: o NT 1 , o NT 2 , and o NT 3 . Each of those neighbouring active inference agents’ actions (which Hashtag they tweet) will thus feed into the focal agent’s various Neighbour Tweet modalities at every timestep. Because edges are bidirectional, each of the neighbouring agents themselves will have a hidden state factor and observation modality, in their respective generative models, that represent the beliefs and Tweet Hashtag X actions of the focal agent.
In the results section to follow, we investigate the opinion dynamics under active inference by testing the hypotheses stated in the Section 1.6. We do this by systematically varying both the network connectivity p and the parameters of individual generative models, in an effort to investigate the extent to which ‘epistemic communities’ depend on both network properties and the cognitive features of individuals.

3. Model Parameterisation

3.1. Fixed Parameters

It is worth mentioning the vast parameter space one encounters when simulating multi-agent active inference models. In the current work, each active inference agent is equipped with an entire POMDP generative model that contains hundreds of individual parameters (consider, for example, all the categorical parameters that comprise the observation model P ( o τ | s τ ) ). Importantly, this parameter explosion is exacerbated in the multi-agent setting, since not only does the number of total parameters scale simply in the size of the network N, but connections between agents render this scaling supra-linear in N, since each agent is equipped with K i + 2 hidden state factors and observation modalities, where K i is the number of neighbours that agent i is connected to.
This means that the possible parameter space that one must explore in order to understand the behaviour of the model is combinatorially explosive. To enable transparency and efficient parameter exploration, we employ several simplifications and low-dimensional parameterisations of every agent’s generative model, which render the resulting space easier to explore.
First of all, we assume that every agent’s observation model relating the tweet content of others to their beliefs has the same basic form. Recall from Equation (7) the ‘Hashtag semantics’ matrix h that comprises the observation model for the observation of neighbour k’s tweet content: P ( o NT k | s ) , parameterised with a ‘Hashtag reliability’ parameter p h . We fix this matrix to have the same parameter p h = 0.73 for all agents:
h = 0.73 0.27 0.27 0.73
The choice of p h = 0.73 was simply chosen since it is the setting of a two-element one-hot vector that is softmax-transformed using a precision parameter of 1.0. The choice of this particular parameter was not motivated by realism, or by construct- or ecological-validity. Instead, we chose it because it intuitively represents a “medium” level of precision, between the limits of precision and precision + , where the values of p h will converge to 0.5 and 1.0 , respectively. When the precision is 1.0 , the value of p h occupies a relative average of these extreme values at a value of 0.73. A focal agent believes that if it sees some neighbour k tweeting Hashtag 1, then the likelihood that neighbour k believes in Idea 1 is 73%, and the likelihood that they believe in Idea 2 is 27%. The relationship is inverted in case the focal agent sees neighbour k tweeting Hashtag 2. In the current study we assume that this basic Hashtag semantics matrix in Equation (28) is common to all agents, and for all neighbours (relative to some focal agent). This enables us to selectively explore the effect of epistemic confirmation bias, a single (scalar) precision γ that can be used to up- or down-weight columns of the Hashtag semantics matrix, according to whether a given neighbouring agent’s belief aligns with (the focal agent’s belief about) the environmental hidden state factor s Idea (see the section on Neighbour Tweet Likelihood for a more detailed explanation).
Another restriction is in space of network architectures we explore; for the present study, we constrain the connectivity to be defined by random graphs (also known as Erdős–Rényi or ER networks) that are characterised by two parameters: the network size N and the connectivity p. We render the simulations computationally tractable by exploring small networks (in the range of N = 12 –30 agents) while systematically varying the connection probability p. We also assume that all agents’ transition models (those for both the environmental hidden state factor s Idea and meta-belief factors s MB ) are a scaled version of the 2 × 2 identity matrix I 2 . This further enables their systematic exploration in terms of single scalar (the precision), rather than exploring all possible parameterisations of 2 × 2 transition matrices. In addition, while we systematically explore the inverse volatility parameter ω Soc and epistemic confirmation bias precision γ , we fix the value of ω Idea to be 9.0 for all simulations. We leave the full combinatorial exploration of all parameters, including ω Idea , to future work.
Finally, while parametrically exploring the dependence of collective outcomes on individual parameters, we usually restricted parameter sweeps to vary at most two parameters at a time. We did this in order to simulate a sufficient number of trials for each condition while also investigating each parameter with as fine a resolution as possible. Under both these constraints, the computation time would explode when varying more than just two parameters simultaneously; we thus fix the values of the non-varied parameters to limit computational burden (e.g., fix ω Soc while varying γ and η ). In practice, we clamped the value of the fixed parameters to ‘insensitive’ regions of parameter space where we know that the collective measure of interest (e.g., polarisation) did not depend on small changes in that parameter.

3.2. Parameters of Interest

In the following results section we describe four sets of parameters that we systematically varied to investigate their role in determining emergent phenomena in the multi-agent simulations. Below we briefly step through each parameter and rehearse its interpretation, and our motivation for investigating it.

3.2.1. Epistemic Confirmation Bias

Recall from Section Neighbour Tweet Likelihood that epistemic confirmation bias or ECB is a precision parameter γ that selectively scales the Hashtag semantics matrix of the agent’s observation model, linking s Idea and s MB k to o NT k . The ECB precision γ scales the Hashtag semantics matrix in such a way that some focal agent i receives evidence for the s Idea hidden state factor’s value (Idea 1 vs. Idea 2) from the tweet output of some neighbour k, in proportion to how much neighbour k agrees with agent i.
This means that a focal agent with a higher γ believes that tweets more reliable if they come from neighbouring agents that are believed to share the opinion of the focal agent. The consequence of this is an ironically named ‘epistemic’ sort of confirmation bias, where agents believe that more reliable information about s Idea comes from neighbours who are believed to be ‘like-minded’ to themselves. This can be revealed by recalling the expected free energy, the key determinant in action selection under active inference. As decomposed in Equation (21), this comprises an information gain term and a utility term. By means of the ECB parameter, the epistemic value term is preferentially higher for those actions that entail attending to a neighbour who the focal believes is like-minded. This can be analysed more quantitatively by inspecting the ‘negative ambiguity’ term of the epistemic value, H , which we show to be directly proportional to epistemic confirmation bias:
H = E Q ( s Idea , s MB k ) [ 1 C p h γ log p h γ + ( 1 p h ) γ log ( 1 p h ) γ 2 log C + p h log p h + ( 1 p h ) log ( 1 p h ) ]
See Appendix B for a complete derivation of the relationship between γ and epistemic value.
Given this relationship, we expect that higher epistemic confirmation bias will drive agents to preferentially attend to the actions of agents that share their beliefs. On a collective level, we hypothesise that ECB will increase the probability of both polarisation (two clusters of oppositely minded agents) and consensus (all agents have the same or similar beliefs about the Idea).

3.2.2. Inverse Social Volatility

Recall the inverse temperature parameter introduced in Section 2.4, where we parameterised a focal agent’s beliefs about the stochasticity of the social dynamics using precision parameters ω Soc (following the notation used in [84]). The inverse social volatility scales the transition model that describes the dynamics of s MB k , such that a higher ω Soc induces an assumption of less stochasticity in the belief evolution of neighbours’ ‘meta-beliefs.’ This relationship also implies that the inverse social volatility is related to the epistemic value of actions that involve attending to particular neighbours. In particular, higher volatility (i.e., more entropy in the columns of the B MB k matrices) leads to higher overall uncertainty in beliefs about hidden states. In other words, for lower values of ω Soc the uncertainty of the posterior marginal Q ( s MB k ) will accumulate faster, as long as the focal agent is not attending to neighbour k. Actions that entail attending to these unattended neighbours will therefore grow in epistemic value, the more time elapses during which those neighbours remain unattended. Importantly, the growth in epistemic value will scale inversely with ω Soc (see Appendix B for details). This means that the particular value of ω Soc sets an effective ‘refresh rate’ for how often a neighbour should be re-attended to, in order to resolve uncertainty about their beliefs.
Given this relationship, we hypothesise that high ‘meta-belief’ volatility (low ω Soc ) will lead agents to re-read their neighbours’ tweet content with a higher rate—whether or not they (believe they) agree with them—in order to resolve uncertainty about their beliefs. We expect that this continuous, epistemically driven ‘re-sampling’ will counteract the tendency of the group to polarise and thus favour collective agreement or consensus. An interesting question will be whether the inverse social volatility parameters directly ‘reverse’ the effect of γ , where the two jointly determine a collective trade-off between consensus and polarisation.

3.2.3. Learning Rate

The learning rate η associated with updating the habit vector over neighbour-attendance control states u Who represents the degree to which agents will preferentially sample those neighbours that they have attended to in the past. In the presence of a higher learning rate, the Dirichlet hyperparameters over the habit vector E Who will be “bumped up" by a larger amount after choosing to attend to any particular agent, such that a focal agent will form preferences to attend to those agents whose Hashtags they habitually read. We expect therefore that a higher value of η will lead to increasingly preferential neighbour-attendance patterns among agents, and eventually to a change in the overall collective belief distribution of the group. Specifically, we hypothesise that ‘echo-chamber’-like dynamics will be exacerbated by a higher value of η , such that it will be harder to ‘escape’ from polarised dynamics in the presence of a large habit-learning rate η .

3.2.4. Network Connectivity

In addition to individual generative model parameters like γ , ω Soc , and η , we also quantitatively investigate whether and how the topology of agent-to-agent communication determines emergent behaviour. To quantitatively investigate this using a simple, one-dimensional parameterisation, we initialised the agent-to-agent communication network (i.e., which agents can read with other agents’ Hashtags) using a fixed random graph with connection probability p. For random graphs, p encodes the probability that any two agents have an edge between them. In the current context, an edge between any two agents determines whether they can view each other’s Hashtags, and thus form beliefs about one another’s beliefs). We hypothesise that denser communication topologies, represented by random graphs with increasing connection probability p, will obviate the risk of polarisation and lead to consensus with higher probability. In investigating this network effect, we also hope to reveal interactions between γ (which we hypothesise will induce polarisation) and connection probability p.
In the following sections, we describe the results of numerical experiments wherein we systematically vary the parameters discussed above, and reveal how they modulate the collective formation of ‘epistemic communities’ (e.g., echo-chambers, polarisation, and consensus).

4. Results

In the following sections we summarise the results of numerical experiments that validate the basic dynamics of the opinion formation generative model and then systematically investigate each of our three hypotheses. The results sections are organised as follows.
First, we demonstrate the basic dynamics of an active inference agent engaged in opinion formation. Over time, we show how a single focal agent updates its beliefs about the world in the face of conflicting Hashtag observations from two neighbours. In this process, the agent simultaneously forms beliefs about the abstract, environmental hidden state (Idea 1 vs. Idea 2) as well as beliefs about the meta-beliefs of two neighbouring agents to whose Hashtags it is exposed. We examine the dependence of a single agent’s belief-updating dynamics on different settings of the epistemic confirmation bias γ and the inverse social volatility ω Soc under a fixed value of ω Idea = 9.0 .
Next, we demonstrate the emergent formation of epistemic communities and the diverse dynamics that can be observed under the current active inference model. These are meant as proof-of-principle validation of the opinion dynamics model and the rich sorts of collective behaviours it can give rise to.
Finally, in order to test the three hypotheses that frame our study of epistemic communities under active inference, we systematic vary parameters such as γ , ω Soc , η , and p to investigate how they determine collective dynamics. In these collective dynamics experiments, we link groups of active inference agents together and simulate their multi-agent dynamics for up to T = 100 timesteps. We then study collective outcomes by averaging the results of hundreds of independent realisations.
When systematically varying parameter configurations, we define a single condition as a combination of the parameters of interest. This includes the network connectivity p and a vector of generative model parameters, e.g., γ = 3.5 , ω Soc = 0.5 , η = 1.5 . For each condition, we ran 100 independent multi-agent simulations with a network size N = 15 agents. We chose relatively small networks in order to limit the computational burden of each simulation.

4.1. Opinion Formation in a Single Agent

Figure 2 visualises opinion formation in a single active inference agent, and sheds light on the relationship between ω Soc and γ in determining the rate of belief updating and action selection. We investigate this using a simplified three-agent set-up, where one focal agent is exposed to a sequence of conflicting information from two neighbours. At each timestep, the focal agent chooses to read a Hashtag from one of its two neighbours, and the two neighbours are not actually active inference agents, but are simply sources of a sequence of discrete Hashtag observations (Hashtag 1 issue from Neighbour 1, Hashtag 2 issue from Neighbour 2). We can see anecdotally how belief updating and sampling behaviours are bidirectionally modulated by different combinations of ω Soc and γ . In general, Figure 2 shows that beliefs in more meta-belief volatility (lower ω Soc ) lead to higher posterior uncertainty about the s Idea hidden state, as is shown by the red lines in subplots (a) and (c). Higher epistemic confirmation bias γ , on the other hand, induces a positive feedback effect, wherein the focal agent comes to agree with one of its two neighbours with high certainty, most likely whichever neighbour it happens to attend to at the first timestep.
With high enough γ or high enough ω Soc , the focal agent’s beliefs, faced with these two conflicting sources of information, converge to one Idea. This choice is consistently reinforced by the focal agent’s continuing to sample the agent it agrees with (lower insets in each subplot of Figure 2). There is also an interesting interaction between γ and ω Soc , such that ω Soc drives down posterior uncertainty in the focal agent’s beliefs about its neighbour Q ( s MB k ) . This in turn decreases the information gain term in the expected free energy, such that the agent has stronger prior beliefs about its neighbour’s beliefs and there is less information gain afforded to attending to that neighbour. On the other hand, higher γ drives up epistemic value, even in the face of precise beliefs about the neighbour’s belief state, making the agent expect to artificially resolve more uncertainty from its observations.
It is clear that for configurations with high inverse social volatility, as the focal agent’s beliefs converge toward the beliefs of Neighbour 1, it also begins to attend to Neighbour 1 more often than Neighbour 2 (subplot (d)). However, with low inverse social volatility, the focal agent is driven to periodically attend to both neighbours, due to the increasing epistemic value associated with neighbours that are unattended to. Interestingly, when ω Soc is low and γ is high (Figure 2c), the focal agent continues to periodically re-attend to the neighbour it disagrees with, due to increasing uncertainty about that neighbour’s belief, induced by high volatility associated with it. Note, however, that the total probability of attending to the like-minded neighbour is still higher due to the presence of high epistemic confirmation bias. In the presence of both low epistemic confirmation bias and low inverse social volatility, posterior uncertainty is high all-around and the focal agent is ‘ambivalent’ between both Idea 1 and Idea 2. Nonetheless, the focal agent succeeds in inferring the belief-states of its two neighbours as it repeatedly alternates between sampling them.

4.2. Epistemic Community Dynamics

Figure 3 shows examples of the collective opinion dynamics (i.e., ‘epistemic communities’) that emerge when simulating networks of active inference. Unlike in Figure 2, in these simulations the observations for every agent are generated by the actions of other active inference agents, who are all collectively reading the Hashtag actions of other agents while and generating their own. We include this to showcase the rich phenomenology displayed by collectives of active inference agents, validating our model alongside known opinion dynamics models that can capture phenomena like consensus and polarisation. In the following sections we investigate the dependence of these dynamics on the parameters of generative models and network density quantitatively.

4.3. The Dependence of Epistemic Communities on γ and p

We first investigated Hypothesis 1, or how epistemic confirmation bias γ and network connectivity p determine the collective formation of epistemic communities. We systematically varied both epistemic confirmation bias (15 values of γ tiling the range ( 3 , 9 ) ) and network connectivity (15 values of p tiling the range ( 0.2 , 0.8 ) ) in networks of N = 15 agents, and simulated S = 100 independent realisations of each condition for T = 100 timesteps. Other parameters were fixed to constant values ( ω Soc = 0.6 , ω Idea = 9.0 , η = 0.0 ). Note that here, habit-learning was intentionally disabled ( η = 0.0 ) to selectively investigate the effect of γ while excluding the effect of habit learning on epistemic community formation. Within each parameter configuration, every independent realisation and every agent had the same average value of epistemic confirmation bias γ , but for each agent, we sampled a vector of epistemic confirmation bias values from a normal distribution centred at the parameter setting with a variance of 0.1 . Note that there are k different ECB parameters per agent because each agent has a collection of A NT k arrays, each corresponding to the observation model from a particular neighbour. Each of these k likelihood arrays is parameterised by a single γ . By sampling γ across A NT k arrays within each agent’s generative model, we implicitly gave each agent a particular bias to believe that certain neighbours were more ‘reliable’ than others—some neighbours contribute more or less to the focal agent’s confirmation bias tendency. Note that this same sort of across-neighbour sampling was performed for the inverse social volatility ω Soc = 0.6 —in other words, 0.6 served as the mean of a normal distribution, from which each agent’s vector of neighbour-specific ω Soc parameters was sampled, one for each B MB k .
The aim was to investigate how higher epistemic confirmation bias, particularly in a sparse network, might drive the emergence of epistemic communities through the formation of belief clusters that are both dense and far apart in ‘belief-space.’ In general, it is known in the literature that clusters are more easily formed in sparsely connected networks, but less so in densely connected networks where all agents communicate with each other [94]. Therefore, one interesting hypothesis for this experiment was that increasing the value of γ could achieve the opposite effect: namely, a high degree of polarisation or belief-clustering behaviour in a densely connected network.
To assess the emergence of epistemic communities or clusters of like-minded individuals, we defined the polarisation index ρ , which measures the degree of ‘epistemic spread’ in a system. It is defined as the difference between the highest and the lowest values of the Bernoulli parameter defining Q ( s Idea = Idea 1 ) across all agents at the final timestep of the simulation (where the choice of one ‘side’ of the belief Q ( s Idea = Idea 1 ) is arbitrary). This final difference is then averaged across S independent realisations or trials to give the average value ρ for a particular condition. This is directly proportional to the ratio of the number of trials in any configuration in which the simulation ends with two opposing clusters, as opposed to consensus, where consensus is defined at the final timestep when all agents’ posterior beliefs about s Idea are on the same side of 0.5.
ρ s = max i [ Q ( s i Idea = Idea 1 ) min i Q ( s i Idea = Idea 1 ) ] | T = 100 [ 0 , 1 ] ρ = 1 S s = 1 S ρ s
where S indicates the number of total trials (here, S = 100 ).
A high value of ρ (close to 1) indicates more spread-out beliefs and implies clustering, i.e., echo-chamber formation, whereas a low ρ implies that the network of agents have similar beliefs about s Idea (i.e., consensus).
Figure 4 shows the effects of varying γ and p on polarisation as measured by ρ . It is clear from the first column of the heatmap that highly spread out beliefs can occur at all values of the epistemic confirmation bias in the presence of sparse connectivity. Denser networks in general reduce the risk of polarisation, as seen by a drop-off in ρ as p increases. However, epistemic confirmation bias can ‘counteract’ this effect to some extent by marginally bumping up the risk of polarisation, even in the presence of denser networks (high γ and high p). The lower subplots of Figure 4 demonstrate this counteractive effect, where even at high connectivities (e.g., p = 0.8 ) the epistemic confirmation bias can lead to the majority of trials resulting in polarised dynamics.
Why, one might wonder, does polarisation still occur with some probability even when γ is small? When network connections are sparse, polarisation can still occur by virtue of the agents lacking access to a variety of neighbours—this forces them to attend to one of a limited set of neighbours that they start out connected to. Since all agents are initialised with flat prior beliefs about s Idea , this leads to the formation of two clusters, since there is nothing correlating the beliefs of agents who are disconnected. Because there are two beliefs (Idea 1 and Idea 2), this means that on average this fragmentation leads to distinct sub-clusters of connected agents that will believe in one of the two Ideas with approximately 50% probability.
As γ increases, even in the presence of increasing connectivity, agents are driven by epistemic value to preferentially attend to the neighbours that (they believe) share their beliefs. This accounts for the slower decrease in polarisation with increasing connectivity p at higher levels of γ shown in Figure 4. This can be compared to the faster decrease in polarisation induced by p when γ is low (compare the first few rows of the heatmap in Figure 4 to the last few rows).
However, network connectivity seems to be a stronger effect than γ in enforcing consensus or at least the lack of polarisation. This is because the exploration entailed by γ encourages agents to attend to a larger group of neighbours, leading to a higher average spread of beliefs and the ability for agents to serendipitously encounter other agents they agree with. However, because of the density of the network, it is much more difficult for agents to become polarised as they will more frequently be exposed to new information, despite their propensity towards confirmation bias.

4.4. Effect of Inverse Social Volatility on Neighbour Attendance and Polarisation

Next, we explored Hypothesis 2, modelling behaviour under different values of inverse social volatility ω Soc to see how it would interact with γ . We swept over γ (15 values tiling the range ( 3 , 9 ) ) and ω Soc (15 values tiling the range ( 0.05 , 1.0 ) ) in networks of N = 15 agents with p = 0.4 connection probability. As explained before, each agent’s generative model was parameterised by a vector of k distinct γ and ω Soc parameters, which were sampled from a normal distribution centred around the parameter value characterising the condition. In this case, each sampled value parameterised the different neighbour-specific observation ( A NT k ) and transition models ( B MB k ) for a particular focal agent.
To assess the extent to which social attendance changes as a function of γ and ω Soc , we defined the re-attendance rate r. It scores the maximum number of times an agent samples the same neighbour throughout a parameter configuration, averaged over trials.
r s = max i t 1 i ( u t Who ) r = 1 S s = 1 S r s
where 1 is the indicator function.
We measured the re-attendance rate and polarisation index for each configuration, averaged across trials. Figure 5 portrays a complex picture on the relationship between γ and ω Soc . In the case of high volatility over meta-beliefs (low inverse social volatility), agents are driven to periodically re-attend to neighbours in order to resolve growing uncertainty about their beliefs. This is indicated by a higher average re-attendance rate r (top right heatmap). Interestingly, there is an interaction between re-attendance rate and epistemic confirmation bias, such that in the presence of low volatility (high inverse social volatility) and low epistemic confirmation bias, the re-attendance rate is minimised. We speculate that a low value of ECB ( γ = 3.5 ) makes the epistemic value of attending to every neighbour equally high purely a function of ω Soc . In this case, agents will continually revisit neighbours sequentially, with the attendance-preference for any given neighbour solely dependent on the time elapsed since the last time they were attended to. In the absence of confirmation bias (which normally accelerates the focal agent’s beliefs not only about s Idea but also about s MB k (cf. Figure 2), this means that uncertainty about neighbours’ beliefs will on average be higher. This will lead to diverse social attendance patterns, such that agents will prefer to constantly sample new neighbours, with no particular neighbour excluded from this uncertainty-driven re-sampling. There seems to be a stark threshold around ω Soc = 0.4 above which the re-attendance rate drops off quite rapidly, as long as γ < 6.64 . This threshold probably represents the level at which the epistemic value induced by posterior uncertainty (which is a function of ω Soc ) surpasses the contribution to epistemic value induced by γ . For higher values of γ ( > 6.64 ), the drop off in re-attendance rate with increasing ω Soc is countered due to the increased contribution of γ to the epistemic value of repeatedly sampling neighbours who are believed to be like-minded. Finally, at high enough values of γ (≈9.0), the drop-off of re-attendance rate with increasing ω Soc is re-established. This is likely due to the ‘self-inhibiting’ effect of increasing γ on epistemic value. When γ is high enough, agents come to form very precise beliefs about their neighbours’ beliefs (the entropy of Q ( s MB k ) decreases), which in turn decreases the resolvable uncertainty about those neighbours’ beliefs. We refer the reader to Appendix B for a more quantitative exploration of this effect that exposes the epistemic value in terms of an entropy term and a negative ambiguity term.
In terms of polarisation, it seems that for γ < 6.64 , high volatility (low ω Soc ) encourages polarisation more than low volatility, since agents are driven to re-sample their neighbours (with whom they are likely to agree, due to epistemic confirmation bias), and will end up forming distinct belief clusters. However, for γ > 6.64 the effect of ω Soc seems to disappear and we see high polarisation for all values of ω Soc . We originally hypothesised that if agents are uncertain about the beliefs of their neighbours (low ω Soc ), it will become more difficult to induce polarisation and purposefully sample those who are thought to agree, due to the competing epistemic value induced by high posterior uncertainty about one’s neighbours’ beliefs, regardless of whether (a focal agent believes) those neighbours to be like-minded. However there is no clear difference between polarisation levels when γ is high. Nevertheless it is clear that higher γ induces polarisation for non-volatile networks. A more robust effect is how social volatility induces the tendency to re-attend to neighbours (cf. right panels).

4.5. Habit Formation and Network Initialisation

For the final experiment, we explored Hypothesis 3, regarding the polarisation of networks via habit formation. We swept over γ (15 values tiling the range ( 3 , 9 ) ) and η (15 values tiling the range ( 0.0 , 0.9 ) ) in networks of N = 15 agents with p = 0.4 connection probability, where ω Soc = 0.6 and as before ω Idea = 9.0 . Here, γ was again normally distributed with a fixed mean (which varied by condition) and variance 0.1 across the k neighbours of each focal agent, but the learning rate η was fixed to the condition-dependent value across all trials and agents.
The learning rate η incentivises agents to re-attend to the same neighbour by forming a habit, which competes with the epistemic value of attending to a new neighbour with unknown beliefs. This experiment tested the hypothesis that a higher learning rate, i.e., stronger habit-formation, will increase polarisation.
Figure 6 demonstrates how learning rate η and epistemic confirmation bias γ interact to influence outcomes at the collective level. Indeed, a higher learning rate induces more polarisation, implying the formation of more ‘stubborn’ epistemic communities in the network. This effect appears at both low and high levels of epistemic confirmation bias, with on average a higher ρ observed with increasing learning rate, even at low levels of γ . However, it seems the effect is most pronounced at the highest levels of γ and η . Examining the average re-attendance r (right column of Figure 6) reveals a clear effect of η on neighbour re-attendance, with the rate seemingly maximised when the learning rate surpasses a value of η 0.3 . Interestingly, the effect of ECB on re-attendance is not very strong here, although it seems to have a mild negative effect. Namely, as ECB increases, the re-attendance rate tends to decrease. One counterintuitive explanation for this effect (which is similar to the effect observed in Figure 5) is the general increase in the epistemic value of attending to neighbours with unknown beliefs that is caused by increasing γ . Although by design γ is intended to ‘boost’ the epistemic value of only those actions that involve attending to neighbours that the focal agent believes it agrees with, there is still an overall ‘exploration bonus’ that scales with γ , even for actions that entail attending to neighbours with whom the focal agent disagrees. This is because in addition to the ambiguity term of the epistemic value, which captures the ‘confirmation bias’ effect encoded by γ , there is also a maximum-entropy component H [ Q ( o τ | π ) ] (see Appendix B for details). This term is maximised when the posterior uncertainty over meta-beliefs Q ( s MB ) is high (maximal when ( s MB ) = ( 0.5 , 0.5 ) ). Therefore, although ECB ‘bends’ the epistemic value landscape towards sampling like-minded neighbours (see Figure A1 in Appendix B for a visualisation of this effect), when compared to neighbours with differing beliefs, the inherently uncertainty-resolving nature of the epistemic value as a whole means that higher γ still increases the value of actions that involve attending to any neighbours whose beliefs the focal agent is uncertain about. This may in fact counteract the polarising effects we originally intended to capture by including the ECB parameter. This across-the-board ‘exploration bonus’ conferred by ECB may explain the mild effect we observe here, where increasing γ ends up decreasing average re-attendance r . This may indeed explain the decrease observed in Figure 5 and Figure 6.

5. Discussion

In this paper, we focused on the way communities form around shared beliefs about abstract entities or meanings, symbolised by an abstract discrete hidden state: an ‘Idea’. Shared belief around a particular ‘Idea’ emerges through coordination, which itself is individually driven by the desire to form accurate (Bayesian beliefs) about the world and the beliefs of one’s community. In particular, we modelled confirmation bias as an ‘epistemic’ phenomenon wherein agents have a biased belief that agents with whom they believe they agree are more likely to provide uncertainty-resolving (information-availing) data—hence the proposed terminology of epistemic confirmation bias.
Twitter provides fertile ground for the academic study of the spread of ideas. The platform is extremely popular, easy to access, and has an API that enables researchers to collect and analyse data. It has also been one of the major vectors for misinformation, leading to large-scale events, like the tensions around the 2016 election results [128] or the vaccine for SARS-CoV-19 [129]. With its effective network structure in terms of follower-, like-, and retweet-networks, Twitter provides an ideal environment for the empirical study of the spread of ideas.
The formation of echo-chambers has been well studied on Twitter and Facebook. Echo-chambers tend to reinforce like-mindedness in users, and tend as well to enable the crafting of a shared narrative [41]. The authors of [41] analysed the different ways in which different social media platforms’ algorithms influence the mechanisms of formation. They defined the echo-chambers based on the distributions of leanings towards polar attitudes. These attitude distributions were found to range from monomodal to bimodal or more complex. Regardless, polarisation is rarely neutral, and tends to favour opposition between extreme opinions. According to their results, Twitter and Facebook showed the most striking echo-chambers. Using virality models, they also measured information spread. In Twitter and Facebook, information was most likely to be spread to other users sharing similar leanings. Similar findings were shown by [130] by following the online debates surrounding vaccination hesitancy in Italy. Despite the formation of distinct echo-chambers, they found that community structure within echo-chambers also differed between vaccine advocates and sceptics and influenced information flow. Findings like these and others on polarised social network dynamics inspired us to analogise the model explored in the current work to online digital social media like Twitter, as well as to study how network structures influence echo-chamber formation. Alongside this, we chose to embrace an underlying active inference model as a cognitively inspired, Bayesian model for single agents’ belief formation.
To formalise confirmation bias as a fundamentally Bayesian phenomenon, we constructed our generative model to include a precision parameter that we named epistemic conformation bias or ECB. Specifically, ECB confers a higher weight to information that comes from peers that the reader (focal agent) believes are like-minded. This in turns leads an agent with higher ECB to selectively sample information that justifies what they already believe. We were able to replicate the formation of epistemic communities in silico, e.g., echo-chambers, on social networks such as Twitter. This unique formulation of confirmation bias as an epistemic phenomenon helps explain how individuals continuously forage their environment for information, but may become stuck in a so-called ‘bad bootstrap’ that simply reinforces existing beliefs about the world, which in the face of new information may lead to sub-optimal behaviour [131].
In agreement with previous work studying the relationship between synchronisation and network structure, we found that opinion dynamics depend heavily on network density. Our formalism allowed us to systematically vary the parameters of individual agents (e.g., cognitive biases or beliefs) as well as collective properties such as network structure. We found that the density of inter-agent connections, parameterised by connection probability of random graphs, determined the transition between echo-chamber formation (polarisation) and consensus. However, we found that in the presence of high ECB, one could observe polarisation even in the presence of dense connectivity (cf. Figure 4). This result seems counterintuitive, as we might think that network clustering is a necessary condition for more polarisation. However, clearly defined clusters and group boundaries can sometimes act as buffers [132,133,134,135,136]. Sub-clusters exchanging information are likely to average towards their local centre [137,138,139], which entails a form of opinion stability within the group. They are generally sheltered from other opinions since they cut ties to other agents not part of their group, and have been selected out [140]. However, in networks without clusters, opinions can have a high degree of volatility and reach very polar tendencies even without being entirely clustered. By means of epistemic confirmation bias, agents were likely to give more weight to information that was similar to their own, even in the presence of network neighbours with different opinions.
The clustering phenomenon is exacerbated by adding the capacity to form habits. Specifically, we allowed agents to increase their likelihood of resampling the same agents based on how often they attended to them in the past. Since neighbour-attendance is driven by epistemic value (resolving uncertainty about the s Idea and s MB hidden state factors), this tendency to revisit previously sampled neighbours is a form of ‘epistemic habit formation,’ where actions that are initially undertaken based on information gain become solidified over time due to a Pavlovian, model-free mechanism that simply reinforces past behaviour. We found that in addition to ECB, the presence of habit formation exacerbated polarisation, presumably due to the formation of echo-chambers or tight communities of agents that read only the Hashtag content of their like-minded peers. On the other hand, we found that beliefs about social volatility (represented by our ω Soc parameter) pushed the agents to sample their social environments more frequently and diversely, counteracting the effect of confirmation bias and habit formation in driving polarisation. We speculate that increased social volatility increases each agent’s incentive to sample a diverse array of network neighbours, which in turns lessens their susceptibility to believing in one Idea with high certainty. In other words, increased social volatility (low ω Soc ) makes agents more ‘curious’ about the beliefs of (potentially non-like-minded) neighbours, which in turns increases their exposure to conflicting information and ‘protects’ them from falling into one or another echo-chamber.
The contributing influence of beliefs about social volatility to exploratory social sampling leads us to consider the role of norms in social settings. If an agent is incentivised (via, e.g., epistemic value or curiosity) to pay attention to neighbours about whom they are uncertain, their social group could be a source of constant surprise, as long as their beliefs about their neighbours are constantly fickle (“I’m not sure what members of my social group believe from one time to the next”). In other words, even in the presence of a group of like-minded peers, we would expect that increased beliefs about social volatility leads to repeated attendance of peers among one another, even if those peers all agree (and believe as much about each other).

6. Conclusions

Our simulation showcased a novel opinion dynamics model based on multi-agent active inference, and highlights many interesting possibilities for future research. We introduced a new parameter, the epistemic confirmation bias, which can modulate the formation of epistemic communities by changing epistemic value in a biased way, namely towards attending preferentially to like-minded agents. In addition to the ECB, we also showed the importance of other features such as network structure and habit formation in contributing to polarised dynamics. However, there are several limitations to this work which warrant further discussion. While we systematised our study design to explore several parameters simultaneously, this search was not exhaustive and vast regions of parameter space remain unexplored. Particular parameters such as the size of the network and the ‘inverse environmental volatility’ ω Idea remained unexplored (we mainly explored networks with size N = 30 and always fixed ω Idea = 9.0 ), and for computational efficiency we restricted both the resolution and the combinatorics of the parameter combinations explored. Network size is a major computational bottleneck, and thus our results are not guaranteed to generalise to larger networks. In future work, we could leverage distributed computing or GPU-accelerated operations to explore both larger network sizes and parameter combinations. However, in model spaces with high enough dimensions, computational acceleration alone will not suffice; one could thus also reduce the sampled region of parameter space by leveraging efficient search techniques (e.g., optimal experimental design [141]) or higher-order learning methods such as Bayesian hyperparameter optimisation [142]. The ‘inverse environmental volatility’ parameter ω Idea deserves further mention: as explained in Section 2.5, ω Idea encodes the precision of the transition model B Idea . This can be understood as the the agent’s beliefs about the uncertainty characterising the truth status of the ‘Idea‘ itself. We intentionally fixed this parameter to a constant value of ω Idea = 9.0 for all simulations. In other words, all agents believed that the s Idea hidden state changed very slowly or with low uncertainty. As mentioned above, we made this simplification for the current study to limit the volume of the parameter space explored. Additionally, exploring beliefs about the dynamics of s Idea was not particularly relevant to the current study, because we did not include any true hidden environmental dynamics in the simulations. In fact, the agents only observe the behaviour of other agents, and never observe any true signal from the environment itself. Including a veridical, non-social signal from the environment, however, would be an interesting extension for future work.
The generative model used by the single agents was also limited, in the sense that we only modelled beliefs in one of two mutually exclusive Ideas. Previous research into opinion or collective dynamics has shown that such binarity may strongly determine the dynamics of the system [104,143]. From a construct-validity standpoint, such binarity also vastly simplifies the semantic complexity found in real epistemic communities. For example, the semantic expression of a particular idea or claim heavily depends on the community in which it circulates. In future designs, we should strive to make the ideas more complex and more porous. By porosity we mean ‘semantic cross-over’, in the sense that multiple ideas may entail more or less similar behavioural consequences, or indeed entail the truth value of one another. This porosity may give rise to groups that believe in the same idea from an inference standpoint, but have a different interpretation of it. Starting from there, we can begin to envisage a specific semantic embedding which leads us to social scripts [144]. These conceptual embeddings would lead to two different conceptions with distinct causal relations to the environment. The weak conception of the script corresponds to an embedding, linking the observation of an event to the belief in a particular idea. The strong conception of the script leads to a sequencing of the beliefs, such as an entailment relation (e.g., ‘if I believe X, this entails a belief in Y’). This type of conceptual entailment possible under a strong conception of social scripts, combined with the ability to express one’s beliefs, could engender a capacity to act and coordinate through language with other actors.
Future work could explicitly model these entailment relationships among semantic entities by violating the typical independence assumption used to factorise the generative model’s hidden state factors—for instance, instead of having each hidden state factor s ( f ) being conditionally dependent on only other states/control states within that factor, we could ‘mix’ hidden state factors to make states of factor i depend on states of factor j.
Another notable feature to include is the variation of prior beliefs about different ideas or claims. In the current model, agents were often initialised to have uniformly distributed beliefs about s Idea around the ‘ambivalence’ line of [ 0.5 , 0.5 ] . Future studies could quantitatively investigate the dependence of epistemic community formation on the initial distribution of prior beliefs and how that distribution intersects with structural features such as network position (e.g., ‘is a very confident agent more influential in determining information spread, when it’s a peripheral vs. central node in the network?’). In this way, we could study ‘historical effects’ such as whether pre-existing echo-chambers or belief distributions influence the susceptibility of the network to incoming information or environmental fluctuations.
Another limitation of this work is the relative simplicity of the dependent measurements we used to characterise collective outcomes. For instance, we measured the degree of collective consensus vs. polarisation through the polarisation metric. This metric is a scalar which quantifies the degree to which the entire network believes in one Idea vs. is split into believing in two Ideas. However, this one-dimensional metric is ambiguous with respect to exactly how beliefs are spread throughout the network, in the case of low consensus—for instance, a low polarisation metric does not disambiguate whether all the agents that believe in one Idea have network connections to each other, or whether they are isolated and only ‘by chance’ believe in the same Idea. Future investigations should thus develop more sensitive metrics, depending on the hypothesis, that take into consideration how individual beliefs correlate with the network topology. In addition, we could calculate polarisation-style metrics using other dimensions of the agents’ beliefs—for example, we could measure polarisation using the so-called ‘meta-beliefs,’ in addition to just the agents’ beliefs about the Idea itself.
In future studies, we hope to investigate individual cognitive differences more quantitatively using the active inference framework. Under active inference, ‘individual differences’ can be formalised as variance among the parameters of generative models across agents—e.g., different settings of the inverse volatility parameters for different agents. Another interesting possibility that is accommodated within the active inference framework is the idea that agents may learn the parameters of their generative models, as opposed to keeping them fixed over time. For example, one could imagine that the epistemic confirmation bias associated with a particular neighbour k could change over time as a function of the reliability of Hashtags observed by the focal agent. This is easily cast as another form of inference under the Bayesian framework. All one would need to do is define appropriate priors and approximate posteriors over γ , from which an additional free energy term and appropriate belief updating scheme could be derived. Learning the parameters may add ecological validity to the model as well; for example, agents might become accustomed to their social environment and seek out an epistemic community in order to increase the predictability of their sensory information, thus requiring them to sample their social environment less frequently. This is the kind of phenomenon that could be modelled by letting the inverse social volatilities ω Soc become free, learnable parameters. With larger networks, we may be able to simulate the emergence of similar but distant sub-communities, which become epistemically similar without coming into direct contact, or only through very distant contact with one another. This leads us to the possibility of simulating the way epistemic and pragmatic practices become cemented, giving way to social meaning semantics and scripts, which seem to separate cultures. Simulating the emergence of similar semantics and scripts across different communities may help us further understand their common underlying processes. Finally, in future studies, we could model an explicit state of conformity, by modelling the agent’s assumptions about the groups they can identify around themselves, and be driven to model their behaviour after the group they feel most kinship to.

Author Contributions

M.A. and D.D. generated the concept for the paper. C.H., D.D. and M.A. formulated the generative model for single-agent opinion formation. C.H. and D.D. wrote the code for performing the multi-agent simulations. D.D. and C.H. performed the numerical simulations and generated the figures. M.A., D.D. and C.H. wrote the paper. M.J.D.R. provided valuable feedback and edits on drafts of the paper. All authors have read and agreed to the published version of the manuscript.

Funding

C.H. is supported by the U.S. Office of Naval Research (N00014-19-1-2556). M.A. is supported by the VERSES Research and Development department.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

In this appendix we provide additional mathematical details on the update equations for perception and action (policy inference) under active inference.
We begin by recalling the POMDP generative model and the approximate posterior over hidden states and policies:
P o ˜ , s ˜ , u ˜ , π = P ( s 1 ) P ( π ) τ = 2 T P s τ | s τ 1 , u τ P u τ | π τ = 1 T P o τ | s τ Q ( s τ | π ) = C a t ( s π τ ) Q ( π ) = C a t ( π ) Q ( s 1 : T , π ) = Q ( π ) τ = 1 T Q ( s τ | π )
Given this generative model and approximate posterior, we can now write down the variational free energy over time:
F 1 : T = E Q ( s 1 : T , π ) [ ln Q ( s 1 : T , π ) ln P ( o 1 : T , s 1 : T , π ) ]
Due to the Markovian nature of the POMDP generative model and the factorised form of the posterior, the free energy over trajectories can be factorised into a per-timestep free energy F τ , which has the following simple form:
F τ = E Q ( s τ | π ) Q ( π ) [ ln Q ( s τ | π ) ln P ( o τ , s τ | s τ 1 , π ) ]
In the following subsections we show how state estimation (perception) and policy inference (decision-making/planning) are derived by minimising the variational free energy functionals with respect to the parameters of the posterior Q ( s 1 : T , π ) .

Appendix A.1. State Estimation

State state estimation consists of optimising the Q ( s 1 : T | π ) over hidden states under different policies. Because our approximate posterior and generative model are defined using categorical distributions, the problem of state estimation becomes minimising free energy gradients of the form F s , where s are the parameters of the approximate posterior distribution over hidden states, Q ( s ) = C a t ( s ) , where the notation P ( x ) = C a t ( ϕ ) denotes a categorical distribution over some random variable x with parameters ϕ .
In the ‘full construct’ version of active inference (see, e.g., [86]), the full joint posterior Q ( s 1 : T , π ) is optimised simultaneously, meaning that the posterior over hidden states is conditioned on policies. This means that the full posterior beliefs at any timestep t include a separate Q ( s t | π ) under each policy, where the beliefs about a given timestep under a given policy are often denoted by the sufficient statistics s π τ . For the current model, we have simplified posterior inference to rely on an approximate posterior where hidden states are independent of policies. This move is justified because the practical differences between the ‘full construct’ and simplified versions are negligible, in the limit of small policy spaces and short time horizons (such as in the current work). Therefore in the current study we amended the variational posterior to have the following form:
Q ( s 1 : T , π ) = Q ( π ) τ = 1 T Q ( s τ )
Given this simplified posterior, state estimation proceeds by optimising the posterior belief about hidden states at the current timestep Q * ( s t ) using the current observation o t . This can be found using the gradients of the variational free energy from Equation (A2), now using the simplified form of the posterior:
F t = E Q ( s t ) Q ( π ) [ ln Q ( s t ) ln P ( o t , s t | s t 1 , π ) ] F t Q ( s t ) = 0 Q * ( s t ) = σ ln P ( o t | s t ) + ln E P ( s t 1 , u t 1 ) P ( s t | s t 1 , u t 1 ) P ( s t 1 )
where σ ( x ) = e x x e x is the normalised exponential or softmax function. Equation (A3) is a type of ‘fixed-point solution’ for the posterior, where the beliefs about hidden states are directly set to the solution of minimal free energy (where F t Q ( s t ) = 0 ). Note that this differs with the classic ‘gradient descent’ scheme used to optimise the variational posterior with marginal message passing or variational message passing, as proposed in [86], which was originally invoked as a biologically plausible update scheme that could be implemented by neuronal population dynamics. Since we are not interested in simulating neurophysiological responses and the belief updating is simpler, for the simulations presented in this paper, we used this simpler update rule.
The functional form of (A3) invites a straightforward Bayesian interpretation: the ‘best’ posterior belief Q * ( s t ) is proportional to the product of a likelihood term P ( o t | s t ) and a prior term P ( s t | s t 1 , u t 1 ) P ( s t 1 ) —the definition of Bayes rule. In practice, we use a ‘moving empirical prior’ rule, where the posterior from last timestep’s optimisation Q * ( s t 1 ) becomes the prior P ( s t 1 ) . This means the update rule can be re-written as follows:
P ( s t 1 ) Q ( s t 1 ) Q * ( s t ) = σ ( ln P ( o t | s t ) + ln E Q ( s t 1 ) [ P ( s t | s t 1 , u t 1 ) ] )
This means that at each timestep, the current posterior is a Bayesian average between the likelihood term and the previous timestep’s posterior belief, passed through the action-conditioned transition dynamics P ( s t | s t 1 , u t 1 ) of the generative model. Note that this update rule can be extended to generative models with factorised observations o and hidden states s by rewriting Equation (A4) for a particular marginal Q * ( s t f ) as follows:
Q * ( s t f ) = σ E Q i f ln P ( o t | s t ) + ln E Q ( s t 1 f ) [ P ( s t f | s t 1 f , u t 1 ) ]
where the expectation E Q i f denotes an expectation with respect to all posterior marginals Q ( s t i ) besides the marginal Q ( s t f ) currently being optimised. To find the full, multi-factor posterior Q * ( s t ) , this equation is iterated across marginals, holding the existing solutions for all other marginals fixed while a particular one is updated [126].

Appendix A.2. Policy Inference

Under active inference, policies π inferred, i.e., the agent optimises a variational posterior over policies denoted by Q ( π ) . The optimal posterior over policies Q * ( π ) is obtained by minimising the free energy with respect to the categorical parameters π (cf. Equation (A1)). This can be shown by rewriting the full variational free energy over time F 1 : T as the sum of a complexity term that measures the divergence between the posterior and prior over policies, and an expected ‘accuracy’-like term:
F 1 : T = E Q ( s 1 : T , π ) ln Q ( s 1 : T , π ) ln P ( o 1 : T , s 1 : T , π ) = E Q ( s 1 : T , π ) [ ln Q ( π ) + τ = 1 T ln Q ( s τ | π ) ln P ( π ) ln P ( o 1 : T , s 1 : T | π ) ] = D K L [ Q ( π ) P ( π ) ] + E Q ( π ) F ( π )
where the second term is the expected variational free energy of policies F ( π ) , which is defined as follows:
F ( π ) = E Q ( s 1 : T | π ) [ ln P ( o 1 : T , s 1 : T | π ) H [ Q ( s 1 : T | π ) ]
The optimal posterior that minimises the full variational free energy F is found by taking the derivative of F with respect to Q ( π ) and setting this gradient to 0, yielding the following free-energy-minimising solution for Q ( π ) :
Q * ( π ) = argmin π F = σ ( ln P ( π ) F ( π ) )
Therefore in the same way that state estimation or optimisation of Q ( s ) in Equation (A4) resembles a Bayesian average of a likelihood and a prior term, policy inference also becomes an average of the policy prior P ( π ) and the ‘evidence’ afforded to each policy, scored by F ( π ) . Recall here that the policy prior P ( π ) is itself decomposed as a combination of the expected free energy prior and the ‘habit vector’: P ( π ) = P ( π 0 ) G .

Appendix B

In this appendix derive a quantitative relationship between the epistemic confirmation bias γ and the negative ambiguity term of the epistemic value. Recall the definition of the epistemic value:
E Q ( o τ | π ) D K L ( Q ( s τ | o τ , π ) Q ( s τ | π ) = E Q ( s τ | π ) H [ P ( o τ | s τ ) ] + H [ Q ( o τ | π ) ]
We define the first term on the RHS of the decomposition as the negative ambiguity H = E Q ( s τ | π ) H [ P ( o τ | s τ ) ] . We drop the τ subscript hereafter for simplicity, and restrict ourselves only to the computation of this term for the neighbour k tweet observation modality o NT k and the hidden states that it depends on, s Idea and s MB k . We further condition our analysis only on those policies that entail sampling neighbour k, i.e., those policies where s Who = u Who = k . Therefore we redefine Q ( s ) here as Q ( s Idea , s MB k ) .
Theorem A1.
The negative ambiguity is proportional to the epistemic confirmation bias parameter γ.
H k γ log k γ
Proof. 
WLOG, we simplify the state space to only consider the states s Idea and s MB k and the observation of neighbour k’s Hashtag o NT k . Recall that observation likelihood for o NT k , in the case that s Idea = s MB k is as a softmax transformation of (certain columns of) the base likelihood P ( o NT k | s Idea , s MB k ) and the epistemic confirmation bias parameter γ :
P ( o NT k | s Idea = s MB k , γ ) = e γ P ( o NT k | s Idea = s MB k ) ) e γ P ( o NT k | s Idea = s MB k ) )
In this case, the likelihood P ( o NT k | s MB k ) is comprised of two Bernoulli distributions, where
P ( o NT k | s MB k ) = { Bern ( p h ) , Bern ( 1 p h ) }
where p h is the ‘Hashtag reliability’ parameter of the matrix h :
h = p h 1 p h 1 p h p h
where this matrix is ‘copied‘ across the dimension of the likelihood corresponding to the two settings of s Idea .
Note also that the posterior over hidden states is factorised into two independent marginal posteriors.
Q ( s Idea , s MB k ) = Q ( s Idea ) Q ( s MB k )
The definition of negative ambiguity is
H = E Q ( s | π ) [ H [ P ( o NT k | s ) ] ]
Furthermore, we can write the negative entropy of the given likelihood as
H [ P ( o NT k | s MB k ) ] = p h log p h + ( 1 p h ) log ( 1 p h )
Using Equation (A9) we have
H [ P ( o NT k | s MB k = s Idea ) ] = p h γ C log p h γ C + ( 1 p h ) γ C log ( 1 p h ) γ C
where C = p γ + ( 1 p ) γ
The negative entropy can be decomposed into a sum of negative entropies:
H [ P ( o NT k | s MB k ) ] = H [ P ( o NT k | s MB k = s Idea ) ] H [ P ( o NT k | s MB k s Idea ) ]
which then means the total negative ambiguity can be written as follows, expanding the expressions for the entropies in terms of the Bernoulli parameter p h :
H = E Q ( s Idea , s MB k ) [ 1 C [ p h γ log p h γ + ( 1 p h ) γ log ( 1 p h ) γ 2 log C ] + [ p h log p h + ( 1 p h ) log ( 1 p h ) ] ]
Since all terms in Equation (A12) are increasing in γ insofar as p h 0 , then negative ambiguity is directly proportional to γ . □
Theorem A2.
For any γ > 1 , and for any realisation of the posterior Q ( s Idea , s MB k ) the negative ambiguity will be maximised in the case that the posterior beliefs about s Idea and the posterior beliefs about s MB k are either both greater than 0.5 or both less than 0.5.
γ > 1
max H { H : sgn ( Q ( ( s Idea ) 0.5 ) = sgn ( Q ( s MB k ) 0.5 ) }
Proof. 
We now use the fact that Q ( s Idea ) and Q ( s MB k ) are also Bernoulli probability distributions, such that
Q ( s Idea ) = Bern ( p ) Q ( s MB k ) = Bern ( q )
We also note that since the γ parameter only scaled the likelihood in the case that s Idea = s MB k , the values of the posterior that these correspond to are only those along the diagonal of the joint probability distribution of Q ( s Idea , s MB k ) , namely the joint line of solutions through p and q connected by the points q p and ( 1 q ) ( 1 p ) .
Expanding the expectation in Equation (A12), we can write the negative ambiguity as
q p ( H [ P ( o NT k | s MB k = s Idea ) ] ) ( 1 q ) ( 1 p ) ( H [ P ( o NT k | s MB k = s Idea ) ] ) q ( 1 p ) ( H [ P ( o NT k | s MB k s Idea ) ] ) p ( 1 q ) ( H [ P ( o NT k | s MB k s Idea ) ] )
Suppose that γ > 1 . This means that for nonzero p h , the entropy terms in Equation (A13) will be exponentiated by a power greater than 1, which implies that
H [ P ( o NT k | s MB k = s Idea ) ] ) < H [ P ( o NT k | s MB k s Idea ) ] )
Now take the case that Q ( s Idea ) > 0.5 and Q ( s MB k ) > 0.5 . This means that the largest coefficient scaling the entropy of the likelihood will necessarily be q p , which scales H [ P ( o NT k | s MB k = s Idea ) ] ) .
Similarly, if Q ( s Idea ) < 0.5 and Q ( s MB k ) < 0.5 , the largest coefficient scaling the entropy of the likelihood will necessarily be ( 1 p ) ( 1 q ) , which also scales H [ P ( o NT k | s MB k = s Idea ) ] ) .
However, if sgn ( Q ( ( s Idea ) 0.5 ) sgn ( Q ( s MB k ) 0.5 ) , the largest coefficients will be either ( 1 p ) q or p ( 1 q ) which will be scaling H [ P ( o NT k | s MB k s Idea ) ] .
Therefore, because of Equations (A13) and (A14), the maximum negative ambiguity for any value of γ > 1 will always be reached when sgn ( Q ( ( s Idea ) 0.5 ) = sgn ( Q ( s MB k ) 0.5 ) . □
Figure A1 provides a visual intuition for the relationship between the two marginal posteriors (defined by Bernoulli parameters p and q), the epistemic confirmation bias γ and the components of the epistemic value, decomposed here as the negative ambiguity H = E Q ( s | π ) [ H [ P ( o | s ) ] ] and the entropy of the predictive distribution over observations Q ( o | π ) .
Figure A1. Exploration of the relationship between ‘agreement’ between an agent and one of its neighbours, the epistemic confirmation bias parameter γ , and the epistemic value of reading that neighbour’s tweet content. Here, the two marginal posteriors Q ( s Idea ) and Q ( s MB k ) are expressed as two Bernoulli distributions with respective parameters p and q, where ‘agreement’ is the case when p = q and hence ( 1 p ) = ( 1 q ) . The top row shows heatmaps of the negative ambiguity H , entropy H [ Q ( o ) ] , and the full epistemic value E V = H + H [ Q ( o ) ] for a fixed value of γ = 15.0 , under all possible values of p and q. The ‘epistemic confirmation bias‘ effect is seen in the negative ambiguity surface H (upper left plot), which is maximised when posterior beliefs about the validity of Idea 1, measured by p, are aligned with posterior beliefs about a neighbour’s meta-belief about Idea 1, q. The bottom row of plots shows a complementary perspective, demonstrating the effect of increasing γ on the epistemic value and its components, for different settings of q when p = 0.0 . The subplot on furthest to the right of the bottom row shows that increasing γ increases epistemic value most when q is on the same side of 0.5 as p ( q = 0.2 , q = 0.4 ), and the effect of γ on epistemic value deceases once q passes 0.5 . Note that the epistemic value is 0 when p = q = 0 , because although the negative ambiguity is maximised in this case, it is counteracted by the entropy term which is 0 since both posteriors are certain.
Figure A1. Exploration of the relationship between ‘agreement’ between an agent and one of its neighbours, the epistemic confirmation bias parameter γ , and the epistemic value of reading that neighbour’s tweet content. Here, the two marginal posteriors Q ( s Idea ) and Q ( s MB k ) are expressed as two Bernoulli distributions with respective parameters p and q, where ‘agreement’ is the case when p = q and hence ( 1 p ) = ( 1 q ) . The top row shows heatmaps of the negative ambiguity H , entropy H [ Q ( o ) ] , and the full epistemic value E V = H + H [ Q ( o ) ] for a fixed value of γ = 15.0 , under all possible values of p and q. The ‘epistemic confirmation bias‘ effect is seen in the negative ambiguity surface H (upper left plot), which is maximised when posterior beliefs about the validity of Idea 1, measured by p, are aligned with posterior beliefs about a neighbour’s meta-belief about Idea 1, q. The bottom row of plots shows a complementary perspective, demonstrating the effect of increasing γ on the epistemic value and its components, for different settings of q when p = 0.0 . The subplot on furthest to the right of the bottom row shows that increasing γ increases epistemic value most when q is on the same side of 0.5 as p ( q = 0.2 , q = 0.4 ), and the effect of γ on epistemic value deceases once q passes 0.5 . Note that the epistemic value is 0 when p = q = 0 , because although the negative ambiguity is maximised in this case, it is counteracted by the entropy term which is 0 since both posteriors are certain.
Entropy 24 00476 g0a1
Theorem A3.
The inverse social volatility ω Soc is inversely related to the epistemic value of policies that entail sampling a particular neighbour-in other words E V 1 ω Soc .
Proof. 
Recall the decomposition of the expected free energy in the Section 2.11 for a policy π into the negative instrumental value and the negative salience or epistemic value. For convenience, we define a pseudo-‘value’ function for policies as the negative of the expected free energy V ( π ) G ( π ) :
V ( π ) = E Q o τ | π ln P ˜ o τ Instrumental value + E Q o τ | π D K L Q s τ | o τ , π Q s τ | π Epistemic value
It is straightforward to show the positive relationship between the entropy of the policy-conditioned beliefs H [ Q ( s τ | π ) ] and the epistemic value. We begin by isolating further analysis only to the meta-belief hidden state factor s MB k for a particular neighbour k and the corresponding observation modality: o NT k . For notational convenience, we let s = s MB k and o = o NT k . Using this notation, we can then rewrite the epistemic value as the predictive mutual information between states and observations, using the predictive distributions Q ( o τ | π ) and Q ( s τ | π ) :
E Q o τ | π D K L Q s τ | o τ , π Q s τ | π = D K L Q o τ , s τ | π Q s τ | π Q o τ | π I p r e d ( O ; S ) = o τ , s τ Q o τ , s τ | π ln Q o τ , s τ | π Q s τ | π Q o τ | π = H [ Q ( o τ , s τ | π ) ] + H Q ( o τ , s τ | π ) [ Q ( o τ | π ) ]
o τ , s τ Q ( o τ , s τ | π ) ln Q ( s τ | π )
Using the factorisation of the joint posterior predictive density Q ( o τ , s τ | π ) = P ( o τ | s τ ) Q ( s τ | π ) , the final term on the RHS of Equation (A17) can be rewritten:
o τ , s τ Q ( o τ , s τ | π ) ln Q ( s τ | π ) = o τ , s τ P ( o τ | s τ ) Q ( s τ | π ) ln Q ( s τ | π )
H [ Q ( s τ | π ) ] + E Q ( s τ | π ) [ ln P ( o τ | s τ ) ]
where the inequality going from (A18) to (A19) follows from Jensen’s inequality. Equation (A19) demonstrates that uncertainty about hidden states (as quantified by H [ Q ( s τ | π ) ] ) is directly proportional to the drive to reduce that uncertainty, subject to the log probability of observations expected under hidden states E Q ( s τ | π ) [ ln P ( o τ | s τ ) ] .
We can then use the dependence of P ( s τ | s τ 1 , π ) on ω Soc to relate the inverse social volatility to the posterior entropy H [ Q ( s τ | π ) ] .
Q ( s τ | π ) = P ( s τ | s τ 1 , π , ω Soc ) Q ( s τ 1 | π ) = e ω Soc P ( s τ | s τ 1 , π ) s τ e ω Soc P ( s τ | s τ 1 , π ) Q ( s τ 1 | π )
ln Q ( s τ | π ) = ω Soc P ( s τ | s τ 1 , π ) ln s e ω Soc P ( s τ | s τ 1 , π ) + ln Q ( s τ 1 | π )
ln Q ( s τ | π ) = ω Soc P ( s τ | s τ 1 , π ) C + ln Q ( s τ 1 )
E Q ( s τ | π ) [ ln Q ( s τ | π ) ] = ω Soc E Q ( s τ | π ) [ P ( s τ | s τ 1 , π ) ] + E Q ( s τ | π ) [ ln Q ( s τ 1 ) C ]
H [ Q ( s τ | π ) ] ω Soc E Q ( s τ | π ) [ P ( s τ | s τ 1 , π ) ]
The final line demonstrates that the entropy of the predictive posterior is inversely proportional to the inverse social volatility ω Soc , and thus controls the rate at which the focal agent’s uncertainty about their neighbours‘ belief-states increases, and therefore also determines the epistemic value of policies that entail reading that neighbour’s tweets. Intuitively, if an agent believes their social world is volatile (the beliefs of neighbouring agents quickly grow uncertain), the agent will become incentivised to sample those neighbours more frequently, in order to resolve rapidly growing uncertainty about s MB . Importantly, this epistemic value will grow over time for a particular neighbour as long as that neighbour’s tweets are not read, so a particular value of ω Soc entails a characteristic ‘social re-attendance rate’ for each neighbour. □

References

  1. Henrich, J. Culture and social behavior. Curr. Opin. Behav. Sci. 2015, 3, 84–89. [Google Scholar] [CrossRef]
  2. Heerwagen, J.H.; Orians, G.H. Humans, habitats. Biophilia Hypothesis 1995, 138, 138–172. [Google Scholar]
  3. Vasil, J.; Badcock, P.B.; Constant, A.; Friston, K.; Ramstead, M.J. A world unto itself: Human communication as active inference. Front. Psychol. 2020, 11, 417. [Google Scholar] [CrossRef]
  4. Goldstein, D.G.; Gigerenzer, G. Models of ecological rationality: The recognition heuristic. Psychol. Rev. 2002, 109, 75. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  5. Lau, R.R.; Redlawsk, D.P. Advantages and disadvantages of cognitive heuristics in political decision making. Am. J. Political Sci. 2001, 45, 951–971. [Google Scholar] [CrossRef] [Green Version]
  6. Oswald, M.E.; Grosjean, S. Confirmation bias. In Cognitive Illusions: A Handbook on Fallacies and Biases in Thinking, Judgement and Memory; Psychology Press: Hove, UK, 2004; Volume 79. [Google Scholar]
  7. Donsbach, W. Cognitive dissonance theory—A roller coaster career: How communication research adapted the theory of cognitive dissonance. In Media Choice; Routledge: London, UK, 2009; pp. 142–162. [Google Scholar]
  8. Knobloch-Westerwick, S.; Mothes, C.; Polavin, N. Confirmation bias, ingroup bias, and negativity bias in selective exposure to political information. Commun. Res. 2020, 47, 104–124. [Google Scholar] [CrossRef]
  9. Jonas, E.; Graupmann, V.; Frey, D. The influence of mood on the search for supporting versus conflicting information: Dissonance reduction as a means of mood regulation? Personal. Soc. Psychol. Bull. 2006, 32, 3–15. [Google Scholar] [CrossRef] [PubMed]
  10. Taber, C.S.; Lodge, M. Motivated skepticism in the evaluation of political beliefs. Am. J. Political Sci. 2006, 50, 755–769. [Google Scholar] [CrossRef]
  11. Cookson, J.A.; Engelberg, J.; Mullins, W. Echo chambers. Cookson, J. Anthony and Engelberg, Joseph and Mullins, William, Echo Chambers. 2021, pp. 1–71. Available online: https://ssrn.com/abstract=3603107 (accessed on 14 February 2022).
  12. Stanovich, K.E.; West, R.F. Natural myside bias is independent of cognitive ability. Think. Reason. 2007, 13, 225–247. [Google Scholar] [CrossRef]
  13. Mallinson, D.J.; Hatemi, P.K. The effects of information and social conformity on opinion change. PLoS ONE 2018, 13, e0196600. [Google Scholar] [CrossRef]
  14. Pryor, C.; Perfors, A.; Howe, P.D. Conformity to the descriptive norms of people with opposing political or social beliefs. PLoS ONE 2019, 14, e0219464. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Constant, A.; Ramstead, M.J.; Veissière, S.P.; Friston, K. Regimes of expectations: An active inference model of social conformity and human decision making. Front. Psychol. 2019, 10, 679. [Google Scholar] [CrossRef] [Green Version]
  16. Kameda, T.; Tindale, R.S. Groups as adaptive devices: Human docility and group aggregation mechanisms in evolutionary context. Evol. Soc. Psychol. 2006, 317–341. [Google Scholar]
  17. Fu, J.H.Y.; Morris, M.W.; Lee, S.L.; Chao, M.; Chiu, C.Y.; Hong, Y.Y. Epistemic motives and cultural conformity: Need for closure, culture, and context as determinants of conflict judgments. J. Personal. Soc. Psychol. 2007, 92, 191. [Google Scholar] [CrossRef] [PubMed]
  18. Cialdini, R.B.; Goldstein, N.J. Social influence: Compliance and conformity. Annu. Rev. Psychol. 2004, 55, 591–621. [Google Scholar] [CrossRef] [PubMed]
  19. Veissière, S.P.; Constant, A.; Ramstead, M.J.; Friston, K.J.; Kirmayer, L.J. Thinking through other minds: A variational approach to cognition and culture. Behav. Brain Sci. 2020, 43, e90. [Google Scholar] [CrossRef] [Green Version]
  20. Ladegard, G. Accessing Social Capital through Conformity: Investigating Network Cultures. Adv. Organ. Stud. 2006, 20, 153. [Google Scholar]
  21. Lieberman, M.D.; Eisenberger, N.I. Pains and pleasures of social life. Science 2009, 323, 890–891. [Google Scholar] [CrossRef]
  22. Pharo, H.H. The Behavioural and Psychological Effects of Ostracism in Adolescence and Emerging-Adulthood. Ph.D. Thesis, University of Otago, Dunedin, New Zealand, 2012. [Google Scholar]
  23. Tang, H.H.Y. The eye of the ostracised: Investigating changes in attention and affect following and during single-and multiple-episodes of ostracism and inclusion. Ph.D. Thesis, The University of New South Wales, Sydney, Australia, 2011. [Google Scholar]
  24. Ellickson, R. Order without Law Cambridge; Harvard University Press: Cambridge, MA, USA, 1991. [Google Scholar]
  25. Irwin, K.; Horne, C. A normative explanation of antisocial punishment. Soc. Sci. Res. 2013, 42, 562–570. [Google Scholar] [CrossRef]
  26. Allen, M. Theory-led confirmation bias and experimental persona. Res. Sci. Technol. Educ. 2011, 29, 107–127. [Google Scholar] [CrossRef]
  27. Falk, E.B.; Bassett, D.S. Brain and social networks: Fundamental building blocks of human experience. Trends Cogn. Sci. 2017, 21, 674–690. [Google Scholar] [CrossRef] [PubMed]
  28. Baumeister, R.F.; Leary, M.R. The need to belong: Desire for interpersonal attachments as a fundamental human motivation. Psychol. Bull. 1995, 117, 497. [Google Scholar] [CrossRef] [PubMed]
  29. Falk, E.; Scholz, C. Persuasion, influence, and value: Perspectives from communication and social neuroscience. Annu. Rev. Psychol. 2018, 69, 329–356. [Google Scholar] [CrossRef] [PubMed]
  30. Baek, E.C.; Scholz, C.; O’Donnell, M.B.; Falk, E.B. The value of sharing information: A neural account of information transmission. Psychol. Sci. 2017, 28, 851–861. [Google Scholar] [CrossRef] [PubMed]
  31. Scholz, C.; Baek, E.C.; O’Donnell, M.B.; Kim, H.S.; Cappella, J.N.; Falk, E.B. A neural model of valuation and information virality. Proc. Natl. Acad. Sci. USA 2017, 114, 2881–2886. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  32. Hong, H.; Choi, M.Y.; Kim, B.J. Synchronization on small-world networks. Phys. Rev. E 2002, 65, 026139. [Google Scholar] [CrossRef] [Green Version]
  33. Etzlinger, B.; Wymeersch, H.; Springer, A. Cooperative synchronization in wireless networks. IEEE Trans. Signal Process. 2014, 62, 2837–2849. [Google Scholar] [CrossRef] [Green Version]
  34. Masuda, N.; Aihara, K. Global and local synchrony of coupled neurons in small-world networks. Biol. Cybern. 2004, 90, 302–309. [Google Scholar] [CrossRef]
  35. Schmälzle, R.; Häcker, F.E.; Honey, C.J.; Hasson, U. Engaged listeners: Shared neural processing of powerful political speeches. Soc. Cogn. Affect. Neurosci. 2015, 10, 1137–1143. [Google Scholar] [CrossRef]
  36. Gumperz, J.J. The speech community. Linguist. Anthropol. A Read. 2009, 1, 66–73. [Google Scholar]
  37. Wood, W. Attitude change: Persuasion and social influence. Annu. Rev. Psychol. 2000, 51, 539–570. [Google Scholar] [CrossRef] [PubMed]
  38. Bodrunova, S.S.; Blekanov, I.S.; Kukarkin, M. Multi-dimensional echo chambers: Language and sentiment structure of Twitter discussions on the Charlie Hebdo Case. In International Conference on Human—Computer Interaction; Springer: Berlin/Heidelberg, Germany, 2018; pp. 393–400. [Google Scholar]
  39. Garimella, V.R.K.; Weber, I. A long-term analysis of polarization on Twitter. Proc. Int. Aaai Conf. Web Soc. Media 2017, 11, 528–531. [Google Scholar]
  40. Dunlop, C.A. Epistemic Communities; Routledge: London, UK, 2012. [Google Scholar]
  41. Cinelli, M.; Morales, G.D.F.; Galeazzi, A.; Quattrociocchi, W.; Starnini, M. Echo chambers on social media: A comparative analysis. arXiv 2020, arXiv:2004.09603. [Google Scholar]
  42. Garimella, K.; De Francisci Morales, G.; Gionis, A.; Mathioudakis, M. Political discourse on social media: Echo chambers, gatekeepers, and the price of bipartisanship. In Proceedings of the 2018 World Wide Web Conference, Lyon, France, 23–27 April 2018; pp. 913–922. [Google Scholar]
  43. Duseja, N.; Jhamtani, H. A sociolinguistic study of online echo chambers on twitter. In Proceedings of the Third Workshop on Natural Language Processing and Computational Social Science; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 78–83. [Google Scholar]
  44. Kozitsin, I.V.; Chkhartishvili, A.G. Users’ Activity in Online Social Networks and the Formation of Echo Chambers. In Proceedings of the 2020 13th International “Conference Management of Large-Scale System Development” (MLSD), Moscow, Russia, 28–30 September 2020; pp. 1–5. [Google Scholar]
  45. Starnini, M.; Frasca, M.; Baronchelli, A. Emergence of metapopulations and echo chambers in mobile agents. Sci. Rep. 2016, 6, 1–8. [Google Scholar]
  46. Wang, X.; Song, Y. Viral misinformation and echo chambers: The diffusion of rumors about genetically modified organisms on social media. Internet Res. 2020, 30, 5. [Google Scholar] [CrossRef]
  47. Baumann, F.; Lorenz-Spreen, P.; Sokolov, I.M.; Starnini, M. Modeling echo chambers and polarization dynamics in social networks. Phys. Rev. Lett. 2020, 124, 048301. [Google Scholar] [CrossRef] [Green Version]
  48. Nguyen, C.T. Echo chambers and epistemic bubbles. Episteme 2020, 17, 141–161. [Google Scholar] [CrossRef]
  49. Santos, B.R. Echo chambers, ignorance and domination. Soc. Epistemol. 2021, 35, 109–119. [Google Scholar] [CrossRef]
  50. Elzinga, B. Echo Chambers and Audio Signal Processing. Episteme 2020, 1–21. [Google Scholar] [CrossRef]
  51. Nguyen, C.T. Cognitive islands and runaway echo chambers: Problems for epistemic dependence on experts. Synthese 2020, 197, 2803–2821. [Google Scholar] [CrossRef]
  52. Sullivan, E.; Sondag, M.; Rutter, I.; Meulemans, W.; Cunningham, S.; Speckmann, B.; Alfano, M. Vulnerability in social epistemic networks. Int. J. Philos. Stud. 2020, 28, 731–753. [Google Scholar] [CrossRef]
  53. Palmer, C.J.; Lawson, R.P.; Hohwy, J. Bayesian approaches to autism: Towards volatility, action, and behavior. Psychol. Bull. 2017, 143, 521. [Google Scholar] [CrossRef] [PubMed]
  54. Engle, R.F.; Ghysels, E.; Sohn, B. Stock market volatility and macroeconomic fundamentals. Rev. Econ. Stat. 2013, 95, 776–797. [Google Scholar] [CrossRef]
  55. Fristad, M.A.; Gavazzi, S.M.; Mackinaw-Koons, B. Family psychoeducation: An adjunctive intervention for children with bipolar disorder. Biol. Psychiatry 2003, 53, 1000–1008. [Google Scholar] [CrossRef]
  56. Lawson, R.P.; Rees, G.; Friston, K.J. An aberrant precision account of autism. Front. Hum. Neurosci. 2014, 8, 302. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  57. Martin, G.P.; Hanna, E.; McCartney, M.; Dingwall, R. Science, society, and policy in the face of uncertainty: Reflections on the debate around face coverings for the public during COVID-19. Crit. Public Health 2020, 30, 501–508. [Google Scholar] [CrossRef]
  58. Desforges, M.; Gurdasani, D.; Hamdy, A.; Leonardi, A.J. Uncertainty around the Long-Term Implications of COVID-19. Pathogens 2021, 10, 1267. [Google Scholar] [CrossRef]
  59. Tandoc Jr, E.C.; Lee, J.C.B. When viruses and misinformation spread: How young Singaporeans navigated uncertainty in the early stages of the COVID-19 outbreak. New Media Soc. 2020, 24, 3. [Google Scholar] [CrossRef]
  60. Rettie, H.; Daniels, J. Coping and tolerance of uncertainty: Predictors and mediators of mental health during the COVID-19 pandemic. Am. Psychol. 2021, 76, 427. [Google Scholar] [CrossRef]
  61. Jiang, S.; Zhang, H.; Qi, J.; Fang, B.; Xu, T. Perceiving Social-Emotional Volatility and Triggered Causes of COVID-19. Int. J. Environ. Res. Public Health 2021, 18, 4591. [Google Scholar] [CrossRef]
  62. Berger, J.G.; Johnston, K. Simple Habits for Complex Times; Stanford University Press: Redwood City, CA, USA, 2020. [Google Scholar]
  63. Gillan, C.M.; Sahakian, B.J. Which is the driver, the obsessions or the compulsions, in OCD? Neuropsychopharmacology 2015, 40, 247. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  64. Brewer, J.A.; Roy, A. Can Approaching Anxiety Like a Habit Lead to Novel Treatments? Am. J. Lifestyle Med. 2021, 15, 489–494. [Google Scholar] [CrossRef] [PubMed]
  65. Misztal, B.A. Trust in Habit: A Way of Coping in Unsettled Times. In Trust in Contemporary Society; Brill: Leiden, The Netherlands, 2019; pp. 41–59. [Google Scholar]
  66. Pietarinen, A.V.; Beni, M.D. Active Inference and Abduction. Biosemiotics 2021, 14, 1–19. [Google Scholar] [CrossRef]
  67. Hodgson, G.M. The ubiquity of habits and rules. Camb. J. Econ. 1997, 21, 663–684. [Google Scholar] [CrossRef]
  68. Dynes, R. Social capital: Dealing with community emergencies. Homel. Secur. Aff. 2006, 2. [Google Scholar]
  69. Gardner, B.; Lally, P. Modelling habit formation and its determinants. Psychol. Habit 2018, 207–229. [Google Scholar] [CrossRef]
  70. Schwabe, L.; Wolf, O.T. Stress prompts habit behavior in humans. J. Neurosci. 2009, 29, 7191–7198. [Google Scholar] [CrossRef] [Green Version]
  71. Wood, W.; Rünger, D. Psychology of habit. Annu. Rev. Psychol. 2016, 67, 289–314. [Google Scholar] [CrossRef] [Green Version]
  72. Friston, K.; FitzGerald, T.; Rigoli, F.; Schwartenbeck, P.; Pezzulo, G. Active inference and learning. Neurosci. Biobehav. Rev. 2016, 68, 862–879. [Google Scholar] [CrossRef] [Green Version]
  73. Dezfouli, A.; Balleine, B.W. Actions, action sequences and habits: Evidence that goal-directed and habitual action control are hierarchically organized. PLoS Comput. Biol. 2013, 9, e1003364. [Google Scholar] [CrossRef]
  74. Pezzulo, G.; Rigoli, F.; Chersi, F. The mixed instrumental controller: Using value of information to combine habitual choice and mental simulation. Front. Psychol. 2013, 4, 92. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  75. Pezzulo, G.; Rigoli, F.; Friston, K. Active inference, homeostatic regulation and adaptive behavioural control. Prog. Neurobiol. 2015, 134, 17–35. [Google Scholar] [CrossRef] [Green Version]
  76. Lee, S.W.; Shimojo, S.; O’Doherty, J.P. Neural computations underlying arbitration between model-based and model-free learning. Neuron 2014, 81, 687–699. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  77. Lally, P.; Van Jaarsveld, C.H.; Potts, H.W.; Wardle, J. How are habits formed: Modelling habit formation in the real world. Eur. J. Soc. Psychol. 2010, 40, 998–1009. [Google Scholar] [CrossRef] [Green Version]
  78. Story, G.W.; Smith, R.; Moutoussis, M.; Berwian, I.M.; Nolte, T.; Bilek, E.; Dolan, R.J.; Story. Story et al. 2021 A Social Inference Model of Idealization and Devaluation. 2021, pp. 1–61. Available online: https://psyarxiv.com/yvu2b/download?format=pdf (accessed on 23 March 2022).
  79. Kaufmann, R.; Gupta, P.; Taylor, J. An active inference model of collective intelligence. Entropy 2021, 23, 830. [Google Scholar] [CrossRef]
  80. Ohata, W.; Tani, J. Investigation of the sense of agency in social cognition, based on frameworks of predictive coding and active inference: A simulation study on multimodal imitative interaction. Front. Neurorobot. 2020, 14, 61. [Google Scholar] [CrossRef]
  81. Bouizegarene, N.; Ramstead, M.; Constant, A.; Friston, K.; Kirmayer, L. Narrative as active inference. Psyarxiv 2020, 1, 55. [Google Scholar]
  82. Tison, R.; Poirier, P. Communication as socially extended active inference: An ecological approach to communicative behavior. Ecol. Psychol. 2021, 33, 197–235. [Google Scholar] [CrossRef]
  83. Kahl, S.; Kopp, S. How Active Inference can Facilitate Belief Coordination in Multi-Agent Interaction. EuroCogSci 2019, Bochum. Available online: https://pub.uni-bielefeld.de/record/2935664 (accessed on 23 March 2022).
  84. Parr, T.; Friston, K.J. Uncertainty, epistemics and active inference. J. R. Soc. Interface 2017, 14, 20170376. [Google Scholar] [CrossRef]
  85. Heins, R.C.; Mirza, M.B.; Parr, T.; Friston, K.; Kagan, I.; Pooresmaeili, A. Deep active inference and scene construction. Front. Artif. Intell. 2020, 3, 81. [Google Scholar] [CrossRef]
  86. Friston, K.; Rigoli, F.; Ognibene, D.; Mathys, C.; Fitzgerald, T.; Pezzulo, G. Active inference and epistemic value. Cogn. Neurosci. 2015, 6, 187–214. [Google Scholar] [CrossRef] [PubMed]
  87. Anderson, Y. Recent Advances in the Modelling and Analysis of Opinion Dynamics on Influence Networks; Springer: Berlin/Heidelberg, Germany, 2019. [Google Scholar]
  88. Andina-Diaz, M.J.P. Bounded Confidence under Preferential Flip: A Coupled Dynamics of Structural Balance and Opinions. PLoS ONE 2016, 11, e0164323. [Google Scholar]
  89. Hendrickx, T.B. On Krause’s Multi-Agent Consensus Model With State-Dependent Connectivity. IEEE Trans. Autom. Control 2009, 54, 2586–2597. [Google Scholar]
  90. Hegselmann, R.; Krause, U. Opinion dynamics and bounded confidence models, analysis, and simulation. J. Artif. Soc. Soc. Simul. 2002, 5, 1–2. [Google Scholar]
  91. Ramstead, M.J.; Veissière, S.P.; Kirmayer, L.J. Cultural affordances: Scaffolding local worlds through shared intentionality and regimes of attention. Front. Psychol. 2016, 7, 1090. [Google Scholar] [CrossRef]
  92. Knill, D.C.; Pouget, A. The Bayesian brain: The role of uncertainty in neural coding and computation. Trends Neurosci. 2004, 27, 712–719. [Google Scholar] [CrossRef]
  93. Friston, K. The history of the future of the Bayesian brain. NeuroImage 2012, 62, 1230–1233. [Google Scholar] [CrossRef] [Green Version]
  94. Madsen, J.K.; Bailey, R.M.; Pilditch, T.D. Large networks of rational agents form persistent echo chambers. Sci. Rep. 2018, 8, 1–8. [Google Scholar] [CrossRef]
  95. Acemoglu, D.; Ozdaglar, A. Opinion dynamics and learning in social networks. Dyn. Games Appl. 2011, 1, 3–49. [Google Scholar] [CrossRef]
  96. Fang, A.; Yuan, K.; Geng, J.; Wei, X. Opinion dynamics with Bayesian learning. Complexity 2020, 2020, 8261392. [Google Scholar] [CrossRef]
  97. Friston, K.J.; Daunizeau, J.; Kiebel, S.J. Reinforcement learning or active inference? PLoS ONE 2009, 4, e6421. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  98. Botvinick, M.; Toussaint, M. Planning as inference. Trends Cogn. Sci. 2012, 16, 485–488. [Google Scholar] [CrossRef] [PubMed]
  99. DeGroot, M.H. Reaching a consensus. J. Am. Stat. Assoc. 1974, 69, 118–121. [Google Scholar] [CrossRef]
  100. Holley, R.A.; Liggett, T.M. Ergodic theorems for weakly interacting infinite systems and the voter model. Ann. Probab. 1975, 3, 643–663. [Google Scholar] [CrossRef]
  101. Deffuant, G.; Neau, D.; Amblard, F.; Weisbuch, G. Mixing beliefs among interacting agents. Adv. Complex Syst. 2001, 3, 11. [Google Scholar] [CrossRef]
  102. Pais, D.; Hogan, P.M.; Schlegel, T.; Franks, N.R.; Leonard, N.E.; Marshall, J.A. A mechanism for value-sensitive decision-making. PLoS ONE 2013, 8, e73216. [Google Scholar] [CrossRef] [Green Version]
  103. Pinkoviezky, I.; Couzin, I.D.; Gov, N.S. Collective conflict resolution in groups on the move. Phys. Rev. E 2018, 97, 032304. [Google Scholar] [CrossRef] [Green Version]
  104. Bizyaeva, A.; Franci, A.; Leonard, N.E. A general model of opinion dynamics with tunable sensitivity. arXiv 2020, arXiv:2009.04332. [Google Scholar]
  105. Ye, M.; Liu, J.; Anderson, B.D.; Yu, C.; Başar, T. Evolution of social power in social networks with dynamic topology. IEEE Trans. Autom. Control 2018, 63, 3793–3808. [Google Scholar] [CrossRef] [Green Version]
  106. Friedkin, N.E.; Proskurnikov, A.V.; Tempo, R.; Parsegov, S.E. Network science on belief system dynamics under logic constraints. Science 2016, 354, 321–326. [Google Scholar] [CrossRef] [Green Version]
  107. Parsegov, S.E.; Proskurnikov, A.V.; Tempo, R.; Friedkin, N.E. Novel multidimensional models of opinion dynamics in social networks. IEEE Trans. Autom. Control 2016, 62, 2270–2285. [Google Scholar] [CrossRef] [Green Version]
  108. Hołyst, J.A.; Kacperski, K.; Schweitzer, F. Social impact models of opinion dynamics. Annu. Rev. Comput. Phys. IX 2001, 253–273. [Google Scholar] [CrossRef] [Green Version]
  109. Hegselmann, R.; Flache, A. Understanding complex social dynamics: A plea for cellular automata based modelling. J. Artif. Soc. Soc. Simul. 1998, 1, 1. [Google Scholar]
  110. Latané, B.; Nowak, A. Self-organizing social systems: Necessary and sufficient conditions for the emergence of clustering, consolidation, and continuing diversity. Prog. Commun. Sci. 1997, 43–74. [Google Scholar]
  111. Weisbuch, G.; Deffuant, G.; Amblard, F.; Nadal, J.P. Interacting agents and continuous opinions dynamics. In Heterogenous Agents, Interactions and Economic Performance; Springer: Berlin/Heidelberg, Germany, 2003; pp. 225–242. [Google Scholar]
  112. Smith, L.; Sørensen, P. Pathological outcomes of observational learning. Econometrica 2000, 68, 371–398. [Google Scholar] [CrossRef] [Green Version]
  113. Mann, R.P. Collective decision making by rational individuals. Proc. Natl. Acad. Sci. USA 2018, 115, E10387–E10396. [Google Scholar] [CrossRef] [Green Version]
  114. Da Costa, L.; Friston, K.; Heins, C.; Pavliotis, G.A. Bayesian mechanics for stationary processes. arXiv 2021, arXiv:2106.13830. [Google Scholar] [CrossRef]
  115. Friston, K.; FitzGerald, T.; Rigoli, F.; Schwartenbeck, P.; Pezzulo, G. Active inference: A process theory. Neural Comput. 2017, 29, 1–49. [Google Scholar] [CrossRef] [Green Version]
  116. Sutton, R.S.; Barto, A.G. Reinforcement Learning: An Introduction; MIT Press: Cambridge, MA, USA, 2018. [Google Scholar]
  117. MacKay, D.J. Bayesian interpolation. Neural Comput. 1992, 4, 415–447. [Google Scholar] [CrossRef]
  118. Beal, M.J. Variational Algorithms for Approximate Bayesian Inference; University of London: London, UK, 2003. [Google Scholar]
  119. Friston, K.J.; Wiese, W.; Hobson, J.A. Sentience and the origins of consciousness: From Cartesian duality to Markovian monism. Entropy 2020, 22, 516. [Google Scholar] [CrossRef]
  120. Puterman, M.L. Markov decision processes: Discrete stochastic dynamic programming. J. Oper. Res. Soc. 1995, 46, 792. [Google Scholar]
  121. Kaelbling, L.P.; Littman, M.L.; Cassandra, A.R. Planning and acting in partially observable stochastic domains. Artif. Intell. 1998, 101, 99–134. [Google Scholar] [CrossRef] [Green Version]
  122. Parr, T.; Friston, K.J. Generalised free energy and active inference. Biol. Cybern. 2019, 113, 495–513. [Google Scholar] [CrossRef] [Green Version]
  123. Millidge, B.; Tschantz, A.; Buckley, C.L. Whence the expected free energy? Neural Comput. 2021, 33, 447–482. [Google Scholar] [CrossRef] [PubMed]
  124. Da Costa, L.; Parr, T.; Sajid, N.; Veselic, S.; Neacsu, V.; Friston, K. Active inference on discrete state-spaces: A synthesis. J. Math. Psychol. 2020, 99, 102447. [Google Scholar] [CrossRef]
  125. Schwartenbeck, P.; Passecker, J.; Hauser, T.U.; FitzGerald, T.H.; Kronbichler, M.; Friston, K.J. Computational mechanisms of curiosity and goal-directed exploration. Elife 2019, 8, e41703. [Google Scholar] [CrossRef]
  126. Heins, C.; Millidge, B.; Demekas, D.; Klein, B.; Friston, K.; Couzin, I.; Tschantz, A. pymdp: A Python library for active inference in discrete state spaces. arXiv 2022, arXiv:2201.03904. [Google Scholar]
  127. Erdös, P.; Rényi, A. On the evolution of random graphs. In The Structure and Dynamics of Networks; Princeton University Press: Princeton, NJ, USA, 2011; pp. 38–82. [Google Scholar]
  128. Grinberg, N.; Joseph, K.; Friedland, L.; Swire-Thompson, B.; Lazer, D. Fake news on Twitter during the 2016 US presidential election. Science 2019, 363, 374–378. [Google Scholar] [CrossRef]
  129. Rosenberg, H.; Syed, S.; Rezaie, S. The Twitter pandemic: The critical role of Twitter in the dissemination of medical information and misinformation during the COVID-19 pandemic. Can. J. Emerg. Med. 2020, 22, 418–421. [Google Scholar] [CrossRef] [Green Version]
  130. Cossard, A.; Morales, G.D.F.; Kalimeri, K.; Mejova, Y.; Paolotti, D.; Starnini, M. Falling into the echo chamber: The Italian vaccination debate on Twitter. In Proceedings of the International AAAI Conference on Web and Social Media, Palo Alto, CA, USA, 25–28 June 2018; Volume 14, pp. 130–140. [Google Scholar]
  131. Tschantz, A.; Seth, A.K.; Buckley, C.L. Learning action-oriented models through active inference. PLoS Comput. Biol. 2020, 16, e1007805. [Google Scholar] [CrossRef] [Green Version]
  132. Al-Qarni, B.H.; Almogren, A.; Hassan, M.M. An efficient networking protocol for internet of things to handle multimedia big data. Multimed. Tools Appl. 2019, 78, 30039–30056. [Google Scholar] [CrossRef]
  133. Le Goix, R. Gated communities: Sprawl and social segregation in Southern California. Hous. Stud. 2005, 20, 323–343. [Google Scholar] [CrossRef] [Green Version]
  134. Aldrich, H.; Herker, D. Boundary spanning roles and organization structure. Acad. Manag. Rev. 1977, 2, 217–230. [Google Scholar] [CrossRef]
  135. Jaemthaworn, T.; Kalapanulak, S.; Saithong, T. Topological clustering of regulatory genes confers pathogenic tolerance to cassava brown streak virus (CBSV) in cassava. Sci. Rep. 2021, 11, 1–14. [Google Scholar]
  136. Richter, A.W.; West, M.A.; Van Dick, R.; Dawson, J.F. Boundary spanners’ identification, intergroup contact, and effective intergroup relations. Acad. Manag. J. 2006, 49, 1252–1269. [Google Scholar] [CrossRef]
  137. Guan, J.; Li, S.; He, X.; Zhu, J.; Chen, J. Fast hierarchical clustering of local density peaks via an association degree transfer method. Neurocomputing 2021, 455, 401–418. [Google Scholar] [CrossRef]
  138. Canright, G.; Engø-Monsen, K. Roles in networks. Sci. Comput. Program. 2004, 53, 195–214. [Google Scholar] [CrossRef] [Green Version]
  139. Bell, V.; O’Driscoll, C. The network structure of paranoia in the general population. Soc. Psychiatry Psychiatr. Epidemiol. 2018, 53, 737–744. [Google Scholar] [CrossRef] [Green Version]
  140. Sasahara, K.; Chen, W.; Peng, H.; Ciampaglia, G.L.; Flammini, A.; Menczer, F. Social influence and unfollowing accelerate the emergence of echo chambers. J. Comput. Soc. Sci. 2021, 4, 381–402. [Google Scholar] [CrossRef]
  141. Balietti, S.; Klein, B.; Riedl, C. Optimal design of experiments to identify latent behavioral types. Exp. Econ. 2020, 24, 772–799. [Google Scholar] [CrossRef]
  142. Shahriari, B.; Swersky, K.; Wang, Z.; Adams, R.P.; De Freitas, N. Taking the human out of the loop: A review of Bayesian optimization. Proc. IEEE 2015, 104, 148–175. [Google Scholar] [CrossRef] [Green Version]
  143. Sridhar, V.H.; Li, L.; Gorbonos, D.; Nagy, M.; Schell, B.R.; Sorochkin, T.; Gov, N.S.; Couzin, I.D. The geometry of decision-making in individuals and collectives. Proc. Natl. Acad. Sci. USA 2021, 118, e2102157118. [Google Scholar] [CrossRef] [PubMed]
  144. Albarracin, M.; Constant, A.; Friston, K.J.; Ramstead, M.J.D. A variational approach to scripts. Front. Psychol. 2021, 3035. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Bayesian network representation of the POMDP generative model. Squares represent priors, likelihoods, or ‘factors’ that relate random variables to one another, and circles represent random variables (stochastic nodes). Different hidden state factors are represented as state variables and the different modality-specific A ( m ) arrays of the observation model shown are side by side, since they lead independently to the observations generated in that modality, but are conjunctively dependent on hidden state factors. Note that the B array can be similarly decomposed into different sub-arrays, one per hidden state factor, but it is shown as a single square here for simplicity. The prior over policies is parameterised by E , which has separate prior over control states ( E Who and E T ) for each control state factor. The box at the top right contains mathematical descriptions of each component in the generative mode. Note that while it is included in the graphical model, we left out the C vector since it is not relevant for the current model.
Figure 1. Bayesian network representation of the POMDP generative model. Squares represent priors, likelihoods, or ‘factors’ that relate random variables to one another, and circles represent random variables (stochastic nodes). Different hidden state factors are represented as state variables and the different modality-specific A ( m ) arrays of the observation model shown are side by side, since they lead independently to the observations generated in that modality, but are conjunctively dependent on hidden state factors. Note that the B array can be similarly decomposed into different sub-arrays, one per hidden state factor, but it is shown as a single square here for simplicity. The prior over policies is parameterised by E , which has separate prior over control states ( E Who and E T ) for each control state factor. The box at the top right contains mathematical descriptions of each component in the generative mode. Note that while it is included in the graphical model, we left out the C vector since it is not relevant for the current model.
Entropy 24 00476 g001
Figure 2. Belief dynamics and actions of a single agent in response to a sequence of Hashtag observations from two fictive neighbours. Shown are the history of Bernoulli parameters defining three marginal posterior beliefs of the focal agent: the belief about the truth value of Idea 1 ( Q ( s t Idea = Idea 1 ) , in red), and its beliefs about the beliefs of its two neighbours regarding Idea 1 ( Q ( s t MB 1 = Idea 1 ) and Q ( s t MB 2 = Idea 1 ) , shown in two shades of blue). Through its generative model, the focal agent believes that its Hashtag observations are caused by two neighbour ‘meta-belief’ states. The focal agent is exposed to a sequence of Hashtag observations for 100 timesteps, where in case of attending to the first neighbour ( u t Who = 0 ), the agent receives observation o t NT 1 = Hashtag 1, o t NT 2 = Null, and in case of sampling the other neighbour ( u t Who = 0 ), the agent receives observation o t NT 1 = Null, o t NT 2 = Hashtag 2. Due to the ‘Hashtag semantics’ matrix in its generative model, these two Hashtags, respectively, lend evidence for the two levels of s Idea . At each timestep the focal agent performs inferences with respect to hidden states Q ( s t ) as well as policies (control states) Q ( u t ), and then samples a Neighbour Attendance action from the posterior over control states Q ( u Who = 0 , u Who = 1 ) . Below each subplot is a heatmap showing the temporal evolution of the probability of sampling Neighbour 1 vs. Neighbour 2 over time. Subfigure (a) shows an agent with low γ (3.0) and low ω Soc (3.0). The agent’s beliefs about both of their neighbors does not lead it to converge on an idea being true or not. Subfigure (b) shows an agent shows an agent with low γ (3.0) and high ω Soc (9.0). The agent will be more certain about the beliefs of their neighbors, attend less often to their neighbors, quickly converging to neighbour 2. Subfigure (c) shows an agent shows an agent with high γ (9.0) and low ω Soc (3.0). This agent believes in high volatility and will be driven to continue sampling their neighbors, which will lead them to take longer to converge towards an idea. However, given their γ , the agent does converge towards the first sampled idea. Subfigure (d) shows an agent shows an agent with high γ (9.0) and high ω Soc (9.0). This agent believes in low volatility and will be driven to sample the same neighbor very quickly, which will lead them to converge towards an idea quickly.
Figure 2. Belief dynamics and actions of a single agent in response to a sequence of Hashtag observations from two fictive neighbours. Shown are the history of Bernoulli parameters defining three marginal posterior beliefs of the focal agent: the belief about the truth value of Idea 1 ( Q ( s t Idea = Idea 1 ) , in red), and its beliefs about the beliefs of its two neighbours regarding Idea 1 ( Q ( s t MB 1 = Idea 1 ) and Q ( s t MB 2 = Idea 1 ) , shown in two shades of blue). Through its generative model, the focal agent believes that its Hashtag observations are caused by two neighbour ‘meta-belief’ states. The focal agent is exposed to a sequence of Hashtag observations for 100 timesteps, where in case of attending to the first neighbour ( u t Who = 0 ), the agent receives observation o t NT 1 = Hashtag 1, o t NT 2 = Null, and in case of sampling the other neighbour ( u t Who = 0 ), the agent receives observation o t NT 1 = Null, o t NT 2 = Hashtag 2. Due to the ‘Hashtag semantics’ matrix in its generative model, these two Hashtags, respectively, lend evidence for the two levels of s Idea . At each timestep the focal agent performs inferences with respect to hidden states Q ( s t ) as well as policies (control states) Q ( u t ), and then samples a Neighbour Attendance action from the posterior over control states Q ( u Who = 0 , u Who = 1 ) . Below each subplot is a heatmap showing the temporal evolution of the probability of sampling Neighbour 1 vs. Neighbour 2 over time. Subfigure (a) shows an agent with low γ (3.0) and low ω Soc (3.0). The agent’s beliefs about both of their neighbors does not lead it to converge on an idea being true or not. Subfigure (b) shows an agent shows an agent with low γ (3.0) and high ω Soc (9.0). The agent will be more certain about the beliefs of their neighbors, attend less often to their neighbors, quickly converging to neighbour 2. Subfigure (c) shows an agent shows an agent with high γ (9.0) and low ω Soc (3.0). This agent believes in high volatility and will be driven to continue sampling their neighbors, which will lead them to take longer to converge towards an idea. However, given their γ , the agent does converge towards the first sampled idea. Subfigure (d) shows an agent shows an agent with high γ (9.0) and high ω Soc (9.0). This agent believes in low volatility and will be driven to sample the same neighbor very quickly, which will lead them to converge towards an idea quickly.
Entropy 24 00476 g002
Figure 3. Collective belief dynamics of multi-agent active inference simulations under different generative model parameterisations. Above each panel are listed the parameter values of γ , ω Soc , and η used in the simulation. Other parameters were fixed with T = 50 timesteps, N = 30 , network connectivity p = 0.2 , and inverse environmental volatility ω Idea = 9.0 . At the beginning of each simulation, every agent’s beliefs about Idea 1 were sampled from a uniform distribution over the interval Q ( s Idea = Idea 1 ) ( 0.4 , 0.6 ) . Each panel displays the evolving beliefs of all agents about Idea 1 (the Bernoulli parameter of each agent’s respective posterior over s Idea ), with proximity of the belief to 1.0 indicated by colouring along the green-to-blue spectrum (blue beliefs indicate Q ( s Idea = Idea 1 ) > 0.5 ). Panels (A,D) demonstrate polarisation, where two subsets of agents end up believing in two different levels of the Idea hidden state with high certainty. Panels (B,C) on the other hand show examples of consensus, where the whole network converges to the same opinion by the end of the simulation.
Figure 3. Collective belief dynamics of multi-agent active inference simulations under different generative model parameterisations. Above each panel are listed the parameter values of γ , ω Soc , and η used in the simulation. Other parameters were fixed with T = 50 timesteps, N = 30 , network connectivity p = 0.2 , and inverse environmental volatility ω Idea = 9.0 . At the beginning of each simulation, every agent’s beliefs about Idea 1 were sampled from a uniform distribution over the interval Q ( s Idea = Idea 1 ) ( 0.4 , 0.6 ) . Each panel displays the evolving beliefs of all agents about Idea 1 (the Bernoulli parameter of each agent’s respective posterior over s Idea ), with proximity of the belief to 1.0 indicated by colouring along the green-to-blue spectrum (blue beliefs indicate Q ( s Idea = Idea 1 ) > 0.5 ). Panels (A,D) demonstrate polarisation, where two subsets of agents end up believing in two different levels of the Idea hidden state with high certainty. Panels (B,C) on the other hand show examples of consensus, where the whole network converges to the same opinion by the end of the simulation.
Entropy 24 00476 g003
Figure 4. The interaction between epistemic confirmation bias and network connectivity in determining collective outcomes. (Top) a heatmap of the mean polarisation index across S = 100 independent realisations of the multi-agent opinion dynamics simulations, for unique combinations of network connectivity p and epistemic confirmation bias precision γ . (Bottom) selected line plots show extreme settings of p ( p = 0.2 and p = 0.8 ) and γ ( γ = 3.5 and γ = 9.0 ). Shaded areas around each line represent the standard deviation of the polarisation index across independent realisations.
Figure 4. The interaction between epistemic confirmation bias and network connectivity in determining collective outcomes. (Top) a heatmap of the mean polarisation index across S = 100 independent realisations of the multi-agent opinion dynamics simulations, for unique combinations of network connectivity p and epistemic confirmation bias precision γ . (Bottom) selected line plots show extreme settings of p ( p = 0.2 and p = 0.8 ) and γ ( γ = 3.5 and γ = 9.0 ). Shaded areas around each line represent the standard deviation of the polarisation index across independent realisations.
Entropy 24 00476 g004
Figure 5. (Above left) a heatmap of the polarisation index for all 225 combinations of inverse belief volatility and epistemic confirmation bias precision. (Above right) a heatmap of the re-attendance rate for all 225 combinations of inverse belief volatility and epistemic confirmation bias precision. (Below left) a line plot of the most extreme rows of the polarisation heatmap. (Below right) a line plot of the most extreme columns of the re-attendance rate heatmap.
Figure 5. (Above left) a heatmap of the polarisation index for all 225 combinations of inverse belief volatility and epistemic confirmation bias precision. (Above right) a heatmap of the re-attendance rate for all 225 combinations of inverse belief volatility and epistemic confirmation bias precision. (Below left) a line plot of the most extreme rows of the polarisation heatmap. (Below right) a line plot of the most extreme columns of the re-attendance rate heatmap.
Entropy 24 00476 g005
Figure 6. (Above left) a heatmap of the polarisation index for all 225 combinations of learning rate and epistemic confirmation bias precision. (Above right) a heatmap of the re-attendance rate for all 225 combinations of learning rate and epistemic confirmation bias precision. The parameters represent the centres of the normal distribution sampled from across trials for each configuration. (Below left) the most extreme row of the polarisation index heatmap. (Below right) the most extreme column of the re-attendance rate heatmap.
Figure 6. (Above left) a heatmap of the polarisation index for all 225 combinations of learning rate and epistemic confirmation bias precision. (Above right) a heatmap of the re-attendance rate for all 225 combinations of learning rate and epistemic confirmation bias precision. The parameters represent the centres of the normal distribution sampled from across trials for each configuration. (Below left) the most extreme row of the polarisation index heatmap. (Below right) the most extreme column of the re-attendance rate heatmap.
Entropy 24 00476 g006
Table 1. Variables of the POMDP generative model of single-agent opinion formation. The abstract name of each variable is written in the left column, its mathematical notation is in the middle column, and the right column shows how these variables correspond to different components of the opinion formation generative model. M is the total number of observation modalities and F is the number of hidden state/control factors. The observation model is a categorical likelihood distribution encoded by A , which comprises a collection of modality-specific A ( m ) arrays. The transition model is also a likelihood, mapping each state to its successor in time, encoded by the B ( f ) arrays. The initial distribution over hidden states is encoded by the D vector, and the prior distribution over control factors is encoded by the E and ε distributions.
Table 1. Variables of the POMDP generative model of single-agent opinion formation. The abstract name of each variable is written in the left column, its mathematical notation is in the middle column, and the right column shows how these variables correspond to different components of the opinion formation generative model. M is the total number of observation modalities and F is the number of hidden state/control factors. The observation model is a categorical likelihood distribution encoded by A , which comprises a collection of modality-specific A ( m ) arrays. The transition model is also a likelihood, mapping each state to its successor in time, encoded by the B ( f ) arrays. The initial distribution over hidden states is encoded by the D vector, and the prior distribution over control factors is encoded by the E and ε distributions.
Variable NameNotationMeaning
The focal agent’s tweets o ST Z 1 × H
Observations o = { o ( 1 ) , , o ( M ) } Neighbour k’s tweets o NT k Z 1 × ( H + 1 )
The sampled agent o Who Z 1 × K
The focal agent’s beliefs s Idea Z 1 × 2
Hidden States s = { s ( 1 ) , , s ( F ) } Neighbour k’s beliefs s MB k Z 1 × 2
The Hashtag tweeted by focal agent s T Z 1 × H
The neighbour sampled focal agent s Who Z 1 × n
Actions u = { u ( 1 ) , , u ( F ) } The Hashtag control state u T Z 1 × H
The neighbour attendance control state u Who Z 1 × n
Self tweet likelihood A ST ( R > 0 ) 2 × 2 × 2 K × H × K
Observation model P ( o t ( m ) = i | s t ( 1 ) = j , s t ( 2 ) = k , ) = [ A ( m ) ] i j k Neighbour tweet likelihood A NT k ( R > 0 ) 2 × 2 × 2 K × H × K
Neighbour attend likelihood A Who ( R > 0 ) K × 2 × 2 K × H × K
Environmental dynamics and volatility B Idea R > 0 2 × 2
Transition model P ( s t + 1 ( f ) = i | s t ( f ) = j , u t ( f ) = k ) = [ B ( f ) ] i j k Meta-belief dynamics and volatility B MB k ( R > 0 ) 2 × 2
Tweet control B T ( R > 0 ) H × H × H
Neighbour attendance control B Who ( R > 0 ) K × K × K
Initial State p ( s 0 ( f ) = i ) = [ D ( f ) ] i Initial state distribution D ( R > 0 ) 2 × 2 K × H × K
Control State Prior P ( u 0 T | s idea ) = E T Empirical prior over Hashtag control state E T ( R > 0 ) H × 2
P ( u 0 Who | E Who ) = E [ D i r ( ε ) ] Dirichlet hyperparameters over neighbour attendance control state ε ( R > 0 ) 1 × K
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Albarracin, M.; Demekas, D.; Ramstead, M.J.D.; Heins, C. Epistemic Communities under Active Inference. Entropy 2022, 24, 476. https://doi.org/10.3390/e24040476

AMA Style

Albarracin M, Demekas D, Ramstead MJD, Heins C. Epistemic Communities under Active Inference. Entropy. 2022; 24(4):476. https://doi.org/10.3390/e24040476

Chicago/Turabian Style

Albarracin, Mahault, Daphne Demekas, Maxwell J. D. Ramstead, and Conor Heins. 2022. "Epistemic Communities under Active Inference" Entropy 24, no. 4: 476. https://doi.org/10.3390/e24040476

APA Style

Albarracin, M., Demekas, D., Ramstead, M. J. D., & Heins, C. (2022). Epistemic Communities under Active Inference. Entropy, 24(4), 476. https://doi.org/10.3390/e24040476

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop