NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Compressed Sensing using Generative Models

Ashish Bora, Ajil Jalal, Eric Price, Alexandros G. Dimakis

TL;DR

This paper revolutionizes compressed sensing by replacing the traditional assumption of sparsity with the power of generative models (like VAEs and GANs). By constraining signals to lie near the manifold of a pre-trained generator, the authors demonstrate that signals can be recovered with 5–10x fewer measurements than standard methods like Lasso, backed by rigorous theoretical guarantees.

What Problem Does This Paper Address?

Compressed sensing is the art of recovering a high-dimensional signal (like a $1024 \times 1024$ image) from a very small number of linear measurements. Because the system is underdetermined (more unknowns than equations), we need a "prior"—an assumption about what the signal looks like—to solve it.

For decades, the gold standard has been sparsity: the idea that a signal can be represented by just a few non-zero coefficients in some basis (like Wavelets or DCT). However, sparsity is a relatively "dumb" prior; it doesn't know the difference between a random sparse signal and a realistic image of a human face. The authors tackle the challenge of using more sophisticated, data-driven priors to push the limits of how few measurements we actually need.

Methods

The core idea is to assume the unknown vector $x^*$ lies in (or near) the range of a pre-trained generative model $G: \mathbb{R}^k \to \mathbb{R}^n$, where $k \ll n$.

  1. The Objective: Instead of searching the massive $n$-dimensional pixel space, the algorithm searches the much smaller $k$-dimensional latent space. It seeks a latent code $z$ that minimizes the squared error between the observed measurements $y$ and the measurements we would get from the generated image $G(z)$: $$\min_{z} \|AG(z) - y\|_2^2$$
  2. The Algorithm: Since $G$ is typically a neural network, it is differentiable. The authors use standard gradient descent (specifically the Adam optimizer) to find the best $z$.
  3. The Theory: They introduce a new theoretical tool called the Set-Restricted Eigenvalue Condition (S-REC). This generalizes the standard Restricted Isometry Property (RIP) used in classical compressed sensing. They prove that if a measurement matrix $A$ satisfies the S-REC for the range of the generator, the recovery is robust to noise and "representation error" (the distance between the true signal and the closest point the generator can produce).

Datasets

The authors evaluated their approach on two classic image datasets:

  • MNIST: 60,000 images of handwritten digits ($28 \times 28$ pixels). They used a Variational Autoencoder (VAE) with a latent space of $k=20$.
  • CelebA: Over 200,000 celebrity face images ($64 \times 64 \times 3$ pixels). They used a Deep Convolutional GAN (DCGAN) with a latent space of $k=100$.

Key Insights and Ideas

  • Manifolds over Bases: Sparsity assumes data lives on a union of low-dimensional subspaces. Generative models assume data lives on a complex, curved, low-dimensional manifold. The latter is a much more accurate description of natural images.
  • The $O(k \log L)$ Rule: The authors show that for an $L$-Lipschitz generator, roughly $O(k \log L)$ random Gaussian measurements are sufficient for recovery. For a $d$-layer ReLU network, this translates to $O(kd \log n)$ measurements.
  • Optimization in Latent Space: By optimizing in the latent space $z$, the algorithm inherently stays on the "manifold of realistic images," which acts as a powerful regularizer.
  • Handling Model Imperfection: The theory explicitly accounts for the fact that a GAN or VAE might not be perfect. The recovery error is bounded by the "representation error"—how well the model could have fit the image if we had perfect measurements.

Key Results

  • Efficiency: On MNIST, the proposed method with only 25 measurements achieved the same accuracy as Lasso with 400 measurements (a 16x improvement).
Reconstruction error vs. number of measurements for MNIST and CelebA
  • Visual Quality: Qualitatively, the reconstructions from generative models are significantly sharper. While Lasso often produces blurry or "ghostly" artifacts at low measurement rates, the generative approach produces realistic-looking images because the prior is so strong.
Qualitative comparison of reconstructions on CelebA
  • Super-resolution: The framework was successfully applied to super-resolution (recovering a high-res image from a low-res version), showing that the method generalizes beyond random Gaussian measurements to other linear operators.

Limitations and Future Work

  • The "Ceiling" Effect: Because the algorithm is constrained to the range of the generator, it can never recover details that the generator hasn't learned. If you have a huge number of measurements, Lasso will eventually surpass this method because Lasso is not limited by a pre-trained model's capacity.
  • Non-Convexity: The objective function is non-convex. While gradient descent worked well in their experiments (often requiring a few random restarts), there is no theoretical guarantee that it won't get stuck in local minima.
  • Model Dependence: The quality of recovery is strictly tied to the quality of the generative model. If the model is biased or lacks diversity, the reconstructions will reflect those flaws.
  • Future Directions: The authors suggest exploring larger, more flexible generative models to reduce representation error and investigating whether multiple independent models could be used together to cover more of the signal space.

Summary updated

BibTeX
@inproceedings{bora2017compressed,
  author = {Ashish Bora and Ajil Jalal and Eric Price and Alexandros G. Dimakis},
  title = {{Compressed Sensing using Generative Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=HJZY65WdbH},
}
Figure