Diffusion Video Autoencoders: Toward Temporally Consistent Face Video Editing via Disentangled Video Encoding

Gyeongman Kim, Hajin Shim, Hyunsu Kim, Yunjey Choi, Junho Kim, Eunho Yang

Introduction

Face image editing has achieved significant fidelity through Generative Adversarial Networks (GANs). However, extending these techniques to video remains challenging due to two primary issues: temporal inconsistency and reconstruction artifacts. Independent frame editing often results in visual "flickering" because latent spaces are not perfectly aligned across time. Furthermore, GANs frequently struggle to reconstruct "out-of-distribution" features, such as occlusions or unusual accessories, leading to noticeable artifacts. This paper introduces Diffusion Video Autoencoders, a framework designed to achieve high-fidelity, temporally consistent face video editing by disentangling video into time-invariant and per-frame components.

Methodology

The proposed framework builds upon the Diffusion Autoencoder (DiffAE) architecture, introducing a novel disentanglement strategy specifically for video data.

Disentangled Video Encoding

A video sequence is decomposed into three distinct components:

  • Identity ($z_{id}$): A single, time-invariant vector representing the subject's unique features. This is extracted using a pretrained ArcFace model and averaged across all frames to ensure temporal stability.
  • Motion ($z_{lnd}$): Per-frame landmark features that capture dynamic expressions and head poses.
  • Background/Texture ($x_T$): A per-frame noise map capturing low-level details and background information that falls outside the high-level semantic space.

Editing and Optimization

Editing is performed by manipulating only the single $z_{id}$ vector. Since this vector is shared across all frames during decoding, the resulting edits are inherently consistent over time. For text-based editing, the authors optimize the identity feature using a "noisy CLIP loss," which operates on intermediate noisy latent states to significantly reduce the computational cost of full diffusion sampling. A novel regularization loss ($L_{reg}$) is also employed to prevent facial information from leaking into the background noise map.

Experiments

The model was trained on the VoxCeleb1 dataset, which contains over 77,000 real-world face videos. Attribute classifiers for editing were trained on CelebA-HQ. Qualitative evaluations were conducted on in-the-wild videos to assess robustness against complex scenarios like occlusions.

Results and Discussion

The Diffusion Video Autoencoder demonstrates superior performance in both reconstruction and temporal stability compared to state-of-the-art GAN-based methods.

Comparison of face video editing results for adding eyeglasses (left) and beards (right). The proposed method (bottom row) maintains higher temporal consistency and better reconstruction of occlusions compared to the baseline (middle row).

Quantitative and Qualitative Performance

The model outperformed GAN-based baselines (e.g., e4e and PTI) in reconstruction metrics, achieving an SSIM of 0.922 (vs. 0.765 for the baseline) and an LPIPS of 0.045 (vs. 0.063). In user studies, 66.3% of participants preferred the temporal consistency of this method, with preference rising to 72.3% for challenging attributes like beards and eyeglasses.

Robustness and Efficiency

Unlike GANs, which often fail during occlusions (e.g., a hand moving in front of the face), the diffusion-based approach preserves these details while applying the edit. The "noisy CLIP" optimization strategy provides a more efficient path for text-to-video manipulation by bypassing full reconstruction during the optimization loop.

Conclusion

Diffusion Video Autoencoders offer a robust solution for consistent face video editing. While inference speed remains a limitation compared to GANs—taking approximately 3 seconds per frame with distilled samplers—the gains in fidelity and stability are significant. Future work will focus on increasing resolution beyond $256 \times 256$ and further refining the disentanglement of the identity latent space.

Summary updated

BibTeX
@inproceedings{kim2022diffusion,
  author = {Gyeongman Kim and Hajin Shim and Hyunsu Kim and Yunjey Choi and Junho Kim and Eunho Yang},
  title = {{Diffusion Video Autoencoders: Toward Temporally Consistent Face Video Editing via Disentangled Video Encoding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=l21szHZz8t},
}
Figure