Moving image · Research feature

AI Framework Unifies Video Editing and Generation Tasks

A new AI model integrates multiple video editing and generation tasks using task-specific embeddings and dual-path conditioning.

Adapted from research by Qi Liu, Gang Yue, Mingyu Yin and colleagues.

arXiv preprint revision · 2026-08-07 · Attribution & reuse
In this article
Editorial illustration of a multitrack editing timeline.

Editor’s introduction

The study introduces TIDE, a unified framework that handles instruction-based editing, reference-guided editing, and multi-reference generation through per-token task embeddings. These embeddings allow the model to distinguish between target, source, and reference tokens, improving accuracy in handling diverse video conditions. The framework combines a vision-language model with a VAE latent path to capture both semantic understanding and structural detail. Results on benchmarks like OpenVE-Bench and IntelligentVBench show TIDE outperforms existing models in instruction following, condition preservation, and visual fidelity. The model maintains consistency across tasks, such as preserving unedited regions and correctly aligning references to targets.

Introduction

The rapid evolution of Diffusion Transformers (DiTs) has propelled video synthesis to a new level, with large-scale models achieving impressive text-to-video and image-to-video generation. Beyond foundational generation, a proliferation of downstream capabilities has emerged, notably instruction-based video editing and subject-reference video generation. However, these capabilities are still handled by separate, task-specific models, and building a unified framework that supports diverse video tasks remains an open challenge. In the image domain, researchers have begun constructing unified architectures that integrate generation, editing, and reference-guided tasks into a cohesive system. In the video domain, recent works including VACE, VINO, and DreamID-Omni represent initial steps toward unified video models, yet they either require dedicated auxiliary encoders or lack explicit mechanisms to prevent inter-task interference.

A closer look reveals that these seemingly disparate tasks can be cast as a single conditional denoising problem with varying token roles: the model receives a mixed sequence of target, source, and reference tokens and must learn which to reconstruct, which to preserve, and which to draw identity from. The key challenge lies in enabling the model to correctly distinguish these roles. Existing approaches adopt different strategies: VACE introduces a dedicated context encoder to process conditioning signals separately; VINO uses a structured 3D RoPE layout with special boundary tokens to distinguish heterogeneous visual sources in the attention sequence. However, these designs either require carefully engineered positional encoding schemes or additional encoder modules, and can struggle when the number of conditioning sources varies (e.g., multi-reference editing with multiple reference images).

Realizing this unified vision, however, requires overcoming three concrete obstacles: (1) Conditioning disambiguation: when multiple visual inputs (source video, reference images) are concatenated into a shared attention sequence, the model lacks cues to determine which tokens should be preserved, which provide identity, and which are denoising targets. VACE observes that explicitly separating data of different modalities and distributions is essential for model convergence, while VINO reports that without boundary marking, concatenated latents lead to identity swapping and attribute leakage. (2) Conditioning duality: reference-guided tasks simultaneously demand high-level semantic understanding (interpreting what to generate from text and reference) and fine-grained structural fidelity (preserving how it should look), yet no single conditioning pathway can satisfy both. (3) Data scarcity and task conflicts: existing editing datasets provide source-target pairs with instructions but lack reference images, and multi-task training risks inter-task degradation from conflicting learning objectives without careful curriculum design.

To address these challenges, we introduce TIDE, a unified framework that integrates instruction-based editing, reference-guided editing, and multi-reference generation. Central to TIDE is a per-token task embedding: a learnable embedding table that assigns each input token a task-specific identifier, enabling the model to explicitly distinguish target, source, and reference tokens. Crucially, the same type of visual input (e.g., a reference image) receives different identifiers depending on the task context, and each reference in multi-reference scenarios is assigned a unique identifier, allowing the model to differentiate multiple visual identities.

Video Diffusion Models. Early video diffusion models extend image diffusion along the temporal axis using factorized or full 3D U-Nets. Latent video diffusion subsequently reduces the computational cost by denoising compact spatiotemporal representations, while lightweight temporal modules adapt image priors to video generation. More recently, Diffusion Transformers (DiTs) have become the prevailing backbone for scalable video synthesis. Latte explores latent-space video DiTs, and Sora demonstrates the scaling potential of treating videos as sequences of spatiotemporal patches. This design has been adopted by large-scale systems including CogVideoX, Open-Sora, HunyuanVideo, Wan, Movie Gen, and LTX, commonly together with 3D VAEs and flow-matching objectives. Although these foundation models provide strong text-to-video and image-to-video priors, they are not by themselves designed to distinguish the heterogeneous source, target, and reference roles required by unified editing and generation. TIDE builds on LTX-2.3 and equips its shared DiT backbone with explicit token-level task isolation.

