NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PGDiff: Guiding Diffusion Models for Versatile Face Restoration via Partial Guidance

Peiqing Yang, Shangchen Zhou, Qingyi Tao, Chen Change Loy

Abstract

Recent advancements in diffusion models have revolutionized image generation, yet their application to blind face restoration remains challenging due to the unpredictable nature of real-world degradations. Traditional methods often require an explicit mathematical degradation model, which rarely accounts for the complex interplay of noise, blur, and compression found in "in-the-wild" photos. We present PGDiff, a versatile framework that performs high-quality face restoration by employing "partial guidance." Instead of attempting to invert a specific degradation process, PGDiff guides a pre-trained diffusion model using easily accessible image properties—such as lightness, basic semantics, or unmasked regions. This approach allows for state-of-the-art performance across diverse tasks, including colorization, inpainting, and old photo restoration, without requiring task-specific retraining.

Introduction

Image restoration is traditionally framed as an inverse problem where a clean image $x$ is recovered from a corrupted observation $y$ via a known degradation operator $A$, typically expressed as $y = Ax + n$. While this formulation is effective for synthetic degradations like bicubic downsampling, it falters in real-world scenarios. Real-world "blind" restoration involves unknown, non-differentiable artifacts such as sensor noise and JPEG compression that are difficult to model mathematically.

Existing diffusion-based restoration methods, such as DDRM or DDNM, rely heavily on the availability of this explicit degradation operator to guide the denoising process. When the operator is unknown or overly complex, these methods often produce significant artifacts or fail to generalize. PGDiff shifts the paradigm: rather than modeling how an image was broken, it guides the diffusion model toward the properties a high-quality image should possess.

The Partial Guidance Framework

The core innovation of PGDiff is the Partial Guidance mechanism. By utilizing simple functions or "classifiers" to monitor intermediate diffusion outputs, the framework ensures that the generated image retains specific essential properties of the input source.

1. Property-Based Guidance Strategies

PGDiff defines different "partial" properties depending on the restoration task:

  • Colorization: The model is guided to match the lightness (the grayscale component) of the input while adopting the color statistics (mean and variance) of a target style or reference.
  • Inpainting: Guidance ensures that pixels in the unmasked (known) regions of the image remain consistent with the original input throughout the denoising process.
  • Blind Restoration: To handle unknown blurs, PGDiff utilizes a simple, pre-trained restorer to provide "smooth semantics." This provides a structurally correct, albeit blurry, template that guides the diffusion model's high-resolution reconstruction.

2. Dynamic and Composite Guidance

Standard classifier guidance typically employs a constant scale, which can lead to over-saturation or divergence. PGDiff introduces a dynamic guidance scheme ($s_{norm}$) that adjusts the guidance scale based on the magnitude of changes in the intermediate images. Furthermore, the framework allows for multiple gradient steps per denoising iteration, enabling the model to "steer" more aggressively toward target properties during the critical early stages of diffusion.

Because these guidance modules are independent, they can be stacked. For "Old Photo Restoration," PGDiff combines semantic restoration (for blur), inpainting (for physical scratches), and colorization (for fading) into a single, unified guidance loss.

Experimental Evaluation

Datasets and Training

The authors utilized the FFHQ dataset to train a base $512 \times 512$ unconditional face diffusion model. Evaluation was conducted on CelebA-HQ and CelebRef-HQ for tasks like inpainting and reference-based restoration. To test real-world robustness, the model was deployed on the LFW-Test, WebPhoto-Test, and WIDER-Test datasets, which contain authentic low-quality images from the internet.

Key Results

  • Superior Blind Restoration: PGDiff significantly outperformed existing diffusion-prior methods like GDP and DDNM. It produced sharper details and more realistic skin textures by leveraging the diffusion model's internal prior rather than relying on rigid mathematical constraints.
  • Versatility: Unlike task-specific architectures (e.g., CodeFormer), a single PGDiff framework successfully handled four distinct restoration tasks and their combinations.
  • Quantitative Performance: On the CelebRef-HQ dataset, PGDiff achieved top-tier scores in Fréchet Inception Distance (FID) for image quality and Identity Score (IDS) for maintaining the subject's likeness, outperforming both GAN-based and other diffusion-based competitors.
  • Historical Photo Recovery: Qualitatively, PGDiff demonstrated a remarkable ability to transform severely damaged historical portraits into vibrant, modern-looking images, surpassing specialized baselines like BOPB.

Discussion and Insights

The success of PGDiff highlights that the diffusion prior itself is a powerful regularizer. As long as the guidance provides a basic structural "anchor," the pre-trained model can autonomously fill in high-frequency details like hair follicles and eye reflections. This agnosticism toward the degradation process makes the model naturally robust to "in-the-wild" corruptions.

However, limitations remain. The current framework is heavily optimized for human faces; while it shows promise for general natural scenes, its performance is ultimately capped by the diversity of the underlying pre-trained model. Additionally, like most diffusion-based approaches, the iterative sampling process is slower than "one-shot" GAN or Transformer-based restorers.

Conclusion

PGDiff demonstrates that partial guidance is a highly effective strategy for blind face restoration. By focusing on preserving known properties rather than inverting unknown degradations, it provides a flexible and robust framework for bringing low-quality images back to life. Future work may involve integrating this guidance into faster sampling architectures, such as Consistency Models, to bridge the gap between high-quality restoration and real-time performance.

Summary updated

BibTeX
@inproceedings{yang2023pgdiff,
  author = {Peiqing Yang and Shangchen Zhou and Qingyi Tao and Chen Change Loy},
  title = {{PGDiff: Guiding Diffusion Models for Versatile Face Restoration via Partial Guidance}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=yThjbzhIUP},
}
Figure