# A Technical Critique of Some Parts of the Free Energy Principle

^{1}

^{2}

^{*}

^{†}

Next Article in Journal

Previous Article in Journal

Araya Inc., Tokyo 107-6024, Japan

School of Physics and Astronomy, Monash University, Clayton, VIC 3800, Australia

Authors to whom correspondence should be addressed.

These authors contributed equally to this work.

Academic Editor: Kevin H. Knuth

Received: 16 September 2020
/
Revised: 19 December 2020
/
Accepted: 24 February 2021
/
Published: 27 February 2021

(This article belongs to the Section Entropy and Biology)

We summarize the original formulation of the free energy principle and highlight some technical issues. We discuss how these issues affect related results involving generalised coordinates and, where appropriate, mention consequences for and reveal, up to now unacknowledged, differences from newer formulations of the free energy principle. In particular, we reveal that various definitions of the “Markov blanket” proposed in different works are not equivalent. We show that crucial steps in the free energy argument, which involve rewriting the equations of motion of systems with Markov blankets, are not generally correct without additional (previously unstated) assumptions. We prove by counterexamples that the original free energy lemma, when taken at face value, is wrong. We show further that this free energy lemma, when it does hold, implies the equality of variational density and ergodic conditional density. The interpretation in terms of Bayesian inference hinges on this point, and we hence conclude that it is not sufficiently justified. Additionally, we highlight that the variational densities presented in newer formulations of the free energy principle and lemma are parametrised by different variables than in older works, leading to a substantially different interpretation of the theory. Note that we only highlight some specific problems in the discussed publications. These problems do not rule out conclusively that the general ideas behind the free energy principle are worth pursuing.

In [1], it was argued that the internal coordinates of an ergodic random dynamical system with a Markov blanket necessarily appear to engage in active Bayesian inference. Here, we reproduce the argument supporting this interpretation in detail and highlight at which points it faces technical issues. In the course of our critique, we also mention issues of some closely related alternative arguments. In cases where our results have clear consequences for the more recent related publications [2,3], we also mention those. In particular, we point out a conceptual difference in these latter works that has not previously been acknowledged. However, our analysis thereof does not go beyond a few remarks. In an additional section, we discuss the effect of our argument on [4]. The logical structure of the present paper is depicted in Figure 1. We note that the technical issues presented here do not affect the validity of approaches where a (expected) free energy minimizing agent is assumed a priori, as presented in, e.g., [5]. None of [1,2,3,4] make this assumption; they instead aim to identify the conditions under which such agents will emerge within a given stochastic process. We criticize specific formal issues in the latter publications but leave open whether they can be fixed. We now briefly introduce the setting of [1] and then sketch the content of this paper. We now briefly introduce the setting of [1] and then sketch the content of this paper.

The starting point is a random dynamical system whose evolution is governed by the stochastic differential equation:
where the system state x and vector field $f\left(x\right)$ are multi-dimensional and $\omega $ is a Gaussian noise term. There is an additional assumption that the system is ergodic, such that the steady state probability density ${p}^{*}\left(x\right)$ is well defined (In the original paper, the ergodic density is simply denoted $p\left(x\right)$. We here add a star to highlight that it is a time independent probability density.). In this case, $-ln{p}^{*}\left(x\right)$ plays the role of a potential function, in the sense that f can be formulated in terms of its gradients [6,7].

$$\begin{array}{c}\hfill \dot{x}=f\left(x\right)+\omega ,\end{array}$$

It is then assumed that there is a coordinate system $x=(\psi ,s,a,\lambda )$ with $\psi =({\psi}_{1},...,{\psi}_{{n}_{\psi}})$, $s=({s}_{1},...,{s}_{{n}_{s}})$, $a=({a}_{1},...,{a}_{{n}_{a}})$, and $\lambda =({\lambda}_{1},...,{\lambda}_{{n}_{\lambda}})$, referred to as external, sensory, active, and internal coordinates (these are called “states” in [1]), respectively, such that the following condition holds:

The function $f\left(x\right)$ can be written as:

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill f\left(x\right)& =\left(\begin{array}{c}{f}_{\psi}(\psi ,s,a)\\ {f}_{s}(\psi ,s,a)\\ {f}_{a}(s,a,\lambda )\\ {f}_{\lambda}(s,a,\lambda )\end{array}\right).\hfill \end{array}\end{array}$$

This particular structure is described as “[formalizing] the dependencies implied by the Markov blanket” [1]. In contrast, more recent works [2,3] formulated the Markov blanket in terms of the statistical dependencies of the ergodic density ${p}^{*}\left(x\right)={p}^{*}(\psi ,s,a,\lambda )$. Specifically, the following condition is presented:

The ergodic density factorises as:

$$\begin{array}{c}{p}^{*}(\psi ,s,a,\lambda )={p}^{*}\left(\psi \right|s,a){p}^{*}\left(\lambda \right|s,a){p}^{*}(s,a).\end{array}$$

In other words, the internal and external coordinates are independently distributed when conditioned on the sensory and active coordinates. This means we have two different formal expressions of what constitutes a Markov blanket in these publications, and their relationship has not previously been established.

Taking Condition 1 to hold, the argument of [1] then proceeds along the following steps:

**Step****2**- Rewrite the vector field $f(\psi ,s,a,\lambda )$ describing the dynamics of the system in terms of the gradient of the negative logarithm of the ergodic density ${p}^{*}(\psi ,s,a,\lambda )$ of that system.
**Step****3**- Rewrite the components ${f}_{\lambda}(s,a,\lambda )$ and ${f}_{a}(s,a,\lambda )$ of the vector field $f(\psi ,s,a,\lambda )$ in terms of only partial gradients of the negative logarithm of ${p}^{*}(\psi ,s,a,\lambda )$.
**Step****4**- Assert (in the free energy lemma) the existence of a density $q\left(\psi \right|\lambda )$ over the external coordinates $\psi $ parameterized by the internal coordinates $\lambda $ and that $f(\psi ,s,a,\lambda )$ can again be rewritten, this time in terms of a free energy depending on $q\left(\mathsf{\Psi}\right|\lambda )$ (here, and whenever it would otherwise be ambiguous, we use a capitalized $\mathsf{\Psi}$ to indicate full distributions, rather than the probability density for a specific value of $\psi $).
**Step****5**- Claim that the equivalence of the equations of motion in Step 3 and Step 4 implies that certain partial gradients of the KL divergence between $q\left(\mathsf{\Psi}\right|\lambda )$ and the conditional ergodic density ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ must vanish.
**Step****6**- Claim that it follows from Step 5 that $q\left(\mathsf{\Psi}\right|\lambda )$ and ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ are “rendered” equal.
**Step****7**- Interpret:
- ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ as a posterior over external coordinates given particular values of sensor, active, and internal coordinates,
- $q\left(\mathsf{\Psi}\right|\lambda )$ as encoding Bayesian beliefs about the external coordinates by the internal coordinates, and
- their equality as the internal coordinates appearing to “solve the problem of Bayesian inference”.

In the present paper, we make the following main observations:

- The re-expression of Equation (1) in the form chosen in Step 2 is derived under restrictive assumptions, including that the system is subject to Gaussian and Markov noise.
- Conditions 1 and 2 are independent of each other.
- Conditions 1 and 3 together lead to a system where the interpretation of s and a as sensory and active coordinates is questionable.
- Under both Conditions 1 and 2, the expressions of ${f}_{\lambda}(s,a,\lambda )$ and ${f}_{a}(s,a,\lambda )$ resulting from Step 3 are not as general as those contained in the result of Step 2. The more general alternative expression derived in [2] remains insufficiently general.
- Under both Conditions 1 and 2, the free energy lemma, when taken at face value, is wrong and cannot be salvaged by using alternatives in Step 3.
- Under both Conditions 1 and 2, contrary to Step 6, the vanishing of the gradient of the KL divergence does not imply the equality of $q\left(\mathsf{\Psi}\right|\lambda )$ and ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$.
- As a consequence, the basic preconditions for the interpretations in Step 7 are not implied by either of the two proposed Markov blankets Conditions 1 and 2.

Here, we introduce the expression of the system’s dynamics Equation (1) in the form used for the free energy lemma (Lemma 2.1 in [1]). This form expresses the dynamics of the internal and active coordinates of the given ergodic random dynamical system in terms of the gradient of the ergodic density ${p}^{*}\left(x\right)$. In accordance with the results of [7], $f\left(x\right)$ is rewritten as (see Equation (2.5) in [1]):
where $\mathsf{\Gamma}$ is the diffusion matrix, which we will take to be block diagonal (in [1], and later work such as [2], $\mathsf{\Gamma}$ is taken to be proportional to the identity matrix), and R is an antisymmetric matrix, defined through the relation:
with
Here, and in all of [1,2,3,4], both $\mathsf{\Gamma}$ and R are assumed constant. We emphasise here that, for general nonlinear models, these matrices can vary with the coordinates and Equation (5) holds only approximately [8,9] (the exact conditions under which these matrices can be chosen to be constant can be found in [9,10] and, for the discrete state case, [11]). Moreover, Equation (4) is derived in the literature under the explicit assumption that the fluctuations $\omega $ be Gaussian and Markov [6,7]. For the counterexamples we present here, we restrict ourselves to the class of Ornstein–Uhlenbeck processes, for which R and $\mathsf{\Gamma}$ are always constant, and the ergodic density ${p}^{*}\left(x\right)={p}^{*}(\psi ,s,a,\lambda )$ is necessarily a multivariate Gaussian with zero mean. Specifically, following [7],
where $(\psi ,s,a,\lambda )$ is a row vector and Z is a suitable normalisation constant. From Equation (4), it can be seen that,
though we emphasise here that strict relations between M and U can only be made because of the assumption that $\mathsf{\Gamma}$ and R are coordinate independent [12]. This concludes Step 2.

$$\begin{array}{cc}\hfill f\left(x\right)& =(\mathsf{\Gamma}+R)\xb7\nabla ln{p}^{*}\left(x\right),\hfill \end{array}$$

$$\begin{array}{c}MR+R{M}^{T}=M\mathsf{\Gamma}-\mathsf{\Gamma}{M}^{T},\end{array}$$

$$\begin{array}{c}{M}_{ij}={\nabla}_{j}{f}_{i}\left(x\right).\end{array}$$

$$\begin{array}{c}\hfill {p}^{*}(\psi ,s,a,\lambda ):=\frac{1}{Z}exp\left[-\frac{1}{2}(\psi ,s,a,\lambda )U{(\psi ,s,a,\lambda )}^{\top}\right],\end{array}$$

$$\begin{array}{c}\hfill U=-{(\mathsf{\Gamma}+R)}^{-1}M;\end{array}$$

Before moving on to Step 3, we note that, under the assumptions implicit in Step 2, we can express Conditions 1 and 2 in terms of the matrices M and U (in the nonlinear case, these matrices can still be defined in terms of the derivatives of the force vector field and potential, respectively; however, they will be generally coordinate-dependent, even when $\mathsf{\Gamma}$ and R are not [8]). Firstly, since it effectively states that ${\nabla}_{\psi}{f}_{a}\left(x\right)={\nabla}_{\psi}{f}_{\lambda}\left(x\right)={\nabla}_{\lambda}{f}_{s}\left(x\right)={\nabla}_{\lambda}{f}_{\psi}\left(x\right)=0$,
with ${M}_{\alpha \beta}$ a block sub-matrix of M in general. Secondly, because of the multivariate Gaussian nature of ${p}^{*}(\psi ,s,a,\lambda )$, the dependencies of conditional distributions are encoded in the inverse U of the covariance matrix; we therefore have that:
where ${U}_{\alpha \beta}$ is a block sub-matrix of U. These implications bring us to our first observation:

