DicFace: Dirichlet-Constrained Variational Codebook Learning for Temporally Coherent Video Face Restoration

Yan Chen, Hanlin Shang, Ce Liu, Yuxuan Chen, Hui Li, Weihao Yuan, Hao Zhu, Zilong Dong, Siyu ZhuarXiv 2025 · DOI

Introduction

Restoring facial details in video sequences presents a unique challenge beyond single-image restoration: maintaining temporal consistency. While modern image restoration techniques leverage high-quality priors to reconstruct fine details, applying them frame-by-frame often results in "flickering"—visual artifacts where textures and features shift inconsistently across time. This phenomenon typically stems from the discrete nature of the priors used, such as Vector-Quantized (VQ) codebooks, where small changes in input can lead to abrupt jumps between dictionary entries.

Methodology: Dirichlet-Constrained Variational Codebook

DicFace addresses the flicker problem by introducing a continuous, probabilistic framework for codebook interaction. Instead of performing a "hard" lookup that selects a single discrete entry from a dictionary, DicFace treats the latent representation as a convex combination of codebook items.

The DicFace architecture, featuring a Dirichlet-constrained variational codebook and spatio-temporal transformer.

The core of this approach is the use of a Dirichlet distribution to model the weights of the convex combination. By predicting the parameters ($\alpha$) of this distribution, the model can represent facial features as mixtures, allowing for smooth, infinitesimal transitions between states as the face moves. This "soft" dictionary approach ensures that the model doesn't oscillate between disparate codes in successive frames.

To capture the dynamics of facial movement, DicFace employs a Spatio-Temporal Transformer. This architecture alternates between spatial self-attention (within a frame) and temporal self-attention (across a 5-frame window), enabling the model to integrate information from neighboring frames before determining the optimal blend of facial codes. The entire system is trained using a variational objective (ELBO) with a Laplacian reconstruction loss to promote sharpness.

Experiments and Results

The model was trained on the VFHQ (Video Face High Quality) dataset, utilizing a codebook pre-trained on FFHQ. Evaluation on the VFHQ-Test benchmark demonstrates that DicFace significantly outperforms existing methods like GPEN, CodeFormer, and PGTFormer.

Qualitative comparison of DicFace against state-of-the-art methods, highlighting improved temporal consistency and detail recovery.

Quantitatively, DicFace achieved a PSNR of 29.099, a notable improvement over PGTFormer's 27.829. More importantly for video quality, the Temporal Landmark Mean Error (TLME)—a metric for jitter—was reduced to 1.091, the lowest among all compared methods. Qualitative results confirm that DicFace maintains stable, high-fidelity features even under challenging conditions such as extreme head poses or occlusions, where other methods often hallucinate inconsistent details.

Conclusion

DicFace represents a significant step forward in video face restoration by bridging the gap between high-quality generative priors and temporal stability. By replacing hard codebook lookups with a Dirichlet-constrained probabilistic mixture, it achieves a "best of both worlds" result: the sharp, realistic details of dictionary-based methods with the rock-solid consistency required for high-quality video production.

Summary updated

BibTeX
@misc{chen2025dicface,
  author = {Yan Chen and Hanlin Shang and Ce Liu and Yuxuan Chen and Hui Li and Weihao Yuan and Hao Zhu and Zilong Dong and Siyu Zhu},
  title = {{DicFace: Dirichlet-Constrained Variational Codebook Learning for Temporally Coherent Video Face Restoration}},
  year = {2025},
  eprint = {2506.13355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.13355},
}
Figure