Instance-Optimal Compressed Sensing via Posterior Sampling

Ajil Jalal, Sushrut Karmalkar, Alex Dimakis, Eric Price

Introduction

Compressed sensing (CS) traditionally asks a fundamental question: "How many linear measurements are required to recover a signal?" The classic answer relies on the concept of sparsity—the assumption that most of a signal's coefficients are zero in some basis. More recently, researchers have leveraged deep generative models to define "structure," assuming signals lie on a low-dimensional manifold.

However, these traditional and deep-learning-based approaches are largely "frequentist" and set-based. They treat all signals within a set as equally likely, ignoring the underlying probability distribution. This oversight leads to two major gaps:

  1. Theoretical: There is a lack of a universal characterization of measurement complexity for general distributions, especially those with full support like natural images.
  2. Practical: Standard recovery methods, such as Maximum A Posteriori (MAP) estimation, often produce "atypical" results. While these images might be mathematically "likely" according to the model, they often appear washed out or blurry because they sit at narrow, sharp peaks of the probability density rather than in regions where most of the probability mass resides.

This paper shifts the paradigm of compressed sensing from set-based recovery to a Bayesian framework, proving that posterior sampling is a near-optimal recovery strategy for any signal distribution.

Methodology: Posterior Sampling

The authors propose Posterior Sampling as an alternative to traditional recovery algorithms. Instead of searching for the single most likely signal $\hat{x}$ (as in MAP), the proposed method samples a reconstruction $\hat{x}$ directly from the posterior distribution $P(x|y)$, where $y$ represents the observed measurements.

Key Innovations

  • Approximate Covering Numbers: To characterize measurement complexity, the authors introduce $\text{Cov}_{\eta, \delta}(R)$, defined as the minimum number of balls of radius $\eta$ needed to cover $1-\delta$ of the probability mass of distribution $R$. They prove that the required number of measurements $m$ scales logarithmically with this covering number.
  • Langevin Dynamics: Because the posterior of a deep generative model is highly complex and high-dimensional, the authors implement sampling using Annealed Langevin Dynamics. This iterative process moves a random initial point along the gradient of the log-posterior, injecting controlled noise at each step to ensure the final result is a true sample from the distribution.
  • Wasserstein Robustness: The method is proven to be robust to "model mismatch." If the generative model $P$ is close to the true distribution $R$ in Wasserstein distance, posterior sampling will still yield near-optimal results.

Key Insights and Results

The authors evaluated their approach on high-resolution facial image datasets, including CelebA-HQ (using a Glow generative model) and FFHQ (using an NCSNv2 score-based model). They compared their Langevin dynamics approach against standard MAP, Modified-MAP, and the Deep-Decoder (an untrained neural network prior).

The "Atypicality" of MAP

A core insight of the paper is explaining exactly why MAP fails in these contexts. In high-dimensional spaces, the "mode" (the peak of the density) is often an outlier. For example, the mode of a standard Gaussian distribution is the zero vector, yet a random sample drawn from that Gaussian will almost never be near zero. MAP seeks this mode, resulting in blurry, averaged outputs. Posterior sampling avoids this trap by picking a "typical" sample from the mass of the distribution.

Perceptual Quality and Sample Complexity

The theoretical results prove that $m \approx \log \text{Cov}_{\sigma, \delta}(R)$ measurements are both necessary and sufficient for recovery. In practice, this translates to superior performance at low measurement counts.

On the FFHQ dataset, while Langevin dynamics and Deep-Decoder exhibited similar numerical error, the Langevin reconstructions were visually far superior. As shown below, MAP produces blurry images at lower measurements, and Deep-Decoder introduces structural artifacts. In contrast, posterior sampling via Langevin dynamics produces sharp, realistic faces that accurately satisfy the measurements.

Reconstruction results on FFHQ comparing MAP, Deep Decoder, and Langevin dynamics across varying measurement counts.

Furthermore, when measurements are highly incomplete, posterior sampling can produce multiple, distinct, and sharp images that all satisfy the given measurements, effectively capturing the true uncertainty of the problem rather than collapsing it into a single blurry average.

Limitations and Future Work

While powerful, the proposed method has a few notable limitations:

  • Computational Cost: Langevin dynamics is an iterative sampling procedure. It is computationally heavier and significantly slower than direct optimization or feed-forward reconstruction networks.
  • Prior Dependence: The reconstruction quality is strictly bounded by the quality of the underlying generative model. If the model fails to learn the true distribution accurately, the "optimal" recovery will still yield poor results.
  • Estimating Complexity: While the paper successfully defines the approximate covering number to bound measurement complexity, calculating this exact value for a specific, trained neural network remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{jalal2021instance,
  author = {Ajil Jalal and Sushrut Karmalkar and Alex Dimakis and Eric Price},
  title = {{Instance-Optimal Compressed Sensing via Posterior Sampling}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=LnfLK9yTlru},
}
Figure