VidToMe: Video Token Merging for Zero-Shot Video Editing

Xirui Li, Chao Ma, Xiaokang Yang, Ming-Hsuan Yang
2/14/2026

No official code found. Best implementation: lixirui142/VidToMe (229 stars, MIT, last commit 2025-01-22). 2 more below.

Abstract

Diffusion models have made significant advances in generating high-quality images, but their application to video generation has remained challenging due to the complexity of temporal motion. Zero-shot video editing offers a solution by utilizing pre-trained image diffusion models to translate source videos into new ones. Nevertheless, existing methods struggle to maintain strict temporal consistency and efficient memory consumption. In this work, we propose a novel approach to enhance temporal consistency in generated videos by merging self-attention tokens across frames. By aligning and compressing temporally redundant tokens across frames, our method improves temporal coherence and reduces memory consumption in self-attention computations. The merging strategy matches and aligns tokens according to the temporal correspondence between frames, facilitating natural temporal consistency in generated video frames. To manage the complexity of video processing, we divide videos into chunks and develop intra-chunk local token merging and inter-chunk global token merging, ensuring both short-term video continuity and long-term content consistency. Our video editing approach seamlessly extends the advancements in image editing to video editing, rendering favorable results in temporal consistency over state-of-the-art methods.

View on arXivView PDF

Code Implementations(3)

lixirui142/VidToMeCommunity100%
MIT

Official Pytorch Implementation for "VidToMe: Video Token Merging for Zero-Shot Video Editing" (CVPR 2024)

22912PythonDec 18, 20231 years agoMIT
stable-diffusiontext-driven-editingvideo-editingvideo-to-video-translationzero-shot

[CVPR 2024] VidToMe: Video Token Merging for Zero-Shot Video Editing

201PythonFeb 29, 20242 years ago

Project webpage of paper "VidToMe: Video Token Merging for Zero-Shot Video Editing".

21CSS, HTMLDec 17, 20231 years ago

Similar Papers

Cite this paper

@article{li2026vidtome,
  title  = {VidToMe: Video Token Merging for Zero-Shot Video Editing},
  author = {Xirui Li and Chao Ma and Xiaokang Yang and Ming-Hsuan Yang},
  year   = {2026},
  eprint = {2312.10656},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.10656},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.10656.svg)](https://codeofpaper.com/paper/2312.10656)

Discussion