Instruction-Based Video Editing. Early training-free approaches transfer image-editing priors to video through diffusion inversion, cross-frame attention propagation, or feature correspondence. These methods avoid task-specific training, but their dependence on inversion quality and internal feature correspondence makes precise local edits and long-term temporal consistency difficult. Training-based methods instead learn explicit source–instruction–target mappings from paired data. Large-scale datasets and systems such as OpenVE, Ditto, InsVIE, Lucy-Edit, ICVE, and Omni-Video have substantially improved instruction following, reconstruction fidelity, and edit diversity, while complementary datasets and benchmarks broaden coverage of real-world editing intents. Recent approaches including Kiwi-Edit, VINO, and UniVideo further incorporate multimodal understanding or reference conditions into video editing. Nevertheless, instruction-only editing typically assumes one source video, whereas reference-guided editing must additionally preserve and bind fine-grained visual evidence from one or more images.

Reference-Guided and Unified Video Generation and Editing. Image-prompt adapters first demonstrate that visual concepts can be injected into text-conditioned diffusion through decoupled cross-attention. Subject-to-video methods extend this idea to dynamic scenes, progressing from subject-consistent generation in Phantom to flexible composition and stronger identity preservation in ConceptMaster, BindWeave, LibraGen, Video Alchemist, and Alchemist; SkyReels-A2, MVS2V, OmniVCus, MagRef, OpenS2V-Nexus, and HunyuanCustom further strengthen multi-reference control through specialized feature extraction and fusion. Reference-guided editing introduces the additional requirement of selectively transferring reference appearance while preserving the source video’s content and motion, addressed through VLM-based multiscale features in MiVE, symmetric conditioning in DreamID-Omni, and direct latent concatenation. In parallel, unified image models such as OmniGen and UniReal motivate common formulations for generation and editing, while video models including VACE, VINO, UniVideo, and OmniWeaving combine diverse controls or multimodal understanding within shared architectures; Omni-Video 2, Tele-Omni, Many-for-Many, and FullDiT2 further explore generalist conditioning and scalable in-context generation. However, existing systems typically distinguish heterogeneous inputs through specialized modules, query bottlenecks, positional layouts, or implicit sequence context, making reliable role binding increasingly difficult as the number and type of conditions grow. TIDE instead assigns lightweight task embeddings directly to target, source, and individual reference tokens, enabling instruction-based editing, reference-guided editing, and single- or multi-reference generation within one shared backbone.

Per-Token Task Embedding

Unifying multiple tasks introduces a fundamental tension: subject-reference generation requires the model to faithfully preserve reference identity, while editing demands selective modification of source content. Without an explicit signal to distinguish these conditioning roles, the model conflates preservation with modification, leading to inter-task interference. Existing methods address this via dedicated auxiliary encoders or carefully designed positional encoding with boundary tokens, but these approaches can be difficult to extend when the number of conditioning sources varies across tasks.

Dual-Path Conditioning

Reference-guided tasks simultaneously demand high-level semantic understanding (interpreting what to generate from text and reference) and fine-grained structural fidelity (preserving how it should look). No single conditioning pathway satisfies both: VLM-based encoding excels at capturing semantic intent but compresses fine visual details, while VAE-based latent encoding retains structural information but cannot interpret complex instructions. We therefore design a dual-path scheme that injects complementary signals through two channels.

Together, the two paths form a complementary conditioning system: the semantic path provides high-level understanding of editing intent via cross-attention, guiding what to generate, while the latent path preserves fine-grained structural detail via self-attention with task isolation, ensuring how it should look while preventing interference between conditioning sources. Ablation studies in §4.4 confirm the importance of the VLM semantic path and of incorporating source-video semantics into this path.

Training and Inference