$$\begin{array}{c}\mathrm{Condition}1\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\iff \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}{M}_{a\psi}={M}_{\lambda \psi}={M}_{s\lambda}={M}_{\psi \lambda}=0,\end{array}$$

$$\begin{array}{c}\mathrm{Condition}2\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\iff \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}{U}_{\psi \lambda}={U}_{\lambda \psi}=0,\end{array}$$

Neither Condition 1 (the vector field dependency structure) nor Condition 2 (conditional independence in the ergodic distribution) imply the other:

$$\begin{array}{cc}\hfill \phantom{\rule{1.em}{0ex}}& \mathrm{Condition}1\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\nRightarrow \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\mathrm{Condition}2\hfill \end{array}$$

$$\begin{array}{cc}\hfill \phantom{\rule{1.em}{0ex}}& \mathrm{Condition}1\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\nLeftarrow \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\mathrm{Condition}2.\hfill \end{array}$$

In Appendix A, we provide direct counterexamples, using the equivalent constraints on the matrices M and U in Equations (9) and (10), for the implication in either direction. That is, there exists a system obeying Condition 1 that does not obey Condition 2 (proving Equation (11)), and there exists one obeying Condition 2 that does not obey Condition 1 (proving Equation (12)). □

Henceforth, unless otherwise stated, we will assume both Conditions 1 and 2. Any implications that fail to hold in this special case cannot hold generally.

For Step 3, we focus on the components ${f}_{\lambda}=({f}_{{\lambda}_{1}},\dots ,{f}_{{n}_{\lambda}})$ and ${f}_{a}=({f}_{{a}_{1}},\dots ,{f}_{{n}_{a}})$ of f. Without loss of generality, we can rewrite them from Equation (4) as:
where ${\mathsf{\Gamma}}_{nm}$ (${R}_{nm}$) is the block of $\mathsf{\Gamma}$ (R) connecting derivatives with respect to the m coordinates to the time derivatives of the n coordinates. The expectation value with respect to ${p}^{*}\left(\psi \right|s,a,\lambda )$ leaves the left-hand side of these equations unchanged. A few manipulations ([2] cf. Equation (12.14), p. 129) reveal that, on the right-hand side, this leads to the ergodic density ${p}^{*}(\psi ,s,a,\lambda )$ being replaced by the marginalised ergodic density ${p}^{*}(s,a,\lambda )$ so that we get:
Since ${\nabla}_{\psi}ln{p}^{*}(s,a,\lambda )=0$, the terms involving ${\nabla}_{\psi}$ drop out:
We are not aware of how to further simplify this equation without additional assumptions. However, in (Equations (2.5) and (2.6) of [1]), all of the off-diagonal terms are implicitly assumed to vanish, i.e., Equation (4) is equated with:
This equation is the result of Step 3.

$$\begin{array}{cc}{f}_{a}(s,a,\lambda )=\hfill & \left({R}_{a\psi}\xb7{\nabla}_{\psi}+{R}_{as}\xb7{\nabla}_{s}+({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}\right.\hfill \\ & \phantom{\rule{0.277778em}{0ex}}\left.+{R}_{a\lambda}\xb7{\nabla}_{\lambda}\right)ln{p}^{*}(\psi ,s,a,\lambda ),\hfill \end{array}$$

$$\begin{array}{cc}{f}_{\lambda}(s,a,\lambda )=\hfill & \left({R}_{\lambda \psi}\xb7{\nabla}_{\psi}+{R}_{\lambda s}\xb7{\nabla}_{s}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}\right.\hfill \\ & \phantom{\rule{0.277778em}{0ex}}\left.+{R}_{\lambda a}\xb7{\nabla}_{a}\right)ln{p}^{*}(\psi ,s,a,\lambda ),\hfill \end{array}$$

$$\begin{array}{cc}{f}_{a}(s,a,\lambda )=\hfill & \left({R}_{a\psi}\xb7{\nabla}_{\psi}+{R}_{as}\xb7{\nabla}_{s}+({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}\right.\hfill \\ & \phantom{\rule{0.277778em}{0ex}}\left.+{R}_{a\lambda}\xb7{\nabla}_{\lambda}\right)ln{p}^{*}(s,a,\lambda )\hfill \end{array}$$

$$\begin{array}{cc}{f}_{\lambda}(s,a,\lambda )=\hfill & \left({R}_{\lambda \psi}\xb7{\nabla}_{\psi}+{R}_{\lambda s}\xb7{\nabla}_{s}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}\right.\hfill \\ & \phantom{\rule{0.277778em}{0ex}}\left.+{R}_{\lambda a}\xb7{\nabla}_{a}\right)ln{p}^{*}(s,a,\lambda ).\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{a}(s,a,\lambda )& =\left({R}_{as}\xb7{\nabla}_{s}+({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}+{R}_{a\lambda}\xb7{\nabla}_{\lambda}\right)ln{p}^{*}(s,a,\lambda ),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\lambda}(s,a,\lambda )& =\left({R}_{\lambda s}\xb7{\nabla}_{s}+{R}_{\lambda a}\xb7{\nabla}_{a}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}\right)ln{p}^{*}(s,a,\lambda ).\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{a}(s,a,\lambda )& =({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}ln{p}^{*}(s,a,\lambda ),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\lambda}(s,a,\lambda )& =({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}ln{p}^{*}(s,a,\lambda ).\hfill \end{array}$$

More recently (Appendix B of [2]), a more detailed discussion of Equation (4) was presented, where it was claimed that Condition 1 implies Condition 2 (cf. our Observation 1) along with the following simplification of Equations (17) and (18) ([2], Equations (12.8)–(12.11), (12.15), pp. 126–129):

$$\begin{array}{cc}\hfill {f}_{a}(s,a,\lambda )& =\text{}\left(({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}+{R}_{a\lambda}\xb7{\nabla}_{\lambda}\right)ln{p}^{*}(s,a,\lambda ),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\lambda}(s,a,\lambda )& =\text{}\left({R}_{\lambda a}\xb7{\nabla}_{a}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}\right)ln{p}^{*}(s,a,\lambda ).\hfill \end{array}$$

However, Equations (21) and (22) are still provably less general than Equations (13) and (14), even when both Conditions 1 and 2 are satisfied.

By counterexample, see Appendix B. There, we show explicitly that a model satisfying the above assumptions does not satisfy the equations in question. □

In order to arrive at Equations (21) and (22) from Equations (17) and (18) in general, one must remove the offending “solenoidal flow” terms by fiat. That is, one assumes ${R}_{as}={R}_{\lambda s}=0$. In [2], Equation (12.4), the following, even stronger, condition was assumed as an alternative starting point (along with Condition 2):

The blocks of the R matrix appearing in Equation (4) coupling $(s,a)$ coordinates to λ and ψ coordinates and ψ coordinates to λ coordinates vanish, i.e.,

$$\begin{array}{c}{R}_{\psi s}={R}_{\psi a}={R}_{\psi \lambda}={R}_{s\lambda}={R}_{a\lambda}=0.\end{array}$$

This is claimed to imply ${M}_{\psi \lambda}={M}_{\lambda \psi}=0$, but not the full Condition 1. However, in [3], both Conditions 1 and 3 were assumed (along with ${R}_{as}=0$). This prompts our next observation.

In a system satisfying both Conditions 1 and 3, the internal coordinates cannot be directly influenced by the sensory coordinates: ${f}_{\lambda}(s,a,\lambda )={f}_{\lambda}(a,\lambda )$, and the external coordinates cannot be directly influenced by the active coordinates: ${f}_{\psi}(\psi ,s,a)={f}_{\psi}(\psi ,s)$.

From Equation (5), it follows that:
with the inverse replaced by a pseudoinverse if $\mathsf{\Gamma}-R$ is not invertible. Therefore, if ${\mathsf{\Gamma}}_{\alpha \beta}={\delta}_{\alpha \beta}{\mathsf{\Gamma}}_{\alpha \alpha}$ and ${R}_{\alpha \beta}={\delta}_{\alpha \beta}{R}_{\alpha \alpha}$ for blocks of coordinates labelled by $\alpha $ and $\beta $, then:
and ${M}_{\beta \alpha}=0\Rightarrow {M}_{\alpha \beta}=0$.

$$\begin{array}{c}M=(\mathsf{\Gamma}+R){M}^{T}{(\mathsf{\Gamma}-R)}^{-1},\end{array}$$

$$\begin{array}{c}{M}_{\alpha \beta}=({\mathsf{\Gamma}}_{\alpha \alpha}+{R}_{\alpha \alpha}){M}_{\beta \alpha}^{T}{({\mathsf{\Gamma}}_{\beta \beta}-{R}_{\beta \beta})}^{-1},\end{array}$$

Condition 3 implies that only the nonzero blocks of R are ${R}_{\psi \psi}$, ${R}_{ss}$, ${R}_{sa}$, ${R}_{as}$, ${R}_{aa}$, and ${R}_{\lambda \lambda}$, and $\mathsf{\Gamma}$ is assumed to be block diagonal. As noted in Equation (9), Condition 1 requires that ${M}_{a\psi}={M}_{\lambda \psi}={M}_{s\lambda}={M}_{\psi \lambda}=0$. Through Equation (25), these together imply that ${M}_{\lambda s}={M}_{\psi a}=0$, and hence that:
as shown. □

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill f\left(x\right)& =\left(\begin{array}{c}{f}_{\psi}(\psi ,s)\\ {f}_{s}(\psi ,s,a)\\ {f}_{a}(s,a,\lambda )\\ {f}_{\lambda}(a,\lambda )\end{array}\right),\hfill \end{array}\end{array}$$

In this case, the four sets of coordinates interact in a chain, and it is questionable whether the s and a coordinates can be meaningfully interpreted, respectively, as sensory inputs to the internal coordinates or their boundary-mediated influence on the external coordinates.

The relation of the dynamics of the internal coordinates to Bayesian beliefs is made by introducing a density (called the variational density) $q\left(\mathsf{\Psi}\right|\lambda )$ that is then interpreted as encoding a Bayesian belief. It is parameterized by the internal coordinates $\lambda $ and claimed to be “arbitrary”. We take this “at face value” and consider $q\left(\mathsf{\Psi}\right|\lambda )$ to be parameterized only by $\lambda $ and, therefore, to be independent of $(s,a)$. (We note that there is a convention in the literature on variational Bayesian inference, e.g., in [13], to drop the observed variables/data in the variational density. It is possible that in [1], $(s,a)$ was seen as observed variables and dropped from the variational density $q\left(\mathsf{\Psi}\right|\lambda )$ as in this convention. However, the reason that dropping the observed variables is justified in the established convention is that those observed variables are fixed throughout the minimization of the variational free energy and the parameters of the variational density do not influence the observed data in any way. In other words, the variational density is optimized for a single data point. In [1], the data point was continuously changing and partially doing so with dependence on the parameter $\lambda $ as $\dot{a}={f}_{a}(s,a,\lambda )$. These differences and their consequences are non-trivial and beyond the scope of this paper, so we assume that the variational density does not depend on $(s,a)$.) If $q\left(\mathsf{\Psi}\right|\lambda )$ is allowed to depend on $(s,a)$, Observation 4 does not apply, and the free energy lemma is made trivially true by setting $q\left(\psi \right|s,a,\lambda ):={p}^{*}\left(\psi \right|s,a,\lambda )$. The existence of the variational density $q\left(\mathsf{\Psi}\right|\lambda )$ is asserted by the free energy lemma (see Lemma 2.1 in [1]) (Explicitly, the free energy lemma asserts the existence of a free energy $F(s,a,\lambda )$ in terms of which $f(\psi ,s,a,\lambda )$ can be expressed and not the existence of $q\left(\mathsf{\Psi}\right|\lambda )$. However, since the free energy is defined as a functional of $q\left(\mathsf{\Psi}\right|\lambda )$, it exists if and only if a suitable $q\left(\mathsf{\Psi}\right|\lambda )$ exists.).

