LATINO-PRO: LAtent consisTency INverse sOlver with PRompt Optimization

Alessio Spagnoletti, Jean Prost, Andrés Almansa, Nicolas Papadakis, Marcelo Pereyra

TL;DR

This paper introduces LATINO-PRO, a novel framework for solving inverse problems in imaging using latent diffusion models (LDMs). It achieves state-of-the-art results with significantly fewer computational resources by leveraging fast latent consistency models (LCMs) and introducing an automatic prompt optimization technique.

What Problem Does This Paper Address?

Modern imaging techniques often face "inverse problems," where we try to reconstruct an image from incomplete or noisy measurements (e.g., medical scans, blurry photos). While powerful generative models like Latent Diffusion Models (LDMs) can act as excellent "priors" to guide this reconstruction, using them effectively in a "Plug & Play" (PnP) manner has been challenging. Existing methods are often computationally expensive, requiring thousands of neural function evaluations (NFEs), and struggle to leverage the text-conditioning capabilities of LDMs for optimal reconstruction. Furthermore, finding the right text prompt to guide the reconstruction is difficult and crucial for accurate results.

Methods

The paper introduces two main contributions:

  • LATINO (LAtent consisTency INverse sOlver): This is a new PnP framework that uses pre-trained text-to-image LCMs to sample from the posterior distribution of an image given measurements and a text prompt. It's designed to be fast (few NFEs), memory-efficient (no auto-grad required), and capable of handling high-resolution images. LATINO achieves this by adapting a Langevin diffusion process and using a novel PnP approach that leverages a stochastic auto-encoder derived from LCMs, rather than traditional denoisers.
  • LATINO-PRO (LATINO with PRompt Optimization): This extends LATINO by introducing an automatic prompt optimization method. It uses a stochastic approximation proximal gradient (SAPG) scheme to simultaneously optimize the text prompt and sample from the posterior distribution. This allows the model to correct incomplete or misleading prompts, leading to improved reconstruction quality.

Datasets

The paper evaluates its methods on two high-quality datasets:

  • FFHQ: Used in both 1024x1024 and 512x512 resolutions.
  • AFHQ: Used in its 512x512 version (dogs and cats subsets).

The authors also mention using the first 1k test images from FFHQ and validation sets from AFHQ, consistent with prior work.

Key Insights and Ideas

  • LCMs as PnP Priors: The paper demonstrates that fast LCMs, which are distilled versions of LDMs, can be effectively used as priors in PnP inverse solvers, offering a significant speedup over traditional diffusion models.
  • Stochastic Auto-Encoder for LCMs: Instead of relying on denoisers, LATINO uses a stochastic auto-encoder derived from LCMs. This is a novel approach for integrating generative models into inverse problem solvers.
  • Prompt Optimization is Crucial: The LATINO-PRO framework highlights that optimizing the text prompt is not just about aesthetics but is essential for achieving accurate reconstructions, especially when the initial prompt is imperfect.
  • Balancing Speed and Quality: The work shows a clear trade-off between the number of neural function evaluations (NFEs) and reconstruction quality, with LATINO-PRO achieving excellent results with dramatically fewer NFEs than existing methods.

Key Results

  • Speed: LATINO-PRO achieves state-of-the-art (SOTA) quality in as few as 8 neural function evaluations (NFEs) for some tasks, a massive reduction compared to methods requiring thousands of NFEs (e.g., P2L at 2000 NFEs).
  • Quality: LATINO-PRO delivers comparable or superior PSNR and LPIPS metrics to existing SOTA methods on tasks like Gaussian deblurring and super-resolution. It particularly excels on the AFHQ dataset.
  • Efficiency: The method is significantly more memory and computationally efficient, requiring only around 13 GB of GPU memory for LATINO (with the DMD2 prior taking 10.7 GB).
  • Prompt Optimization Impact: LATINO-PRO, with its prompt optimization, outperforms LATINO by a significant margin, demonstrating the importance of prompt calibration.

Limitations and Future Work

  • Theoretical Guarantees: While the paper proposes a method that is theoretically grounded, extending the convergence guarantees of the SAPG scheme to the specific context of CM-based priors is a main perspective for future work.
  • Automatic Parameter Tuning: The authors suggest developing strategies for automatically adjusting the parameters of LATINO and LATINO-PRO as a future research direction.
  • Prompt Embedding Interpretation: Exploring strategies for decoding the prompt embedding to reveal the optimized text prompt is another avenue for future research.
  • Non-Asymptotic Convergence: Analyzing the non-asymptotic convergence results for LATINO and LATINO-PRO is also highlighted as a future research goal.

Summary updated

BibTeX
@inproceedings{spagnoletti2025latino,
  author = {Alessio Spagnoletti and Jean Prost and Andrés Almansa and Nicolas Papadakis and Marcelo Pereyra},
  title = {{LATINO-PRO: LAtent consisTency INverse sOlver with PRompt Optimization}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure