Active Inference InstituteSimulations

Chapters 2 and 7BeginnerSimulation

A committee decides

Five people must choose which of two wells has clean water. Each has seen a few test results, and no test is certain. A belief is how sure a member is that a given well is the clean one. Sharing a belief means saying it aloud, so that the others can add it to their own. Watch the speech bubbles. One member speaks, and the bars under the others move. That movement is what it means for one member to influence another.

Before the vote

This meeting

More

AII: EduActive · Watch, then do

Two short clips, two things to try

These two passages come from the Institute’s study groups, where members read the textbooks aloud and talk them through. Each is about two minutes. Watch one, then press its button and look for the same thing at the table above.

  1. Plays here, from 30:46. Nothing loads from YouTube until you press play.Open on YouTube at 30:46

    Before you start

    Sharing what each can see

    Several children are hiding in a garden. Each can see only part of it. If each tells the others what it has worked out, all of them know more than any one could alone. The speaker is describing an example from the paper on federated inference by Friston and colleagues.

    Listen for
    They’re able to share information. So, you know, this person here, they can look out, they can palpate the scene, they can do inference, and then they can actually share that information with their other siblings as well.
    Then try
    At the table each member has seen only its own test results. Say where you think the five bars will end up once everyone has spoken. Then run the same meeting with sharing and watch the speech bubbles. Each time one member speaks, see whose bar moves.
    In the model equation 2

    On this page a report is a member’s private belief qj, and a listener adds its logarithm to its own with weight wij = 1. With a flat prior that sum is the exact posterior on all fifteen results, and nobody hears itself, so nothing is counted twice.

    The paper’s example differs from the page. There the agents each watch part of a scene and choose where to look, and they must also learn a shared language for their reports. Here the members cannot act to gather evidence, they report exact numbers, and the hidden state is simply which of two wells is clean.

    Equation 2, sharing · Equation 5, why each report is given once

  2. Plays here, from 23:24. Nothing loads from YouTube until you press play.Open on YouTube at 23:24

    Afterwards

    How camps form

    People tend to seek out information that agrees with what they already think. When a whole group does this, it can split into camps that each grow surer of themselves. The speaker points to a paper that built this into a simulation of many agents.

    Listen for
    They construct a model that essentially looks at confirmation bias, conformity, ties together a lot of otherwise what might be potentially loose threads in psychology.
    Then try
    Say what you expect when each member takes in only reports from its own side. Then press the button and watch the speech bubbles. See whose bar moves when a member speaks, and which listeners have a crossed-out ear and stay where they are.
    In the model equation 3

    The term that carries the idea here is the precision wij a listener gives to a report. It is 1 for a report on the listener’s own side and exp(−(d/λ)²) for a report on the other side, where d is the gap between the two beliefs and λ = 0.2 is a setting.

    The paper the speaker mentions, Albarracin and colleagues (2022), is much larger. Its agents sit in a network, choose whom to attend to, form habits, and have no true answer to find. This page has five members, one round of reports, and one well that really is clean, which is why it can count how often each way of meeting is right.

    Equation 3, listening only to those who agree

The quoted lines are taken from the automatic captions, with punctuation added and hesitations removed. The speakers are describing published papers, not this page; where the two differ, the notes say so. Each clip stops at the end of the passage. The full recordings are listed under Sources.

Learn by doing

Try this

Before each step, say what you think will happen. Then press the button and watch the speech bubbles, the bars under the members, and the count.

  1. Watch a vote with no talking. Each member reads its own test results and forms a belief: how sure it is that a given well is the clean one. The thought bubbles show these beliefs. Nobody speaks. Then each holds up a card for the well it thinks more likely. Three cards out of five decide.Predict: out of 100 meetings, in how many will the majority pick the clean well?
  2. Hear the same evidence again, with sharing. Now each member in turn says in a speech bubble what its own papers suggest, and how sure it is. Every listener adds that report to its own belief, and the bar under it moves. Nothing new has been tested; the same results are simply put together. Press Next speaker to take one bubble at a time.Predict: where will the five bars end up, compared with each other?
  3. Find a meeting where the best evidence is outvoted. A few members hold a careful test kit, which is right nine times in ten. The rest hold a rough kit, which is right only a little more often than a coin. Papers from a careful kit have a gold edge. A vote counts heads, so one well-informed member can lose to three who are nearly guessing. Watch the vote, then switch sharing on.Predict: when the members share, whose view will the committee follow?
  4. Listen only to those who agree. Each member still speaks, but a listener now takes in full only a report from its own side. A report from the other side counts for less the further it is from what the listener already thinks. When it counts for very little, the ear beside the listener is crossed out, its tag says Not listening, and its bar hardly moves. The evidence on the table is the same.Predict: will the committee still end up with one shared belief?
  5. Read the count over many meetings. One meeting can go either way by luck. Five hundred show the pattern. All three ways of meeting are scored on exactly the same evidence.Predict: which of the three will come last?
  6. Find a case where sharing cannot help. Give every member a single result from an equally good kit. Now a show of hands already counts every piece of evidence once, and equally. Talking first adds nothing.Predict: how far apart will the first two counts be?
  7. Go back to open sharing. Return to mixed kits and let every report count in full.Predict: will the bars agree again?

The mathematics

What is being computed

One of the two wells is clean. Call that fact the hidden state s: it is either “A is clean” or “B is clean”, and nobody can see it. Each test result is an outcome o: it points to A or to B. The numbers below are for one member in the meeting on the stage. Choose which member under “The numbers for one member”, beside the picture.

1 · A private belief, from a member’s own results A=P(o∣s)=[r1−r1−rr] q(s)∝P(s)∏eP(oe∣s) lnq(A)q(B)=(nA−nB)lnr1−r