More precisely, the free energy lemma (and Step 4) asserts that for every ergodic density (equivalently as expressed in [1], for every Gibbs energy $G\left(x\right):=-ln{p}^{*}(\psi ,s,a,\lambda )$) ${p}^{*}(\psi ,s,a,\lambda )$ of a system obeying Equations (19) and (20), there is a free energy $F(s,a,\lambda )$, defined as:
in terms of the “posterior density” ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ (here, we keep the conditioning argument $\lambda $, as in [1], and do not explicitly assume Condition 2, though our conclusions are unaffected by it), such that Equations (19) and (20) can be rewritten as:

$$\begin{array}{cc}\hfill F(s,a,\lambda ):& =-ln{p}^{*}(s,a,\lambda )+\int q\left(\psi \right|\lambda )ln\frac{q\left(\psi \right|\lambda )}{{p}^{*}\left(\psi \right|s,a,\lambda )}\phantom{\rule{0.0pt}{0ex}}\mathrm{d}\phantom{\rule{-0.166667em}{0ex}}\psi \hfill \end{array}$$

$$\begin{array}{cc}\hfill \phantom{\rule{2.em}{0ex}}& =-ln{p}^{*}(s,a,\lambda )+{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )],\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{a}(s,a,\lambda )& =-{(\mathsf{\Gamma}+R)}_{aa}\xb7{\nabla}_{a}F(s,a,\lambda ),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\lambda}(s,a,\lambda )& =-{(\mathsf{\Gamma}+R)}_{\lambda \lambda}\xb7{\nabla}_{\lambda}F(s,a,\lambda ).\hfill \end{array}$$

It is worth considering what a proof of the free energy lemma could look like. A proof of the existence of a free energy (and therefore of the free energy lemma) would need to show that, for every system satisfying the given assumptions, there always exists a $q\left(\mathsf{\Psi}\right|\lambda )$ such that the right-hand sides of Equations (29) and (30) are equal to the right-hand sides of Equations (19) and (20). Expanding Equations (29) and (30) using (28) leads to:
For the equality of the right-hand sides to those of Equations (19) and (20), we need:
In other words, these equations say that the free energy lemma holds if any of the following three conditions (of strictly increasing strengths) are given:

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill {f}_{a}(s,a,\lambda )& ={(\mathsf{\Gamma}+R)}_{aa}\xb7{\nabla}_{a}ln{p}^{*}(s,a,\lambda )\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{{(\mathsf{\Gamma}+R)}_{aa}}-{(\mathsf{\Gamma}+R)}_{aa}\xb7{\nabla}_{a}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )],\hfill \end{array}\end{array}$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill {f}_{\lambda}(s,a,\lambda )& ={(\mathsf{\Gamma}+R)}_{\lambda \lambda}\xb7{\nabla}_{\lambda}ln{p}^{*}(s,a,\lambda )\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{{(\mathsf{\Gamma}+R)}_{\lambda \lambda}}-{(\mathsf{\Gamma}+R)}_{\lambda \lambda}\xb7{\nabla}_{\lambda}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )].\hfill \end{array}\end{array}$$

$$\begin{array}{cc}\hfill {(\mathsf{\Gamma}+R)}_{aa}\xb7{\nabla}_{a}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]& =0\hfill \end{array}$$

$$\begin{array}{cc}\hfill {(\mathsf{\Gamma}+R)}_{\lambda \lambda}\xb7{\nabla}_{\lambda}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]& =0.\hfill \end{array}$$

- There is a $q\left(\mathsf{\Psi}\right|\lambda )$ such that the partial gradients ${\nabla}_{a}$ and ${\nabla}_{\lambda}$ of the KL divergence between the variational density and the conditional ergodic density are elements of the nullspaces of ${(\mathsf{\Gamma}+R)}_{aa}$ and ${(\mathsf{\Gamma}+R)}_{\lambda \lambda}$, respectively.
- There is a $q\left(\mathsf{\Psi}\right|\lambda )$ such that the gradients of the KL divergence to ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ are equal to the nullvector:$$\begin{array}{c}\hfill {\nabla}_{a}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]=0,\end{array}$$$$\begin{array}{c}\hfill {\nabla}_{\lambda}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]=0,\end{array}$$Then, they are always elements of the nullspaces of ${(\mathsf{\Gamma}+R)}_{aa}$ and ${(\mathsf{\Gamma}+R)}_{\lambda \lambda}$, respectively.
- There is a $q\left(\mathsf{\Psi}\right|\lambda )$ such that $q\left(\mathsf{\Psi}\right|\lambda )={p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ (and hence, ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )={p}^{*}\left(\mathsf{\Psi}\right|\lambda )$), which implies that the KL divergence to ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ vanishes for all $a,\lambda $ and the two partial gradients are always nullvectors and therefore elements of the according nullspaces.

The free energy lemma can then be proven by showing that one of these three cases follows from the conditions of the lemma. However, no attempt was made in [1] to establish this. Instead, the given proof discusses the purported consequences of the existence of a suitable $q\left(\mathsf{\Psi}\right|\lambda )$. These will be discussed in Steps 5 and 6.

Even if the free energy lemma does not hold for systems obeying Equations (19) and (20), one might expect that the systems instead only satisfy the more general Equations (21) and (22) or the most general Equations (17) and (18). For these systems, the free energy lemma would require that there is a $q\left(\mathsf{\Psi}\right|\lambda )$ such that:
or:
hold, respectively. However, we find this not to be the case in general.

$$\begin{array}{cc}\hfill {f}_{a}(s,a,\lambda )& =\left(({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}+{R}_{a\lambda}\xb7{\nabla}_{\lambda}\right)F(s,a,\lambda ),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\lambda}(s,a,\lambda )& =\left({R}_{\lambda a}\xb7{\nabla}_{a}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}\right)F(s,a,\lambda ).\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{a}(s,a,\lambda )& =\left({R}_{as}\xb7{\nabla}_{s}+({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}+{R}_{a\lambda}\xb7{\nabla}_{\lambda}\right)F(s,a,\lambda ),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\lambda}(s,a,\lambda )& =\left({R}_{\lambda s}\xb7{\nabla}_{s}+{R}_{\lambda a}\xb7{\nabla}_{a}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}\right)F(s,a,\lambda ),\hfill \end{array}$$

Given a random dynamical system obeying Equation (1), ergodicity, Conditions 1 and 2, there need not exist a free energy expressed in terms of a variational density $q\left(\mathsf{\Psi}\right|\lambda )$ such that:

**(i)****(ii)****(iii)**

In Appendix C, we derive a set of conditions on the R and U matrices and on the putative variational density $q\left(\mathsf{\Psi}\right|\lambda )$, which follow from each of the pairs of equations in Cases (i–iii). We show that, in general, each pair leads to a contradiction, and in each case, we provide a counterexample that falls into the according system class. □

Before proceeding, we note that later works presented an alternative version of the free energy lemma, where the conditioning argument of $q\left(\mathsf{\Psi}\right|\lambda )$ was replaced by the most likely value of $\lambda $ conditional on the $(s,a)$ coordinates [2,3]. We here concern ourselves with the version apparent in [1], where $q\left(\mathsf{\Psi}\right|\lambda )$ is parametrised by the internal states themselves, but we briefly comment on the interpretation of the alternative approach in Step 7.

As mentioned in Step 4, the proof of the free energy lemma in [1] only discussed its consequences. The first proposed consequence is that expressing the vector field in terms of a free energy as in Equations (29) and (30) “requires” that the gradients with respect to a and $\lambda $ of the KL divergence vanish, i.e., that Equations (35) and (36) hold.

We mentioned in Step 4 that the implication in the opposite direction holds. This can be seen from Equations (33) and (34). However, if the nullspace of ${(\mathsf{\Gamma}+R)}_{aa}$ or ${(\mathsf{\Gamma}+R)}_{\lambda \lambda}$ is non-trivial, then the gradient may be a non-zero element of this subspace and Equations (29) and (30) will still hold. In that case, the vanishing gradients would not be necessary for the free energy lemma.

The conditions under which a non-trivial nullspace exists were discussed in [7]. In short, the nullspace is guaranteed to be trivial in the special case where $\mathsf{\Gamma}$ is positive definite. Whether or not ergodic systems with a Markov blanket can ever admit a non-trivial nullspace, and hence divergences in Equations (31) and (32) with non-vanishing gradients, is not immediately clear. However, in order to establish the necessity of Equations (35) and (36), this remains to be proven.

The proof of the free energy lemma in [1] also proposes that the vanishing of the gradients of the KL divergence, of the variational density $q\left(\mathsf{\Psi}\right|\lambda )$ from the conditional ergodic density ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$, implies the equality of these densities. We mentioned in Equations (5) that the implication in the opposite direction holds. This can also be seen from Equations (33) and (34). Concerning the implication in the direction proposed by [1], let us now assume that for a given system of Equations (19) and (20) holds, a variational density $q\left(\mathsf{\Psi}\right|\lambda )$ does exist, and the gradients of the KL divergence of the variational and ergodic densities vanish, i.e., Equations (35) and (36) hold. Then, consider the argument by [1] in this direct quote (comments in square brackets by us):

