TL;DR
When reconstructing an image from heavily incomplete data—like a rapid MRI scan—knowing what you are looking for changes where you should look. This paper brings text-prompted generative models (like Stable Diffusion) into compressed sensing, treating text prompts as active design knobs that guide both which measurements to collect and how to reconstruct the final image. The authors prove mathematically and show experimentally what happens when your sensing prompt and recovery prompt align—and the exact penalty you pay when they don't.
What Problem Does This Paper Address?
Compressed sensing is the art of reconstructing a full signal (like a high-res image) from just a tiny fraction of measurements (like a few Fourier frequencies in an MRI). Classically, this works by assuming the signal is "sparse" (mostly zeros in some mathematical basis). More recently, generative compressed sensing replaced sparsity with a pretrained generative model: instead of looking for a sparse image, we look for an image that our generator knows how to make.
However, existing theory mostly relies on two unrealistic crutches: purely random Gaussian measurements (which physical hardware usually can't take) and unconditional generators that ignore helpful context—like patient metadata, anatomy, or scene type.
If you use a conditional (prompted) generator, you narrow down the space of plausible images, which should let you design smarter, targeted measurement strategies (active learning). But this opens a new can of worms: what if the prompt you use while collecting data doesn't match the prompt you use later to reconstruct the image, or neither quite matches the true object? Understanding this three-way tug-of-war is the core problem this paper solves.
Methods
The authors adapt Christoffel sampling—an active learning technique that calculates which Fourier frequencies best distinguish between different signals in a model's repertoire—to prompt-conditioned generators.
While standard Christoffel sampling assumes a single fixed model, the authors split conditioning into three distinct roles:
- Sampling prompt ($c_s$): Used at acquisition time to build the probability distribution over which Fourier frequencies to measure.
- Recovery prompt ($c_r$): Used at inference time to constrain the generator while optimizing the latent vector to match the measurements.
- True-signal prompt ($c_*$): The prompt that actually describes the target image (if it lives inside the generator's world).
To bind these together mathematically, they introduce a single novel metric: the prompt compatibility factor, $\Lambda(c_1, c_2, c_3)$. By plugging different combinations of prompts into $\Lambda$, they derive sample complexity bounds (how many measurements you need) for ReLU and Lipschitz networks, alongside error bounds for the final image reconstruction. Finally, they test this framework in the wild using Stable Diffusion 1.5 (with 20 DDIM steps) to recover $512 \times 512$ color images from subsampled Fourier measurements.
Datasets
Rather than training models from scratch or introducing a large benchmark dataset, the authors use pretrained Stable Diffusion 1.5 and evaluate image recovery on three targeted test images:
- In-range prompt-matched: A synthetic image generated by SD15 using the prompt
"sunset beach". - In-range prompt-mismatched: A synthetic image generated by SD15 using
"sunset over a sandy coast"(which differs from the prompts tested during sampling/recovery). - Out-of-range: A real-world photograph of a sunset beach scene from an external source, lying outside the generator's exact range.
Key Insights and Ideas
- One metric rules both sample count and error: Evaluating the compatibility factor as $\Lambda(c_r, c_r, c_s)$ tells you how many extra samples you need when your sampling prompt ($c_s$) misses frequencies required by your recovery prompt ($c_r$). Evaluating it as $\Lambda(c_*, c_r, c_s)$ tells you how much the approximation error gets amplified when the true image ($c_*$) doesn't match your recovery class.
- Prompts physically reshape where to look in frequency space: As shown in Figure 1a, prompting Stable Diffusion with
"cat"versus"sunset beach"visibly alters the optimal Fourier sampling distribution. Both favor low frequencies, but they distribute probability mass along different structural directions. - Measurement fit $\neq$ perceptual beauty: Optimizing the mathematically "correct" weighted least-squares objective with Christoffel sampling nails adherence to the raw measurements, but simple heuristic low-frequency sampling often produces images that look slightly cleaner to human-aligned perceptual metrics.
Key Results
- Mismatch penalties are steep: In empirical tests across four prompts (
"","daytime beach","sunset beach","cat"), matching the sampling and recovery prompts minimized $\widetilde{\Lambda}$ along the heatmap diagonal (values of 12–16). Mismatching—like sampling for a"cat"and recovering with an empty prompt—spiked the sample complexity factor to 354, or up to 1261 between"sunset beach"and"cat"(Figure 1b). - Huge gains over uniform sampling: Across sampling ratios from 1% to 5% of total frequencies on the out-of-range real photo, empirical Christoffel distributions achieved mean perceptual error (LPIPS, lower is better) between 0.565 and 0.595 and weighted measurement loss around 52.2–58.6. Uniform random sampling completely failed to recover recognizable scenes, scoring 0.853 LPIPS and 511.5 weighted loss.
- Generic low-frequency heuristics remain tough to beat perceptually: An inverse-square variable-density baseline (which blindly favors low frequencies) slightly edged out Christoffel sampling on perceptual LPIPS (0.538 out-of-range; 0.343 vs. 0.403 in-range), even though Christoffel sampling achieved much tighter fidelity to the actual measurements (weighted loss of 22.6 vs. 39.2 in-range).
Limitations and Future Work
- Theory-practice gap: Viewing a 20-step Stable Diffusion pipeline as a Lipschitz network is technically valid on bounded inputs, but its effective Lipschitz constant is massive and sensitive to hyperparameters like Classifier-Free Guidance (CFG). Notably, the authors used CFG 7.5 to estimate sampling distributions and CFG 1 for recovery, meaning even "prompt-matched" experiments used slightly different underlying generators.
- Optimization headaches: The theoretically motivated weighted loss objective can produce noisier reconstructions than unweighted objectives, suggesting a tricky interplay between sampling weights and gradient-based latent optimization.
- Open tuning knobs: Future work includes exploring alternative divergence metrics (like KL or Rényi divergence) instead of worst-case max-divergence for $\Lambda$, optimizing the regularization parameter ($\zeta = 1/2$), jointly tuning CFG scales, and designing robust prompts when the target image is completely unknown.
Summary updated