Natural Latents Are Not Robust To Tiny Mixtures

In our previous natural latent posts, our core theorem typically says something like:

Assume two agents have the same predictive distribution over variables , but model that distribution using potentially-different latent variables. If the latents both satisfy some simple “naturality” conditions (mediation and redundancy) then the two agents’ latents contain approximately the same information about . So, insofar as the two agents both use natural latents internally, we have reason to expect that the internal latents of one can be faithfully translated into the internal latents of the other.

This post is about one potential weakness in that claim: what happens when the two agents’ predictive distributions are only approximately the same?

Following the pattern of our previous theorems, we’d ideally say something like

If the two agents’ distributions are within of each other (as measured by some KL-divergences), then their natural latents contain approximately the same information about , to within some bound.

But that turns out to be false.

The Tiny Mixtures Counterexample

Let’s start with two distributions, and , over . These won’t be our two agents’ distributions—we’re going to construct our two agents’ distributions by mixing these two together, as the name “tiny mixtures” suggests.

and will have extremely different natural latents. Specifically:

  • consists of 1 million bits, consists of another 1 million bits

  • Under , is uniform, and . So, there is an exact natural latent under .

  • Under , and are independent and uniform. So, the empty latent is exactly natural under .

Mental picture: we have a million-bit channel, under the output () is equal to the input (), while under the channel hardware is maintained by Comcast so they’re independent.

Now for our two agents’ distributions, and . will be almost , and will be almost , but each agent puts a probability on the other distribution:

First key observation: and are both roughly 50 bits. Calculation:

Intuitively: since each distribution puts roughly on the other, it takes about 50 bits of evidence to update from either one to the other.

Second key observation: the empty latent is approximately natural under , and the latent is approximately natural under . Epsilons:

  • Under , the empty latent satisfies mediation to within about bits (this is just mutual information of and under ), and redundancy exactly (since the empty latent can always be exactly computed from any input).

  • Under , satisfies mediation exactly (since mediates between and anything else), redundancy with respect to exactly ( can be exactly computed from just without ), and redundancy with respect to to within about bits (since there’s a chance that doesn’t tell us the relevant 1000000 bits).

… and of course the information those two latents tell us about differs by 1 million bits: one of them is empty, and the other directly tells us 1 million bits about .

Now, let’s revisit the claim we would’ve liked to make:

If the two agents’ distributions are within of each other (as measured by some KL-divergences), then their natural latents contain approximately the same information about , to within some bound.

Tiny mixtures rule out any claim along those lines. Generalizing the counterexample to an bit channel (where above) and a mixin probability of (where above), we generally see that the two latents are natural over their respective distributions to about , the between the distributions is about in either direction, yet one latent contains bits of information about while the other contains zero. By choosing , with both and large, we can get arbitrarily precise natural latents over the two distributions, with the difference in the latents exponentially large with respect to the ’s between distributions.

What To Do Instead?

So the bound we’d ideally like is ruled out. What alternatives might we aim for?

Different Kind of Approximation

Looking at the counterexample, one thing which stands out is that and are, intuitively, very different distributions. Arguably, the problem is that a “small” just doesn’t imply that the distributions are all that close together; really we should use some other kind of approximation.

On the other hand, is a pretty nice principled error-measure with nice properties, and in particular it naturally plugs into information-theoretic or thermodynamic machinery. And indeed, we are hoping to plug all this theory into thermodynamic-style machinery down the road. For that, we need global bounds, and they need to be information-theoretic.

Additional Requirements for Natural Latents

Coming from another direction: a 50-bit update can turn into , or vice-versa. So one thing this example shows is that natural latents, as they’re currently formulated, are not necessarily robust to even relatively small updates, since 50 bits can quite dramatically change a distribution.

Interestingly, there do exist other natural latents over these two distributions which are approximately the same (under their respective distributions) as the two natural latents we used above, but more robust (in some ways) to turning one distribution into the other. In particular: we can always construct a natural latent with competitively optimal approximation via resampling. Applying that construction to , we get a latent which is usually independent random noise (which gives the same information about as the empty latent), but there’s a chance that it contains the value of and another chance that it contains the value of . Similarly, we can use the resampling construction to find a natural latent for , and it will have a chance of containing random noise instead of , and an independent chance of containing random noise instead of .

Those two latents still differ in their information content about by roughly 1 million bits, but the distribution of given each latent differs by only about 100 bits in expectation. Intuitively: while the agents still strongly disagree about the distribution of their respective latents, they agree (to within ~100 bits) on what each value of the latent says about .

Does that generalize beyond this one example? We don’t know yet.

But if it turns out that the competitively optimal natural latent is generally robust to updates, in some sense, then it might make sense to add a robustness-to-updates requirement for natural latents—require that we use the “right” natural latent, in order to handle this sort of problem.

Same Distribution

A third possible approach is to formulate the theory around a single distribution .

For instance, we could assume that the environment follows some “true distribution”, and both agents look for latents which are approximately natural over the “true distribution” (as far as they can tell, since the agents can’t observe the whole environment distribution directly). This would probably end up with a Fristonian flavor.

ADDED July 9: The Competitively Optimal Natural Latent from Resampling Always Works (At Least Mediocrely)

Recall that, for a distribution , we can always construct a competitively optimal natural latent (under strong redundancy) by resampling each component conditional on the others , i.e.

We argued above that this specific natural latent works just fine in the tiny mixtures counterexample: roughly speaking, the resampling natural latent constructed for approximates the resampling natural latent constructed for (to within an error comparable to how well approximates ).

Now we’ll show that that generalizes. Our bound will be mediocre, but it’s any bound at all, so that’s progress.

Specifically: suppose we have two distributions over the same variables, and . We construct a competitively optimal natural latent via resampling for each distribution:

Then, we’ll use (with expectation taken over under distribution ) as a measure of how well ‘s latent matches ’s latent . Core result:

Proof:

So we have a bound. Unfortunately, the factor of (number of variables) makes the bound kinda mediocre. We could sidestep that problem in practice by just using natural latents over a small number of variables at any given time (which is actually fine for many and arguably most use cases). But based on the proof, it seems like we should be able to improve a lot on that factor of n; we outright add , which should typically be much larger than the quantity we’re trying to bound.