Compressed Sensing using Generative Models
Paper · 2017 · Ashish Bora, Ajil Jalal, Eric Price et al.
Summary
Compressed sensing asks how much of a signal must be measured before it can be reconstructed. An image contains many pixel values, but a sensing device may observe only a smaller collection of weighted sums of those values. Those measurements generally leave many possible images consistent with the observations. Recovery therefore requires an assumption about what kinds of images are plausible. This paper replaces the usual assumption of sparsity with a learned generator: a function that turns a compact representation into an image resembling the training data. Reconstruction searches through that representation space for an image whose predicted measurements agree with the observed ones.
The change is consequential because sparsity and learned image structure express different kinds of prior knowledge. A sparse reconstruction favors an image with relatively few significant coefficients in a chosen basis. A generator restricts reconstruction to images that its learned mapping can produce. If that restriction fits the application, the unknown image may be recoverable from substantially fewer measurements. The authors demonstrate this with a variational autoencoder trained on MNIST digits and a generative adversarial network trained on CelebA faces. On MNIST, their method with 25 measurements reaches the performance of Lasso with 400 measurements. On CelebA, they report recognizable reconstructions from 500 measurements while the sparse baselines produce blurry images.
The theoretical contribution explains when this strategy can work. The authors introduce a condition requiring the sensing matrix to keep distinct generator outputs distinguishable after measurement. They show that random Gaussian matrices satisfy this condition for broad classes of generators. For a generator with a bounded rate of change, the required measurement count depends mainly on the dimension of its representation space, with a logarithmic dependence on additional complexity parameters. A separate result covers networks with piecewise-linear activations. The resulting reconstruction bounds account for how closely the generator can represent the target, the amount of observation noise, and the accuracy of the reconstruction optimization.
The experiments also reveal the method’s central limitation. Searching within a generator’s outputs helps when observations are scarce, but it prevents recovery of details the generator cannot express. The MNIST results stop improving after 100 measurements; Lasso eventually does better when given more than 500 measurements. A similar crossover occurs on CelebA beyond 5000 measurements. Controlled experiments suggest that this representational restriction explains much of the remaining error. The paper thus establishes both an opportunity and a boundary: learned structure can reduce the measurements needed for useful reconstruction, while the quality of that structure sets an eventual ceiling on accuracy.
Interesting ideas
Learn the admissible set
A learned generator can define which candidate solutions an inverse problem is allowed to consider. The generator is trained on examples from the relevant domain, then reused when measurements of a new signal arrive. This separates learning what plausible signals look like from determining which plausible signal matches a particular observation. The idea is useful whenever a broad mathematical constraint, such as sparsity, leaves too many possibilities but examples provide a more specific account of the domain. Its success depends on whether the generator’s outputs cover the signals that matter.
This is also a way to make prior knowledge operational. Saying that an image should resemble a digit or a face is difficult to translate directly into an optimization constraint. A generator supplies a concrete mapping whose outputs embody that preference. The restriction may be imperfect, but it is explicit enough to search and analyze. Elsewhere, the same design principle suggests representing admissible solutions through a construction process rather than through a long collection of penalties.
Optimize a compact representation
The reconstruction procedure adjusts the generator’s input while leaving its learned parameters fixed. This makes the unknown representation, rather than the full image, the search variable. The observed measurements still determine the objective, so the compact representation is useful only insofar as its generated output explains the evidence. This pattern applies to reconstruction problems with different observation operators: change the function that predicts measurements from a candidate output, then search the same representation space.
The important distinction is between reusing knowledge and retraining it. The generator captures recurring structure during training. At reconstruction time, optimization selects a particular output from that learned family. This allows the same generator to serve multiple measurement matrices without learning a separate inverse mapping for each one.
Preserve differences between candidates
The paper’s theoretical condition focuses on differences between plausible outputs. A measurement system need not preserve every possible vector in the ambient space. It must preserve enough separation between candidates that the reconstruction procedure might confuse. This is a reusable way to reason about identifiability: ask whether two admissible explanations can produce almost the same observations in spite of being substantially different.
That question is frequently more informative than asking whether an individual candidate looks plausible. Plausibility determines the search set; distinguishability determines whether observations can select within it. The paper gives these roles separate mathematical treatments. This separation can help when designing other inverse problems, where a strong prior alone does not establish that the available evidence resolves ambiguity.
Diagnose error by removing its sources
The authors do more than report a reconstruction curve. They generate targets directly from the generator to remove representational mismatch, then reconstruct real images using complete observations to remove the loss of information caused by partial measurement. These interventions make different explanations for failure easier to assess. The first tests whether measurement and optimization remain serious obstacles when the target is expressible. The second estimates how much error persists even when the full target is available.
This approach transfers to systems in which several stages can fail. Rather than treating a final error score as a single phenomenon, construct cases where a suspected source cannot contribute. Such experiments do not automatically prove a complete causal account, but they can identify which component deserves further work.
Match capacity to evidence
A restrictive generator can be valuable when there are few observations, yet become a bottleneck once the measurements contain more information. The paper’s saturation results show why increasing data does not necessarily improve a constrained estimator. Additional evidence cannot create outputs that lie outside its admissible family.
This suggests evaluating capacity across the range of observation conditions an application will encounter. A representation that works well under severe measurement limits may be inadequate when more evidence becomes available. The authors propose more expressive generators as a direction for improvement, while leaving open how to support different capacities without separately training independent generators of different sizes.
Keep the residual and the target error separate
A reconstruction can agree with the measurements without reproducing the original signal. The paper defines these as different quantities and supplies conditions connecting them. That distinction is worth retaining in any system that fits indirect observations. A small residual is evidence that the candidate explains what was observed; it becomes evidence of accurate recovery only when the observation process and admissible set make competing explanations sufficiently distinguishable.
The same discipline improves evaluation. A deployment system can usually compute agreement with its observations. A research experiment can additionally compare against the known target. Reporting both helps distinguish successful optimization from successful reconstruction.
Deep dive: Compressed Sensing using Generative Models
How learned generators recover images from few linear measurements, why they can beat sparse recovery, and where their accuracy stops. · about 34 minutes to read
How Mova uses it
For Mova, the small transparent language system implemented in Rust, this paper offers a design idea instead of an established component. There is no documented Mova integration to describe. The relevant proposal is to separate a compact representation, an explicit process that constructs a candidate from it, and a check that compares the candidate with available evidence. The paper demonstrates that arrangement for images and linear measurements. Applying it to language would require a new formulation and separate evidence.
A possible Mova experiment would begin with a restricted family of linguistic candidates that Mova can construct and inspect. Observations would impose constraints on those candidates, and search would adjust the compact representation to improve agreement. This is an architectural analogy: the generator corresponds to an explicit construction mechanism, and the measurement residual corresponds to a check against observations. It does not imply that discrete linguistic constraints possess the differentiability or geometry assumed in the image experiments.
The transparency requirement makes the separation especially useful. A system could expose which restrictions come from its candidate family and which come from observed evidence. If a desired answer is unreachable because the construction mechanism cannot express it, that is a representational failure. If several expressible candidates remain compatible with the observations, that is an information problem. If a suitable candidate exists but search fails to find it, that is an optimization problem. These categories follow the paper’s error analysis without importing its image-recovery guarantees into language processing.
A concrete evaluation strategy would borrow the authors’ controlled comparisons. Mova could first be tested on cases generated by its own construction rules, where expressibility is assured. It could then be tested with complete evidence about externally supplied cases, where missing observations are removed as an explanation. Comparing these settings would help determine whether to improve the construction rules, collect richer evidence, or change the search procedure. Such an experiment would need its own task definition and metrics; none of the image results establishes its outcome.
The paper also supplies a caution for a compact language system. A narrow candidate family may be efficient and easy to inspect while excluding legitimate inputs or interpretations. More evidence will not solve that exclusion. For Mova, the reusable lesson is to make the coverage of the representation measurable and visible. The proposed borrowing is therefore the organization of search and diagnosis, not a claim that a generator trained on images provides a ready-made language component.
The problem and its context
Why incomplete measurements need structure
The unknown object in compressed sensing is a vector. For an image, its entries can be the pixel values arranged in a fixed order. A measurement is a linear combination of those entries. Taking several such combinations produces another vector, typically much shorter than the original.
The difficulty is mathematical before it is computational. When the number of independent measurements is smaller than the number of unknown entries, the equations generally admit many solutions. Even a procedure with unlimited computational resources cannot identify the original vector from those equations alone. Something must distinguish the intended signal from the alternatives.
Prior structure supplies that distinction. The signal may be assumed to belong to a restricted family, or to lie near that family. The restriction must reflect the application: what counts as a plausible tomographic image need not be the same as what counts as a plausible handwritten digit. The paper’s starting question is whether learned generators can provide a useful family for recovery, together with guarantees resembling those available for sparse signals.
The authors motivate the problem through applications in which measurements are physically meaningful. They discuss tomography, where observations can be sums or more general projections of an image, and mention compressed sensing work on CT, MRI, and neuronal spike recovery. They also describe the single-pixel camera, in which a sensing arrangement collects linear combinations and a reconstruction algorithm forms the image afterwards. These examples explain why reducing the required measurement count can matter independently of reducing storage or computation.
The experiments do not reproduce those physical applications. They use image datasets and simulated measurement operators. The applications establish the relevance of the mathematical problem; the experiments test the proposed reconstruction strategy under controlled conditions.
What sparsity contributed
The conventional assumption described by the authors is sparsity in a known basis. A vector is sparse when relatively few of its coefficients are non-zero. Approximate sparsity allows additional small coefficients while retaining a compact dominant description. Depending on the signal, sparsity may appear directly in its entries or after a transformation.
Searching for the sparsest solution of an underdetermined system is computationally difficult in general. Earlier compressed sensing results nonetheless show that suitable optimization procedures can recover sparse signals when the measurement matrix satisfies appropriate conditions. The paper names the Restricted Isometry Property and the Restricted Eigenvalue Condition as examples.
Lasso is central to the experimental comparison. It balances agreement with the measurements against an absolute-value penalty on coefficients. The penalty favors sparse explanations. On MNIST, the authors apply it directly to pixels because the digit images already contain substantial background. On CelebA, they apply it in transform domains, where the image may admit a more compact coefficient description.
The authors also situate their work among extensions of basic sparsity. Earlier approaches combine sparsity with further structural assumptions, work with low-rank matrices, or learn dictionaries in which signals have sparse representations. These developments share a principle: recovery improves when the assumed structure fits the signals more closely. The paper changes how that structure is expressed, using a generator’s output set instead of a sparse coefficient family.
What a learned generator changes
A generator maps a relatively small representation vector to a larger signal vector. Training encourages its outputs to resemble examples from the data distribution. Once trained, the mapping offers a way to search among outputs that reflect recurring domain structure.
For reconstruction, the decisive object is the generator’s range: every output obtainable from some allowed representation. The method returns an element of that range. It does not require the true image to be exactly expressible, but the distance to the nearest expressible image appears in the recovery guarantee.
This distinction explains both the appeal and the risk. The range may exclude a vast collection of implausible images that sparse recovery would still consider. It may also exclude real images or their distinctive details. The paper therefore frames recovery relative to the generator’s best possible approximation of the target, instead of promising exact reconstruction of arbitrary natural images.
The generator is learned through machine learning, but the reconstruction task is not simply ordinary prediction from a fixed input format. The observation matrix is supplied at reconstruction time. The algorithm uses it to ask how each candidate image would have been measured. A trained prior and a known observation process meet inside the reconstruction objective.
Earlier reconstruction work
The authors distinguish their setting from earlier attempts to invert generators using a fully observed image. Those methods search for a representation whose output resembles an image already available in full. Within the paper’s formulation, complete observation corresponds to using the identity matrix as the measurement operator.
Other cited work jointly learns a recognition network that maps an image into representation space. That offers a learned inverse relationship, whereas the paper’s reconstruction procedure performs optimization for each new set of observations. The distinction matters because the observations here can be incomplete linear combinations rather than a complete image.
The related-work discussion also covers inpainting and super-resolution. Inpainting observes selected pixels and infers the missing ones. Super-resolution can be viewed as observing local averages of a higher-resolution image. Both fit the broad linear-observation framework, although their measurement matrices have structure different from random Gaussian sensing.
Finally, the authors compare their geometry with earlier results on smooth manifolds. A generator’s range need not satisfy those earlier assumptions: piecewise-linear activations can introduce nonsmooth behavior, and different representation values can lead to intersecting parts of the output set. Their set-based condition is intended to accommodate this more general geometry.
The method, step by step
Start from the observation process
The sensing problem is written as:
y = Ax* + η
Here, x* is the unknown signal in an n-dimensional real space. A is the measurement matrix, with m rows and n columns. Each row specifies a linear combination of signal entries. The vector y contains the observed measurements, and η is the additive noise vector. The compressed setting has fewer measurements than signal entries.
The algorithm receives y and A. It does not receive x*. The true signal is available to the researchers when they evaluate reconstruction quality, but it cannot guide the reconstruction search itself.
The generator is a deterministic mapping:
G: ℝᵏ → ℝⁿ
G turns a representation z with k real-valued coordinates into a signal with n entries. The generator also has an associated distribution P_Z over representations, used when drawing new samples. For reconstruction, the essential operation is evaluating G at a proposed z.
The generator’s parameters are trained beforehand. Reconstruction changes z while holding those parameters fixed. This makes the generator a reusable constraint on candidate signals rather than a network retrained for each target.
Reconstructing a signal through a learned generator
The steps in order.
Fit measurements through the generator
For each candidate representation, the algorithm generates an image and applies the measurement matrix to it. This predicts the observations that would have been collected if the candidate were the true signal. The basic objective is:
loss(z) = ‖AG(z) − y‖²
The variable z is the representation being optimized. G(z) is its generated signal, AG(z) is the corresponding predicted measurement vector, and y is the actual observation vector. The norm is Euclidean, and squaring it gives the sum of squared measurement discrepancies.
This objective does not compare the generated image directly with the target image. It cannot, because the target is unknown. Instead, it compares their observable consequences.
If G is differentiable, back-propagation provides the gradient of the loss with respect to z. A gradient-based optimizer can then update the representation. The authors use Adam in their experiments. This is a non-convex search, so the procedure is not guaranteed to find the best representation. Multiple initializations are used to reduce dependence on a particular starting point.
The output rule is:
x̂ = G(ẑ)
The symbol ẑ denotes the representation found by optimization, and x̂ is the reconstructed signal. This rule makes the range restriction unavoidable: every returned reconstruction must be an output of G.
The paper distinguishes the objective from the quantity of ultimate interest. Measurement error evaluates agreement with y. Reconstruction error compares x̂ against x*. The experiments define reconstruction error using a squared Euclidean distance, while the main theoretical bounds concern Euclidean distance without squaring. These are related measures, but their numerical values and mathematical statements should not be interchanged.
Add a preference for likely representations
The experimental implementation supplements measurement agreement with a representation penalty:
‖AG(z) − y‖² + L(z)
The first term measures disagreement with the observations. L(z) is a regularizer that encourages the search towards representation values preferred by the generator’s prior. Here, L names a function; later, the same letter denotes a Lipschitz constant in the theoretical discussion.
The chosen regularizer is:
L(z) = λ‖z‖²
The coefficient λ controls the strength of the penalty. The squared norm discourages large representation values. The authors motivate this choice through the isotropic Gaussian prior used for the representations: its negative log probability is proportional to the squared norm, apart from terms irrelevant to optimization.
The regularizer introduces a preference beyond matching the measurements. Two representation values might produce similar residuals, yet the penalty can favor the one with smaller norm. The paper reports that regularization helped experimentally. Its main recovery theorems, however, are stated for approximate minimization of the measurement residual over the specified generator range. Keeping that distinction visible avoids treating the practical objective and the theorem’s premise as identical.
Train the digit generator
The MNIST experiment uses a variational autoencoder. Its recognition network maps images toward a compact representation during training, while its generator maps representations back to image space. Reconstruction from measurements uses the generator.
The authors describe MNIST as containing about 60,000 handwritten-digit images. Each image has dimensions 28 × 28, with background and foreground represented by 0 and 1. They report no preprocessing. Flattening an image gives an input dimension of 784.
The representation dimension is 20. The recognition network has the fully connected architecture 784-500-500-20, and the generator uses 20-500-500-784. These specifications make the contrast between the compact search space and the larger image space concrete. The reconstruction procedure searches over representations, while the generator determines how changes in those representations affect all the pixels.
Training uses Adam with mini-batches of 100 and a learning rate of 0.001. For reconstruction, the authors select the representation-penalty coefficient 0.1. The paper identifies this as the best-performing choice they found, without providing a numerical sweep that would establish the behavior of every alternative.
The sparse baseline uses Lasso directly on image pixels, with shrinkage parameter 0.1. This baseline reflects the structure of the digit images: foreground occupies only part of the image, so pixel-space sparsity is a meaningful comparison.
Train the face generator
For CelebA, the authors train a deep convolutional generative adversarial network. The dataset contains more than 200,000 celebrity face images. Images are cropped to 64 × 64 RGB format, producing 12288 entries per image, and pixel values are scaled to [-1, 1].
The representation dimension is 100, with a standard normal input distribution. The architecture follows the DCGAN work cited by the authors. They also identify Taehoon Kim’s TensorFlow implementation as reused code. The reconstruction framework uses this generator after training; it does not depend on a newly trained measurement-to-image predictor.
During training, each cycle applies one discriminator update and two generator updates. Adam uses mini-batches of 64, learning rate 0.0002, and β₁ set to 0.5. The reconstruction penalty coefficient selected for these experiments is 0.001.
The face baselines use Lasso in separate transform domains: the two-dimensional discrete cosine transform and the two-dimensional Daubechies-1 wavelet transform. Measurements still come from the original pixels. The sparsity penalty instead applies to transformed coefficients in each color channel. The shrinkage parameters are 0.1 for the cosine transform and 0.00001 for the wavelet transform.
This comparison asks whether a learned family of face images is a more effective prior under limited measurements than sparse descriptions in these fixed transforms. It does not compare the generator against every possible structured reconstruction method.
Require measurements to separate plausible signals
The theoretical development starts from a problem with directly extending sparse-recovery reasoning. Differences between sparse vectors retain a useful sparse structure. Differences between natural images need not themselves resemble natural images. A condition defined only on plausible images would therefore miss the vectors that matter when comparing competing reconstructions.
The authors introduce the Set-Restricted Eigenvalue Condition, abbreviated S/REC:
‖A(x₁ − x₂)‖ ≥ γ‖x₁ − x₂‖ − δ
The vectors x₁ and x₂ belong to a specified set S of admissible signals. A is the measurement matrix. The positive parameter γ controls the amount of separation that measurements preserve. The non-negative parameter δ allows additive slack.
The left side measures how different the observations of the candidates are. The right side depends on how different the candidates themselves are. If the original signals differ substantially, this condition prevents their measurements from becoming arbitrarily similar, except within the permitted slack.
For this method, S is the generator’s range or the range obtained from an allowed representation region. The condition is therefore tailored to the candidate family used by reconstruction. It need not preserve all directions in the full image space.
The slack matters for general generators. Requiring perfect control at every arbitrarily small scale can make the condition too demanding. Allowing δ lets the analysis tolerate local behavior below a chosen resolution. That tolerance appears later as an additional reconstruction-error term.
A useful consequence makes the condition intuitive:
‖x₁ − x₂‖ ≤ (ε₁ + ε₂ + δ)/γ
Here, both x₁ and x₂ lie in S. Their measurement residuals relative to the same observation vector are at most ε₁ and ε₂, respectively. The quantities γ and δ are the S/REC parameters. The inequality says that two admissible candidates fitting the same evidence well cannot be very far apart when the sensing matrix has the required separation property.
This is a statement about ambiguity within S. It does not say that the true signal belongs to S, or that optimization will find a good candidate. Those issues require separate terms and assumptions.
Cover a bounded representation space
The first main route to establishing S/REC assumes the generator is Lipschitz:
‖G(z₁) − G(z₂)‖ ≤ L‖z₁ − z₂‖
The representations z₁ and z₂ are arbitrary inputs to G. The constant L bounds how much the output can change relative to an input change. A generator with this property cannot magnify a small representation difference without limit.
The analysis restricts representations to a Euclidean ball:
Bᵏ(r) = {z ∈ ℝᵏ : ‖z‖ ≤ r}
The set Bᵏ(r) contains the k-dimensional representations whose norm does not exceed radius r. Restricting this region allows the proof to cover it by a finite collection of representative points at a chosen resolution.
The measurement requirement is:
m = Ω((k/α²) log(Lr/δ))
The number m is the required measurement count in the lemma. The representation dimension is k, the Lipschitz constant is L, the allowed radius is r, and δ is the additive resolution parameter. The parameter α, taken below 1 in the statement, determines the multiplicative separation factor.
For a Gaussian matrix with the stated scaling, the resulting condition has separation factor 1 − α and slack δ. The probability guarantee is:
1 − e^(−Ω(α²m))
This is the probability, over the random measurement matrix, that the required set separation holds. The asymptotic notation hides constants. It is not an exact prescription for selecting the smallest workable measurement count in a particular experiment.
The proof’s structure explains the logarithm. A finite cover of the compact representation region induces a cover of the generator outputs because G is Lipschitz. Random projection results preserve the relevant differences among the cover points. A chain of successively finer covers controls the remaining differences between arbitrary outputs and those representatives.
The chaining step is important. Preserving distances on a finite set alone does not automatically establish a statement for every output of a continuous generator. The proof must also control what happens between the selected points. The additive slack records the resolution at which that control is needed.
Use piecewise-linear network structure
The second route exploits networks whose nonlinearities have at most two linear pieces. ReLU and LeakyReLU are the examples named by the authors. The network has d layers, with at most c nodes in each layer.
Its measurement requirement is:
m = Ω(kd log c/α²)
The symbols k, d, and c denote representation dimension, network depth, and the bound on nodes per layer. The parameter α again controls the separation factor. This result gives S/REC over the entire generator range, with no additive slack.
The argument tracks where activations switch between linear pieces. Within a region where those choices stay fixed, the network behaves linearly. The representation space can therefore be divided into regions with simpler output geometry. Counting the regions and applying random subspace-preservation arguments yields the stated measurement dependence.
This result differs from the Lipschitz argument in useful ways. It does not require restricting representation norms to a bounded ball, and its guarantee does not depend on the magnitudes of the network weights. In exchange, it assumes the specified layer structure and piecewise-linear activations.
The paper also bounds the Lipschitz constant of a network:
L = (Mcw_max)ᵈ
Here, M bounds the Lipschitz constant of each activation, c bounds the layer width, w_max bounds the absolute values of weights, and d is the network depth. This follows from bounding each layer and multiplying those bounds through composition. It explains why depth can enter the general measurement analysis through the logarithm of L.
Translate separation into recovery
For the ReLU-network theorem stated in the introduction, the recovery bound is:
‖G(ẑ) − x*‖₂ ≤ 6 min_z* ‖G(z*) − x*‖₂ + 3‖η‖₂ + 2ε
The target is x*. The representation ẑ is returned by approximate residual minimization. The minimization over z* identifies the generator output nearest to the target. The vector η is observation noise. The quantity ε bounds how far the achieved measurement residual is from its optimum.
The first term is representational mismatch. Even ideal reconstruction within the generator range cannot remove it. The second expresses sensitivity to noisy observations. The third accounts for incomplete optimization.
For the bounded Lipschitz setting, the theorem adds a resolution term:
‖G(ẑ) − x*‖₂ ≤ 6 min_{z*: ‖z*‖₂ ≤ r} ‖G(z*) − x*‖₂ + 3‖η‖₂ + 2ε + 2δ
The symbols have the same roles, with the additional restriction that the comparison representation has norm at most r. The parameter δ comes from the allowable slack in distinguishing generator outputs.
These are conditional recovery guarantees. They assume that the reconstruction procedure achieves the specified approximation to the best residual. They do not prove that Adam, gradient descent, or the particular restart schedules always meet that assumption.
The appendix also gives a general set-based result with coefficients expressed through γ. Its proof compares the returned candidate with the admissible signal closest to x*, uses S/REC to control their separation, and bounds the effect of the target’s distance from S. This exposes the general reasoning behind the generator-specific theorems: good measurement fit becomes good recovery when the sensing map separates admissible candidates and does not excessively enlarge the fixed approximation error.
Experiments and results
Evaluation setup and reporting
The main sensing experiments use random Gaussian measurements with additive Gaussian noise. Evaluation is performed on held-out images that were not used to train the generators. This matters because reconstructing training examples would not establish that the learned range is useful for new images from the same domain.
The quantitative target is squared reconstruction error. The main performance figures describe that error per pixel and show 95% confidence intervals. The numerical comparisons discussed below come from the values and operating points the authors explicitly report. The plotted curves support additional qualitative observations, but they do not supply a numerical error value for every setting discussed in the text.
There is a scaling inconsistency worth preserving when interpreting the setup. The theoretical statements use Gaussian matrix entries with variance 1/m. The experimental description instead specifies standard deviation 1/m. These are different specifications. The paper does not reconcile them, so the experimental scaling should not be silently rewritten to match the theorem.
MNIST: useful recovery from few observations
For MNIST reconstruction, the noise is chosen so that the square root of its expected squared norm is 0.1. This describes the overall noise magnitude, instead of the standard deviation of an individual noise coordinate.
The representation search uses Adam with learning rate 0.01. Each reconstruction uses 10 random initializations and 1000 optimization steps per initialization. The retained reconstruction is the one with the best measurement fit. This selection uses observable evidence instead of the unknown target image.
The main reported measurement-efficiency comparison is striking: the generator-based method at 25 measurements matches the Lasso result at 400 measurements. This establishes a substantial advantage at that operating point. It should be read together with the dataset and baseline: the generator has learned handwritten-digit structure, while the baseline encourages pixel sparsity.
The reconstruction curve also shows the limit of that advantage. After 100 measurements, the generator-based method stops making meaningful gains. Lasso continues improving and eventually produces lower error with more than 500 measurements. The generator’s image family is therefore helpful under severe information limits but restrictive when enough measurements become available.
The authors suggest that a generator with representation dimension greater than 20 could use additional measurements more effectively. That is a proposed explanation and direction, instead of a demonstrated capacity comparison. The experiment does not train a series of larger digit generators and establish their respective saturation points.
CelebA: face structure versus sparse transforms
For CelebA, the square root of expected squared noise norm is set to 0.01. Representation optimization uses Adam with learning rate 0.1, with 2 random initializations and 500 updates for each. Again, the selected candidate is determined by measurement fit.
The authors report reasonable reconstructions at 500 measurements. At that setting, the cosine-transform and wavelet Lasso baselines yield blurry images in the qualitative comparison. The generator’s learned restriction supplies face structure that the sparse transforms do not recover as effectively from the same limited observations.
The relevant image dimension is 12288. This establishes the size of the unknown vector without requiring a derived compression ratio. The result concerns reconstruction of the cropped, scaled face images used in the experiment.
As with MNIST, additional measurements eventually expose a generator-imposed ceiling. Beyond 5000 measurements, Lasso achieves better reconstruction. The authors propose a representation dimension greater than 100 as a possible improvement in that regime, but do not establish the effect through a larger-generator experiment.
These results support a conditional engineering conclusion. If measurements are scarce and the deployment images resemble the training domain, the learned prior can be valuable. If high-fidelity recovery is required and measurement availability grows, the generator’s coverage becomes increasingly important.
How much error remains under complete observation?
The paper reports numerical estimates of representation error by reconstructing real test images with the identity measurement matrix. Complete pixel information removes the loss of information due to partial sensing. The remaining error estimates how closely the optimization procedure can place the image within the generator range.
The following comparison places that estimate beside the reported partial-measurement result for MNIST. The settings differ in observation availability, so the chart diagnoses a possible accuracy floor instead of comparing methods under equal sensing conditions.
MNIST test images, per-pixel error under complete and partial observation
Complete observation leaves appreciable error within the generator range.
The numbers
| System or setting | squared error per pixel |
|---|---|
| Generator reconstruction, 100 Gaussian measurements | 0.009 |
| Generator representation estimate, complete observation (this paper) | 0.005 |
The 0.005 value is the average estimated per-pixel representation error. The 0.009 value is the approximate per-pixel reconstruction error reported with partial Gaussian measurements. The complete-observation estimate remains dependent on the optimization procedure finding a sufficiently good representation.
The corresponding CelebA comparison has the same interpretation:
CelebA test images, per-pixel error under complete and partial observation
The complete-observation estimate supports a substantial generator-range limitation.
The numbers
| System or setting | squared error per pixel |
|---|---|
| Generator reconstruction, 500 Gaussian measurements | 0.028 |
| Generator representation estimate, complete observation (this paper) | 0.020 |
Here, 0.020 is the average estimated representation error per pixel, while 0.028 is the approximate reconstruction error reported under partial sensing. These numbers support the authors’ diagnosis that representation contributes substantially to total error. They do not provide an exact decomposition of that error into independent parts.
Structured observations through super-resolution
The authors also use the framework for super-resolution. A low-resolution image is treated as a collection of local averages of the higher-resolution pixels. The reconstruction procedure remains a representation search, but the measurement matrix now implements spatial pooling.
For MNIST, pooling uses 2 × 2 regions with stride 2. This produces a 14 × 14 observation image from the original 28 × 28 image. The reported examples show sharp reconstructions that retain fine digit structure.
For CelebA, pooling uses 4 × 4 regions with stride 4, producing a 16 × 16 observation image from a 64 × 64 target. The examples show the generator filling in face details that are absent from the low-resolution observations.
These are qualitative demonstrations. The text does not supply a numerical super-resolution comparison against the sparse baselines. It also explicitly cautions that the pooling measurement matrix may not have suitable S/REC parameters. The Gaussian sensing theorem therefore cannot simply be attached to these results.
What the aggregate claim means
The abstract characterizes the measurement savings as 5–10 times relative to Lasso at comparable accuracy. The detailed experiments are more informative than treating this as a universal factor. Performance depends on the domain, the generator’s coverage, the number of observations, and the comparison basis.
The paper’s strongest empirical pattern is consistent across its main datasets: learned generators perform well when observations are limited, then stop improving as representational mismatch becomes decisive. The numerical operating points illustrate that pattern; they do not establish that a fixed measurement-saving factor applies to every reconstruction task.
What the ablations show
Remove representation error by generating the target
The clearest controlled analysis begins with a target sampled from the generator itself. The authors draw a representation from its prior, generate the corresponding image, and then treat that output as an unknown signal to be sensed.
This guarantees that the target belongs to the generator range. Any remaining reconstruction error must therefore arise from the observation process, noise, the optimization procedure, or their interaction. The representational mismatch that affects real images has been removed by construction.
The reported reconstructions are almost exact with relatively few measurements for both generators. That supports the claim that the optimization and measurement setup can work well when the target is expressible. It also weakens the explanation that the saturation on real images is caused entirely by a generally ineffective search procedure.
The result does not prove that the same optimizer finds globally best representations for arbitrary real images. Generated targets occupy the generator’s own output family, and the optimization landscape encountered for them may differ from that of external images. The authors use the experiment as evidence for a diagnosis, not as a general convergence theorem.
There is also a distinction between recovering the image and recovering the original representation. The measured reconstruction error concerns the generated output. Without an injectivity assumption, a close image match alone does not uniquely identify the latent coordinates that produced the target. The theory is about signal recovery, which is sufficient for the compressed sensing objective.
Remove missing information through complete observation
The complementary experiment uses real test images and sets the measurement matrix to identity. The optimization procedure now has access to every pixel value.
This removes partial observation as a source of ambiguity. If the best generated image still differs from the target, the generator cannot reproduce that image exactly, the optimizer has failed to locate the closest output, or both. The authors estimate representation error by assuming that optimization remains effective for these real-image cases.
That assumption is explicit in their reasoning. Good performance on generator-produced targets motivates the estimate, but does not certify its exactness. The recovered complete-observation error is therefore an empirical estimate of distance to the generator range, rather than a proven global minimum.
The comparison is nevertheless useful. Substantial error remains even when all image values are available, and its scale is close to the partial-measurement errors reported in the main experiments. This supports representational mismatch as an important bottleneck. It also explains why adding measurements can stop helping: the reconstruction remains confined to the same output family.
Vary the measurement count
The main measurement-count curves function as an analysis of where the prior helps. At low measurement counts, the generator’s restrictions eliminate many possibilities that the measurements alone cannot distinguish. At higher counts, those restrictions prevent some measured details from being reproduced.
The crossover with Lasso matters because it rules out a simple interpretation in which the learned prior is always superior. The baseline is less accurate under scarce measurements but eventually benefits from its ability to move outside the generator range.
This comparison suggests a capacity issue, yet it does not isolate capacity experimentally. Representation dimension, architecture, training quality, and domain coverage can all affect the range. The paper proposes larger generators as a remedy without separating these influences through a controlled architectural study.
Increase the noise while keeping settings fixed
The noise-tolerance experiment first chooses measurement counts where Lasso and the generator-based method have comparable performance. The selected counts are 500 for MNIST and 2500 for CelebA.
The authors then increase the noise while retaining the hyper-parameters for each method. They report that the generator-based reconstruction is more tolerant of this increase. Holding hyper-parameters fixed makes the comparison about the behavior of the chosen configurations as conditions worsen, rather than about the best retuned configuration at every noise level.
This analysis complements the recovery bounds, which explicitly include a noise term. It provides empirical evidence of robustness in the studied settings, but the text does not give exact error values for individual noise levels. It also does not establish the same ordering for arbitrary generators, domains, or tuning procedures.
Compare against direct inverse learning
The appendix explores a different reconstruction strategy on MNIST: learn a mapping directly from measurements to the original image. One version uses a sampled measurement matrix that is then fixed. Another jointly learns the measurement matrix and the reconstruction mapping.
The tested measurement counts are 10, 20, and 30. These end-to-end experiments use noiseless observations. The comparison figure explicitly distinguishes that condition from the noisy observations supplied to the other methods.
The central structural drawback identified by the authors is dependence on the measurement arrangement. A direct inverse network trained for one arrangement must be learned again when that arrangement changes. In their attempted setup with a new random matrix for each image, the network does not learn a useful mapping.
The generator-based procedure has a different organization. It learns the image family once and inserts the actual measurement matrix into the reconstruction objective. This makes changing the observation matrix compatible with reusing the same generator. The appendix does not supply numerical error values in its prose that would support a precise ranking of the direct inverse systems.
What regularization establishes
The authors report that adding the representation penalty improves performance and refer to comparisons with unregularized reconstruction. They select different penalty strengths for the digit and face experiments.
This supports the practical role of respecting the representation prior during search. It does not establish a universal penalty coefficient, nor does it isolate whether the gain comes primarily from improved optimization, better handling of noise, or preference for more typical generator outputs. A full numerical analysis of those alternatives is not reported.
Limitations
The authors’ stated limits
The most direct limitation is the output restriction. Reconstruction must remain within the generator’s range, even when the measurements favor details outside it. The authors identify this as the reason their method eventually stops benefiting from additional observations.
Their controlled experiments suggest that representation error is the largest remaining contributor in the studied settings. Their proposed response is to use more flexible generators as the measurement count increases. They leave open how to support this adaptation more economically than training separate generators of different sizes.
The optimization guarantee is also conditional. The theoretical statements assume an approximately best measurement fit. The objective is non-convex, and the paper does not prove that gradient-based search reaches the required solution. Random restarts and successful generated-target experiments provide practical support, but not a general algorithmic guarantee.
For the general Lipschitz result, the authors require a bounded representation region and allow an additive slack term. They argue that these are mild conditions under the priors and scales they discuss, but the conditions remain part of the theorem.
The super-resolution application has a separate stated qualification. Its structured averaging operator may not satisfy the set-separation condition with useful parameters. The favorable examples therefore demonstrate empirical applicability without establishing the same guarantee as random Gaussian sensing.
Limits visible in the experimental scope
The empirical evidence covers a digit dataset and a celebrity-face dataset, with a variational autoencoder and a DCGAN respectively. This gives evidence across different generator types and image domains. It does not establish performance for arbitrary natural images or for the medical and physical sensing applications used to motivate the problem.
The generators are trained on domain-specific examples. The resulting advantage should therefore be understood as a benefit of learned prior information as well as of the reconstruction procedure. The sparse baselines encode their assumptions through pixels or fixed transforms. The paper does not equalize all sources of prior knowledge, training effort, or computational expense.
The tests use held-out images, which is an important protection against evaluating only familiar training examples. However, the text does not describe a separate evaluation of substantial domain shift. It therefore cannot establish how the method behaves when the unknown signal differs materially from the training distribution.
The comparison also uses particular Lasso settings. The authors specify the shrinkage coefficients, but do not report an exhaustive optimization of every baseline across measurement counts and noise conditions. The observed advantage belongs to the tested configurations.
Limits of the error diagnosis
The representation-error estimates depend on optimization. With complete observations, the procedure finds an output that is close to the target, but the experiment does not certify that no closer generator output exists.
The generated-target test supports the claim that optimization can be effective, yet it cannot remove this uncertainty for all real targets. A generator output is guaranteed expressible; an external image may induce different optimization behavior. The authors acknowledge the assumption needed to transfer the intuition.
Nor do the error categories form a measured additive accounting. Representation, information loss, noise, and optimization interact. The experiments remove selected obstacles and compare resulting behavior. They do not assign an exact numerical share of total error to each source.
The theoretical ε term requires similar care. The achieved residual is observable and can upper-bound an absolute residual suboptimality because the optimum cannot be negative. But a reported residual is not, on its own, a direct measurement of the unknown gap to the optimum. It is also affected by noise and representational mismatch.
What the metrics cannot settle
Squared pixel error is a clear target for signal recovery, but it does not answer every question about image usefulness. The qualitative face examples show plausible detail, while the quantitative metric measures pixel agreement. A realistic-looking detail need not be the true detail that generated the observations.
The paper’s theory addresses proximity under Euclidean distance when its assumptions hold. It does not establish task-specific preservation of identity, diagnostic content, or other downstream properties. Such evaluations are outside the reported experiments.
The super-resolution examples are particularly dependent on this distinction. Filling in missing detail can improve appearance, but the missing information is supplied through the prior. Qualitative success does not prove that every inferred feature matches the original.
What the complexity results do not promise
The measurement bounds describe asymptotic dependence on generator properties. They do not provide an exact operational threshold for a trained network. Hidden constants, the effective geometry of the range, and the optimizer’s behavior all remain relevant in practice.
Similarly, reducing measurement count does not automatically establish lower total cost. Generator training occurs before reconstruction, and representation search uses repeated optimization. The paper specifies restart and update schedules but does not provide a complete timing or deployment-cost analysis.
The claimed applicability beyond Gaussian matrices rests on a distributional random-projection property. It should not be read as a guarantee for any convenient structured sensing matrix. The explicit caution about super-resolution illustrates that boundary.
Finally, the paper suggests that improvements in generators should improve reconstruction within this framework. That is a plausible research direction supported by the importance of representation error. It is not a demonstrated rule that every increase in generator complexity improves sensing: optimization and distinguishability must remain adequate as the candidate family changes.
What came after
Denoising Diffusion Restoration Models is a later citing work from 2022. Its citation places it in the subsequent discussion of learned generative approaches to restoration.
The available citation information does not establish which reconstruction procedure it uses, how it changes the earlier formulation, or what empirical results it obtains. It would therefore be unwarranted to attribute a particular optimization strategy, measurement guarantee, or performance improvement to it on that basis alone.
The earlier paper’s contribution to that continuing line of inquiry is clear on its own terms. It provides a way to combine a pretrained generator with an observation operator, a condition under which measurements distinguish its candidate outputs, and experiments separating representational limits from failures of sensing or search.
Those contributions leave several concrete questions open for later investigation: how to broaden the admissible signal family without making reconstruction unreliable, how to obtain stronger optimization guarantees, and how to establish recovery under measurement operators imposed by real applications. The paper makes progress on the relationship between learned structure and limited observations while keeping those questions unresolved.
Cite
Cite as Ashish Bora, Ajil Jalal, Eric Price and Alexandros G. Dimakis. 2017. Compressed Sensing using Generative Models. arXiv (Cornell University).
@misc{bora2017compressed,
title = {{Compressed Sensing using Generative Models}},
author = {Ashish Bora, Ajil Jalal, Eric Price and Alexandros G. Dimakis},
year = {2017},
doi = {10.48550/arxiv.1703.03208},
eprint = {1703.03208},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1703.03208}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bora-2017-compressed-sensing-generative-models/
References
- Alekh Agarwal, Sahand Negahban, and Martin J Wainwright. Fast global convergence rates of gradient methods for high-dimensional statistical recovery. In Advances in Neural Information Processing Systems, pages 37–45, 2010. OpenAlex ↗ · Scholar ↗
- Nir Ailon and Bernard Chazelle. The fast johnson–lindenstrauss transform and approximate nearest neighbors. SIAM Journal on Computing, 39(1):302–322, 2009. OpenAlex ↗ · Scholar ↗
- Francis Bach, Rodolphe Jenatton, Julien Mairal, Guillaume Obozinski, et al. Optimization with sparsity-inducing penalties. Foundations and Trends® in Machine Learning, 4(1):1–106, 2012. OpenAlex ↗ · Scholar ↗
- Richard G Baraniuk, Volkan Cevher, Marco F Duarte, and Chinmay Hegde. Model-based compressive sensing. IEEE Transactions on Information Theory, 56(4):1982–2001, 2010. OpenAlex ↗ · Scholar ↗
- Richard G Baraniuk and Michael B Wakin. Random projections of smooth manifolds. Foundations of computational mathematics, 9(1):51–77, 2009. OpenAlex ↗ · Scholar ↗
- Peter J Bickel, Ya'acov Ritov, and Alexandre B Tsybakov. Simultaneous analysis of lasso and dantzig selector. The Annals of Statistics, pages 1705–1732, 2009. OpenAlex ↗ · Scholar ↗
- Emmanuel J Candes, Justin K Romberg, and Terence Tao. Stable signal recovery from incomplete and inaccurate measurements. Communications on pure and applied mathematics, 59(8):1207–1223, 2006. OpenAlex ↗ · Scholar ↗
- Guang-Hong Chen, Jie Tang, and Shuai Leng. Prior image constrained compressed sensing (piccs): a method to accurately reconstruct dynamic ct images from highly undersampled projection data sets. Medical physics, 35(2):660–663, 2008. OpenAlex ↗ · Scholar ↗
- Guangliang Chen and Deanna Needell. Compressed sensing and dictionary learning. Proceedings of Symposia in Applied Mathematics, 73, 2016. OpenAlex ↗ · Scholar ↗
- A. Cohen, W. Dahmen, and R. DeVore. Compressed sensing and best k-term approximation. J. Amer. Math. Soc, 22(1):211–231, 2009. OpenAlex ↗ · Scholar ↗
- Antonia Creswell and Anil Anthony Bharath. Inverting the generator of a generative adversarial network. arXiv preprint arXiv:1611.05644, 2016. OpenAlex ↗ · Scholar ↗
- Jeff Donahue, Philipp Krähenbühl, and Trevor Darrell. Adversarial feature learning. arXiv preprint arXiv:1605.09782, 2016. OpenAlex ↗ · Scholar ↗
- Chao Dong, Chen Change Loy, Kaiming He, and Xiaoou Tang. Image super-resolution using deep convolutional networks. IEEE transactions on pattern analysis and machine intelligence, 38(2):295–307, 2016. OpenAlex ↗ · Scholar ↗
- David L Donoho. Compressed sensing. IEEE Transactions on information theory, 52(4):1289–1306, 2006. OpenAlex ↗ · Scholar ↗
- Marco F Duarte, Mark A Davenport, Dharmpal Takbar, Jason N Laska, Ting Sun, Kevin F Kelly, and Richard G Baraniuk. Single-pixel imaging via compressive sampling. IEEE signal processing magazine, 25(2):83–91, 2008. OpenAlex ↗ · Scholar ↗
- Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Alex Lamb, Martin Arjovsky, Olivier Mastropietro, and Aaron Courville. Adversarially learned inference. arXiv preprint arXiv:1606.00704, 2016. OpenAlex ↗ · Scholar ↗
- Rina Foygel and Lester Mackey. Corrupted sensing: Novel guarantees for separating structured signals. IEEE Transactions on Information Theory, 60(2):1223–1247, 2014. OpenAlex ↗ · Scholar ↗
- Anna C. Gilbert, Yi Zhang, Kibok Lee, Yuting Zhang, and Honglak Lee. Towards understanding the invertibility of convolutional neural networks. 2017. OpenAlex ↗ · Scholar ↗
- Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. OpenAlex ↗ · Scholar ↗
- Chinmay Hegde and Richard G Baraniuk. Signal recovery on incoherent manifolds. IEEE Transactions on Information Theory, 58(12):7204–7214, 2012. OpenAlex ↗ · Scholar ↗
- Chinmay Hegde, Marco F Duarte, and Volkan Cevher. Compressive sensing recovery of spike trains using a structured sparsity model. In SPARS'09-Signal Processing with Adaptive Sparse Structured Representations, 2009. OpenAlex ↗ · Scholar ↗
- Chinmay Hegde, Piotr Indyk, and Ludwig Schmidt. A nearly-linear time framework for graph-structured sparsity. In Proceedings of the 32nd International Conference on Machine Learning (ICML-15), pages 928–937, 2015. OpenAlex ↗ · Scholar ↗
- Jiwon Kim, Jung Kwon Lee, and Kyoung Mu Lee. Accurate image super-resolution using very deep convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1646–1654, 2016. OpenAlex ↗ · Scholar ↗
- Taehoon Kim. A tensorflow implementation of “deep convolutional generative adversarial networks". https://github.com/carpedm20/DCGAN-tensorflow, 2017. OpenAlex ↗ · Scholar ↗
- Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. our card
- Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. our card
- Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. OpenAlex ↗ · Scholar ↗
- Zachary C Lipton and Subarna Tripathi. Precise recovery of latent vectors from generative adversarial networks. arXiv preprint arXiv:1702.04782, 2017. OpenAlex ↗ · Scholar ↗
- Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pages 3730–3738, 2015. OpenAlex ↗ · Scholar ↗
- Po-Ling Loh and Martin J Wainwright. High-dimensional regression with noisy and missing data: Provable guarantees with non-convexity. In Advances in Neural Information Processing Systems, pages 2726–2734, 2011. OpenAlex ↗ · Scholar ↗
- Michael Lustig, David Donoho, and John M Pauly. Sparse mri: The application of compressed sensing for rapid mr imaging. Magnetic resonance in medicine, 58(6):1182–1195, 2007. OpenAlex ↗ · Scholar ↗
- Jiří Matoušek. Lectures on discrete geometry, volume 212. Springer Science & Business Media, 2002. OpenAlex ↗ · Scholar ↗
- Sahand Negahban, Bin Yu, Martin J Wainwright, and Pradeep K Ravikumar. A unified framework for high-dimensional analysis of $m$-estimators with decomposable regularizers. In Advances in Neural Information Processing Systems, pages 1348–1356, 2009. OpenAlex ↗ · Scholar ↗
- Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. our card
- Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society. Series B (Methodological), pages 267–288, 1996. OpenAlex ↗ · Scholar ↗
- Roman Vershynin. Introduction to the non-asymptotic analysis of random matrices. arXiv preprint arXiv:1011.3027, 2010. OpenAlex ↗ · Scholar ↗
- Jianchao Yang, John Wright, Thomas S Huang, and Yi Ma. Image super-resolution via sparse representation. IEEE transactions on image processing, 19(11):2861–2873, 2010. OpenAlex ↗ · Scholar ↗
- Raymond Yeh, Chen Chen, Teck Yian Lim, Mark Hasegawa-Johnson, and Minh N Do. Semantic image inpainting with perceptual and contextual losses. arXiv preprint arXiv:1607.07539, 2016. OpenAlex ↗ · Scholar ↗