Multi-Task Progressive Training. Naively mixing all tasks from the start risks inter-task degradation, as editing objectives can conflict with generation objectives during early optimization. We adopt a three-stage progressive strategy that incrementally introduces tasks of increasing complexity. Stage 1 trains exclusively on instruction-based video editing to establish basic video-editing capability. Stage 2 introduces the full multi-task mixture, including reference-guided editing, subject-to-video generation, and multi-reference tasks, to warm up multi-task representations. Stage 3 continues multi-task training with refined sampling ratios and a reduced learning rate for long-horizon convergence. This progressive curriculum allows the model to first consolidate basic editing competence before adapting to the more challenging multi-reference scenarios. Detailed step counts, learning rates, and data ratios are reported in §4.1 and the supplementary material.

Experimental Setup

Benchmarks and Metrics. We evaluate on six benchmark tasks spanning video editing and generation. OpenVE-Bench covers eight instruction-based video editing categories. TIDE-Bench (ours) evaluates multi-reference video editing with single and compound operations through Edit Completeness, Reference Faithfulness, Visual & Temporal Quality, Scene Preservation, and Overall Quality. Both editing benchmarks are scored by Gemini-3.1-Pro. OpenS2V evaluates subject-to-video generation using Aesthetics, Motion Smoothness, Motion Amplitude, GME, Nexus, Naturalness, and their weighted Total. RefVIE-Bench covers subject- and background-reference-guided editing. Finally, we adopt the TIV2V reference-guided editing and Compositional MI2V multi-reference generation tasks of IntelligentVBench. For RefVIE-Bench and IntelligentVBench, we follow the official protocols and use Gemini-2.5-Pro as the judge on a 1–5 scale.

Baselines. For instruction-based editing (OpenVE-Bench), we compare with open-source methods InsVIE, DITTO, Lucy-Edit, ICVE, Omni-Video, UniVideo (both its query- and hidden-state conditioning variants), Kiwi-Edit, VINO, and closed-source Kling-O1 and SkyReels-Omni. For multi-reference editing (TIDE-Bench), we compare with OmniWeaving, VINO, Kiwi-Edit, and both UniVideo variants, along with closed-source Kling-O1 and SkyReels-Omni. The released TIV2V inference interface of OmniWeaving used in our evaluation accepts one reference image, so its result is reported on the single-reference subset of TIDE-Bench; all other methods are evaluated on the full benchmark. For subject-to-video generation (OpenS2V), we compare with MagRef, Phantom, SkyReels-A2, VACE, HunyuanCustom, VINO, and closed-source Kling 1.6, Pika 2.1, and Vidu 2.0. For RefVIE-Bench and IntelligentVBench, we follow their published comparisons against Kiwi-Edit, VINO, UniVideo, OmniWeaving, VACE, and specialized subject-driven generation models as applicable to each task.

Quantitative Results

Results on IntelligentVBench. To assess multimodal conditioning and composition, we report results on the TIV2V and Compositional MI2V tasks of IntelligentVBench in Tables 6 and 7. On TIV2V, TIDE achieves the best Instruction Following, Condition Preserving, and average scores, improving the strongest baseline average from 3.89 to 4.10. Although RoPE-Pos obtains a slightly higher Visual Quality score (3.80 versus 3.78), TIDE provides the strongest overall balance between faithfully executing the requested edit, preserving the reference identity and unedited source content, and maintaining visual quality.

For the more challenging Compositional MI2V task, TIDE achieves the highest MIN scores for one- and two-subject generation and the highest average score in the two-subject setting, raising OmniWeaving’s MIN and AVG from 3.61/4.27 to 4.01/4.39. Despite not being trained on MI2V data, TIDE remains competitive in the one- and three-subject settings, demonstrating effective generalization from cropped multi-subject references to open-domain multi-image composition. RoPE-Pos leads Instruction Following at every subject count and attains the best three-subject MIN, suggesting that the positive positional layout favors dense compositional prompting, while TIDE delivers more balanced reference preservation and generation quality in the one- and two-subject settings.

Qualitative Results