$$\begin{array}{c}\hfill q\left(\psi \right|\lambda )={p}^{[*]}\left(\psi \right|s,a,\lambda )\Rightarrow {\mathrm{D}}_{\mathrm{KL}}=0\Rightarrow \left\{\begin{array}{cc}\phantom{\rule{1.em}{0ex}}\hfill & (\mathsf{\Gamma}+R)\xb7{\nabla}_{\lambda}{\mathrm{D}}_{\mathrm{KL}}=0,\hfill \\ \phantom{\rule{1.em}{0ex}}\hfill & (\mathsf{\Gamma}+R)\xb7{\nabla}_{a}{\mathrm{D}}_{\mathrm{KL}}=0.\hfill \end{array}\right.\end{array}$$

In other words, the flow of internal and active states minimizes free energy, rendering the variational density equivalent to the posterior density over external states.”

The first problem in the above quote is that the minimization of the divergence does not follow from the vanishing gradients. On the contrary, since Equations (35) and (36) must hold for all $(s,a,\lambda )$, the KL divergence:
cannot depend on $(\lambda ,a)$; it therefore has no extremum (and thus no minimum) with respect to either of these coordinates.

$${\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]$$

The second problem pertains to the identification of the two distributions at a minimum. In general, if we try to find the minimum of a KL divergence between a given probability density ${p}_{1}\left(Y\right)$ and a family of densities ${p}_{2}\left(Y\right|\theta )$ parameterized by $\theta $, then the lowest possible value of zero is achieved only if there is a parameter ${\theta}_{1}$ such that ${p}_{2}\left(Y\right|{\theta}_{1})={p}_{1}\left(Y\right)$. If there is no such ${\theta}_{1}$, then the minimum value will be larger than zero. Therefore, even if the divergence were minimized, it would not need to be zero. More generally, the divergence $K\left(s\right)$ need not be zero for any value of s.

There is therefore no satisfactory reason given why the variational density $q\left(\mathsf{\Psi}\right|\lambda )$ and the posterior density ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ should be equal or have low KL divergence. In fact, they need not be (Note that, since any $q\left(\mathsf{\Psi}\right|\lambda )$ that does not depend on $(s,a)$ is an element of the set of those that do, Observation 5 remains true for the case where we allow this dependence. In that case, the free energy lemma holds because we can set $q\left(\mathsf{\Psi}\right|s,a,\lambda ):={p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$, and thus, a q exists for which the densities are actually equal. However, the claim here is that for every q that obeys the conditions in Observation 5, we must have equality.).

Given a random dynamical system obeying Equation (1), ergodicity, Conditions 1 and 2. Then if, additionally,

**(i)****(ii)****(iii)**

then there is no $c\ge 0$ for which it can be guaranteed that:
In particular, it does not follow from these conditions that:

$${\mathrm{D}}_{\mathrm{K}\mathrm{L}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]<c.$$

$$\begin{array}{c}\hfill q\left(\mathsf{\Psi}\right|\lambda )={p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda ).\end{array}$$

By example, see Appendix D. To show that the implication does not generally hold for a given system and densities $q\left(\mathsf{\Psi}\right|\lambda )$ that obey Equations (19), (20), (29), and (30), Equations (21), (22), (37), and (38), or Equations (17), (18), (39), and (40), we only have to consider a system that obeys all three pairs of equations, Equations (19) and (20), Equations (21) and (22), and Equations (21) and (22), and for which a suitable $q\left(\mathsf{\Psi}\right|\lambda )$ exist. For this system, we then need to show that the $q\left(\mathsf{\Psi}\right|\lambda )$ that obey Equations (29) and (30) are not necessarily equal (or similar) to ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$.

We use a variant of the model used in Appendix B as such a counterexample. This system obeys all three of Equations (19) and (20), Equations (21) and (22), and Equations (21) and (22), and the nullspace of the associated $\mathsf{\Gamma}+R$ is trivial. We identify a set of possible $q\left(\mathsf{\Psi}\right|\lambda )$ satisfying Equations (29) and (30), which implies that the gradients of the KL divergence between those $q\left(\mathsf{\Psi}\right|\lambda )$ and ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ vanish, i.e., Equations (35) and (36) hold. We then demonstrate that for the $q\left(\mathsf{\Psi}\right|\lambda )$ in this set, the value of the KL divergence to ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )$ can be arbitrarily large. □

Finally, we turn our attention to the interpretation in terms of Bayesian inference, i.e., Step 7. We again quote directly from [1]:

Because (by Gibbs inequality) this divergence [D_{KL}$\left[q\left(\psi \right|\lambda )\right|\left|{p}^{*}\left(\psi \right|s,a,\lambda )\right]$] cannot be less than zero, the internal flow will appear to have minimized the divergence between the variational and posterior density. In other words, the internal states will appear to have solved the problem of Bayesian inference by encoding posterior beliefs about hidden (external) states, under a generative model provided by the Gibbs energy.

We showed that, in general, there is no suitable variational density that is only parameterized by the internal coordinate $\lambda $. We then showed that, even if there is a suitable variational density (including those parameterized by all of $(s,a,\lambda )$), it can be arbitrarily different from the posterior density. Since the arguments for the internal flow appearing to minimize the divergence between variational and posterior density are therefore incorrect, there is no reason why the internal states should appear to have solved the problem of Bayesian inference.

As mentioned in Step 4, some newer works (e.g., [2,3]) formulated a different free energy principle, where the variational density of beliefs is parametrised not by the internal coordinates $\lambda $, but by $\overline{\lambda}(s,a)={arg\; max}_{\lambda}{p}^{*}\left(\lambda \right|s,a)$, the most likely value of the internal coordinates given the sensory and active ones. In this case, Observations 4 and 5 do not apply. However, the new parameters $\overline{\lambda}(s,a)$ are strictly a function of the sensory and active coordinates. This means we have a Markov chain (with capitalisations indicating random variables associated with the corresponding lower case coordinates (or functions of coordinates)) $\mathsf{\Lambda}\to (S,A)\to \overline{\mathsf{\Lambda}}$ and, by the data processing inequality [14], the mutual information between the both sensory and active coordinates and the belief parameter $\overline{\lambda}$ upper bounds that are between the internal coordinates and the belief parameter. It is therefore not clear to what extent the internal coordinates $\lambda $, rather than the active and sensory coordinates $(s,a)$ themselves, can be said to be encoding beliefs about the external coordinates. Note also that, on any given trajectory, unless the distribution ${p}^{*}\left(\lambda \right|s,a)$ is sufficiently peaked and unimodal, the internal coordinates are not guaranteed to spend most of their time close to their most likely conditional value, and (by definition if Condition 2 holds) they will not be better predictors of the external coordinates than those in the Markov blanket.

Generally, $\lambda \ne \overline{\lambda}$, and $\overline{\lambda}$ is the solution to an optimization problem that is assumed to be solved in these later works. Using this optimized variable to parametrise beliefs is therefore a considerable departure from [1]. Contrary to the impression created by the way it was referenced in [2,3], the older theory in [1] should be clearly distinguished from the newer ones in these more recent papers.

Reference [4] argued for the same interpretation as [1], but there were some differences in the argument.

The differences were the following:

- The Markov blanket structure was not explicitly defined via Equation (2). Formally, it was introduced directly (see [4] Equation (10)) in a less general form corresponding to Equations (19) and (20) (at the same time, [1] is referenced in connection to the Markov blanket so there seems to be no intention to replace the original definition with the stronger one). Therefore, our observations concerning Steps 2 to 4 are not directly relevant to this paper.
- The internal coordinate $\lambda $ was renamed to r, and the role of matrix R was played by the matrix $-Q$.
- The proof of the free energy lemma given in [4] was different. It (implicitly) suggested setting the variational density equal to the ergodic conditional posterior.
- The proof of the free energy lemma no longer contained the proposition that the gradient of the KL divergence of the variational density and the ergodic conditional density vanish, i.e., Step 5.
- The proof also no longer contained the claim that the vanishing gradients of the KL divergence of the variational density and the ergodic conditional density imply the equality of those densities, i.e., Step 6 was not present.

The interpretation in terms of Bayesian inference was unchanged and still relied on the equality of the variational and the ergodic conditional density.

Since there were no explicit generalized coordinate versions of Steps 2, 3, 5 and 6 in [4], we do not discuss those steps here. We only disprove the free energy lemma and the claim that when the free energy lemma holds, the variational and ergodic conditional density become equal. For this, we present a way to translate the counterexamples used in Observations 4 and 5 into counterexamples in generalized coordinates. The interpretation in terms of Bayesian inference given in [4] is therefore equally as unjustified as the one in [1].

For completeness, we first state the generalized coordinate versions of the stochastic differential Equation (1):
the less general version of the Markov blanket structure Equation (2):
the expression of the $\tilde{a}$ and $\tilde{r}$ components of the vector field in terms of the marginalised ergodic density Equations (19) and (20):
and in terms of free energy Equations (29) and (30):
The free energy lemma then requires that there exists $q\left(\tilde{\mathsf{\Psi}}\right|\tilde{r})$ such that the KL divergence between ${p}^{*}\left(\tilde{\mathsf{\Psi}}\right|\tilde{s},\tilde{a},\tilde{r})$ vanishes. Without going into further details of the difference between the proof in [4] and that in [1], we can prove the former wrong by translating the counterexample used for the latter into generalised coordinates.

$$\begin{array}{c}\hfill \dot{\tilde{x}}=f\left(\tilde{x}\right)+\tilde{\omega},\end{array}$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill {f}_{\tilde{\psi}}(\tilde{\psi},\tilde{s},\tilde{a})& ={(\mathsf{\Gamma}-Q)}_{\tilde{\psi}\tilde{\psi}}{\nabla}_{\tilde{\psi}}ln{p}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})\hfill \\ \hfill {f}_{\tilde{s}}(\tilde{\psi},\tilde{s},\tilde{a})& ={(\mathsf{\Gamma}-Q)}_{\tilde{s}\tilde{s}}{\nabla}_{\tilde{s}}ln{p}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})\hfill \\ \hfill {f}_{\tilde{a}}(\tilde{s},\tilde{a},\tilde{r})& ={(\mathsf{\Gamma}-Q)}_{\tilde{a}\tilde{a}}{\nabla}_{\tilde{a}}ln{p}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})\hfill \\ \hfill {f}_{\tilde{r}}(\tilde{s},\tilde{a},\tilde{r})& ={(\mathsf{\Gamma}-Q)}_{\tilde{r}\tilde{r}}{\nabla}_{\tilde{r}}ln{p}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r}),\hfill \end{array}\end{array}$$

$$\begin{array}{cc}\hfill {f}_{\tilde{a}}(\tilde{s},\tilde{a},\tilde{r})& ={(\mathsf{\Gamma}-Q)}_{\tilde{a}\tilde{a}}\xb7{\nabla}_{\tilde{a}}ln{p}^{*}(\tilde{s},\tilde{a},\tilde{r}),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\tilde{r}}(\tilde{s},\tilde{a},\tilde{r})& ={(\mathsf{\Gamma}-Q)}_{\tilde{r}\tilde{r}}\xb7{\nabla}_{\tilde{r}}ln{p}^{*}(\tilde{s},\tilde{a},\tilde{r}),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\tilde{a}}(\tilde{s},\tilde{a},\tilde{r})& ={(Q-\mathsf{\Gamma})}_{\tilde{a}\tilde{a}}\xb7{\nabla}_{\tilde{a}}F(\tilde{s},\tilde{a},\tilde{r}),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {f}_{\tilde{r}}(\tilde{s},\tilde{a},\tilde{r})& ={(Q-\mathsf{\Gamma})}_{\tilde{r}\tilde{r}}\xb7{\nabla}_{\tilde{r}}F(\tilde{s},\tilde{a},\tilde{r}).\hfill \end{array}$$

There is a general way to translate a system in ordinary coordinates into a system of generalised coordinates that corresponds to an infinite number of independent copies of the original system. This means all properties of the original system (e.g., linearity, ergodicity, the Gaussian and Markovian property of the noise, Conditions 1 and 2, the properties of $\mathsf{\Gamma},R,U$) are preserved during this translation.

By construction, see Appendix E. □

This implies that the counterexamples used in proving Observations 4 and 5 directly translate to the setting of the generalised coordinates. The free energy lemma is therefore also wrong for generalised coordinates, and the variational density $q\left(\tilde{\mathsf{\Psi}}\right|\tilde{r})$ is not “ensured” [4] to be equal to the conditional ergodic density ${p}^{*}\left(\tilde{\mathsf{\Psi}}\right|\tilde{s},\tilde{a},\tilde{r})$.

