Abstract
The goal of compressed sensing is to estimate a high dimensional vector from an underdetermined system of noisy linear equations. In analogy to classical compressed sensing, here we assume a generative model as a prior, that is, we assume the vector is represented by a deep generative model $G: \mathbb{R}^k \rightarrow \mathbb{R}^n$. Classical recovery approaches such as empirical risk minimization (ERM) are guaranteed to succeed when the measurement matrix is sub-Gaussian. However, when the measurement matrix and measurements are heavy-tailed or have outliers, recovery may fail dramatically. In this paper we propose an algorithm inspired by the Median-of-Means (MOM). Our algorithm guarantees recovery for heavy-tailed data, even in the presence of outliers. Theoretically, our results show our novel MOM-based algorithm enjoys the same sample complexity guarantees as ERM under sub-Gaussian assumptions. Our experiments validate both aspects of our claims: other algorithms are indeed fragile and fail under heavy-tailed and/or corrupted data, while our approach exhibits the predicted robustness.
Introduction
Compressed sensing (CS) is the process of reconstructing a high-dimensional signal from a limited number of noisy linear measurements. Traditionally, this relies on two primary assumptions: signal sparsity and well-behaved, sub-Gaussian noise. However, in real-world applications like medical imaging or security-sensitive data processing, measurements are often "heavy-tailed" (containing rare but extreme values) or maliciously corrupted.
Standard approaches like Empirical Risk Minimization (ERM) are notoriously fragile in these settings; a single outlier can derail the entire reconstruction. Furthermore, as the field shifts toward using Deep Generative Models (like GANs) as priors, the stakes for robustness increase. When these models fail due to noise, they don't just produce static; they often produce high-quality images of the wrong subject, making reliability a critical concern.
Methods
We propose a shift from standard ERM to a Median-of-Means (MOM) tournament objective. Instead of assuming sparsity, we assume the signal $x$ is in the range of a pre-trained deep generative model $G(z)$.
The algorithm operates by partitioning the $m$ measurements into $M$ disjoint batches. Rather than minimizing the total squared error, the algorithm plays a "min-max" game. It seeks a latent vector $z$ that performs well across the median of these batches. Specifically, it seeks a $z$ such that the difference in loss between it and any other competitor $z'$ is non-positive for the majority of batches. We provide a gradient-based heuristic that performs simultaneous descent on the target variable and ascent on the competitor, effectively finding a robust equilibrium.
Results
We evaluated our approach on the MNIST and CelebA-HQ datasets, simulating heavy-tailed noise using Student’s t-distributions and arbitrary corruptions.
Accuracy and Sample Complexity
Our MOM-based algorithm consistently achieved significantly lower reconstruction error than standard ERM across both datasets in heavy-tailed settings. Crucially, the experiments confirm our theoretical finding: the MOM approach achieves the same sample complexity ($m = O(kd \log n)$) as ERM does under much stricter sub-Gaussian assumptions. This means robustness is achieved without requiring additional data.
Computational Efficiency
Despite the theoretical complexity of the min-max tournament, the actual computation time is practical. As shown in the convergence plots, the MOM tournament reaches a stable, low-error state significantly faster than standard MOM minimization. In terms of wall-clock time, the MOM tournament is only about twice as slow as standard ERM, making it a viable candidate for real-world deployment.
Conclusion
Our framework demonstrates that robust compressed sensing with generative priors is both theoretically sound and practically efficient. By employing a Median-of-Means strategy, we provide resilience against heavy-tailed noise and outliers while maintaining optimal sample complexity. While the non-convexity of the objective remains a theoretical challenge for global convergence proofs, our empirical results show that gradient-based optimization is highly effective for high-dimensional signal recovery in adversarial or noisy environments.
Summary updated