InsEdit: Towards Instruction-based Visual Editing via Data-Efficient Video Diffusion Models Adaptation

Zhefan Rao, Bin Zou, Haoxuan Che, Xuanhua He, Chong Hou Choi, Yanheng Li, Rui Liu, Qifeng ChenarXiv 2026

TL;DR

InsEdit transforms a pre-trained video generation model into a powerful instruction-based video editor using a fraction of the data typically required ($O(100)\text{K}$ pairs). By introducing a novel Mutual Context Attention (MCA) mechanism to synthesize high-quality training pairs where edits can start mid-clip, InsEdit achieves state-of-the-art open-source performance while naturally supporting image editing out of the box.

What Problem Does This Paper Address?

Instruction-based video editing—where a user modifies a video using natural language prompts like "change the background to a snow mountain"—is highly desirable but notoriously data-hungry. Existing adaptation methods often require millions of video pairs to train effectively.

Worse yet, current video editing datasets heavily rely on a "first-frame-and-propagate" pipeline. This means edits always start at frame one and persist throughout the entire clip. This creates a massive bias: models struggle with real-world requests where an edit should only happen halfway through a video (e.g., after an object enters the scene or an action starts). This propagation technique also frequently introduces flickering and visual artifacts near the beginning of clips.

Methods

InsEdit tackles these challenges through a dual approach combining a source-guided architecture and a novel data synthesis pipeline:

1. Editing Architecture

Built on top of the dual-stream MMDiT architecture of HunyuanVideo-1.5, InsEdit introduces a Semantic Module and a Vision Module:

  • Semantic Module: Ingests both the text instruction and the source video/image using three frozen encoders (Qwen2.5-VL, SigLIP, and Glyph-ByT5) to project them into a shared sequence of edit-aware tokens.
  • Vision Module: Reuses the original pre-trained denoising stream to generate the edited target video, conditioning the MMDiT blocks on both the source visual features and the semantic tokens.
Figure 3: Overview of the InsEdit architecture. The semantic module converts the source input and editing instruction into edit-aware tokens, while the vision module denoises the target conditioned on both source features and semantic tokens.

2. Mutual Context Attention (MCA) Data Pipeline

To generate more informative training data, the authors developed the MCA pipeline. Instead of editing a single anchor frame, MCA denoises a source and target video branch jointly within a shared DiT backbone.

By selectively swapping or concatenating Key ($K$) and Value ($V$) attention matrices between the two branches at specific denoising steps, the pipeline tightly couples global layout and camera motion while giving the target branch the flexibility to execute localized or temporally specific edits. This allows the automatic synthesis of video pairs where the edit can naturally emerge in the middle of a clip.

Figure 4: Automatic pipeline for video editing data construction. Starting from keyword prompts, the pipeline synthesizes aligned source-target video pairs, converts them into multiple instruction forms, and filters them with VQA-based alignment checking.

Datasets

  • Training Data: The model is trained on a mixture of image and video data. It utilizes $O(1)\text{M}$ image editing samples (augmented via Qwen-Image-Edit) to anchor spatial editing capabilities. For video, it uses a modest $O(100)\text{K}$ samples collected from OpenVE, Ditto, and their custom MCA pipeline.
  • Evaluation Benchmarks: The authors evaluate their model on the standard OpenVE-Bench. To better capture diverse real-world editing scenarios, they also introduce InsEdit-Bench, a new benchmark containing 82 samples across 13 distinct editing categories (e.g., background switch, relighting, relocation, and season switch) over 80 source videos. Image editing is evaluated using the GEdit benchmark.

Key Insights and Ideas

  • Mid-Clip Edits are Crucial: Training models on data with varying edit onset times prevents the model from assuming edits must apply to frame zero, leading to much better temporal flexibility.
  • Asymmetric Attention Scheduling: The authors found that a fixed attention policy doesn't work for all edits. For instance, early denoising steps dictate global layout and camera motion (benefiting from strong coupling like swapping $KV$), while middle steps handle localized feature changes (benefiting from softer context concatenation).
  • The 4:1 Image-to-Video Advantage: High-quality video data is expensive. The authors discovered that a high image-to-video ratio (4:1) during training is incredibly efficient: image data effectively teaches the model what to change spatially, while a smaller pool of video data teaches it how to maintain temporal consistency.

Key Results

  • State-of-the-Art Performance: InsEdit achieves the highest overall scores among open-source methods on both OpenVE-Bench (4.43) and InsEdit-Bench (4.61), consistently outperforming baselines like VINO and UniVideo.
  • High Data Efficiency: As shown in Figure 2, InsEdit enters a "High Efficiency Zone," achieving superior performance with significantly less training data than its competitors.
Figure 2: Training efficiency of adapting video generation models into editors. InsEdit reaches strong video editing performance with only 𝑂(100)K video editing data.
  • Lower Inference Latency: InsEdit generates 81 frames at 480p in just 1.95 minutes on a single GPU, making it substantially faster than Ditto (7.33 min) and UniVideo (21.5 min).
  • Bonus Image Editing: Because the model treats static images as single-frame videos, it naturally excels at image editing, outperforming several dedicated open-source image editors on the GEdit benchmark's perceptual quality metric (G_PQ of 7.77).

Limitations and Future Work

InsEdit currently focuses on short-clip, language-driven 2D video editing. The authors note failure cases in scenarios requiring precise spatial control (like exact bounding box adjustments), complex multi-object relational reasoning, and long-video temporal consistency.

Promising future directions include extending the framework to handle multi-scene long videos, incorporating explicit spatial control signals (such as masks or keypoints), and scaling up the MCA data pipeline using even stronger video generation backbones.

Summary updated

BibTeX
@misc{rao2026insedit,
  author = {Zhefan Rao and Bin Zou and Haoxuan Che and Xuanhua He and Chong Hou Choi and Yanheng Li and Rui Liu and Qifeng Chen},
  title = {{InsEdit: Towards Instruction-based Visual Editing via Data-Efficient Video Diffusion Models Adaptation}},
  year = {2026},
  eprint = {2604.08646},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.08646},
}
Figure