Papers
Topics
Authors
Recent
Search
2000 character limit reached

DynFaceRestore: Diffusion-Guided Face Restoration

Updated 6 July 2026
  • The paper introduces a blind face restoration method that integrates dynamic blur-level mapping, adaptive diffusion timesteps, and spatially varying guidance to balance fidelity and perceptual quality.
  • It leverages a learned Gaussian-blur mapping to convert complex degradations into a controllable form, enabling precise recovery of facial details amidst blur, noise, downsampling, and JPEG artifacts.
  • The method achieves notable improvements in PSNR, SSIM, and FID across standard and real-world datasets, outperforming GAN- and codebook-based baselines without using adversarial loss.

Searching arXiv for the specified paper and closely related face restoration methods mentioned in the provided data. DynFaceRestore is a blind face restoration method that addresses the recovery of high-fidelity, detail-rich facial images from unknown degraded inputs by combining a learned Gaussian-blur mapping, dynamic-step diffusion guidance, and spatially adaptive guidance scaling. It is designed to balance fidelity and perceptual quality in settings where the degradation operator is unknown and may include blur, downsampling, noise, and JPEG artifacts. The method is introduced in "DynFaceRestore: Balancing Fidelity and Quality in Diffusion-Guided Blind Face Restoration with Dynamic Blur-Level Mapping and Guidance" (Do et al., 18 Jul 2025).

1. Problem setting and restoration objective

Blind face restoration is formulated by assuming a low-quality face image yy derived from a high-quality face xRH×W×3x\in\mathbb{R}^{H\times W\times3} through an unknown degradation operator A\mathcal{A} and additive noise: y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I). The objective is to recover xx, or a perceptually equivalent x^\hat x, without knowledge of A\mathcal{A} (Do et al., 18 Jul 2025).

In the formulation used by DynFaceRestore, typical blind degradations include blur, downsampling, noise and JPEG artifacts. The unknown blur component is approximated by a Gaussian kernel kσk_\sigma with standard deviation σ\sigma: $\mathcal{A}(x)\;\approx\;(x\otimes k_\sigma)\downarrow_s\;+\;n\;\xrightarrow{\text{JPEG}\;\uparrow_s,$ where xRH×W×3x\in\mathbb{R}^{H\times W\times3}0 denotes convolution and xRH×W×3x\in\mathbb{R}^{H\times W\times3}1 denote down- and up-sampling by factor xRH×W×3x\in\mathbb{R}^{H\times W\times3}2 (Do et al., 18 Jul 2025).

The central difficulty identified for diffusion-guided blind face restoration is that existing methods often use fixed diffusion sampling timesteps and a global guidance scale, thereby assuming uniform degradation. According to the formulation of DynFaceRestore, this can produce under-diffusion or over-diffusion, especially when degradation kernel estimation is imperfect, and thus creates an imbalance between fidelity and quality (Do et al., 18 Jul 2025). This suggests that the method is structured around replacing global, static control signals with blur-adaptive and spatially varying ones.

2. Dynamic Blur-Level Mapping

A core component of DynFaceRestore is Dynamic Blur-Level Mapping, abbreviated in the paper as DBLM. DBLM maps a blindly degraded input to Gaussian blurry images, thereby reframing blind degradation into a form usable for likelihood guidance during diffusion sampling (Do et al., 18 Jul 2025).

The process begins by passing the low-quality image xRH×W×3x\in\mathbb{R}^{H\times W\times3}3 through a discriminative restoration model xRH×W×3x\in\mathbb{R}^{H\times W\times3}4, given in the paper as, for example, SwinIR, and then convolving the output with a Gaussian kernel xRH×W×3x\in\mathbb{R}^{H\times W\times3}5: xRH×W×3x\in\mathbb{R}^{H\times W\times3}6 Here, xRH×W×3x\in\mathbb{R}^{H\times W\times3}7 is defined as the “true” blur level that best aligns xRH×W×3x\in\mathbb{R}^{H\times W\times3}8 with the unknown true Gaussian blur of xRH×W×3x\in\mathbb{R}^{H\times W\times3}9 (Do et al., 18 Jul 2025).

The paper formalizes A\mathcal{A}0 through the constrained optimization

A\mathcal{A}1

Since A\mathcal{A}2 is unavailable at inference time, DynFaceRestore trains a small network A\mathcal{A}3 to regress A\mathcal{A}4 and an auxiliary A\mathcal{A}5 from A\mathcal{A}6: A\mathcal{A}7 Its training loss is

A\mathcal{A}8

The architecture summary given in the paper describes A\mathcal{A}9 as a lightweight CNN regressing y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).0, while y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).1 in DBLM is a SwinIR network (Do et al., 18 Jul 2025).

