This is a follow-up to Alex Altair's and Alfred Harwood's Touchette-Lloyd work (Proof Explained: Touchette-Lloyd Theorem — LessWrong). We'll reuse its main notation and inequality here. In their "Further Work" section, they mention the open direction of "policies which 'model' the dynamics, not just the state", so we aim to address this in the following post.
This project is funded by Advanced Research + Invention Agency (ARIA) through project code MSAI-SE01-P005 Advanced Research + Invention Agency (ARIA) through project code MSAI-SE01-P005
And last but not least, thank you to Alfred and Alex for the helpful ideas and feedback on my work. And thank you to the other Dovetail fellows for the insightful discussions.
Introduction
Touchette-Lloyd (TL) says that if a policy reduces environmental entropy by more than the best blind policy could, then its actions must share mutual information with the state.
An agent could see the current state perfectly and still not know the dynamics or the rules of the game. E.g. the environment's dynamics depend on a hidden parameter like a coin's bias, a Markov chain's transition direction, a constant in a physics simulation. I assume for this post that the dynamics are fixed once at the start and the agent does not know the true dynamics.
I assume this agent is both sighted in the TL sense (it can see the current state at every time-step), and adaptive to the dynamics (it can update its posterior belief on what the true dynamics of the environment are at every time-step). And we compare this with our baseline - an agent that is sighted in the TL sense but non-adaptive to the dynamics (it makes a fixed guess on the true dynamics of the environment at the start and this is fixed for every subsequent time-step).
So, the question asked is: if a sighted and adaptive agent reduces entropy by more than a sighted, non-adaptive agent could, does that mean it has learned something about the hidden dynamics, not just the state?
My answer is yes. (Or at least I hope so, from the proof below!)
Why does this matter to agent foundations?
In the original TL proof, the mutual information term , does not explain why the environment behaves as it does, just how much knowing the environment tells you about the action (and equivalently, how much knowing the action tells you about the environment).
Here instead, we prove a bound with a mutual information term . This shows that a specific policy's behaviour can be explained by having tracked some hidden dynamics of the environment (that affects the environment but cannot be observed in the environment), so it can only be inferred by integrating evidence across numerous time-steps.
This is probably more similar to an agent's world model, as there are often things that we cannot observe that still affect how we observe our environment.
Motivation: A robot with reversed controls
Picture a robot on a circular track with three positions, It wants to get to position
The robot can see exactly where it is. But what it does not know is how its motor is wired:
commands move it clockwise
commands move it anticlockwise
The wiring gets picked once, 50/50, and stays fixed from then on.
States and actions both live in , and an action is just "move this many steps," going around the track:
I.e. knowing where you are does not tell you which direction the command will take you.
Agent fixes its guess at
Suppose the agent just assumes normal wiring and uses
Under normal wiring this sends the robot straight to Under reversed wiring it instead gives
Current position
Command
Normal ()
Reversed ()
0
0
0
0
1
2
0
2
2
1
0
1
If the agent guesses correctly then we have no benefit from updating the prior. But if we have the wrong guess, then the policy just bounces the robot between and continuously.
That said, a transition can still give the wiring away. From position command lands on under normal wiring but under reversed. So the adaptive agent can use this to update its belief once it sees the result.
(I.e. starting at and issuing command is useless either way, since both wirings agree there).
Entropy reduction from a uniform starting position
Start with a uniform, -independent starting position: , , so .
For the fixed guess : if , every start collapses to If , the transition just permutes the three positions, so a uniform input stays uniform. Combining:
So the fixed agent manages bit. An agent that actually knows the wiring can instead play , which sends every start straight to giving entropy reduction bits.
Relating the example to the optimised ceiling
That bit is just one particular input distribution, though - the ceiling itself optimises over every joint law of state and wiring consistent with the true -marginal, which is a different (and larger) thing.
Working out the optimised ceiling
The fixed-hypothesis policy family here is:
and for this family the optimised ceiling comes out to bits.
To see why: fix , and take the joint input law where, given , probability is split evenly between positions and and given , all the mass sits on position That gives marginal , . Both branches now output so while
This joint law is allowed because the ceiling's sup ranges over any joint distribution with the right -marginal.
So the example ends up with three different numbers:
Going from to is just optimising the input while keeping the agent's hypothesis fixed. The jump to beyond shows that knowing the dynamics is more useful than any way that you can input differently.
Comparison
Entropy reduction
Fixed guess, uniform input independent of
bits
Optimised ceiling for the fixed-hypothesis family
bits
Informed controller, uniform input
bits
Setup
Two agents
We have two agents:
Sighted and adaptive: sees and updates its belief about at every round based on the history. This is the agent that the theorem bounds.
Sighted and non adaptive (our ceiling): sees , and commits to a fixed hypothesis about before . Can react to the current state via , but cannot update its belief about the dynamics from experience
Ceiling
The ceiling bounds one-step entropy reduction for the specified fixed-hypothesis policy family.
Its optimisation allows any joint input law whose marginal distribution of equals In particular, it allows the current state and the dynamics to be correlated.
Define:
the correct probability distribution that is drawn from before
the set of joint distributions over whose -marginal equals
, where is the same finite hypothesis space that was drawn from.
the supremum over all possible fixed guesses and all possible input distributions with the marginal distribution equal to the true prior,
So we can define:
where is the next-state distribution under the fixed-guess policy
Inner sup: given this fixed guess, , this picks the best joint input distribution (i.e. how the input state correlates with ), subject to being drawn from
Outer sup: picks the fixed guess in that maximises entropy reduction according to an average over the possible values of , weighted by
Relating to our above example
Going back to the robot: fix . The optimal I built earlier puts all the mass on position when , and splits it evenly between and when
This corresponds to the inner
The outer comes for free by symmetry: guess instead, swap the two branches' roles, and you get the same bits just by relabelling.
Bayes net
For our Bayes net, we have the two cases, each labelled in the following table:
Node
Parents and mechanism
No parents
Drawn once before round 1 and never observed by the agent
No parents
No parents
A fixed constant
where is deterministic
We let S be some random variable that has no descendants of both . We let . This is the most general case, since S is not drawn from any distribution and has no update rule, so we have no assumptions on what the agent's real internal process is. And then we let S equal the true dynamics of the environment, .
Since every node in has time index at most , and edges in this net only point forward in time, contains no descendant of
General Target Theorem
where
We keep the negative term, for tightness, but it can also be removed for a cleaner bound. This term represents how much the history knew about the to predict about the next state, .
If our observations are i.i.d, then nothing about the history informs us about the current state outside of the true dynamics, . So, then equals zero, so it drops from the bound.
We can think of this bound as: if the entropy of the sighted and adaptive agent beats the baseline entropy of the sighted and non-adaptive agent + , then this means that the former agent has learnt some mutual information between the true dynamics and its history.
Proof
Step 1. Condition on :
We can do this because, 's only parents are , , and . So conditioning on can only affect through its effect on . The transition kernel, is unchanged.
Step 2. Fix
Step 3. We need to look at and jointly, as and can be correlated given the history .
Write for that conditional joint law.
By the chain rule, , where is the posterior over given the history.
is a supremum only over joint laws whose -marginal distribution is the true prior (fixed before ).
But 's -marginal is , not We can say that whenever the history is informative about , .
Step 4. To compare this, construct a joint law with the prior:
Since , the entropy reduction of , under the policy is bounded by
Note that the sup over ranges over fixed constants in committed before , while remains a random variable distributed according to - the fixed-guess agent can guess any specific value, but cannot condition on the realised , so it is right only with probability .
Step 5. Recall and . They differ only in whether the -marginal is or
Computing the TVD:
using , where the last equality gives .
Now, and cause different -marginals and different -distributions. So both pairs are at most apart in TVD. Audenaert's bound then gives:
With dimensional probability vectors (where ), (their Shannon entropies ):
where:
, so is the total variation distance
is the Shannon entropy of the two-outcome distribution : . So relabelling as :=, this is the binary entropy function: .
So we define
The bound holds for all .
The entropy reduction under the joint (sighted adaptive agent) can therefore exceed the reduction under the sighted-non-adaptive ceiling by at most:
Since and the action rule is fixed by , we have , giving:
Step 6. Taking expectations over
Since is concave, Jensen's inequality gives . Writing for the average posterior shift:
Step 7. is an average of total variation distances so we convert it into mutual information. Pinsker's inequality bounds total variation by KL divergence, (with in nats). Averaging over and applying Jensen once more, this time to the concave function ,
But , the average KL divergence between the posterior and the prior, as ranges over its distribution, is exactly the definition of mutual information , in nats. Converting to bits,
So is controlled by how much the history actually reveals about This is what we're trying to lower bound.
Step 8. We need to lower bound the information-flow term from Step 1.
By the chain rule for mutual information, we can expand in two ways:
Since , dropping it gives:
The first term, , is the dynamics term: how much the history has learned about the hidden parameter .
The second term, , is the correlation between the current state and the history that has nothing to do with . Since, , this includes the correlation of the past actions as well as the past states. Therefore, even if observations are i.i.d given , there may be some randomness from , that impacts , that then impacts . To drop this second term, we also require actions to be independent of , given and .
Step 9. Combine:
For the term from Step 1: since mutual information is nonnegative, , so keeping it makes the bound tighter.
If observations are i.i.d. given and the action randomness is independent of given and , vanishes, and beating forces .
When the policy is deterministic, , the action history is itself a deterministic function of , so reduces to just and the extra independence condition above is automatic.
Theorem: Posterior Beliefs
Substituting into the main proof, we get:
with
We also have so the above bound is at least as tight as the general S-theorem.
Why compare two sighted agents?
Both the adaptive and non-adaptive agents can see .
If an agent gets zero feedback at all: no observations, no rewards, nothing, then it simply has no way to identify (so long as its prior and any private randomness don’t already leak info about , which I’m assuming they don’t).
But “no current-state observation” isn’t the same thing as “actions and states are independent.” Even a blind agent remembers its past actions, and those can still shape the current state. So if I ever want to bring a blind agent into this comparison, I can’t just drop the observation term - I need to spell out exactly what independence I’m assuming between its policy and the state.
Extensions
Gradual learning
In the robot example, a single informative transition identifies the wiring. A noisy version would make the inference less immediate: the robot might occasionally move unpredictably, so one unexpected movement would not establish that its controls were reversed.
This could provide an example where evidence accumulates over several observations. It would require specifying the noise model and update rule, then analysing what the agent learns.
Utility rather than entropy reduction
Can a related bound be established for expected utility or control cost?
Entropy reduction does not distinguish between desirable and undesirable concentrated outcomes. A utility-based formulation would allow the objective to specify which outcomes matter.
Compressed memory
Suppose the agent stores a memory state updated from its previous memory and observations. Can performance impose a lower bound on the information that this memory must retain?
This would help distinguish information present in the full history from information actually available to the agent's decision process.
Temporal dependence
The condition is strong. In most controlled systems, knowing the dynamics doesn’t make past and present states independent, i.e. there may be some dependence left over.
Mixing conditions from ergodic theory might help bound this term, but I don’t think they make it vanish outright - includes recent observations and actions, and mixing arguments are really about long time-separations, not this kind of short-range dependence.
Long-run objectives
For a fixed finite state space, cumulative marginal entropy reduction telescopes:
A long-run extension therefore needs a carefully specified objective. Possibilities include performance across repeated trials with fresh inputs, cumulative task reward, or an appropriate entropy-rate quantity.
This is a follow-up to Alex Altair's and Alfred Harwood's Touchette-Lloyd work (Proof Explained: Touchette-Lloyd Theorem — LessWrong). We'll reuse its main notation and inequality here. In their "Further Work" section, they mention the open direction of "policies which 'model' the dynamics, not just the state", so we aim to address this in the following post.
This project is funded by Advanced Research + Invention Agency (ARIA) through project code MSAI-SE01-P005 Advanced Research + Invention Agency (ARIA) through project code MSAI-SE01-P005
And last but not least, thank you to Alfred and Alex for the helpful ideas and feedback on my work. And thank you to the other Dovetail fellows for the insightful discussions.
Introduction
Touchette-Lloyd (TL) says that if a policy reduces environmental entropy by more than the best blind policy could, then its actions must share mutual information with the state.
An agent could see the current state perfectly and still not know the dynamics or the rules of the game. E.g. the environment's dynamics depend on a hidden parameter like a coin's bias, a Markov chain's transition direction, a constant in a physics simulation. I assume for this post that the dynamics are fixed once at the start and the agent does not know the true dynamics.
I assume this agent is both sighted in the TL sense (it can see the current state at every time-step), and adaptive to the dynamics (it can update its posterior belief on what the true dynamics of the environment are at every time-step). And we compare this with our baseline - an agent that is sighted in the TL sense but non-adaptive to the dynamics (it makes a fixed guess on the true dynamics of the environment at the start and this is fixed for every subsequent time-step).
So, the question asked is: if a sighted and adaptive agent reduces entropy by more than a sighted, non-adaptive agent could, does that mean it has learned something about the hidden dynamics, not just the state?
My answer is yes. (Or at least I hope so, from the proof below!)
Why does this matter to agent foundations?
In the original TL proof, the mutual information term , does not explain why the environment behaves as it does, just how much knowing the environment tells you about the action (and equivalently, how much knowing the action tells you about the environment).
Here instead, we prove a bound with a mutual information term . This shows that a specific policy's behaviour can be explained by having tracked some hidden dynamics of the environment (that affects the environment but cannot be observed in the environment), so it can only be inferred by integrating evidence across numerous time-steps.
This is probably more similar to an agent's world model, as there are often things that we cannot observe that still affect how we observe our environment.
Motivation: A robot with reversed controls
Picture a robot on a circular track with three positions, It wants to get to position
The robot can see exactly where it is. But what it does not know is how its motor is wired:
The wiring gets picked once, 50/50, and stays fixed from then on.
States and actions both live in , and an action is just "move this many steps," going around the track:
I.e. knowing where you are does not tell you which direction the command will take you.
Agent fixes its guess at
Suppose the agent just assumes normal wiring and uses
Under normal wiring this sends the robot straight to Under reversed wiring it instead gives
Current position
Command
Normal ( )
Reversed ( )
0
0
0
0
1
2
0
2
2
1
0
1
If the agent guesses correctly then we have no benefit from updating the prior. But if we have the wrong guess, then the policy just bounces the robot between and continuously.
That said, a transition can still give the wiring away. From position command lands on under normal wiring but under reversed. So the adaptive agent can use this to update its belief once it sees the result.
(I.e. starting at and issuing command is useless either way, since both wirings agree there).
Entropy reduction from a uniform starting position
Start with a uniform, -independent starting position: , , so .
For the fixed guess : if , every start collapses to If , the transition just permutes the three positions, so a uniform input stays uniform. Combining:
So the fixed agent manages bit. An agent that actually knows the wiring can instead play , which sends every start straight to giving entropy reduction bits.
Relating the example to the optimised ceiling
That bit is just one particular input distribution, though - the ceiling itself optimises over every joint law of state and wiring consistent with the true -marginal, which is a different (and larger) thing.
Working out the optimised ceiling
The fixed-hypothesis policy family here is:
and for this family the optimised ceiling comes out to bits.
To see why: fix , and take the joint input law where, given , probability is split evenly between positions and and given , all the mass sits on position That gives marginal , . Both branches now output so while
This joint law is allowed because the ceiling's sup ranges over any joint distribution with the right -marginal.
So the example ends up with three different numbers:
Going from to is just optimising the input while keeping the agent's hypothesis fixed. The jump to beyond shows that knowing the dynamics is more useful than any way that you can input differently.
Comparison
Entropy reduction
Fixed guess, uniform input independent of
Optimised ceiling for the fixed-hypothesis family
Informed controller, uniform input
Setup
Two agents
We have two agents:
Ceiling
The ceiling bounds one-step entropy reduction for the specified fixed-hypothesis policy family.
Its optimisation allows any joint input law whose marginal distribution of equals In particular, it allows the current state and the dynamics to be correlated.
Define:
So we can define:
where is the next-state distribution under the fixed-guess policy
Relating to our above example
Bayes net
For our Bayes net, we have the two cases, each labelled in the following table:
Node
Parents and mechanism
No parents
Drawn once before round 1 and never observed by the agent
No parents
No parents
A fixed constant
We let S be some random variable that has no descendants of both . We let . This is the most general case, since S is not drawn from any distribution and has no update rule, so we have no assumptions on what the agent's real internal process is. And then we let S equal the true dynamics of the environment, .
Since every node in has time index at most , and edges in this net only point forward in time, contains no descendant of
General Target Theorem
where
We keep the negative term, for tightness, but it can also be removed for a cleaner bound. This term represents how much the history knew about the to predict about the next state, .
If our observations are i.i.d, then nothing about the history informs us about the current state outside of the true dynamics, . So, then equals zero, so it drops from the bound.
We can think of this bound as: if the entropy of the sighted and adaptive agent beats the baseline entropy of the sighted and non-adaptive agent + , then this means that the former agent has learnt some mutual information between the true dynamics and its history.
Proof
Step 1. Condition on :
We can do this because, 's only parents are , , and . So conditioning on can only affect through its effect on . The transition kernel, is unchanged.
Step 2. Fix
Step 3. We need to look at and jointly, as and can be correlated given the history .
Write for that conditional joint law.
By the chain rule, , where is the posterior over given the history.
But 's -marginal is , not We can say that whenever the history is informative about , .
Step 4. To compare this, construct a joint law with the prior:
Since , the entropy reduction of , under the policy is bounded by
Note that the sup over ranges over fixed constants in committed before , while remains a random variable distributed according to - the fixed-guess agent can guess any specific value, but cannot condition on the realised , so it is right only with probability .
Step 5. Recall and . They differ only in whether the -marginal is or
Computing the TVD:
using , where the last equality gives .
Now, and cause different -marginals and different -distributions. So both pairs are at most apart in TVD. Audenaert's bound then gives:
Deriving
We use this paper ("A Sharp Fannes-type Inequality for the von Neumann Entropy", Koenraad M.R. Audenaert, 2018). Equation (11), allows us to convert the total variation distance between the updated posterior belief, q, and the fixed belief, p, into a bound with Shannon entropy:
With dimensional probability vectors (where ), (their Shannon entropies ):
where:
So we define
The bound holds for all .
The entropy reduction under the joint (sighted adaptive agent) can therefore exceed the reduction under the sighted-non-adaptive ceiling by at most:
Since and the action rule is fixed by , we have , giving:
Step 6. Taking expectations over
Since is concave, Jensen's inequality gives . Writing for the average posterior shift:
Step 7. is an average of total variation distances so we convert it into mutual information. Pinsker's inequality bounds total variation by KL divergence, (with in nats). Averaging over and applying Jensen once more, this time to the concave function ,
But , the average KL divergence between the posterior and the prior, as ranges over its distribution, is exactly the definition of mutual information , in nats. Converting to bits,
So is controlled by how much the history actually reveals about This is what we're trying to lower bound.
Step 8. We need to lower bound the information-flow term from Step 1.
By the chain rule for mutual information, we can expand in two ways:
Since , dropping it gives:
The first term, , is the dynamics term: how much the history has learned about the hidden parameter .
The second term, , is the correlation between the current state and the history that has nothing to do with . Since, , this includes the correlation of the past actions as well as the past states. Therefore, even if observations are i.i.d given , there may be some randomness from , that impacts , that then impacts . To drop this second term, we also require actions to be independent of , given and .
Step 9. Combine:
For the term from Step 1: since mutual information is nonnegative, , so keeping it makes the bound tighter.
If observations are i.i.d. given and the action randomness is independent of given and , vanishes, and beating forces .
When the policy is deterministic, , the action history is itself a deterministic function of , so reduces to just and the extra independence condition above is automatic.
Theorem: Posterior Beliefs
Substituting into the main proof, we get:
with
We also have so the above bound is at least as tight as the general S-theorem.
Why compare two sighted agents?
Both the adaptive and non-adaptive agents can see .
If an agent gets zero feedback at all: no observations, no rewards, nothing, then it simply has no way to identify (so long as its prior and any private randomness don’t already leak info about , which I’m assuming they don’t).
But “no current-state observation” isn’t the same thing as “actions and states are independent.” Even a blind agent remembers its past actions, and those can still shape the current state. So if I ever want to bring a blind agent into this comparison, I can’t just drop the observation term - I need to spell out exactly what independence I’m assuming between its policy and the state.
Extensions
Gradual learning
In the robot example, a single informative transition identifies the wiring. A noisy version would make the inference less immediate: the robot might occasionally move unpredictably, so one unexpected movement would not establish that its controls were reversed.
This could provide an example where evidence accumulates over several observations. It would require specifying the noise model and update rule, then analysing what the agent learns.
Utility rather than entropy reduction
Can a related bound be established for expected utility or control cost?
Entropy reduction does not distinguish between desirable and undesirable concentrated outcomes. A utility-based formulation would allow the objective to specify which outcomes matter.
Compressed memory
Suppose the agent stores a memory state updated from its previous memory and observations. Can performance impose a lower bound on the information that this memory must retain?
This would help distinguish information present in the full history from information actually available to the agent's decision process.
Temporal dependence
The condition is strong. In most controlled systems, knowing the dynamics doesn’t make past and present states independent, i.e. there may be some dependence left over.
Mixing conditions from ergodic theory might help bound this term, but I don’t think they make it vanish outright - includes recent observations and actions, and mixing arguments are really about long time-separations, not this kind of short-range dependence.
Long-run objectives
For a fixed finite state space, cumulative marginal entropy reduction telescopes:
A long-run extension therefore needs a carefully specified objective. Possibilities include performance across repeated trials with fresh inputs, cumulative task reward, or an appropriate entropy-rate quantity.