A is the likelihood: the chance of each result given each state of the world. Its one number r is the reliability of the member’s test kit, the chance that a result points to the clean well. The member knows its own r. The prior P(s) is one half for each well. Bayes’ rule multiplies the prior by the likelihood of each result in turn and rescales, which gives the belief q. The third line says the same thing more simply: take the number of results that point to A, subtract the number that point to B, and multiply by a constant that grows with the reliability of the kit. The quantity on the left is the log odds. Zero means undecided; positive means A.

2 · Sharing: a listener adds each report to its own belief lnQi(s)=lnqi(s)+∑j≠iwijlnqj(s)+const

Member j reports its private belief qj. Listener i treats the report as one more outcome, with its own likelihood. The weight wij is the precision the listener gives to that report: how much it counts. With every weight equal to 1, the sum is exactly the belief that Bayes’ rule gives for all fifteen results on the table, because each report already sums up the speaker’s papers. The page checks this: the last number in the live line is that answer worked out from the raw results. This is the form of belief sharing in Friston and colleagues (2024). Nobody hears itself, so no belief is counted twice.

3 · Listening only to those who agree dij=|Qi(A)−qj(A)| wij=1if the report is on the listener’s side; wij=exp(−(dij/λ)2)if it is not.

With the second switch on, the precision is no longer the same for everyone. A report that favours the well the listener already favours is taken in full. A report that favours the other well is weighted by the gap d between the two beliefs: the wider the gap, the less it counts. The width λ = 0.2 is a setting. This is a small version of the confirmation bias modelled by Albarracin and colleagues (2022), where an agent gives more precision to messages from those it takes to agree with it.

4 · The vote, and what a majority can do votei=arg maxsQi(s) P(majority right)=∑k=35(5k)pk(1−p)5−k

Each member votes for the well it holds more probable. An exact tie is settled by that member’s own coin. Without sharing, the five votes are independent, and each is right with the same probability p. The second line then gives the chance that three or more are right. This is the finite form of Condorcet’s jury theorem: a majority of independent voters, each right more often than not, does better than one voter. It still falls short of pooling, because a vote throws away how sure each voter was.

5 · Why each report is given only once lnQi′(A)Qi′(B)=∑jlnQj(A)Qj(B)=5L

Here L is the log odds that all the evidence supports. After one round of open sharing every member holds it. Suppose the members then went round again, each reporting the belief it now holds. Every report would already contain everyone else’s papers, and each listener would add them a second time. The committee would become five times as sure, in log odds, with no new evidence. This is double counting. On this page it does not happen: members report only what their own papers say, once per meeting. The live line shows what the mistake would do to the meeting on the stage.

Reading

Where this comes from

What is established

Active inference treats perception as Bayesian belief updating under a generative model, with a likelihood A that says how hidden states cause outcomes (Parr, Pezzulo and Friston 2022, chapters 2, 4 and 7). The private beliefs here are that calculation at its smallest: two states, two outcomes.

Friston and colleagues (2024) extend this to several agents who share a world and a model of it. Each agent broadcasts its beliefs, the others take those beliefs in as a further kind of outcome, and a shared belief forms that is more precise than any one agent’s. They call this federated inference. Their agents do not hear themselves, which the authors note prevents a belief being counted twice. Equation 2 has the same form as their update.

Albarracin and colleagues (2022) model confirmation bias in active inference as a precision: an agent treats messages from those it believes agree with it as more informative. In their simulated networks this produces echo chambers and polarised groups.

That a majority of independent voters, each better than chance, is more reliable than one voter is Condorcet’s jury theorem. What happens to it when voters hold private information of different quality is analysed by Austen-Smith and Banks (1996).

The count on this page behaves as these sources lead one to expect. With the mixed kits, a member alone picks the clean well about 67 times in 100. A vote without sharing is right about 80 times in 100. A vote after open sharing is right about 90 times in 100. With listening only to those who agree, the vote is split in about half of meetings and the committee is right about 78 times in 100, which is no better than not talking at all. In the meetings that split, members go from about 68 to about 81 in 100 sure of their own side, on the same evidence.

This page illustrates a modelling framework. It is not evidence about real committees, and it is not evidence for the framework.

What this model leaves out

  • Sharing cannot beat the evidence. When the pooled results happen to point to the wrong well, a committee that shares is wrong together, and sure of it. In the tests, every wrong decision under open sharing was of this kind.
  • Sharing does not help when a vote already uses everything. With one equally reliable result each, the two counts are identical in every meeting. It helps most when evidence is uneven, because a vote cannot tell a careful test from a rough one.
  • The members are honest, report exact numbers, know how reliable their own kit is, and hold the same model of the world. In Friston and colleagues (2024) the agents must also learn a common language for their reports; that part is not modelled here.
  • Each member’s results are independent of the others’. Real committees often read the same sources. Shared sources are counted more than once by this arithmetic, and the group becomes too sure.
  • The members do not act to gather evidence, so there is no expected free energy and no planning. The vote is simply the more probable option.
  • The rule for listening only to those who agree is simpler than the published one. In Albarracin and colleagues (2022) agents choose whom to attend to in a large network, form habits, and have no true answer to find. Here there are five members, one round, and a clean well. With this rule the result can depend on who speaks first; the first speaker moves one seat each meeting.
  • The reliabilities (0.9 and 0.55), the share of careful kits (one in four), three results each, and λ are settings chosen to make the effect easy to see. They are not measurements.
  • The speech bubbles, tags, bars, papers and cards are drawn from the model. The faces, the table and the room are scenery.
  • A listener is described as not listening when it gives a report from the other side a weight below 0.2, and as half listening above that. The cut-off is a choice of words, not part of the model.