In-Context Learning with Unpaired Clips for Instruction-based Video Editing
Xinyao Liao, Xianfang Zeng, Ziye Song, Zhoujie Fu, Gang Yu, Guosheng Lin
TL;DR
This work tackles data scarcity in instruction-based video editing by introducing a two-stage training strategy: pretrain on unpaired video clips to learn basic editing operations, then fine-tune on a compact, high-quality set of editing pairs. Built on HunyuanVideoT2V, the approach uses in-context inputs that incorporate the original video and a noised edit sequence, guided by editing instructions. The method achieves state-of-the-art performance in both instruction alignment and visual fidelity, requiring significantly fewer supervised examples (about 150K editing pairs) than traditional large-scale datasets. This data-efficient paradigm offers a practical path toward robust, instruction-driven video editing without relying on massive synthetic datasets.
Abstract
Despite the rapid progress of instruction-based image editing, its extension to video remains underexplored, primarily due to the prohibitive cost and complexity of constructing large-scale paired video editing datasets. To address this challenge, we introduce a low-cost pretraining strategy for instruction-based video editing that leverages in-context learning from unpaired video clips. We show that pretraining a foundation video generation model with this strategy endows it with general editing capabilities, such as adding, replacing, or deleting operations, according to input editing instructions. The pretrained model can then be efficiently refined with a small amount of high-quality paired editing data. Built upon HunyuanVideoT2V, our framework first pretrains on approximately 1M real video clips to learn basic editing concepts, and subsequently fine-tunes on fewer than 150k curated editing pairs to extend more editing tasks and improve the editing quality. Comparative experiments show that our method surpasses existing instruction-based video editing approaches in both instruction alignment and visual fidelity, achieving a 12\% improvement in editing instruction following and a 15\% improvement in editing quality.
