DynFaceRestore: Diffusion-Guided Face Restoration
- 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 derived from a high-quality face through an unknown degradation operator and additive noise: The objective is to recover , or a perceptually equivalent , without knowledge of (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 with standard deviation : $\mathcal{A}(x)\;\approx\;(x\otimes k_\sigma)\downarrow_s\;+\;n\;\xrightarrow{\text{JPEG}\;\uparrow_s,$ where 0 denotes convolution and 1 denote down- and up-sampling by factor 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 3 through a discriminative restoration model 4, given in the paper as, for example, SwinIR, and then convolving the output with a Gaussian kernel 5: 6 Here, 7 is defined as the “true” blur level that best aligns 8 with the unknown true Gaussian blur of 9 (Do et al., 18 Jul 2025).
The paper formalizes 0 through the constrained optimization
1
Since 2 is unavailable at inference time, DynFaceRestore trains a small network 3 to regress 4 and an auxiliary 5 from 6: 7 Its training loss is
8
The architecture summary given in the paper describes 9 as a lightweight CNN regressing 0, while 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
2
Letting 3 denote the pretrained denoiser, the estimated clean image at step 4 is
5
The unconditional reverse sample is given by
6
The pretrained diffusion backbone is specified as the standard U-Net from DDPM with parameters 7 (Do et al., 18 Jul 2025).
To incorporate the blurred guidance image 8 and its Gaussian kernel, DynFaceRestore applies DPS-style kernel guidance through a likelihood gradient term: 9 where 0 is a Gaussian with current standard deviation 1 (Do et al., 18 Jul 2025).
A distinguishing feature is that sampling does not always start from 2. Instead, the method constructs a lookup table denoted DSST, which for each blur level 3 finds
4
At inference, the model estimates 5 through 6, retrieves 7, and initializes
8
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 9 with a spatial map 0, generated by a Dynamic Guidance Scaling Adjuster, abbreviated DGSA. The adjuster takes 1, 2, and 3 as input: 4 The guided reverse update becomes
5
The DGSA network is described as a three-layer CNN producing an 6 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, 7 for DBLM, 8, and 9. The pretrained diffusion model is the standard U-Net from DDPM; 0 is SwinIR; 1 is a lightweight CNN regressing 2; and 3 is a three-layer CNN producing a spatial guidance map (Do et al., 18 Jul 2025).
The training objective for 4 is the loss 5 defined by
6
For sampling-time training of DGSA, the paper specifies that a random 7 is chosen, one guided reverse step is run to obtain 8, the predicted 9 is computed, and the following loss is minimized: 0 where 1 denotes a stationary wavelet transform with sub-bands and 2 denotes a perceptual/textural similarity loss. The paper states explicitly that no adversarial loss is used, and that all weights 3 are set by cross-validation (Do et al., 18 Jul 2025).
The algorithmic procedure given in the paper is:
- 4.
- 5.
- 6.
- Sample 7 from 8 and Gaussian noise.
- For 9:
- compute 0;
- compute 1;
- compute 2;
- update 3;
- update blur standard deviation by
4
- Return 5 (Do et al., 18 Jul 2025).
The paper also states that kernel mismatch is mitigated by multi-level guidance and by updating 6 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 7, down/up-sample factor 8, additive noise 9, 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.