Abstract
Blind Face Restoration (BFR) aims to recover high-quality (HQ) facial images from degraded inputs. While Latent Diffusion Models (LDMs) provide strong generative priors, they suffer from "latent misalignment" when processing low-quality (LQ) images, leading to identity loss or artifacts. We present LAFR (Latent Alignment for Face Restoration), an efficient framework that addresses this via a lightweight Latent Codebook Alignment Adapter. By mapping LQ latent features to a learned high-quality codebook, LAFR achieves state-of-the-art restoration quality with significantly reduced training data—using only 0.9% of standard datasets (600 images)—and 70% faster training. Our method also incorporates UNet pruning and multi-level identity losses to ensure high structural fidelity and rapid inference.
Introduction: Addressing Latent Misalignment in BFR
Blind Face Restoration (BFR) is a challenging task due to the diverse and unknown nature of real-world degradations like blur, noise, and compression. While modern LDMs like Stable Diffusion offer powerful priors, their Variational Autoencoder (VAE) components are typically trained on HQ data. When presented with LQ images, the VAE encoder generates semantically inconsistent latent codes that do not match the distribution the diffusion model expects. This misalignment leads to restored faces that lose their original identity or look "uncanny."
Existing solutions often involve retraining the massive VAE or adding heavy alignment modules, both of which are computationally expensive. LAFR addresses this by focusing on efficient alignment and structural fidelity without altering the original VAE weights.
Methodology: Efficient Alignment and Restoration
The LAFR framework is built on three core pillars designed for efficiency and structural fidelity:
Latent Codebook Alignment Adapter
The primary innovation is a lightweight adapter inserted between the VAE encoder and the diffusion model. Instead of retraining the entire VAE, this module uses a learned codebook to find the "nearest HQ neighbor" for an LQ latent feature. This essentially "translates" the messy LQ latent space into the clean HQ latent space that the diffusion model understands.
Efficient Fine-Tuning and Pruning
To further optimize the model, we employ Low-Rank Adaptation (LoRA) for the diffusion UNet. Additionally, we prune the UNet by removing text and timestep embedding modules. Since face restoration typically uses static prompts (e.g., "high-quality face"), these modules add unnecessary overhead. Replacing them with fixed tensors significantly accelerates inference, achieving a speed of 0.121 seconds.
Multi-level Restoration Loss
To ensure the restored person maintains their original identity, we introduce a loss function that combines identity embeddings (using CLIP for high-level semantics) and facial structural priors (using a D3DFR extractor to maintain specific geometry of eyes, nose, and mouth).
Experimental Setup
LAFR was trained on a tiny subset of the FFHQ dataset, consisting of only 600 images (0.9% of the full 70k dataset). Evaluation was conducted on synthetic benchmarks (CelebA-Test) and real-world "in-the-wild" datasets including WebPhoto-Test, LFW-Test, and Wider-Test to test the model on degradations where no ground truth exists.
Results and Analysis
LAFR demonstrates exceptional efficiency and quality. With only 7.5M trainable parameters, it reduces training time by 70% compared to baseline diffusion methods.
As shown in the figure above, LAFR occupies the ideal bottom-left quadrant, indicating both superior quality (lower Landmark Distance) and lower complexity (faster inference). Despite the tiny training set, LAFR outperformed or matched state-of-the-art models like DiffBIR and OSEDiff across multiple metrics, including FID (perceptual quality) and LMD (structural accuracy). Qualitative results further show that LAFR is significantly better at maintaining the "soul" of the original face—preserving unique expressions and features that other models often smooth away.
The Advantage of Face Regularity
A key insight of this work is that the high structural regularity of human faces allows for extreme data efficiency. Unlike general natural scenes, facial features form tight, predictable clusters in latent space, enabling the model to learn effective alignment from a very small sample size.
Conclusion and Limitations
LAFR provides a highly efficient path for diffusion-based face restoration. By fixing latent misalignment at the source with a lightweight adapter, it achieves state-of-the-art results with minimal data and compute. However, the model's reliance on facial regularity means it may not generalize directly to diverse natural image super-resolution. Additionally, extremely profile views or heavily occluded faces remain a challenge. Future work will explore extending this alignment strategy to other domain-specific tasks such as medical or satellite imaging.
Summary updated