Bayesian signal recovery
29 April 2024
Also published on the UBC Optimization Group blog.
The field of compressed sensing consists of quantifying how many linear measurements are required to locate an unknown signal within a known prior set. The a priori knowledge is of a deterministic kind; we only know the set to which the signal belongs. In this post we explore the process of signal recovery with a different kind of prior knowledge: that we know the signal to be sampled from a prior distribution, instead of a prior set.
This assumption puts us into a Bayesian setting, for we have a prior distribution—before the measurements—and a posterior distribution: a distribution which has a support limited to signals that have measurements matching the observed measurements. The posterior distribution is given by conditioning the prior distribution on the observed measurements.
We recover the signal by sampling from this posterior distribution. Then we ask: How close to the true signal can we expect our guess to be?
I will develop a mathematical description of this setting and then find theoretical guarantees about the accuracy of the signal recovery.
This blog post is an alternative presentation of some of the results and ideas presented in Jalal et al. (2021). It is presented there in the context of generative compressed sensing (compressed sensing using the range of neural networks as priors). The motivating principle of this blog post is to try to be rigorous in the sense of making the underlying probability theory as understandable as possible, for I had difficulty understanding the theoretical foundations behind the proof in the original work. This is my attempt at clarifying the theory within, with a focus on connecting it to my understanding of probability theory.
Setting up the setting
Given a signal distributed according to some (prior) distribution , we compute which we understand as measuring with a measurement matrix with measurements. This gives us the (known) measurement vector . For simplicity, we assume that the random variable admits a density, and also that is compactly supported. We can then examine the posterior variable to see if tends to be a good approximation to .
But what is , exactly? We know it is the variable following the posterior distribution, but what does that mean exactly, and how does it depend on and ? To answer these questions we offer a precise definition for .
Define as the unique random variable satisfying the following two properties:
- has the same marginal distribution as .
- is conditionally independent of with respect to . This means that the dependence between the random variables and exclusively lies in the fact that , and that they are otherwise independent. Conditioning on any fixed value of , and are independent. To be even more precise, the following holds for Borel sets ; .
We aim to establish that with high probability, is no more than -away from for some . This is what we call "signal recovery".
To show the result we partition the support of into small components with each of radius no more than . We will show that with high probability and lie in the same component.
Signal recovery guarantee
We will introduce some discrete random variable dependent on to partition the distribution of into "component distributions" each supported on a distinct component of the support of . We think of as re-normalized components of the prior distribution. We choose to be such that each distribution is supported within a single component of the partition of the support.
We define so that it depends on in exactly the same way that depends on (which is possible because the marginal distributions of and are identical). In the event that lands in the same component as , it follows that , which we understand as the event that the signal recovery has been successful; the guess turned out to be close to the true signal . We will show that this happens with high probability. The event of failure is then . Our aim is to show that this event occurs only with small probability.
We therefore consider We begin by considering . Decompose the probability by values of : where is the probability of the event conditioned on both the value that takes and on the event . Then is a direct application of the conditional independence of and with respect to . So we can write Now is the time to apply Baye's rule on the first factor inside the integral. In this setting, Baye's rule yields a density function in because of the dependence of on the integral. We expand the density of : Plugging this into the previous chain of equalities, and separating by the denominator,
Now notice that by the fact that and are identically distributed, and . Plugging this in,
Then considering that the argument above holds identically for all other , we find that So we can infer that with probability at least
Let us stare at this expression a little bit. We remember that the measurements is a vector-valued random variable dependent on through the action of ; . Different distributions on give rise to different distributions on . The total variation in the expression above measures the extent to which the distribution of the measurements arising from signals outside of some fixed piece of the prior distribution is mixed with the distribution of measurement vectors arising from the signals inside of . If these two induced distributions on have disjoint support, then the total variation associated to is . If this is the case for all pieces , then we have a probability of success of . Intuitively, this makes sense because if the measurements are well separated for different pieces of the support in the prior, then we should be able to reverse-engineer the true signal from the observed measurements.
Conclusion
Equation (1) yields a powerful insight: that whether we can recover a random signal depends on how much the measurement process mixes up the prior distribution of the signal. If there is not too much mixing, then the true signal can be guessed by sampling from the posterior distribution. We also notice that nowhere did we use the linearity of , so this result seems to generalize to nonlinear measurements.
References
Jalal, Ajil, Sushrut Karmalkar, Alex Dimakis, and Eric Price. 2021. "Instance-Optimal Compressed Sensing via Posterior Sampling." In Proceedings of the 38th International Conference on Machine Learning, 4709--20. PMLR.