Regularization by Texts for Latent Diffusion Inverse Solvers

Jeongsol Kim, Geon Yeong Park, Hyungjin Chung, Jong Chul Ye

TL;DR

TReg is a novel latent diffusion inverse solver that uses textual descriptions as a powerful "semantic anchor" to resolve ambiguities in ill-posed image reconstruction tasks. By combining latent optimization with a new technique called adaptive negation, TReg effectively narrows down the possible solutions to those that match human preconceptions, outperforming existing methods in both accuracy and computational efficiency.

What Problem Does This Paper Address?

In computer vision, an "inverse problem" involves recovering a high-quality image from a degraded measurement—think super-resolution, deblurring, or inpainting. These problems are notoriously ill-posed, meaning that for a single blurry or masked image, there are infinitely many sharp images that could have produced it.

While modern Diffusion Inverse Solvers (DIS) use generative models as priors to pick "likely" images, they often struggle when the measurement is severely degraded or when the system has intrinsic symmetries. For example, in Fourier phase retrieval, the physics of the measurement makes it impossible to distinguish between an image and its rotated or flipped version based on data alone. Standard solvers might oscillate between these possibilities or produce a blurry average. Humans, however, use "perceptual biases"—we know what a face should look like—to resolve these ties. This paper aims to give AI that same linguistic "preconception" to guide reconstruction.

Methods

The authors introduce TReg (Regularization by Text), which operates within the latent space of a pre-trained Latent Diffusion Model (LDM) like Stable Diffusion. The method consists of two primary innovations:

  1. Text-Conditional Latent Optimization: During the reverse diffusion process (where noise is turned back into an image), TReg treats the text prompt as a "pivot." It optimizes the latent representation at each step to ensure the resulting image is not only consistent with the physical measurement (e.g., the blur) but also aligns semantically with the text prompt (e.g., "a photography of a face").
  2. Adaptive Negation: Simply "cranking up" text guidance often introduces noise or artifacts. To fix this, the authors propose a dynamic null-text optimization. It updates the "null-text" embedding to actively exclude concepts already captured by the current latent state. This "adaptive negation" ensures that the textual guidance remains sharp and relevant throughout the sampling process without over-saturating the image.

Crucially, TReg is zero-shot; it requires no task-specific training and works with off-the-shelf pre-trained models.

Datasets

The researchers evaluated TReg across a wide variety of domains to prove its robustness:

  • Food-101: Used for quantitative benchmarks due to its complex, ambiguous patterns.
  • ImageNet: A standard large-scale dataset for general image reconstruction.
  • AFHQ (Cat/Dog): For animal face super-resolution and inpainting.
  • FFHQ: High-quality human face dataset.
  • LHQ: Landscape dataset for diverse environmental scenes.

Key Insights and Ideas

  • Text as a Symmetry Breaker: The most striking insight is TReg's ability to solve Fourier phase retrieval. By providing a prompt like "photography of face," the model can "choose" the correct orientation that the physical data alone cannot distinguish.
  • The "Pivot" Concept: Instead of just using text as a soft hint, TReg uses the text-conditioned denoised estimate as a mathematical pivot in a proximal optimization framework. This keeps the reconstruction trajectory from wandering into "hallucination" territory.
  • Efficiency via Latent Space: By performing the heavy lifting (optimization) in the low-dimensional latent space and using accelerated methods like Conjugate Gradient (CG), TReg is significantly faster than previous text-guided solvers that require backpropagating through the entire U-Net.

Key Results

Diverse applications of TReg including super-resolution, deblurring, inpainting, and non-linear phase retrieval.
  • Semantic Flexibility: TReg can reconstruct images based on "perceptually plausible" prompts even if they differ from the original ground truth. As shown above, TReg can turn a heavily blurred food measurement into distinctly different meals like "Tacos" or "Waffles", or change a masked cat's eyes to "Blue" or "Green" based entirely on the text prompt. It can also apply stylistic priors, such as rendering a super-resolved landscape as a "Monet" or "Watercolor."
  • Superior Accuracy: In tasks like 16x super-resolution and heavy Gaussian deblurring, TReg achieved higher PSNR (Peak Signal-to-Noise Ratio) and significantly lower FID (Fréchet Inception Distance) than baselines like PSLD and P2L. For instance, on Food-101 "ice cream" deblurring, TReg improved FID from 213.6 (PSLD) to 120.6.
  • Solving Non-linear Problems: In complex non-linear tasks like Fourier phase retrieval, baseline methods like LDPS often produce distorted, overlapping artifacts. TReg successfully resolves these symmetries to produce clear, accurate faces.
  • Speedup: TReg is remarkably efficient. For a standard linear inverse problem, TReg's wall-clock runtime was approximately 0.26 minutes, compared to 1.47 minutes for PSLD and 2.00 minutes for P2L.

Limitations and Future Work

The authors acknowledge that TReg’s success is contingent on the informativeness of the text prompt. If a prompt is too vague (e.g., just "a photography") or if the image has an extremely complex, colorful background, the text might not provide enough constraint to fully resolve symmetries.

Future work could involve automatically generating these informative prompts from the degraded measurements themselves, further automating the "human-in-the-loop" aspect of the current solver.

Summary updated

BibTeX
@inproceedings{kim2025regularization,
  author = {Jeongsol Kim and Geon Yeong Park and Hyungjin Chung and Jong Chul Ye},
  title = {{Regularization by Texts for Latent Diffusion Inverse Solvers}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=TtUh0TOlGX},
}
Figure