Introduction
Compressed Sensing (CS) is the mathematical art of recovering a high-dimensional signal—such as a high-resolution image—from just a few linear measurements. Recently, Generative Compressed Sensing (CSGM) has gained significant traction by utilizing pre-trained neural networks, like Variational Autoencoders (VAEs) or Generative Adversarial Networks (GANs), as structural "priors." Instead of assuming a signal is merely "sparse" in some domain, CSGM assumes the signal lives within the output range of a specific generative model.
This paper introduces CS-BGM (Compressed Sensing with Bayesian Generative Model), a novel approach that models uncertainty in both latent variables and model parameters. By adaptively expanding the range of a pre-trained generator during the reconstruction process, CS-BGM significantly improves the recovery of signals that fall outside the model's original training distribution.
The Range Bottleneck in Generative CS
The primary catch with standard CSGM is that generative models are inherently range-limited. They can only accurately reconstruct signals that closely resemble their training data. If a test signal contains features the model hasn't seen—even slightly "out-of-range" details—standard CSGM fails. This happens because it keeps the network parameters rigidly fixed and only optimizes the input latent code.
The authors provide a theoretical proof showing that if a signal lies outside a generator's range, the reconstruction error is strictly lower-bounded by the measurement error. No amount of clever signal-space priors can overcome this fundamental limitation; the only true solution is to expand the model's representative capability.
CS-BGM: Embracing Uncertainty
To break this "range bottleneck," CS-BGM treats the pre-trained generator's parameters ($\theta$) not as absolute truths, but as uncertain estimates. During the reconstruction phase, CS-BGM performs a joint inference process:
- Variational Inference (VI) is used for the low-dimensional latent variable $z$, providing a probabilistic estimate of the signal's underlying "code."
- Maximum A Posteriori (MAP) estimation is applied to the high-dimensional network parameters $ heta$.
This joint approach allows the network itself to "shift" slightly from its pre-trained state to better accommodate the specific measurements of the test signal. By allowing the model parameters to adapt during testing, the range of the generator effectively expands to "embrace" the target signal. The authors introduce an alternating optimization algorithm to solve this efficiently, alongside a theoretical framework called the Set-Restricted Isometry Property (S-RIP) to prove that random Gaussian measurement matrices can reliably preserve signal distances when working with these expanded models.
Experimental Results
The method was evaluated on standard benchmarks, including MNIST (handwritten digits) and CelebA (celebrity faces), using pre-trained VAEs. CS-BGM consistently outperforms baselines like Lasso, standard CSGM, and Sparse-Gen in both quantitative and qualitative metrics.
Quantitative Superiority: On the CelebA dataset, CS-BGM achieves significantly lower $\ell_2$ reconstruction errors across a wide range of measurement counts. Notably, the performance gap between CS-BGM and standard CSGM actually widens as more measurements become available, highlighting CSGM's inherent inability to utilize extra information once it hits its range limit.
Visual Fidelity: Qualitatively, the difference is striking. While standard CSGM often produces blurred or distorted faces when the test image deviates from the training set, CS-BGM restores fine details like hair texture and facial expressions with much higher accuracy.
Unlike previous methods (like Sparse-Gen) that add a separate, unstructured sparse "correction" vector, CS-BGM uses the internal flexibility of the neural network itself. This leads to more natural-looking reconstructions because the corrections are constrained by the network's learned architecture.
Limitations and Future Directions
While highly effective, CS-BGM is more computationally intensive than standard CSGM due to the alternating optimization of high-dimensional parameters. To address this, the authors suggest several promising paths forward:
- Amortized Inference: Training a separate neural network (such as an LSTM) to predict the posterior distribution of $z$ and $\theta$ directly from measurements, which could drastically speed up the reconstruction process.
- Sophisticated Priors: Exploring different priors for the parameters $\theta$, such as sparsity-inducing priors, to further refine and control the range expansion.
- Scaling Up: Applying the CS-BGM framework to state-of-the-art, high-resolution generative models like StyleGAN to tackle even more complex real-world signals.
Summary updated