A Video is Worth 256 Bases: Spatial-Temporal Expectation-Maximization Inversion for Zero-Shot Video Editing
Maomao Li, Yu Li, Tianyu Yang, Yunfei Liu, Dongxu Yue, Zhihui Lin, Dong Xu
TL;DR
This paper tackles zero-shot diffusion-based video editing by addressing inaccurate frame-wise inversion and temporal inconsistency. It introduces Spatial-Temporal Expectation-Maximization (STEM) inversion, which learns a fixed, low-rank basis set ${\bm\mu}$ from the entire video and uses STEM-SA for all self-attention, reducing complexity from $\mathcal{O}(N(HW)^2)$ to $\mathcal{O}(NHWK)$ while improving reconstruction. The EM-based E-step and M-step—${\mathcal Z}$ responsibilities and basis updates—create a compact, global representation that enhances temporal coherence and editing performance when integrated with existing pipelines like TokenFlow and FateZero. Extensive experiments on DAVIS and web videos show improved PSNR/SSIM for reconstruction and CLIP-warp metrics for editing, with user studies confirming preferable results over state-of-the-art zero-shot methods. The approach offers a practical, non-finetuning inversion that can bolster diffusion-based video editing in real-world scenarios.
Abstract
This paper presents a video inversion approach for zero-shot video editing, which models the input video with low-rank representation during the inversion process. The existing video editing methods usually apply the typical 2D DDIM inversion or naive spatial-temporal DDIM inversion before editing, which leverages time-varying representation for each frame to derive noisy latent. Unlike most existing approaches, we propose a Spatial-Temporal Expectation-Maximization (STEM) inversion, which formulates the dense video feature under an expectation-maximization manner and iteratively estimates a more compact basis set to represent the whole video. Each frame applies the fixed and global representation for inversion, which is more friendly for temporal consistency during reconstruction and editing. Extensive qualitative and quantitative experiments demonstrate that our STEM inversion can achieve consistent improvement on two state-of-the-art video editing methods. Project page: https://stem-inv.github.io/page/.