We find that the two different Markov blanket conditions proposed in [1,2,3] are independent of each other. We then show that under both of those Markov blanket conditions, among the six steps contained in the argument in [1], three do not hold independently of each other. We also show that fixing the second of those steps (Step 3) does not provide a valid alternative. The line of reasoning of [1] therefore does not support its claim that the internal coordinates of a Markov blanket “appear to have solved the problem of Bayesian inference by encoding posterior beliefs about hidden (external) [coordinates], …”. We also show that using generalised coordinates as in [4] does not remedy the situation. Additionally, we identify a technical error in [2] and an interpretational issue resulting from possibly too strong assumptions (both Conditions 1 and 3) in [3]. We also highlight that the latter publications both argued that it is the most likely internal coordinates given sensory and active coordinates that encode posterior beliefs about external states instead of the internal coordinates themselves. The resulting free energy principle and lemma are therefore a different proposal. This is not subject to our technical critique.

Conceptualization, M.B., F.A.P., and R.K.; formal analysis, M.B. and F.A.P.; funding acquisition, F.A.P. and R.K.; methodology, M.B., F.A.P., and R.K.; visualization, M.B. and F.A.P.; writing—original draft, M.B. and F.A.P.; writing—review and editing, M.B., F.A.P., and R.K. All authors read and agreed to the published version of the manuscript.

The work by Martin Biehl and Ryota Kanai on this publication was made possible through the support of a grant from Templeton World Charity Foundation, Inc. The opinions expressed in this publication are those of the authors and do not necessarily reflect the views of Templeton World Charity Foundation, Inc. Martin Biehl and Ryota Kanai are also funded by the Japan Science and Technology Agency (JST) CREST project. Felix A. Pollock acknowledges support from the Monash University Network of Excellence for Consciousness and Complexity in the Conscious Brain.

All authors are grateful to Karl Friston and Thomas Parr for constructive feedback on an earlier version of this work. We also want to thank Danijar Hafner for pointing us to [9]. Martin Biehl wants to thank Yen Yu for helpful discussions on generalized coordinates.

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; nor in the decision to publish the results.

Consider a four-dimensional linear system obeying Equation (1) for which there are coordinates $x=(\psi ,s,a,\lambda )$ with ${n}_{\psi}={n}_{s}={n}_{a}={n}_{\lambda}=1$ and:
with the parametrisation:
From Equation (9), it is clear that the system obeys Condition 1 if ${m}_{3}=0$. In this case, taking $\mathsf{\Gamma}$ to be the identity matrix, it is possible to show that:
For fixed, finite ${m}_{2}$, this is zero only for a few discrete values of ${m}_{1}$, such as ${m}_{1}={m}_{2}-2$; that it is generically non-zero proves Equation (11). As a concrete example, the following:
has:
and (full rank and hence ergodic):
and hence ergodic density:
which does not conditionally factorise.

$$\begin{array}{c}\hfill f\left(x\right)=Mx,\end{array}$$

$$\begin{array}{c}\hfill M=\left(\begin{array}{cccc}-1& {m}_{1}& {m}_{2}& {m}_{3}\\ {m}_{2}& -1& {m}_{2}& {m}_{3}\\ {m}_{3}& {m}_{2}& -1& {m}_{2}\\ {m}_{3}& {m}_{2}& {m}_{1}& -1\end{array}\right).\end{array}$$

$$\begin{array}{c}{U}_{\psi \lambda}=-\frac{{m}_{2}({m}_{1}-{m}_{2}+2)({m}_{2}^{3}+{m}_{1}^{2}{m}_{2}-2{m}_{1}{m}_{2}^{2}-4{m}_{1}-2)}{({m}_{1}^{2}+{m}_{2}^{2}-4{m}_{2}+4)({m}_{1}^{2}+5{m}_{2}^{2}-4{m}_{1}{m}_{2}+4{m}_{2}+4)}.\end{array}$$

$$\begin{array}{c}\hfill M=\left(\begin{array}{cccc}-1& -2\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}3& -2\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}3& 0\\ -2\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}3& -1& -2\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}3& 0\\ 0& -2\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}3& -1& -2\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}3\\ 0& -2\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}3& -2\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}3& -1\end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill R=\left(\begin{array}{cccc}0& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}8& 3\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}8& 0\\ 1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}8& 0& 0& -3\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}8\\ -3\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}8& 0& 0& 1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}8\\ 0& 3\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}8& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}8& 0\end{array}\right)\end{array}$$

$$\begin{array}{c}\hfill U=\left(\begin{array}{cccc}236\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255& 127\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255& -31\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}85& -12\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}85\\ 127\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255& 274\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255& 206\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255& 31\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}85\\ 31\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}85& 206\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255& 274\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255& 127\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255\\ -12\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}85& 31\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}85& 127\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255& 236\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}255\end{array}\right),\end{array}$$

$$\begin{array}{cc}\hfill {p}^{*}(\psi ,s,a,\lambda )=& \sqrt{\frac{28}{2295{\pi}^{4}}}\phantom{\rule{0.166667em}{0ex}}exp\left[-\frac{1}{255}\left(137({a}^{2}+{s}^{2})+118({\psi}^{2}+{\lambda}^{2})\right.\right.\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{\rule{2.em}{0ex}}\left.\left.+127(\psi s+a\lambda )+93(\psi a+s\lambda )+206as-36\psi \lambda \phantom{137({a}^{2}+{s}^{2})+118({\psi}^{2}+{\lambda}^{2})}\right)\phantom{-\frac{1}{255}\left(137({a}^{2}+{s}^{2})+118({\psi}^{2}+{\lambda}^{2})\right.}\right],\hfill \end{array}$$

Taking the same parametrisation as in Equation (A2) and fixing ${m}_{1}={m}_{2}=-1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2$, we can search for a non-zero value of ${m}_{3}$ that leads to ${U}_{\psi \lambda}=0$ (equivalent to Condition 2 through Equation (10)). We find such a value in the real root $c\simeq -0.08$ of the quintic equation $8{c}^{5}-4{c}^{4}-6{c}^{3}+31{c}^{2}+40c+3=0$; that is, with:
which does not satisfy Condition 1, we have:
and:
which has a non-zero determinant (i.e., the dynamics is ergodic) and an ergodic density satisfying Condition 2. This proves Equation (12).

$$\begin{array}{c}\hfill M=\left(\begin{array}{cccc}-1& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& c\\ -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& -1& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& c\\ c& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& -1& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2\\ c& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& -1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& -1\end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill R=\left(\begin{array}{cccc}0& -0.06\dots & \phantom{-}0.22\dots & 0\\ \phantom{-}0.06\dots & 0& 0& -0.22\dots \\ -0.22\dots & 0& 0& \phantom{-}0.06\dots \\ 0& \phantom{-}0.22\dots & -0.06\dots & 0\end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill U=\left(\begin{array}{cccc}0.96\dots & 0.43\dots & 0.30\dots & 0\\ 0.43\dots & 1.03\dots & 0.58\dots & 0.30\dots \\ 0.30\dots & 0.58\dots & 1.03\dots & 0.43\dots \\ 0& 0.30\dots & 0.43\dots & 0.96\dots \end{array}\right),\end{array}$$

Here, we consider a linear system, as in the previous Appendix. We again assume $\mathsf{\Gamma}$ equal to the identity matrix and choose a force matrix of the form:
which explicitly satisfies Condition 1 and has full rank such that the system is ergodic. Using Equation (5), this leads to:
which shows that this system also satisfies Condition 2 since ${U}_{\psi \lambda}={U}_{\lambda \psi}=0$. We also find:
which shows that all entries or R that can be non-zero for an anti-symmetric matrix are non-zero. For the marginal ergodic density, we find:
The difference between the right-hand sides of Equations (17) and (19) is:
which shows that Equation (19) is wrong in this example and therefore not generally equivalent to Equation (17). Similarly, computing the difference between the right-hand sides of Equations (18) and (20), one finds:
and hence, Equation (20) is also incorrect in general.

$$\begin{array}{c}\hfill M=\left(\begin{array}{cccc}-1& -\frac{1}{2\sqrt{2}}& -\frac{1}{2\sqrt{2}}& 0\\ -\frac{1}{2\sqrt{2}}& -1& -\frac{1}{16}& 0\\ 0& \frac{1}{16}& -1& -\frac{1}{2\sqrt{2}}\\ 0& \frac{1}{2\sqrt{2}}& -\frac{1}{2\sqrt{2}}& -1\end{array}\right)\end{array}$$

$$\begin{array}{c}\hfill U=\left(\begin{array}{cccc}\frac{1023}{1057}& \frac{260\sqrt{2}}{1057}& \frac{136\sqrt{2}}{1057}& 0\\ \frac{260\sqrt{2}}{1057}& \frac{1091}{1057}& 0& -\frac{136\sqrt{2}}{1057}\\ \frac{136\sqrt{2}}{1057}& 0& \frac{1091}{1057}& \frac{260\sqrt{2}}{1057}\\ 0& -\frac{136\sqrt{2}}{1057}& \frac{260\sqrt{2}}{1057}& \frac{1023}{1057}\end{array}\right)\end{array}$$

$$\begin{array}{c}\hfill R=\left(\begin{array}{cccc}0& -\frac{17}{1786\sqrt{2}}& \frac{479}{1786\sqrt{2}}& -\frac{62}{893}\\ \frac{17}{1786\sqrt{2}}& 0& -\frac{65}{14288}& \frac{479}{1786\sqrt{2}}\\ -\frac{479}{1786\sqrt{2}}& \frac{65}{14288}& 0& \frac{17}{1786\sqrt{2}}\\ \frac{62}{893}& -\frac{479}{1786\sqrt{2}}& -\frac{17}{1786\sqrt{2}}& 0\end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill {p}^{*}(s,a,\lambda )=\frac{239}{16\sqrt{2415}{\pi}^{3/2}}exp& \left[-\frac{69{a}^{2}}{140}-\frac{37as}{70\sqrt{2}}+\frac{1}{35}\sqrt{2}2a\psi \right.\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \left.\phantom{\left[\phantom{-\frac{4867{s}^{2}}{9660}}\right.}-\frac{4867{s}^{2}}{9660}+\frac{74s\psi}{2415}-\frac{8429{\psi}^{2}}{19320}\right]\hfill \end{array}\end{array}$$

$$\begin{array}{c}\hfill {R}_{as}{\nabla}_{s}ln{p}^{*}(s,a,\lambda )+{R}_{a\lambda}{\nabla}_{\lambda}ln{p}^{*}(s,a,\lambda )=\frac{37a+69\sqrt{2}\lambda -2563s}{4830}\ne 0,\end{array}$$

$$\begin{array}{c}\hfill {R}_{\lambda s}{\nabla}_{s}ln{p}^{*}(s,a,\lambda )+{R}_{\lambda a}{\nabla}_{a}ln{p}^{*}(s,a,\lambda )=\frac{2a-\sqrt{2}\lambda +27s}{70\sqrt{2}}\ne 0,\end{array}$$

Performing the same comparison for the difference between the general expression in Equations (17) and (18) and the expressions taken from [2], one finds:
for the difference between the right-hand sides of Equations (17) and (21), and:
for the difference between the right-hand sides of Equations (18) and (22). Therefore, Equations (21) and (22) are also incorrect in general, even when Conditions 1 and 2 both hold.

$$\begin{array}{c}\hfill {R}_{{a}_{i}s}{\nabla}_{s}ln{p}^{*}(s,a,\lambda )=\frac{73\left(296a+552\sqrt{2}\lambda -8429s\right)}{1,154,370}\ne 0\end{array}$$

$$\begin{array}{c}\hfill {R}_{\lambda s}{\nabla}_{s}ln{p}^{*}(s,a,\lambda )=-\frac{53\left(296a+552\sqrt{2}\lambda -8429s\right)}{1,154,370\sqrt{2}}\ne 0,\end{array}$$

We saw in Appendix B that Equations (19) and (20) are not generally equivalent to Equation (4), even when Conditions 1 and 2 hold simultaneously. We now show that if we instead use Equations (17) and (18), which are generally equivalent to Equation (4), the free energy lemma does not hold in general.

The original free energy lemma requires that (see Equations (31) and (32)):
$$\begin{array}{cc}\hfill {(\mathsf{\Gamma}+R)}_{aa}\xb7{\nabla}_{a}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]& =0\hfill \end{array}$$
$$\begin{array}{cc}\hfill {(\mathsf{\Gamma}+R)}_{\lambda \lambda}\xb7{\nabla}_{\lambda}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]& =0.\hfill \end{array}$$
Replacing the partial gradient in Equations (29) and (30) with the full gradient and including the entire matrix $(\mathsf{\Gamma}+R)$ lead to the corresponding requirement for the more general case:
Similarly, the version based on the equations taken from [2] implies:
Using the rules of Gaussian integration, we can write the logarithm of the conditional ergodic density as:
with C a constant (and remembering each of $\psi $, s, a, and $\lambda $ is a vector of coordinates in general). We can then expand the derivatives of the KL divergence to express them in terms of the coordinates:
with ${\langle g\left(\psi \right)\rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}:=\int \mathrm{d}\psi \phantom{\rule{0.166667em}{0ex}}q\left(\psi \right|\lambda )g\left(\psi \right)$ and H the Shannon entropy.

$$\begin{array}{cc}\hfill \left({R}_{as}\xb7{\nabla}_{s}+({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}+{R}_{a\lambda}\xb7{\nabla}_{\lambda}\right){\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]& =0\hfill \end{array}$$

$$\begin{array}{cc}\hfill \left({R}_{\lambda s}\xb7{\nabla}_{s}+{R}_{\lambda a}\xb7{\nabla}_{a}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}\right){\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]& =0.\hfill \end{array}$$

$$\begin{array}{cc}\hfill \left(({\mathsf{\Gamma}}_{aa}+{R}_{aa})\xb7{\nabla}_{a}+{R}_{a\lambda}\xb7{\nabla}_{\lambda}\right){\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]& =0\hfill \end{array}$$

$$\begin{array}{cc}\hfill \left({R}_{\lambda a}\xb7{\nabla}_{a}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})\xb7{\nabla}_{\lambda}\right){\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]& =0.\hfill \end{array}$$

$$\begin{array}{c}\hfill ln{p}^{*}\left(\psi \right|s,a,\lambda )=-\frac{1}{2}{|{U}_{\psi \psi}^{\frac{1}{2}}\psi +{U}_{\psi \psi}^{-\frac{1}{2}}{U}_{\psi s}s+{U}_{\psi \psi}^{-\frac{1}{2}}{U}_{\psi a}a+{U}_{\psi \psi}^{-\frac{1}{2}}{U}_{\psi \lambda}\lambda |}^{2}+C,\end{array}$$

$$\begin{array}{cc}\hfill {\nabla}_{s}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\psi \right|s,a,\lambda )]=& -\int \mathrm{d}\psi \phantom{\rule{0.166667em}{0ex}}q\left(\psi \right|\lambda ){\nabla}_{s}ln{p}^{*}\left(\psi \right|s,a,\lambda )\hfill \\ \hfill =& {U}_{s\psi}{U}_{\psi \psi}^{-1}({U}_{\psi s}s+{U}_{\psi a}a\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{\rule{2.em}{0ex}}\phantom{\rule{2.em}{0ex}}+{U}_{\psi \lambda}\lambda +{U}_{\psi \psi}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {\nabla}_{a}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\psi \right|s,a,\lambda )]=& -\int \mathrm{d}\psi \phantom{\rule{0.166667em}{0ex}}q\left(\psi \right|\lambda ){\nabla}_{a}ln{p}^{*}\left(\psi \right|s,a,\lambda )\hfill \\ \hfill =& {U}_{a\psi}{U}_{\psi \psi}^{-1}({U}_{\psi s}s+{U}_{\psi a}a\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{\rule{2.em}{0ex}}\phantom{\rule{2.em}{0ex}}+{U}_{\psi \lambda}\lambda +{U}_{\psi \psi}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}),\hfill \end{array}$$