Within the method’s broader logic, DBLM serves two roles. Factually, it supplies Gaussian-blurred guidance images and corresponding Gaussian kernels. Interpretively, this suggests a model-side normalization of heterogeneous real degradations into a blur-parameterized latent control variable, which is then used to govern diffusion initialization and guidance.

3. Diffusion prior, dynamic timesteps, and guided sampling

DynFaceRestore uses a pretrained DDPM-style diffusion model as an image prior (Do et al., 18 Jul 2025). The forward noising process is written as

y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).2

Letting y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).3 denote the pretrained denoiser, the estimated clean image at step y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).4 is

y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).5

The unconditional reverse sample is given by

y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).6

The pretrained diffusion backbone is specified as the standard U-Net from DDPM with parameters y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).7 (Do et al., 18 Jul 2025).

To incorporate the blurred guidance image y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).8 and its Gaussian kernel, DynFaceRestore applies DPS-style kernel guidance through a likelihood gradient term: y  =  A(x)  +  n,nN(0,σn2I).y \;=\;\mathcal{A}(x)\;+\;n,\quad n\sim\mathcal{N}(0,\sigma_n^2I).9 where xx0 is a Gaussian with current standard deviation xx1 (Do et al., 18 Jul 2025).

A distinguishing feature is that sampling does not always start from xx2. Instead, the method constructs a lookup table denoted DSST, which for each blur level xx3 finds

xx4

At inference, the model estimates xx5 through xx6, retrieves xx7, and initializes

xx8

The stated purpose of this dynamic starting timestep is to adapt the diffusion start step to the estimated blur, thereby avoiding under-diffusion and over-diffusion (Do et al., 18 Jul 2025). This suggests that DSST functions as a blur-conditioned scheduler rather than a fixed inference policy.

4. Dynamic Guidance Scaling Adjuster

DynFaceRestore replaces the fixed scalar guidance scale xx9 with a spatial map x^\hat x0, generated by a Dynamic Guidance Scaling Adjuster, abbreviated DGSA. The adjuster takes x^\hat x1, x^\hat x2, and x^\hat x3 as input: x^\hat x4 The guided reverse update becomes

x^\hat x5

The DGSA network is described as a three-layer CNN producing an x^\hat x6 map (Do et al., 18 Jul 2025).

The role of DGSA is stated explicitly in the discussion of the method: it applies spatially varying guidance scales so that low-frequency regions, such as face shape, remain faithful, while high-frequency regions, such as hair and wrinkles, receive stronger diffusion. The abstract similarly characterizes it as modulating guidance strength across local regions, enhancing detail generation in complex areas while preserving structural fidelity in contours (Do et al., 18 Jul 2025).

This component directly addresses the limitation of a global guidance scale. A plausible implication is that DynFaceRestore treats the fidelity–quality trade-off as spatially nonuniform: contours and identity-bearing geometry benefit from stronger data consistency, whereas texture-rich zones benefit from more permissive generative refinement.

5. Architecture, losses, and inference procedure

DynFaceRestore combines four principal modules: a pretrained diffusion model, x^\hat x7 for DBLM, x^\hat x8, and x^\hat x9. The pretrained diffusion model is the standard U-Net from DDPM; A\mathcal{A}0 is SwinIR; A\mathcal{A}1 is a lightweight CNN regressing A\mathcal{A}2; and A\mathcal{A}3 is a three-layer CNN producing a spatial guidance map (Do et al., 18 Jul 2025).

The training objective for A\mathcal{A}4 is the loss A\mathcal{A}5 defined by

A\mathcal{A}6

For sampling-time training of DGSA, the paper specifies that a random A\mathcal{A}7 is chosen, one guided reverse step is run to obtain A\mathcal{A}8, the predicted A\mathcal{A}9 is computed, and the following loss is minimized: kσk_\sigma0 where kσk_\sigma1 denotes a stationary wavelet transform with sub-bands and kσk_\sigma2 denotes a perceptual/textural similarity loss. The paper states explicitly that no adversarial loss is used, and that all weights kσk_\sigma3 are set by cross-validation (Do et al., 18 Jul 2025).

The algorithmic procedure given in the paper is:

  1. kσk_\sigma4.
  2. kσk_\sigma5.
  3. kσk_\sigma6.
  4. Sample kσk_\sigma7 from kσk_\sigma8 and Gaussian noise.
  5. For kσk_\sigma9:

    1. compute σ\sigma0;
    2. compute σ\sigma1;
    3. compute σ\sigma2;
    4. update σ\sigma3;
    5. update blur standard deviation by

    σ\sigma4

  6. Return σ\sigma5 (Do et al., 18 Jul 2025).

