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

Dual Associated Encoder for Face Restoration

Yu-Ju Tsai, Yu-Lun Liu, Lu Qi, Kelvin C. K. Chan, Ming-Hsuan Yang · DOI

Introduction

Restoring high-quality (HQ) faces from blurry, low-quality (LQ) images—a task known as blind face restoration—is inherently challenging due to the significant "domain gap" between clean and degraded data. While current state-of-the-art methods leverage "codebook priors" (pre-trained dictionaries of facial features), they often struggle because they rely on a single encoder trained primarily on HQ data. This HQ-centric encoder frequently fails to accurately represent the complex degradations in LQ images, leading to loss of identity or over-smoothed results.

Comparison of existing single-encoder frameworks (a) versus the proposed dual-encoder DAEFR framework (b).

The DAEFR Framework

The authors propose DAEFR (Dual Associated Encoder for Face Restoration), which addresses the domain gap by utilizing two specialized encoders—one for the HQ domain and an auxiliary one for the LQ domain. The framework operates through three distinct stages:

1. Discrete Codebook Learning

The model first trains two separate autoencoders to capture the unique statistical properties of both HQ and LQ domains. This ensures that the encoders are well-adapted to their respective input distributions before any restoration begins.

2. Association Stage

Inspired by contrastive learning models like CLIP, DAEFR employs a feature patch association algorithm. By calculating a similarity matrix between HQ and LQ feature patches, the model forces the two encoders to align their latent spaces. This "association" ensures that a degraded feature in the LQ branch (e.g., a blurry eye) is correctly mapped to its sharp counterpart in the HQ branch.

Detailed view of the Discrete Codebook Learning Stage and the subsequent Association Stage using a similarity matrix $M_{assoc}$.

3. Feature Fusion and Restoration

Once aligned, features from both branches are merged using Multi-Head Cross-Attention (MHCA). This mechanism allows the model to dynamically weigh information from both encoders. The fused representation is then processed by a Transformer to predict indices in the HQ codebook, which the decoder uses to reconstruct the final high-fidelity face.

Experimental Setup

The model was trained on the FFHQ dataset (70,000 images) with synthetic degradations. Evaluation was conducted across several benchmarks:

  • Synthetic: CelebA-Test.
  • Real-World: LFW-Test, WIDER-Test, and the highly challenging BRIAR-Test, which features diverse real-world degradations.

Key Results and Insights

DAEFR demonstrates superior performance in both quantitative metrics and qualitative visual fidelity:

  • Perceptual Quality: On the WIDER-Test dataset, DAEFR achieved a state-of-the-art FID score of 36.720, outperforming popular models like CodeFormer (38.798) and GFP-GAN (39.730).
  • Identity Preservation: The model remains highly competitive in identity matching (IDA metric), proving that the auxiliary LQ branch successfully preserves vital structural cues that single-encoder models discard as noise.
  • Visual Fidelity: Qualitatively, DAEFR excels at restoring fine details—such as skin pores, hair strands, and dental edges—even under severe degradation where other methods produce "waxy" artifacts.

Limitations

The primary constraint of DAEFR is its performance on extreme poses. Since the training data (FFHQ) is largely composed of frontal or near-frontal views, the codebook lacks sufficient representations for sharp profile angles. Future work aims to expand the codebook's diversity and optimize the dual-branch architecture for greater computational efficiency.

Summary updated

BibTeX
@inproceedings{tsai2024dual,
  author = {Yu-Ju Tsai and Yu-Lun Liu and Lu Qi and Kelvin C. K. Chan and Ming-Hsuan Yang},
  title = {{Dual Associated Encoder for Face Restoration}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=gwDuW7Ok5f},
}
Figure