Efficient Video Face Enhancement with Enhanced Spatial-Temporal Consistency

Yutong Wang, Jiajie Teng, Jiajiong Cao, Yuming Li, Chenguang Ma, Hongteng Xu, Dixin Luo

Abstract

Blind Face Video Restoration (BFVR) remains a challenging task due to the complex nature of real-world degradations and the requirement for temporal consistency across frames. This paper presents a novel 3D-VQGAN framework that leverages dual spatial-temporal codebooks and a transformer-based lookup mechanism to restore high-quality face videos. By treating video as a 3D volume, the proposed method effectively captures both high-fidelity facial features and natural motion residuals. Experimental results demonstrate that our approach achieves state-of-the-art restoration quality, significantly reduces temporal flickering, and offers up to a 6x speedup over existing methods.

Introduction

Restoring facial details in video—a process known as Blind Face Video Restoration (BFVR)—is a critical yet difficult task. Real-world video content often suffers from a combination of degradations, including heavy compression, motion blur, and sensor noise. While image-based restoration techniques have seen significant progress, applying them frame-by-frame to video sequences typically results in severe temporal inconsistency, manifested as distracting "flickering" in facial features and backgrounds.

Existing BFVR solutions often face a trade-off between efficiency and quality. Many models are computationally intensive, leading to slow processing times that hinder practical application. Furthermore, many current architectures have a limited temporal receptive field, often only considering a few neighboring frames. This limitation prevents the models from maintaining global consistency across longer video sequences, failing to produce truly natural-looking results.

Methodology

The core of the proposed approach is a two-stage learning framework built upon a 3D-VQGAN (Vector Quantized Generative Adversarial Network) architecture.

Overview of the 3D-VQGAN architecture featuring spatial-temporal codebooks and the STLookUP mechanism.

Spatial-Temporal Codebooks

Unlike standard VQGANs that use a single dictionary of features, this framework employs two distinct codebooks:

  • Spatial Codebook ($C_S$): This codebook is dedicated to recording high-quality portrait features, such as eye details, skin textures, and facial geometry.
  • Temporal Codebook ($C_T$): This codebook specifically stores "motion residuals"—the subtle changes between consecutive frames. By explicitly modeling these temporal differences, the network ensures that facial movements appear smooth and natural.

Marginal Prior Regularization (MPR)

A common challenge in vector quantization is "codebook collapse," where only a small subset of the available entries is utilized, leading to poor reconstruction quality. To mitigate this, the authors introduce Marginal Prior Regularization (MPR). This mathematical constraint encourages the model to utilize the entire codebook more uniformly, resulting in richer and more detailed facial reconstructions.

Two-Stage Training Strategy

The training process is divided into two distinct stages:

  1. Stage I (Reconstruction): The model learns to compress and reconstruct high-quality (HQ) videos using the dual codebooks. A pre-trained DINOv2 network is utilized as a discriminator, providing semantic guidance to ensure the reconstructed faces are realistic and consistent with human perception.
  2. Stage II (Restoration): The model is trained to map low-quality (LQ) video inputs to high-quality entries in the pre-trained codebooks using Lookup Transformers. By operating on a compressed 3D representation, the transformers process significantly less data, which is the primary driver for the system's high efficiency.

Experiments and Results

The model was trained and evaluated using several datasets, primarily the Video Face High Quality (VFHQ) dataset and a custom Live Broadcast Dataset containing approximately 9,000 talking-head videos. To simulate real-world conditions, a complex degradation pipeline involving Gaussian blur, noise, and FFMPEG compression was applied.

Qualitative comparison of our method against state-of-the-art BFVR techniques. Red arrows highlight areas of improved detail and consistency.

The proposed method was benchmarked against state-of-the-art (SOTA) methods, including PGTFormer and KEEP. Key results include:

  • Quantitative Superiority: The method achieved top scores in structural similarity (SSIM: 0.8641) and perceptual quality (LPIPS: 0.1829).
  • Enhanced Temporal Consistency: It achieved the lowest Fréchet Video Distance (FVD) of 105.1, indicating superior naturalness in the video sequences.
  • Efficiency Gains: The model demonstrated a massive speedup, processing a 24-frame sequence in approximately 3 seconds—significantly faster than PGTFormer (~7s) and KEEP (~20s).
  • De-flickering Capabilities: The framework proved highly effective at removing pixel-level flickering, a common artifact in AI-generated video content.

Conclusion

This research introduces a highly efficient and effective framework for video face restoration. By treating video as a 3D volume and utilizing specialized spatial-temporal codebooks, the method achieves a new state-of-the-art in both quality and consistency. While the current model is optimized for frontal faces and is not yet real-time, the underlying principles of 3D-VQGAN and dual codebooks offer a promising path for general video restoration tasks in the future.

Summary updated

BibTeX
@inproceedings{wang2025efficient,
  author = {Yutong Wang and Jiajie Teng and Jiajiong Cao and Yuming Li and Chenguang Ma and Hongteng Xu and Dixin Luo},
  title = {{Efficient Video Face Enhancement with Enhanced Spatial-Temporal Consistency}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00209},
}
Figure