Abstract
We propose PnP-HVAE, a framework that regularizes ill-posed inverse problems using deep hierarchical variational autoencoders (HVAEs) as image priors. By synthesizing the advantages of denoiser-based Plug-and-Play (PnP) approaches and generative model-based restoration, our method achieves high-quality results with strong convergence guarantees. Unlike many generative priors restricted to specific domains, the proposed PnP-HVAE, utilizing a novel PatchVDVAE architecture, generalizes to natural images of arbitrary resolution.
Introduction
Recovering a clean image from a degraded observation—the "inverse problem"—is a fundamental challenge in computer vision. Because these problems are ill-posed, effective regularization through image priors is essential. While supervised deep learning methods offer speed, they lack flexibility across different degradation tasks. Conversely, generative models like GANs and VAEs offer flexibility but often suffer from unstable optimization in latent spaces. PnP-HVAE addresses these limitations by leveraging the hierarchical structure of VAEs to provide a stable, efficient, and expressive prior for image restoration.
Methodology: The PnP-HVAE Framework
The core of our approach is the PnP-HVAE algorithm, which treats image restoration as a joint optimization of the image $x$ and its latent representation $z$.
Alternate Optimization and Greedy Encoding
Instead of traditional backpropagation-based latent optimization, which is computationally expensive and prone to local minima, PnP-HVAE employs an alternate optimization scheme. A key innovation is the Greedy Hierarchical Encoding. By utilizing the HVAE’s own encoder in a coarse-to-fine feed-forward pass, we can efficiently approximate the posterior distribution. This replaces slow iterative optimization with fast inference, significantly reducing restoration time.
PatchVDVAE for Scalability
To overcome the fixed-resolution constraints of standard VAEs, we introduced PatchVDVAE. This fully convolutional architecture is trained on small image patches from the DIV2K and Flickr2K datasets. This design allows the model to be applied to images of any dimension, making it a versatile tool for general natural image restoration.
Key Insights
Stability and Convergence
A major advantage of PnP-HVAE is its numerical stability. As shown in the convergence plots, while standard optimizers like Adam may reach lower energy states, they often exhibit oscillations. PnP-HVAE converges rapidly and stably to a fixed point. This stability is theoretically supported by the "contraction" property of the HVAE reconstruction; empirically, the model maps noisy inputs closer together in the latent space, facilitating convergence.
The Role of Hierarchy
The hierarchical depth of the VAE is crucial. Increasing the number of latent groups ($L$) allows the model to capture a wider spectrum of image features, from global structures to fine textures, leading to superior regularization compared to shallow models.
Experimental Results
We evaluated PnP-HVAE on face restoration (CelebA) and natural image deblurring (BSD).
Qualitative Performance
Visual comparisons demonstrate that PnP-HVAE remains more faithful to the original observation than GAN-based methods, which can sometimes "hallucinate" incorrect features.
Quantitative and Efficiency Gains
- Speed: PnP-HVAE is highly efficient, completing face restoration tasks in 10-15 seconds, compared to over 140 seconds for diffusion-based methods like DPS.
- Accuracy: On face deblurring, PnP-HVAE achieved a PSNR of 30.40 dB, significantly outperforming ILO (29.01 dB) and DPS (28.70 dB).
- Generalization: The PatchVDVAE variant proved competitive with specialized PnP denoisers on natural image benchmarks, particularly in high-noise environments.
Conclusion and Future Work
PnP-HVAE successfully bridges the gap between the expressiveness of deep generative priors and the mathematical rigor of PnP optimization. While current results are state-of-the-art, future work will focus on automating hyperparameter selection (such as the temperature $\tau$) and explicitly enforcing volume-preserving constraints in the HVAE architecture to further strengthen theoretical convergence guarantees.
Summary updated