1 of 84

An introduction to free energy

Stephen Francis Mann stephenfmann@gmail.com

Max Planck Institute for Evolutionary Anthropology

These slides: stephenfmann.com/links/sfm20221008

1

bit.ly/sfm20221008

2 of 84

1

Principles can be normative or descriptive (or both!)

2

bit.ly/sfm20221008

3 of 84

3

Sand

Water

bit.ly/sfm20221008

4 of 84

4

Sand

Water

bit.ly/sfm20221008

5 of 84

5

Sand

Water

bit.ly/sfm20221008

6 of 84

6

Sand

Water

bit.ly/sfm20221008

7 of 84

7

Sand

Water

Path ← argmin Time(path)

“Choose the path that takes the shortest time”

bit.ly/sfm20221008

8 of 84

8

Sand

Water

Air

Glass

Path ← argmin Time(path)

“Choose the path that takes the shortest time”

bit.ly/sfm20221008

9 of 84

9

Sand

Water

Air

Glass

Path ← argmin Time(path)

“Choose the path that takes the shortest time”

bit.ly/sfm20221008

10 of 84

10

Sand

Water

Air

Glass

Path ← argmin Time(path)

“Choose the path that takes the shortest time”

bit.ly/sfm20221008

11 of 84

11

Sand

Water

Air

Glass

Path ← argmin Time(path)

“Choose the path that takes the shortest time”

bit.ly/sfm20221008

12 of 84

12

Sand

Water

Air

Glass

Path ← argmin Time(path)

“Choose the path that takes the shortest time”

bit.ly/sfm20221008

13 of 84

13

Sand

Water

Path ← argmin Time(path)

“Choose the path that takes the shortest time”

bit.ly/sfm20221008

14 of 84

14

Sand

Water

Path ← argmin Time(path)

“Choose the path that takes the shortest time”

Weights ← argmin Error(weights)

“Choose the weights that give the smallest error”

bit.ly/sfm20221008

15 of 84

2

Really simple models of the

free energy principle

15

2.1 Inference

bit.ly/sfm20221008

16 of 84

16

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

17 of 84

17

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

18 of 84

18

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

19 of 84

19

Meow!

Purr…

40%

20%

10%

30%

Purr…

Meow!

bit.ly/sfm20221008

20 of 84

20

Meow!

Purr…

40%

20%

10%

30%

Meow!

bit.ly/sfm20221008

21 of 84

21

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

22 of 84

22

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

23 of 84

23

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

24 of 84

24

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

25 of 84

25

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

26 of 84

26

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

27 of 84

27

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

28 of 84

28

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

29 of 84

29

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

30 of 84

30

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

31 of 84

31

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

32 of 84

32

Meow!

Purr…

40%

20%

10%

30%

Meow!

?

bit.ly/sfm20221008

33 of 84

33

?

bit.ly/sfm20221008

34 of 84

34

?

Bogacz (2017)

bit.ly/sfm20221008

35 of 84

35

x = w2

?

Bogacz (2017)

bit.ly/sfm20221008

36 of 84

36

x = N(x; w2, Σx)

?

Bogacz (2017)

bit.ly/sfm20221008

37 of 84

37

x = N(x; w2, Σx)

?

Bogacz (2017)

bit.ly/sfm20221008

38 of 84

38

x = N(x; w2, Σx)

?

Bogacz (2017)

bit.ly/sfm20221008

39 of 84

39

?

Bogacz (2017)

bit.ly/sfm20221008

40 of 84

40

?

Bogacz (2017)

bit.ly/sfm20221008

41 of 84

2

Really simple models of the

free energy principle

41

2.2 Action

bit.ly/sfm20221008

42 of 84

42

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

43 of 84

43

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

44 of 84

44

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

45 of 84

45

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

46 of 84

46

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

47 of 84

47

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

48 of 84

48

Meow!

Purr…

40%

20%

10%

30%

bit.ly/sfm20221008

49 of 84

2

Really simple models of the

free energy principle

49

2.3 Selection

bit.ly/sfm20221008

50 of 84

50

bit.ly/sfm20221008

51 of 84

51

bit.ly/sfm20221008

52 of 84

52

bit.ly/sfm20221008

53 of 84

53

bit.ly/sfm20221008

54 of 84

54

bit.ly/sfm20221008

55 of 84

55

Parr et al (2022:7, Fig. 1.2)

bit.ly/sfm20221008

56 of 84

2

Really simple models of the

free energy principle

56

2.4 Extensions

bit.ly/sfm20221008

57 of 84

57

bit.ly/sfm20221008

58 of 84

58

W2

bit.ly/sfm20221008

59 of 84

59

W2

W3

bit.ly/sfm20221008

60 of 84

60

W2

W3

W4

bit.ly/sfm20221008

61 of 84

61

W2

W3

X2

W4

bit.ly/sfm20221008

62 of 84

62

W2

W3

X2

Z2

W4

bit.ly/sfm20221008

63 of 84

63

W2

W3

X2

Z2

W4

bit.ly/sfm20221008

64 of 84

3

Outstanding issues

64

bit.ly/sfm20221008

65 of 84

Issue 1

It’s not free energy: it’s surprisal.

65

bit.ly/sfm20221008

66 of 84

Issue 1

It’s not free energy: it’s surprisal.

66

F

bit.ly/sfm20221008

67 of 84

Issue 1

It’s not free energy: it’s surprisal.

67

F

bit.ly/sfm20221008

68 of 84

Issue 1

It’s not free energy: it’s surprisal.

The argument that

Everything is trying to minimise surprisal

therefore

Everything minimises free energy

needs another premise.

68

bit.ly/sfm20221008

69 of 84

Issue 2

It’s not surprisal: it’s probability.

69

bit.ly/sfm20221008

70 of 84

Issue 2

It’s not surprisal: it’s probability.

70

F

bit.ly/sfm20221008

71 of 84

Issue 2

It’s not surprisal: it’s probability.

71

F

bit.ly/sfm20221008

72 of 84

Issue 2

It’s not surprisal: it’s probability.

Things that survive long enough will tend to be found in states conducive to their survival

This is a restatement of natural selection.

72

bit.ly/sfm20221008

73 of 84

Define probability w.r.t past success

Everything tries to maximise probability

Everything tries to minimise surprise

Everything tries to minimise free energy

73

bit.ly/sfm20221008

74 of 84

Define probability w.r.t past success

Everything tries to maximise probability

Everything tries to minimise surprise

Everything tries to minimise free energy

74

Natural selection

bit.ly/sfm20221008

75 of 84

Define probability w.r.t past success

Everything tries to maximise probability

Everything tries to minimise surprise

Everything tries to minimise free energy

75

Natural selection

By definition!

bit.ly/sfm20221008

76 of 84

Define probability w.r.t past success

Everything tries to maximise probability

Everything tries to minimise surprise

Everything tries to minimise free energy

76

Natural selection

By definition!

Why not minimise surprise directly?

bit.ly/sfm20221008

77 of 84

Define probability w.r.t past success

Everything tries to maximise probability

Everything tries to minimise surprise

Everything tries to minimise free energy

77

Natural selection

By definition!

Why not minimise surprise directly?

Why not some other approximation?

bit.ly/sfm20221008

78 of 84

Issue 3

The interpretation of p(w,x) is unorthodox.

Both probabilities and preferences simultaneously?

78

bit.ly/sfm20221008

79 of 84

Issue 4

Realism vs instrumentalism.

Proponents tend to pick and choose depending on the case at hand.

79

bit.ly/sfm20221008

80 of 84

80

Parr et al (2022:7, Fig. 1.2)

bit.ly/sfm20221008

81 of 84

81

Parr et al (2022:7, Fig. 1.2)

  • Natural selection
  • Probabilities = preferences
  • Instrumentalism

bit.ly/sfm20221008

82 of 84

82

Parr et al (2022:7, Fig. 1.2)

  • Natural selection
  • Probabilities = preferences
  • Instrumentalism
  • Variational inference
  • Probabilities =?= preferences
  • Realism

bit.ly/sfm20221008

83 of 84

References

Bogacz, R. (2017). A tutorial on the free-energy framework for modelling perception and learning. Journal of Mathematical Psychology, 76, 198–211. https://doi.org/10.1016/j.jmp.2015.11.003

Mann, S. F., Pain, R., & Kirchhoff, M. D. (2022). Free Energy: A User’s Guide. Biology & Philosophy, 37(4), 35. https://doi.org/10.1007/s10539-022-09864-z

Parr, T., Pezzulo, G., & Friston, K. J. (2022). Active Inference: The Free Energy Principle in Mind, Brain, and Behavior. MIT Press.

83

bit.ly/sfm20221008

84 of 84

Active inference and the self

Allen, M., & Friston, K. J. (2018). From cognitivism to autopoiesis: Towards a computational framework for the embodied mind. Synthese, 195(6), 2459–2482. https://doi.org/10.1007/s11229-016-1288-5

Deane, G. (2020). Dissolving the self: Active inference, psychedelics, and ego-dissolution. Philosophy and the Mind Sciences, 1(I), Article I. https://doi.org/10.33735/phimisci.2020.I.39

Limanowski, J., & Friston, K. (2020). Attenuating oneself: An active inference perspective on “selfless” experiences. Philosophy and the Mind Sciences, 1(I), Article I. https://doi.org/10.33735/phimisci.2020.I.35

Seth, A. K., & Friston, K. J. (2016). Active interoceptive inference and the emotional brain. Philosophical Transactions of the Royal Society B: Biological Sciences, 371(1708), 20160007. https://doi.org/10.1098/rstb.2016.0007

84

bit.ly/sfm20221008