$$\begin{array}{cc}\hfill {\nabla}_{\lambda}{\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right|\lambda )\right||{p}^{*}\left(\psi \right|s,a,\lambda )]=& \int \mathrm{d}\psi \phantom{\rule{0.166667em}{0ex}}[\left(lnq\left(\psi \right|\lambda )-ln{p}^{*}\left(\psi \right|s,a,\lambda )+1\right){\nabla}_{\lambda}q\left(\psi \right|\lambda )\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{\rule{2.em}{0ex}}\phantom{\rule{1.em}{0ex}}-q\left(\psi \right|\lambda ){\nabla}_{\lambda}ln{p}^{*}\left(\psi \right|s,a,\lambda )]\hfill \\ \hfill =& {U}_{\lambda \psi}{U}_{\psi \psi}^{-1}({U}_{\psi s}s+{U}_{\psi a}a\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{\rule{2.em}{0ex}}\phantom{\rule{2.em}{0ex}}+{U}_{\psi \lambda}\lambda +{U}_{\psi \psi}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )})\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{\rule{1.em}{0ex}}+{\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\left({U}_{\psi s}s+{U}_{\psi a}a+{U}_{\psi \lambda}\lambda \right)\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \phantom{\rule{1.em}{0ex}}+{\nabla}_{\lambda}\left({\langle {\psi}^{T}{U}_{\psi \psi}\psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}-H\left[q\left(\mathsf{\Psi}\right|\lambda )\right]\right),\hfill \end{array}$$

Substituting Equations (A27) and (A28) into Equations (A19) and (A20) leads to:
and:
Since these must hold for all values of the coordinates, they put strong requirements on the U and R matrices. Specifically,
In other words, since ${U}_{\psi \psi}$ and ${\mathsf{\Gamma}}_{aa}$ must be nonzero for the dynamics to be ergodic, it must be that ${U}_{\psi a}=0$ (This is equivalent to ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )={p}^{*}\left(\mathsf{\Psi}\right|s,\lambda )$. Therefore, if Condition 2 also holds, we must have ${p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )={p}^{*}\left(\mathsf{\Psi}\right|s)$ in order for there to be a suitable $q\left(\mathsf{\Psi}\right|\lambda )$.). Specifically, consider the system specified by the force matrix:
which leads to:
and:
Here, M is full rank, so the system is ergodic; clearly, it also satisfies Condition 1 due to the structure of M. Since ${R}_{as}={R}_{a\lambda}={R}_{\lambda s}=0$, it obeys Equations (19) and (20), and since ${Q}_{\psi \lambda}=0$, it also obeys Condition 2. Additionally, we find ${U}_{\psi a}=-4\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}17$, which is a contradiction.

$$\begin{array}{c}\hfill ({\mathsf{\Gamma}}_{aa}+{R}_{aa}){U}_{a\psi}{U}_{\psi \psi}^{-1}\left({U}_{\psi s}s+{U}_{\psi a}a+{U}_{\psi \lambda}\lambda +{U}_{\psi \psi}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\right)=0,\end{array}$$

$$\begin{array}{cc}\hfill 0=& ({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){U}_{\lambda \psi}{U}_{\psi \psi}^{-1}\left({U}_{\psi s}s+{U}_{\psi a}a+{U}_{\psi \lambda}\lambda +{U}_{\psi \psi}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\right)\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\left({U}_{\psi s}s+{U}_{\psi a}a+{U}_{\psi \lambda}\lambda \right)\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){\nabla}_{\lambda}\left({\langle {\psi}^{T}{U}_{\psi \psi}\psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}-H\left[q\left(\mathsf{\Psi}\right|\lambda )\right]\right).\hfill \end{array}$$

$$\begin{array}{cc}\hfill ({\mathsf{\Gamma}}_{aa}+{R}_{aa}){U}_{a\psi}{U}_{\psi \psi}^{-1}{U}_{\psi s}& =0,\hfill \end{array}$$

$$\begin{array}{cc}\hfill ({\mathsf{\Gamma}}_{aa}+{R}_{aa}){U}_{a\psi}{U}_{\psi \psi}^{-1}{U}_{\psi a}& =0,\hfill \end{array}$$

$$\begin{array}{cc}\hfill ({\mathsf{\Gamma}}_{aa}+{R}_{aa}){U}_{a\psi}{U}_{\psi \psi}^{-1}{U}_{\psi \lambda}& =0.\hfill \end{array}$$

$$\begin{array}{c}\hfill M=\left(\begin{array}{cccc}-1& 0& \frac{1}{2}& 0\\ 0& -1& 0& 0\\ 0& 0& -1& 0\\ 0& 0& 0& -1\end{array}\right)\end{array}$$

$$\begin{array}{c}\hfill R=\left(\begin{array}{cccc}0& 0& -\frac{1}{4}& 0\\ 0& 0& 0& 0\\ \frac{1}{4}& 0& 0& 0\\ 0& 0& 0& 0\end{array}\right)\end{array}$$

$$\begin{array}{c}\hfill U=\left(\begin{array}{cccc}\frac{16}{17}& 0& -\frac{4}{17}& 0\\ 0& 1& 0& 0\\ -\frac{4}{17}& 0& \frac{18}{17}& 0\\ 0& 0& 0& 1\end{array}\right).\end{array}$$

For the more general version, substituting Equations (A26)–(A28) into Equation (A21), one finds:
which, considering that the coordinates can take any values, implies that:
lies in a common (left) nullspace of ${U}_{\psi s}$, ${U}_{\psi a}$, and ${U}_{\psi \lambda}$. However, the existence of such a nontrivial nullspace would imply that the corresponding subspace of $\psi $ coordinates is independent of the s, a, and $\lambda $ coordinates (to see this, consider marginalising over their complement in Equation (A25)). In other words, if only $\psi $ coordinates that play a nontrivial role in the dynamics are considered, then Equation (A21) must imply that the quantity in Equation (A38) is zero and hence that:
However, through a similar procedure, one finds that Equation (A22) is equivalent to:
implying that:
Unless ${R}_{a\lambda}$ and $({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda})$ share a common nullspace or the U and R matrices are finely tuned, then Equations (A39) and (A41) contradict one another. In this case, there cannot exist a $q\left(\mathsf{\Psi}\right|\lambda )$ that satisfies both Equations (A21) and (A22), and hence, the modified free energy lemma is invalid in general. In particular, using the example from Appendix B, if we solve Equation (A39) for ${\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}$, we find:
and from Equation (A41), we get:
which is a contradiction.