As illustrated in Figures 3–8, we qualitatively compare TIDE with the baselines available for each benchmark. On OpenVE-Bench, TIDE follows the editing instructions more accurately than Ditto and VINO while better preserving unedited regions. For reference-guided editing on RefVIE-Bench and TIV2V, TIDE more faithfully restores the supplied subject or background reference, applies it to the intended target, and produces higher-fidelity editing results. On TIDE-Bench, TIDE accurately binds each reference image to the corresponding edit and preserves unrelated scene content, including the tabletop in the second case. For multi-reference generation on OpenS2V and Compositional MI2V, TIDE better maintains the distinct identity of every reference subject while following the requested interactions and retaining favorable overall video quality. Across all displayed cases, TIDE provides the most faithful and visually coherent result; additional qualitative examples are included in the supplementary material.

Ablation Studies

Task Embedding. We compare against two positional alternatives throughout the benchmark tables: RoPE-Neg places conditioning tokens before the target on a negative position axis, while RoPE-Pos keeps the target starting at zero and appends conditioning tokens on the positive axis. The final task-embedding model surpasses both variants on OpenVE-Bench (2.91 vs. 2.37/2.24) and TIDE-Bench (3.41 vs. 2.97/2.66). Its Reference Faithfulness score also improves from 3.00/2.71 to 3.44, supporting explicit per-token task identifiers for distinguishing visual conditions.

Conclusion

We presented TIDE, a unified framework that integrates instruction-based video editing, reference-guided video editing, and multi-reference video generation through a joint Diffusion Transformer and vision-language model architecture, equipped with per-token task embeddings and dual-path conditioning. Experiments on OpenVE-Bench, TIDE-Bench, OpenS2V, RefVIE-Bench, and the TIV2V and Compositional MI2V tasks of IntelligentVBench demonstrate state-of-the-art or competitive performance across both editing and generation tasks.

Limitations. Despite strong overall performance, several limitations remain. First, our training data lacks multi-shot editing sequences, limiting TIDE’s ability to perform coherent edits across scene transitions and camera cuts; collecting or synthesizing multi-shot editing data would strengthen this capability. Second, TIDE currently operates exclusively in the visual domain and does not support audio-aware editing (e.g., synchronizing speech or sound effects with visual modifications), an increasingly important direction as audio-visual generation models mature. Future work will explore extending the task embedding framework to accommodate multi-shot and audio-visual editing scenarios.

Data Source and Construction

TIDE-Bench is designed to test whether a video editor can jointly follow compound instructions, bind each visual condition to the correct edit, and preserve the remainder of the source video. We collect 56 source videos from the Pexels website and filter them for scene diversity, visible motion, and sufficient content for localized or compositional editing. From these videos, we construct 211 editing scenarios. Each scenario contains a source video, an editing instruction, up to three reference images, and explicit metadata specifying the role of each reference.

Evaluation Protocol

We adopt the LLM-as-judge paradigm and use Gemini-3.1-Pro as the automated evaluator. For every scenario, the judge receives the visual inputs in a fixed order: the original video, all applicable reference images in their metadata order, and the edited video. The instruction and a role description for each reference are inserted into the prompt. We use separate complete prompt templates for global style transfer and local or compound editing, as provided in Appendix C.3.

Each output is scored on five 1 – 5 dimensions: Edit Completeness, Reference Faithfulness, Visual & Temporal Quality, Scene Preservation, and Overall Quality. For a scenario with multiple references, the judge scores every reference independently and Reference Faithfulness is the minimum of these per-reference scores, thereby exposing failure on any individual condition rather than allowing it to be hidden by averaging. Reference Faithfulness is averaged over applicable scenarios, while the other four dimensions are averaged over all evaluated scenarios. The reported composite score is the unweighted mean of the five resulting dimension-level means.

To prevent inflated scores from naive copy-pasting, Reference Faithfulness, Visual & Temporal Quality, Scene Preservation, and Overall Quality are constrained to be no greater than Edit Completeness. The prompt further directs the judge to penalize reference content that appears as a crude overlay without plausible integration. Together, the worst-reference aggregation and score cap require a method to execute every requested operation before it can receive a high composite score.

Multi-Reference Video Editing Cases

Figures 14 to 17 illustrate TIDE’s multi-reference video editing across different operation combinations, including single-reference addition, background change with removal, dual object removal, and object removal with replacement. Across these cases, TIDE accurately executes every requested operation, restores the supplied references with high fidelity, and preserves unedited subjects and scene regions, demonstrating robust control over both individual and compound edits.