[Paper Review] Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation
This paper proposes Deep Generative Prior (DGP), a method that leverages a pre-trained GAN as a universal image prior for versatile image restoration and manipulation. By fine-tuning the generator on-the-fly with discriminator-guided feature matching, DGP enables faithful reconstruction of missing semantics—such as color, resolution, and texture—while preserving natural image manifold structure, outperforming existing GAN-inversion and DIP methods in restoration and manipulation tasks.
Learning a good image prior is a long-term goal for image restoration and manipulation. While existing methods like deep image prior (DIP) capture low-level image statistics, there are still gaps toward an image prior that captures rich image semantics including color, spatial coherence, textures, and high-level concepts. This work presents an effective way to exploit the image prior captured by a generative adversarial network (GAN) trained on large-scale natural images. As shown in Fig.1, the deep generative prior (DGP) provides compelling results to restore missing semantics, e.g., color, patch, resolution, of various degraded images. It also enables diverse image manipulation including random jittering, image morphing, and category transfer. Such highly flexible restoration and manipulation are made possible through relaxing the assumption of existing GAN-inversion methods, which tend to fix the generator. Notably, we allow the generator to be fine-tuned on-the-fly in a progressive manner regularized by feature distance obtained by the discriminator in GAN. We show that these easy-to-implement and practical changes help preserve the reconstruction to remain in the manifold of nature image, and thus lead to more precise and faithful reconstruction for real images. Code is available at https://github.com/XingangPan/deep-generative-prior.
Motivation & Objective
- To address the limitations of existing image priors, such as DIP and SinGAN, which are restricted to single-image or low-level statistics, by leveraging a pre-trained GAN’s rich, high-level image knowledge.
- To overcome the failure of conventional GAN-inversion methods in reconstructing complex real images due to fixed generators and mode collapse.
- To enable precise, faithful image restoration of degraded inputs (e.g., grayscale, low-resolution, missing patches) by exploiting the GAN’s learned natural image manifold.
- To extend the utility of GANs beyond generation to enable diverse, photo-realistic image manipulations such as random jittering, morphing, and category transfer.
- To develop a practical and flexible framework that maintains reconstruction fidelity while allowing dynamic manipulation of real images through latent space operations.
Proposed method
- Fine-tune the generator of a pre-trained GAN on-the-fly during reconstruction, rather than fixing it as in standard GAN-inversion.
- Use a progressive reconstruction strategy that gradually updates the generator and latent code, reducing 'information lingering' artifacts.
- Regularize the optimization using feature distance from the discriminator’s intermediate layers to preserve natural image statistics and maintain manifold consistency.
- Employ a combination of perceptual loss (VGG-based) and discriminator feature matching loss to improve reconstruction quality and semantic fidelity.
- Enable image manipulation by perturbing the optimized latent code $\mathbf{z}^*$, allowing natural variations such as pose and size shifts.
- Perform image morphing via linear interpolation of both latent codes $\mathbf{z}$ and generator parameters $\bm{\theta}$, enabling smooth, realistic transitions between real images.
Experimental results
Research questions
- RQ1Can a pre-trained GAN serve as a universal image prior for restoring missing semantics (e.g., color, resolution, texture) in degraded real images?
- RQ2How can GAN-inversion be improved to reconstruct complex, real-world images faithfully when the generator is fixed?
- RQ3Can on-the-fly generator fine-tuning with discriminator guidance preserve the natural image manifold better than fixed-generator inversion?
- RQ4To what extent can DGP enable diverse, photo-realistic image manipulations such as random jittering, morphing, and category transfer?
- RQ5How does DGP compare quantitatively and qualitatively to DIP and DefenseGAN in image restoration and adversarial defense tasks?
Key findings
- DGP achieves superior image restoration on grayscale, low-resolution, and inpainted images by reconstructing missing semantics with high fidelity, outperforming conventional GAN-inversion and DIP.
- The progressive fine-tuning strategy with discriminator feature matching effectively reduces 'information lingering' artifacts, leading to sharper and more natural reconstructions.
- DGP enables realistic random jittering by perturbing the optimized latent code $\mathbf{z}^*$, producing natural image variations in pose, action, and scale, unlike SinGAN which distorts object concepts.
- Image morphing using interpolated latent codes and generator parameters produces visually realistic transitions between real images, achieving an Inception Score (IS) of 59.9 on ImageNet validation pairs.
- DGP significantly improves adversarial defense performance, correctly classifying 95.2% of adversarial ResNet50 inputs after reconstruction, outperforming DefenseGAN and DIP.
- The method enables accurate category transfer by manipulating class conditions in the latent space, successfully changing object identities (e.g., dog to bird) without altering spatial layout or pose.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.