$$\begin{array}{cc}\hfill 0=& \left(\left({R}_{as}{U}_{s\psi}+({R}_{aa}+{\mathsf{\Gamma}}_{aa}){U}_{a\psi}+{R}_{a\lambda}{U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}+{R}_{a\lambda}{\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\right){U}_{\psi s}s\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +\left(\left({R}_{as}{U}_{s\psi}+({R}_{aa}+{\mathsf{\Gamma}}_{aa}){U}_{a\psi}+{R}_{a\lambda}{U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}+{R}_{a\lambda}{\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\right){U}_{\psi a}a\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +\left(\left({R}_{as}{U}_{s\psi}+({R}_{aa}+{\mathsf{\Gamma}}_{aa}){U}_{a\psi}+{R}_{a\lambda}{U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}+{R}_{a\lambda}{\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\right){U}_{\psi \lambda}\lambda \hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +\left({R}_{as}{U}_{s\psi}+({R}_{aa}+{\mathsf{\Gamma}}_{aa}){U}_{a\psi}+{R}_{a\lambda}{U}_{\lambda \psi}\right){\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +{R}_{a\lambda}{\nabla}_{\lambda}\left({\langle {\psi}^{T}{U}_{\psi \psi}\psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}-H\left[q\left(\mathsf{\Psi}\right|\lambda )\right]\right),\hfill \end{array}$$

$$\begin{array}{c}\left({R}_{as}{U}_{s\psi}+({R}_{aa}+{\mathsf{\Gamma}}_{aa}){U}_{a\psi}+{R}_{a\lambda}{U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}+{R}_{a\lambda}{\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\end{array}$$

$$\begin{array}{c}{R}_{a\lambda}{\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}=-\left({R}_{as}{U}_{s\psi}+({R}_{aa}+{\mathsf{\Gamma}}_{aa}){U}_{a\psi}+{R}_{a\lambda}{U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}.\end{array}$$

$$\begin{array}{cc}\hfill 0=& (\left({R}_{\lambda s}{U}_{s\psi}+{R}_{\lambda a}{U}_{a\psi}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}\hfill \\ & \phantom{\rule{2.em}{0ex}}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}){U}_{\psi s}s\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +(\left({R}_{\lambda s}{U}_{s\psi}+{R}_{\lambda a}{U}_{a\psi}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}\hfill \\ & \phantom{\rule{2.em}{0ex}}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}){U}_{\psi a}a\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +(\left({R}_{\lambda s}{U}_{s\psi}+{R}_{\lambda a}{U}_{a\psi}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}\hfill \\ & \phantom{\rule{2.em}{0ex}}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}){U}_{\psi \lambda}\lambda \hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +\left({R}_{\lambda s}{U}_{s\psi}+{R}_{\lambda a}{U}_{a\psi}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){U}_{\lambda \psi}\right){\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& +({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){\nabla}_{\lambda}\left({\langle {\psi}^{T}{U}_{\psi \psi}\psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}-H\left[q\left(\mathsf{\Psi}\right|\lambda )\right]\right),\hfill \end{array}$$

$$\begin{array}{c}({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}=-\left({R}_{\lambda s}{U}_{s\psi}+{R}_{\lambda a}{U}_{a\psi}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}.\end{array}$$

$$\begin{array}{c}\hfill {\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}=-\frac{53}{5},\end{array}$$

$$\begin{array}{c}\hfill {\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}=\frac{29}{239},\end{array}$$

If we now perform the same procedure for Equations (A23) and (A24), we arrive at the following conditions on the gradient of the variational density:
and:
Even when Condition 2 holds and ${U}_{\psi \lambda}=0$, these will be inconsistent in general. As a specific counterexample, take the system with force matrix:
with corresponding:
and:
This model is ergodic (full rank U), and it satisfies both Conditions 1 and 2. Moreover, the forces satisfy Equations (21) and (22). However, substituting the relevant elements of the U and R matrices into Equation (A44), we find:
but doing the same for Equation (A45) gives:
which is a contradiction.

$$\begin{array}{c}\hfill {R}_{a\lambda}{\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}=-\left(({R}_{aa}+{\mathsf{\Gamma}}_{aa}){U}_{a\psi}+{R}_{a\lambda}{U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}.\end{array}$$

$$\begin{array}{c}\hfill {R}_{a\lambda}{\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}=-\left({R}_{\lambda a}{U}_{a\psi}+({\mathsf{\Gamma}}_{\lambda \lambda}+{R}_{\lambda \lambda}){U}_{\lambda \psi}\right){U}_{\psi \psi}^{-1}.\end{array}$$

$$\begin{array}{c}\hfill M=\left(\begin{array}{cccc}-1& 0& -\frac{1}{2}& 0\\ 0& -1& 0& 0\\ 0& 0& -1& \frac{\sqrt{3}}{2}\\ 0& 0& 0& -\frac{1}{2}\end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill R=\left(\begin{array}{cccc}0& 0& \frac{1}{3}& \frac{1}{3\sqrt{3}}\\ 0& 0& 0& 0\\ -\frac{1}{3}& 0& 0& -\frac{1}{\sqrt{3}}\\ -\frac{1}{3\sqrt{3}}& 0& \frac{1}{\sqrt{3}}& 0\end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill U=\left(\begin{array}{cccc}\frac{9}{10}& 0& \frac{3}{10}& 0\\ 0& 1& 0& 0\\ \frac{3}{10}& 0& \frac{17}{20}& -\frac{\sqrt{3}}{4}\\ 0& 0& -\frac{\sqrt{3}}{4}& \frac{3}{4}\end{array}\right).\end{array}$$

$$\begin{array}{c}\hfill {\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}=\frac{1}{\sqrt{3}},\end{array}$$

$$\begin{array}{c}\hfill {\nabla}_{\lambda}{\langle \psi \rangle}_{q\left(\mathsf{\Psi}\right|\lambda )}=\frac{1}{3},\end{array}$$

Here, we provide an example system for which Conditions 1 and 2, as well as Steps 2 to 5 are valid, but Step 6 fails. We use a system with:
where:
This system is ergodic, satisfies Condition 1, and as we will will see, satisfies Equations (19) and (20) as well. Using Equation (5), we find:
and from Equation (8):
which means that Condition 2 is also satisfied.

$$\begin{array}{c}\hfill f\left(x\right)=Mx\end{array}$$

$$\begin{array}{c}\hfill M:=\left(\begin{array}{cccc}-1& 1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& 0& 0\\ 1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& -1& 1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& 0\\ 0& 1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& -1& 1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2\\ 0& 0& 1\phantom{\rule{-1.111pt}{0ex}}/\phantom{\rule{-0.55542pt}{0ex}}2& -1\end{array}\right).\end{array}$$

$$\begin{array}{c}\hfill R=\left(\begin{array}{cccc}0& 0& 0& 0\\ 0& 0& 0& 0\\ 0& 0& 0& 0\\ 0& 0& 0& 0\end{array}\right)\end{array}$$

$$\begin{array}{c}\hfill U=-M\end{array}$$

This leads to the ergodic density:
which can be used to check that Equations (19) and (20) hold for this example. The conditional ergodic density is:

$$\begin{array}{cc}\hfill {p}^{*}(\psi ,s,a,\lambda )=& \frac{\sqrt{5}}{16{\pi}^{2}}{e}^{-\frac{1}{2}\left({\psi}^{2}-\psi s+{s}^{2}-sa+{a}^{2}-a\lambda +{\lambda}^{2}\right)}\hfill \end{array}$$

$$\begin{array}{c}\hfill {p}^{*}\left(\psi \right|s,a,\lambda )={p}^{*}\left(\psi \right|s)=\frac{1}{\sqrt{2\pi}}{e}^{-\frac{1}{2}{\left(\psi -\frac{1}{2}s\right)}^{2}}.\end{array}$$

If we now define $q\left(\psi \right|\lambda )=q\left(\psi \right)=exp(-{(\psi -\mu )}^{2}/2)/\sqrt{2\pi}$ as a Gaussian distribution with mean $\mu $ and variance one, we can compute the KL divergence to get:

$$\begin{array}{c}\hfill {\mathrm{D}}_{\mathrm{KL}}\left[q\left(\mathsf{\Psi}\right)\right||{p}^{*}\left(\mathsf{\Psi}\right|s,a,\lambda )]=K\left(s\right)=\frac{1}{2}{\left(\mu -\frac{1}{2}s\right)}^{2}.\end{array}$$

Clearly, for this choice of $q\left(\psi \right|\lambda )$, the gradients with respect to a and $\lambda $ of the KL divergence vanish everywhere (Equations (35) and (36) hold). This also means we can express ${f}_{a},{f}_{\lambda}$ in terms of a free energy, i.e., the free energy lemma holds for this system. However, for any proposed bound $c\ge 0$ on the KL divergence, there is a value of s for which it is exceeded, whatever the choice of $\mu $. Moreover, we can choose a $\mu $ such that the KL divergence is larger than any given c, even when $s=0$.

We show how to get a generalized coordinate system from a finite-dimensional system. By definition, the generalized coordinates are infinite-dimensional. For all $n\in \mathbb{N}$ and a coordinate x, they also include the n-th time derivative of x.

Assume as given an ergodic, linear, random dynamical system described by:
where $x=({x}_{1},\dots ,{x}_{k})$ is a k-dimensional vector, M is a $k\times k$ real-valued matrix, and $\dot{x}:=\frac{d}{dt}x$. We can look at the second time derivative of the state by differentiating both sides:
Similarly for the third time derivative:
Similarly for all higher derivatives:
Now, define the generalized coordinates $\tilde{x}=(x,{x}^{\prime},{x}^{\u2033},\dots )$ as:
Define also:
Without further clarification, the derivatives of $\omega $ are not well defined when the latter is a Gaussian white noise process, as explicitly assumed in writing the vector field $f\left(x\right)$ in terms of the ergodic density [6,7,8]. As discussed in [15], delta-correlated Markovian noise is always a limiting approximation of noise with a finite correlation time. Meaningfully taking the derivatives requires first choosing a functional form for the (co)variance whose limit is a delta function (another, more direct approach would be in terms of generalized functions, but here too, additional information is required to specify the derivatives [16]). However, different choices can lead to vastly different central moments of the generalized noise distribution, including those that vanish or diverge at all orders. In the former case, the process in terms of generalized coordinates may not be ergodic [17]; in the latter case, the process is not well defined. In general, it is not clear that Equation (4) holds in the non-Markovian case, since the standard derivations in [6,7] and related works rely on delta-correlated noise.

$$\begin{array}{c}\hfill \dot{x}=Mx+\omega \end{array}$$

$$\begin{array}{cc}\hfill \frac{d}{dt}\dot{x}& =\frac{d}{dt}(Mx+\omega )\hfill \end{array}$$

$$\begin{array}{cc}\hfill \ddot{x}& =M\dot{x}+\dot{\omega}\hfill \end{array}$$

$$\begin{array}{cc}\hfill \frac{d}{dt}\ddot{x}& =\frac{d}{dt}(M\dot{x}+\dot{\omega})\hfill \end{array}$$

$$\begin{array}{cc}\hfill \phantom{\rule{1.em}{0ex}}& =M\ddot{x}+\ddot{\omega}\hfill \end{array}$$

$$\begin{array}{cc}\hfill \frac{{d}^{n}}{d{t}^{n}}x& =M\frac{{d}^{n-1}}{d{t}^{n-1}}x+\frac{{d}^{n}}{d{t}^{n}}\omega .\hfill \end{array}$$

$$\begin{array}{cc}\hfill x& =x\hfill \end{array}$$

$$\begin{array}{cc}\hfill {x}^{\prime}& =\frac{d}{dt}x\hfill \end{array}$$

$$\begin{array}{cc}\hfill {x}^{\u2033}& =\frac{{d}^{2}}{d{t}^{2}}x\hfill \end{array}$$

$$\begin{array}{cc}\hfill \phantom{\rule{1.em}{0ex}}& \vdots \hfill \end{array}$$

$$\begin{array}{cc}\hfill {x}^{\left(n\right)}& =\frac{{d}^{n}}{d{t}^{n}}x\hfill \end{array}$$

$$\begin{array}{cc}\hfill \phantom{\rule{1.em}{0ex}}& \vdots \hfill \end{array}$$

$$\begin{array}{c}\hfill \tilde{\omega}:=(\omega ,\frac{d}{dt}\omega ,\frac{{d}^{2}}{d{t}^{2}}\omega ,...,\frac{{d}^{n}}{d{t}^{n}}\omega ,...).\end{array}$$

Here, we can therefore assume that the noise is such that the derivatives in Equation (A70) can be treated as Markov and Gaussian. We also assume that $\frac{{d}^{n}}{d{t}^{n}}\omega $ is independently and identically distributed to $\frac{{d}^{n-1}}{d{t}^{n-1}}\omega $ for all n. Finally, we can then define the (infinite) matrix $\overline{M}$ as the block diagonal matrix with all blocks equal to M:
The time derivative of $\omega $ is independent of $\omega $, as the changes are independent of the value of $\omega $. Therefore, we actually get an infinite number of independent and identically distributed systems. Using these definitions, we have:
These equations describe a random dynamical system composed of an infinite number of independent linear random dynamical systems, all governed by the same matrix M and driven by independently and identically distributed noise. Since the first of these systems (for the variables x) is ergodic by assumption, all of the subsystems are also ergodic, and therefore, the whole system is ergodic with the ergodic density equal to a product of the original ergodic density:
Additionally, if M is such that:
(which is the case for the M in the counterexample to Step 6) then for:
and using Equation (8) and that the inverse of a block diagonal matrix is block diagonal:
we also have:

$$\begin{array}{c}\hfill \overline{M}:=\left(\begin{array}{cccc}M& 0& \dots & \\ 0& M& \phantom{\rule{1.em}{0ex}}& \\ \vdots & \phantom{\rule{1.em}{0ex}}& \ddots & \end{array}\right)\end{array}$$

$$\begin{array}{c}\hfill \dot{\tilde{x}}=\overline{M}\tilde{x}+\tilde{\omega}.\end{array}$$

$$\begin{array}{c}\hfill {\overline{p}}^{*}\left(\tilde{x}\right)={p}^{*}\left(x\right){p}^{*}\left({x}^{\prime}\right){p}^{*}\left({x}^{\prime \prime}\right)\dots {p}^{*}\left({x}^{\left(n\right)}\right)\dots .\end{array}$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill {M}_{\psi}\xb7{(\psi ,s,a,r)}^{\top}={f}_{\psi}(\psi ,s,a)& ={(\mathsf{\Gamma}-Q)}_{\psi \psi}{\nabla}_{\psi}ln{p}^{*}(\psi ,s,a,r)\hfill \\ \hfill {M}_{s}\xb7{(\psi ,s,a,r)}^{\top}={f}_{s}(\psi ,s,a)& ={(\mathsf{\Gamma}-Q)}_{ss}{\nabla}_{s}ln{p}^{*}(\psi ,s,a,r)\hfill \\ \hfill {M}_{a}\xb7{(\psi ,s,a,r)}^{\top}={f}_{a}(s,a,r)& ={(\mathsf{\Gamma}-Q)}_{aa}{\nabla}_{a}ln{p}^{*}(\psi ,s,a,r)\hfill \\ \hfill {M}_{r}\xb7{(\psi ,s,a,r)}^{\top}={f}_{r}(s,a,r)& ={(\mathsf{\Gamma}-Q)}_{rr}{\nabla}_{r}ln{p}^{*}(\psi ,s,a,r),\hfill \end{array}\end{array}$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill ({x}_{1},{x}_{2},{x}_{3},{x}_{4}):& =(\psi ,s,a,r)\hfill \\ \hfill ({x}_{1}^{\prime},{x}_{2}^{\prime},{x}_{3}^{\prime},{x}_{4}^{\prime}):& =({\psi}^{\prime},{s}^{\prime},{a}^{\prime},{r}^{\prime})\hfill \\ \hfill ({x}_{1}^{\prime \prime},{x}_{2}^{\prime \prime},{x}_{3}^{\prime \prime},{x}_{4}^{\prime \prime}):& =({\psi}^{\prime \prime},{s}^{\prime \prime},{a}^{\prime \prime},{r}^{\prime \prime})\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \vdots \hfill \\ \hfill ({x}_{1}^{\left(n\right)},{x}_{2}^{\left(n\right)},{x}_{3}^{\left(n\right)},{x}_{4}^{\left(n\right)}):& =({\psi}^{\left(n\right)},{s}^{\left(n\right)},{a}^{\left(n\right)},{r}^{\left(n\right)})\hfill \\ \hfill \phantom{\rule{1.em}{0ex}}& \vdots ,\hfill \end{array}\end{array}$$

$$\begin{array}{c}\hfill \overline{Q}:=\left(\begin{array}{cccc}Q& 0& \dots & \\ 0& Q& \phantom{\rule{1.em}{0ex}}& \\ \vdots & \phantom{\rule{1.em}{0ex}}& \ddots & \end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill \overline{\mathsf{\Gamma}}:=\left(\begin{array}{cccc}\mathsf{\Gamma}& 0& \dots & \\ 0& \mathsf{\Gamma}& \phantom{\rule{1.em}{0ex}}& \\ \vdots & \phantom{\rule{1.em}{0ex}}& \ddots & \end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill \overline{U}:=\left(\begin{array}{cccc}U& 0& \dots & \\ 0& U& \phantom{\rule{1.em}{0ex}}& \\ \vdots & \phantom{\rule{1.em}{0ex}}& \ddots & \end{array}\right),\end{array}$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill {\overline{M}}_{\tilde{\psi}}\xb7{(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})}^{\top}={f}_{\tilde{\psi}}(\tilde{\psi},\tilde{s},\tilde{a})& ={(\overline{\mathsf{\Gamma}}-\overline{Q})}_{\tilde{\psi}\tilde{\psi}}{\nabla}_{\tilde{\psi}}ln{p}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})\hfill \\ \hfill {\overline{M}}_{\tilde{s}}\xb7{(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})}^{\top}={f}_{\tilde{s}}(\tilde{\psi},\tilde{s},\tilde{a})& ={(\overline{\mathsf{\Gamma}}-\overline{Q})}_{\tilde{s}\tilde{s}}{\nabla}_{\tilde{s}}ln{p}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})\hfill \\ \hfill {\overline{M}}_{\tilde{a}}\xb7{(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})}^{\top}={f}_{\tilde{a}}(\tilde{s},\tilde{a},\tilde{r})& ={(\overline{\mathsf{\Gamma}}-\overline{Q})}_{\tilde{a}\tilde{a}}{\nabla}_{\tilde{a}}ln{p}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})\hfill \\ \hfill {\overline{M}}_{\tilde{r}}\xb7{(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})}^{\top}={f}_{\tilde{r}}(\tilde{s},\tilde{a},\tilde{r})& ={(\overline{\mathsf{\Gamma}}-\overline{Q})}_{\tilde{r}\tilde{r}}{\nabla}_{\tilde{r}}ln{p}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r}).\hfill \end{array}\end{array}$$

The ergodic density of such a system is a product of the ergodic densities of the original system Equation (A56):
Thus, any property of the original system is also a property of the generalized coordinate system.

$$\begin{array}{c}\hfill {\overline{p}}^{*}(\tilde{\psi},\tilde{s},\tilde{a},\tilde{r})={p}^{*}(\psi ,s,a,r){p}^{*}({\psi}^{\prime},{s}^{\prime},{a}^{\prime},{r}^{\prime}){p}^{*}({\psi}^{\u2033},{s}^{\u2033},{a}^{\u2033},{r}^{\u2033})\dots .\end{array}$$

- Friston, K. Life as we know it. J. R. Soc. Interface
**2013**, 10, 2013.0475. [Google Scholar] [CrossRef] [PubMed] - Friston, K. A free energy principle for a particular physics. arXiv
**2019**, arXiv:1906.10184. [Google Scholar] - Parr, T.; Da Costa, L.; Friston, K. Markov blankets, information geometry and stochastic thermodynamics. Philos. Trans. R. Soc. A
**2019**, 378, 2019.0159. [Google Scholar] [CrossRef] [PubMed] - Friston, K.; Sengupta, B.; Auletta, G. Cognitive Dynamics: From Attractors to Active Inference. Proc. IEEE
**2014**, 102, 427–445. [Google Scholar] [CrossRef] - 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] - Ao, P. Potential in stochastic differential equations: Novel construction. J. Phys. A
**2004**, 37, L25–L30. [Google Scholar] [CrossRef] - Kwon, C.; Ao, P.; Thouless, D.J. Structure of stochastic dynamics near fixed points. Proc. Natl. Acad. Sci. USA
**2005**, 102, 13029–13033. [Google Scholar] [CrossRef] [PubMed] - Kwon, C.; Ao, P. Nonequilibrium steady state of a stochastic system driven by a nonlinear drift force. Phys. Rev. E
**2011**, 84, 061106. [Google Scholar] [CrossRef] [PubMed] - Ma, Y.A.; Chen, T.; Fox, E.B. A complete recipe for stochastic gradient MCMC. In Proceedings of the 28th International Conference on Neural Information Processing Systems—Volume 2; MIT Press: Montreal, QC, Canada, 2015; pp. 2917–2925. [Google Scholar]
- Yuan, R.; Tang, Y.; Ao, P. SDE decomposition and A-type stochastic interpretation in nonequilibrium processes. Front. Phys.
**2017**, 12, 120201. [Google Scholar] [CrossRef] - Ao, P.; Chen, T.Q.; Shi, J.H. Dynamical Decomposition of Markov Processes without Detailed Balance. Chin. Phys. Lett.
**2013**, 30, 070201. [Google Scholar] [CrossRef] - Yuan, R.S.; Ma, Y.A.; Yuan, B.; Ao, P. Lyapunov function as potential function: A dynamical equivalence. Chin. Phys. B
**2014**, 23, 010505. [Google Scholar] [CrossRef] - Bishop, C. Pattern Recognition and Machine Learning; Information Science and Statistics; Springer: New York, NY, USA, 2006. [Google Scholar]
- Cover, T.M.; Thomas, J.A. Elements of Information Theory; Wiley-Interscience: Hoboken, NJ, USA, 2006. [Google Scholar]
- van Kampen, N.G. Stochastic Processes in Physics and Chemistry; North-Holland: Amsterdam, The Netherlands, 1981. [Google Scholar]
- Oberguggenberger, M. Generalized Functions and Stochastic Processes. In Seminar on Stochastic Analysis, Random Fields and Applications. Progress in Probability; Bolthausen, E., Dozzi, M., Russo, F., Eds.; Birkhäuser: Basel, Switzerland, 1995; Volume 36, pp. 215–230. [Google Scholar]
- Cornfeld, I.P.; Fomin, S.V.; Sinai, Y.G. Ergodic Theory; Springer: New York, NY, USA, 1982. [Google Scholar]

Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |

© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).