RestorerID: Towards Tuning-Free Face Restoration with ID Preservation

Jiacheng Ying, Mushui Liu, Zhe Wu, Runming Zhang, Zhu Yu, Siming Fu, Si-Yuan Cao, Chao Wu, Yunlong Yu, Hui-Liang ShenarXiv 2024 · DOI

Introduction

Blind face restoration (BFR) aims to recover high-quality (HQ) facial images from low-quality (LQ) inputs plagued by blur, noise, and compression. While modern generative models, such as GANs and Diffusion models, can produce visually appealing faces, they frequently fail at identity preservation. The resulting images often look like a generic person rather than the specific individual in the original photograph.

Current solutions typically fall into two categories: alignment-based methods and test-time tuning methods. Alignment-based methods require the reference and degraded images to be perfectly aligned, which is often impossible for heavily blurred inputs. Test-time tuning methods, while accurate, require significant per-person fine-tuning (often 10–15 minutes), making them impractical for real-world use. RestorerID addresses these challenges by providing a tuning-free, alignment-free framework that preserves identity even under extreme degradation.

Existing methods like CodeFormer often struggle to maintain identity as degradation levels increase, leading to generic facial features.

Methodology

RestorerID is built upon a Stable Diffusion backbone and introduces three key architectural innovations to balance restoration quality with identity fidelity.

Unified Dual-Conditioning

The framework simultaneously processes structural information from the LQ image via an LQ Spatial Model and identity information from a reference image using a pre-trained FaceID-Plus model. This dual-stream approach ensures the model has access to both the underlying geometry of the degraded face and the high-fidelity features of the subject.

Face ID Rebalancing Adapter (FIR-Adapter)

A major challenge in BFR is the "Structure-Identity Conflict," where injecting identity features can cause ghosting or misalignment if the reference image's pose or expression differs from the input. The FIR-Adapter resolves this by using cross-attention to facilitate interaction between LQ features and ID embeddings. It then applies learned "Gain" (G) and "Bias" (B) maps to modulate latent features, ensuring the identity information is perfectly rebalanced to fit the input's spatial structure.

Adaptive ID-Scale Adjusting

The optimal strength of identity injection varies with the level of degradation. RestorerID employs the MUSIQ metric to assess the quality of the input image blindly. It then uses an exponential decay formula to automatically calculate an optimal injection scale ($\lambda$). This allows the model to rely more on the input when degradation is light and more on the reference when the input is heavily corrupted.

Experimental Results

The effectiveness of RestorerID was evaluated using the Celeb-Ref dataset and real-world "old photos."

Quantitative Performance

RestorerID achieved an ID Similarity score of 0.548 on the Celeb-Ref dataset under heavy degradation. This significantly outperforms the previous state-of-the-art tuning-based method, PFStorer (0.473), and the popular blind restoration method, CodeFormer (0.379).

Qualitative Comparison

Visual results highlight RestorerID's ability to recover specific facial textures and the exact shapes of eyes and noses, which competing models often hallucinate incorrectly or smooth over.

Qualitative comparison demonstrating RestorerID's superior identity preservation across increasing degradation levels compared to CodeFormer.

In a user study involving 30 participants, RestorerID's outputs were preferred over 75% of the time for both overall image quality and identity fidelity compared to baselines like CodeFormer and ASFFNet.

Conclusion

RestorerID represents a significant advancement in blind face restoration by providing a high-fidelity, tuning-free solution for identity preservation. By effectively managing the conflict between structure and identity through the FIR-Adapter and employing an adaptive scaling strategy, it achieves state-of-the-art results without the computational burden of per-person optimization. Future research will focus on extending the framework to handle multiple reference images and extreme pose variations.

Summary updated

BibTeX
@misc{ying2024restorerid,
  author = {Jiacheng Ying and Mushui Liu and Zhe Wu and Runming Zhang and Zhu Yu and Siming Fu and Si-Yuan Cao and Chao Wu and Yunlong Yu and Hui-Liang Shen},
  title = {{RestorerID: Towards Tuning-Free Face Restoration with ID Preservation}},
  year = {2024},
  eprint = {2411.14125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.14125},
}
Figure