VicEdit Icon
VicEdit: Learning to Edit Videos from Visual In-Context Examples
1Shanghai Jiao Tong University  ·  2Tencent Youtu Lab  ·  3Zhejiang University
*Equal contribution  ·  Corresponding author
Teaser

Top: Qualitative comparison between VicEdit and text-only baselines. VicEdit precisely resolves stylistic drift (via Single Image), spatial drift (via Image Pair), and static dynamics (via Video Pair). Bottom: Architectural evolution from text-only editing to visual in-context editing.

Abstract

Despite progress in instruction-based video editing, unimodal textual instructions inherently struggle to convey fine-grained textures and complex dynamics. To bridge this perceptual gap, we propose Visual In-context Editing, a new paradigm elevating video editing from textual instructions to multi-modal visual guidance encompassing single image, image pair, and video pair. To facilitate this paradigm, we curate VicEdit-400K, the first large-scale dataset for visual in-context video editing with 400K high-quality samples across ten task types. We introduce VicEdit, a unified framework bridging visual and textual contexts through Modality-Adaptive Semantic Distillation (MASD) and Dual-Context Injection (DCI). Extensive evaluations on VicEdit-Bench demonstrate that VicEdit achieves state-of-the-art performance across both basic instruction editing and visual in-context editing tasks.

Key Contributions

1. Visual In-Context Editing Paradigm. We formulate a unified visual in-context video editing paradigm that extends editing from text-only instructions to multi-modal guidance across Single Image Image Pair Video Pair references, addressing the expressivity bottleneck of language in conveying textures, spatial layouts, and temporal dynamics.
2. VicEdit-400K Dataset. The first large-scale dataset for visual in-context video editing, containing 400K high-quality samples across three reference modalities and ten distinct task types, curated through an automated pipeline with multi-dimensional quality filtering.
3. VicEdit Framework. A unified framework with Modality-Adaptive Semantic Distillation (MASD) for extracting modality-specific semantic tokens and Dual-Context Injection (DCI) for synergistically fusing visual and textual context into the video DiT, achieving state-of-the-art on both base text-driven and visual in-context editing tasks.

Visual In-Context Editing Paradigm

VicEdit supports three types of visual references, each addressing a critical limitation of text-only instructions.

Category: Global Style · Edit prompt: Apply the Pop Art animation style to this video...
Source
Source Video
Reference
Single Image Ref
Baseline
Text-Only Baseline
Ours
VicEdit (Ours)

Problem solved: Text-only baselines suffer from stylistic drift. The single image reference precisely anchors the target texture, enabling coherent style transfer.

Category: Background Change · Edit prompt: Replace the background with a vibrant tropical beach scene...
Source
Source Video
VIC Source
Image Pair (Before)
VIC Target
Image Pair (After)
Baseline
Text-Only Baseline
Ours
VicEdit (Ours)

Problem solved: Linguistic instructions specify what but not where to edit. The image pair reference intuitively defines spatial anchors that text-only methods fail to exploit.

Category: Creative Edit · Edit prompt: Transform the water bottle to a glowing miniature galaxy.
Source
Source Video
VIC Source
Video Pair (Before)
VIC Target
Video Pair (After)
Baseline
Text-Only Baseline
Ours
VicEdit (Ours)

Problem solved: Complex motion dynamics cannot be described by text. The video pair reference provides temporal motion cues that enable vibrant, dynamic edits.

Method: VicEdit Framework

Method Pipeline

VicEdit architecture. Visual references (single image, image pair, video pair) are processed by Modality-Adaptive Semantic Distillation (MASD) to extract modality-specific semantic tokens. These tokens are then synergistically integrated with textual instructions through Dual-Context Injection (DCI) via cross-attention into the video DiT.

VicEdit-400K Dataset

Data Pipeline

Data construction pipeline comprising four stages: Source Data Filtering, Instruction Synthesis, Visual Reference Generation, and Quality Verification.

Dataset Statistics

Statistics of VicEdit-400K: theme analysis, prompt length distribution, frame distribution, editing task distribution, and prompt word cloud.

VicEdit-Bench

VicEdit-Bench

VicEdit-Bench comprehensively evaluates visual in-context editing across three reference modalities and diverse task types.

Video Editing Demos

VicEdit handles diverse editing tasks across both basic instruction editing and visual in-context editing. Each demo shows the source video, the visual in-context reference, and VicEdit's output.

Comparison with State-of-the-Art

VicEdit outperforms existing methods on both visual in-context editing (VIC) and basic instruction editing tasks.

Category: Global Style · Edit prompt: Apply the principles of abstract art to this video...
Source
Source
VideoCoF
VideoCoF
NovaEdit
NovaEdit
Lucy-Edit
Lucy-Edit
Kiwi-Edit
Kiwi-Edit
Ours
VicEdit (Ours)
Category: Local Remove · Edit prompt: Track the round wall clock throughout the video and remove it...
Source
Source
VideoCoF
VideoCoF
NovaEdit
NovaEdit
Lucy-Edit
Lucy-Edit
Kiwi-Edit
Kiwi-Edit
Ours
VicEdit (Ours)
Category: Local Style Transfer · Edit prompt: Paint the vase a deep tomato red.
Source
Source
VideoCoF
VideoCoF
NovaEdit
NovaEdit
Kiwi-Edit
Kiwi-Edit
Ours
VicEdit (Ours)
Category: Background Change · Edit prompt: Replace the dynamic southern porch scene with the original static kitchen background...
Source
Source
VideoCoF
VideoCoF
NovaEdit
NovaEdit
Lucy-Edit
Lucy-Edit
Kiwi-Edit
Kiwi-Edit
Ours
VicEdit (Ours)
Category: Creative Edit · Edit prompt: Transform the milk instantly into a miniature ocean scene...
Source
Source
VideoCoF
VideoCoF
NovaEdit
NovaEdit
Lucy-Edit
Lucy-Edit
Kiwi-Edit
Kiwi-Edit
Ours
VicEdit (Ours)
Category: Local Add · Edit prompt: Overlay an animated blue water bowl on the floor in front of the dog...
Source
Source
VideoCoF
VideoCoF
NovaEdit
NovaEdit
Lucy-Edit
Lucy-Edit
Kiwi-Edit
Kiwi-Edit
Ours
VicEdit (Ours)

Quantitative Results

Basic Instruction Editing

Basic Editing Results

Quantitative comparison on basic instruction editing tasks. VicEdit achieves competitive or superior performance across all metrics.

Visual In-Context Editing (VicEdit-Bench)

VIC Editing Results

Quantitative comparison on VicEdit-Bench for visual in-context editing. VicEdit significantly outperforms all baselines across three reference modalities.

BibTeX

@misc{vicedit2026,
  title={VicEdit: Learning to Edit Videos from Visual In-Context Examples},
  author={Wang, Yuji and Hu, Teng and Chen, Yuheng and Yi, Ran and Feng, Han and Cao, Weijian and Wang, Chengjie and Ma, Lizhuang and Zhang, Jiangning},
  year={2026},
  eprint={arXiv:XXXX.XXXXX},
  archivePrefix={arXiv},
  primaryClass={cs.CV}
}