Robust compressed sensing using generative models

Ajil Jalal, Liu Liu, Alexandros G. Dimakis, Constantine Caramanis

Overview

Compressed sensing aims to reconstruct a high-dimensional signal, such as an image, from a small number of linear measurements. Traditionally, this relies on the assumption that the signal is "sparse." Recent breakthroughs have demonstrated that using deep generative models (like GANs) as a prior can be 5 to 10 times more sample-efficient than classical sparsity-based methods.

However, these generative approaches typically rely on Empirical Risk Minimization (ERM), which is notoriously fragile. If the measurement matrix or the noise follows a heavy-tailed distribution—meaning extreme values are more common than in a normal distribution—or contains even a few malicious outliers, ERM-based reconstruction breaks down. In the context of generative models, this failure is particularly pernicious: the model might still output a high-quality image, but it will be the wrong image (e.g., a completely different person's face), making the error difficult to detect by eye.

This paper introduces a robust framework for compressed sensing that replaces standard ERM with a novel Median-of-Means (MOM) tournament objective. The resulting algorithm succeeds even when data is corrupted by outliers or heavy-tailed noise, scenarios where classical methods fail catastrophically.

Methods: The MOM Tournament

To address the fragility of squared-loss minimization, the authors propose a new reconstruction algorithm based on a robust statistical estimator.

  1. Median-of-Means (MOM) Objective: Instead of averaging the loss over all measurements, the algorithm partitions $m$ measurements into $M$ blocks. It calculates the empirical risk for each block and focuses on the median loss. This prevents a small number of extreme outliers from dominating the optimization landscape.
  2. MOM Tournament: The core of the methodology is a min-max optimization framework: $$\hat{z} = \arg \min_{z} \max_{z'} \text{median}_{j} (\ell_j(z) - \ell_j(z'))$$ This "tournament" setup ensures that if an adversary tries to pull the reconstruction away from the truth using outliers, the median operator effectively ignores those corrupted blocks.

  3. Optimization Algorithm: To solve this non-convex min-max problem, the authors employ a gradient-based heuristic. In each iteration, they identify the batch that yields the median loss difference, performing a gradient descent step on the primary variable $z$ and a gradient ascent step on the competitor $z'$.

Key Insights and Theoretical Guarantees

  • S-REC for Heavy Tails: A major theoretical contribution is proving that the Set Restricted Eigenvalue Condition (S-REC)—the mathematical property that allows for successful recovery—holds even for heavy-tailed matrices. This demonstrates that the underlying geometry of generative models is robust enough to handle heavy-tailed measurement matrices, even if ERM is not.
  • Optimal Sample Complexity: The authors prove that their MOM-based algorithm achieves a sample complexity of $m = O(kd \log n)$ (where $k$ is the latent dimension, $d$ is the number of layers, and $n$ is the signal dimension). This matches the best-known bounds for non-robust ERM, meaning robustness comes at no extra cost in terms of the number of measurements needed.
  • Computational Efficiency: Despite formulating the task as a min-max problem, the per-iteration cost remains essentially the same as standard backpropagation, making it highly practical.

Experimental Results

The authors evaluated their approach on two standard image datasets: MNIST ($64 \times 64$ images using a DCGAN) and CelebA-HQ ($256 \times 256$ images using a PG-GAN). To test robustness, they introduced heavy-tailed noise (Student’s t-distribution) and $\epsilon$-contamination (replacing a fraction of measurements with arbitrary outliers).

Superiority over ERM

In experiments with heavy-tailed noise, the proposed MOM algorithm achieved significantly lower reconstruction error than the baseline ERM across varying numbers of measurements on both datasets.

Reconstruction error comparison on MNIST and CelebA-HQ

Outlier Resilience and Convergence

When just 2% of measurements were corrupted, standard ERM and $\ell_1$ loss minimization failed completely, unable to converge to a meaningful reconstruction. In contrast, the MOM tournament and direct MOM minimization successfully ignored the outliers and converged to a low reconstruction error.

Convergence of reconstruction error over iterations

The authors also noted that direct minimization of the MOM objective works well in practice, even though the theoretical guarantees are specifically tailored for the tournament version.

Limitations and Future Work

  • Non-Convexity: Like most deep learning problems, the objective is non-convex. While the authors provide statistical guarantees for the global minimum, the practical implementation relies on gradient-based heuristics that lack a global convergence proof.
  • Hyperparameter Sensitivity: Performance depends on choosing the right number of blocks ($M$). While a validation set can be used to tune this, a more automated method to determine $M$ based on the noise level would be beneficial.
  • Generative Prior Quality: The reconstruction quality is ultimately bounded by the range of the generative model. If the true image cannot be represented by the GAN, perfect recovery is impossible. Future work could explore "relaxed" generative priors to better handle out-of-distribution signals.

Summary updated

BibTeX
@inproceedings{jalal2020robust,
  author = {Ajil Jalal and Liu Liu and Alexandros G. Dimakis and Constantine Caramanis},
  title = {{Robust compressed sensing using generative models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=saawb9FWppz},
}
Figure