Unified Video Editing with Temporal Reasoner

Xiangpeng Yang, Ji Xie, Yiyuan Yang, Yan Huang, Min Xu +1 more
12/8/2025
cs.CV

Official code: knightyxp/VideoCoF (179 stars, Apache-2.0, last commit 2026-02-22).

Abstract

Existing video editing methods face a critical trade-off: expert models offer precision but rely on task-specific priors like masks, hindering unification; conversely, unified temporal in-context learning models are mask-free but lack explicit spatial cues, leading to weak instruction-to-region mapping and imprecise localization. To resolve this conflict, we propose VideoCoF, a novel Chain-of-Frames approach inspired by Chain-of-Thought reasoning. VideoCoF enforces a ``see, reason, then edit" procedure by compelling the video diffusion model to first predict reasoning tokens (edit-region latents) before generating the target video tokens. This explicit reasoning step removes the need for user-provided masks while achieving precise instruction-to-region alignment and fine-grained video editing. Furthermore, we introduce a RoPE alignment strategy that leverages these reasoning tokens to ensure motion alignment and enable length extrapolation beyond the training duration. We demonstrate that with a minimal data cost of only 50k video pairs, VideoCoF achieves state-of-the-art performance on VideoCoF-Bench, validating the efficiency and effectiveness of our approach. Our code, weight, data are available at https://github.com/knightyxp/VideoCoF.

View on arXivView PDF

Code Implementations(1)

knightyxp/VideoCoFOfficial100%
Apache-2.0

[CVPR 2026 Highlight] VideoCoF: Unified Video Editing with Temporal Reasoner

1798Shell, PythonDec 7, 20258 months agoApache-2.0
diffusion-modelslong-video-editinglong-video-generationvideo-diffusion-transformersvideo-editing+2 more

Similar Papers

Cite this paper

@article{yang2025unified,
  title  = {Unified Video Editing with Temporal Reasoner},
  author = {Xiangpeng Yang and Ji Xie and Yiyuan Yang and Yan Huang and Min Xu and Qiang Wu},
  year   = {2025},
  eprint = {2512.07469},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.07469v1}
}

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/2512.07469.svg)](https://codeofpaper.com/paper/2512.07469)

Discussion