The paper also states that kernel mismatch is mitigated by multi-level guidance and by updating σ\sigma6 during sampling. This indicates that guidance is not solely conditioned on an initial blur estimate but can be refined across reverse steps.

6. Experimental protocol and reported performance

The reported training data consist of FFHQ with synthetic degradations. The degradations used are Gaussian blur with σ\sigma7, down/up-sample factor σ\sigma8, additive noise σ\sigma9, and JPEG quality $\mathcal{A}(x)\;\approx\;(x\otimes k_\sigma)\downarrow_s\;+\;n\;\xrightarrow{\text{JPEG}\;\uparrow_s,$0 (Do et al., 18 Jul 2025).

The test sets are CelebA-Test with 3,000 images under the same pipeline, and three real-world sets: LFW-Test with 1,711 images, WebPhoto-Test with 407 images, and Wider-Test with 970 images. The evaluation metrics are PSNR and SSIM for fidelity; LPIPS and FID for perceptual quality; IDA for identity, where lower is better; and LMD for facial alignment (Do et al., 18 Jul 2025).

On CelebA-Test, the key quantitative results reported for DynFaceRestore are as follows.

Metric Reported result
PSNR 24.35 dB (↑ 0.40 over second best)
SSIM 0.664 (↑ 0.005 over second best)
LPIPS 0.332 (2nd best)
FID 14.78 (best)
IDA 0.748 (best)
LMD 3.419 (best)

The paper further states that on real-world data DynFaceRestore also achieves the lowest FID on LFW and Wider, and strong results on WebPhoto (Do et al., 18 Jul 2025).

Qualitatively, DynFaceRestore is reported to preserve facial contours and identity, associated in the paper with high PSNR and IDA, while recovering hair, wrinkles and mouth details, associated with low FID and LPIPS. In the reported comparisons, it outperforms GAN- and codebook-based baselines including GPEN, GFPGAN, and CodeFormer, as well as prior diffusion approaches including DifFace, PGDiff, and DiffBIR (Do et al., 18 Jul 2025). The data block does not provide further comparative mechanics for these baselines, so no stronger claim about their internal differences is warranted here.

7. Ablations, interpretation, and limitations

The ablation study reported in the paper attributes distinct functions to DBLM, DSST, and DGSA. DBLM alone lifts PSNR to approximately $\mathcal{A}(x)\;\approx\;(x\otimes k_\sigma)\downarrow_s\;+\;n\;\xrightarrow{\text{JPEG}\;\uparrow_s,$1; adding multiple Gaussian-level guidance and DSST raises PSNR to approximately $\mathcal{A}(x)\;\approx\;(x\otimes k_\sigma)\downarrow_s\;+\;n\;\xrightarrow{\text{JPEG}\;\uparrow_s,$2; and DGSA further improves perceptual quality, measured by FID, without harming fidelity (Do et al., 18 Jul 2025). This decomposition supports the method’s stated design goal of balancing fidelity and quality through separate but coordinated controls: degradation normalization, timestep adaptation, and spatially adaptive guidance.

The paper’s discussion frames the fidelity–quality trade-off in three terms. First, DBLM reframes blind degradation as Gaussian blur, simplifying likelihood guidance. Second, DSST adapts the diffusion start step to the estimated blur, avoiding under-diffusion and over-diffusion. Third, DGSA applies spatially varying guidance scales so that low-frequency regions remain faithful while high-frequency regions receive stronger diffusion (Do et al., 18 Jul 2025). Taken together, these statements suggest that DynFaceRestore treats restoration as a mismatch-management problem between uncertain degradations and generative priors.

Several limitations and possible extensions are identified explicitly. Hyperparameters, including the number of guidance levels and the tolerance in DSST, are currently hand-tuned. The $\mathcal{A}(x)\;\approx\;(x\otimes k_\sigma)\downarrow_s\;+\;n\;\xrightarrow{\text{JPEG}\;\uparrow_s,$3 and DSST stages could be unified into an end-to-end learned scheduler. The method could be extended to non-Gaussian or spatially variant blur. Acceleration via fewer diffusion steps is also proposed as future work (Do et al., 18 Jul 2025).

A common misconception in diffusion-guided restoration is that stronger guidance or later diffusion starts necessarily improve identity preservation. The formulation of DynFaceRestore argues against such a uniform assumption by making both the start timestep and the guidance strength adaptive. Another potential misconception is that perceptual improvement in blind face restoration requires adversarial supervision; DynFaceRestore explicitly reports that no adversarial loss is used (Do et al., 18 Jul 2025). This does not establish a general principle beyond the method itself, but it does delimit the training regime under which its reported performance is obtained.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to DynFaceRestore.