NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pix2Video: Video Editing using Image Diffusion

Duygu Ceylan, Chun-Hao Paul Huang, Niloy J. Mitra · DOI

Abstract

Image diffusion models, trained on massive image collections, have emerged as the most versatile image generator model in terms of quality and diversity. They support inverting real images and conditional (e.g., text) generation, making them attractive for high-quality image editing applications. We investigate how to use such pre-trained image models for text-guided video editing. The critical challenge is to achieve the target edits while still preserving the content of the source video. Our method works in two simple steps: first, we use a pre-trained structure-guided (e.g., depth) image diffusion model to perform text-guided edits on an anchor frame; then, in the key step, we progressively propagate the changes to the future frames via self-attention feature injection to adapt the core denoising step of the diffusion model. We then consolidate the changes by adjusting the latent code for the frame before continuing the process. Our approach is training-free and generalizes to a wide range of edits. We demonstrate the effectiveness of the approach by extensive experimentation and compare it against four different prior and parallel efforts. We demonstrate that realistic text-guided video edits are possible, without any compute-intensive preprocessing or video-specific finetuning.

Introduction

While image diffusion models like Stable Diffusion have revolutionized AI-driven content creation, extending their capabilities to the temporal domain of video remains a significant hurdle. The primary challenge is temporal inconsistency. When image-editing models are applied to video frames independently, subtle variations in the model's interpretation of a prompt lead to a "flickering" effect, where textures, colors, and shapes shift unnaturally between frames.

Existing solutions to this problem often rely on computationally expensive techniques. Some require the creation of "neural atlases," which can take upwards of 10 hours to compute per video. Others utilize "one-shot finetuning," where a model is specifically trained on the target video before editing can begin. Pix2Video introduces a "zero-shot," training-free framework that adapts off-the-shelf image models for high-quality, text-guided video editing, achieving stability without the overhead of preprocessing or finetuning.

Methodology

The Pix2Video pipeline is designed to maintain both the structural integrity of the original video and the visual consistency of the new edits through three primary stages.

1. Inversion and Structure Conditioning

The process begins by converting the input video into a latent noise representation using DDIM inversion. To ensure the edited video retains the original's geometry—ensuring, for instance, that a bear remains bear-shaped—the framework employs a depth-conditioned diffusion model. Depth maps are extracted from the source video to guide the generation process, providing a rigid structural scaffold for the edits.

2. Self-Attention Feature Injection

This is the core innovation of the method. During the denoising of a new frame, the model does not operate in isolation. Instead, it "injects" features from two critical reference points into its self-attention layers:

  • The Anchor Frame: Typically the first edited frame, serving as a global reference to prevent visual "drift" or the fading of edits over long sequences.
  • The Previous Frame: Providing local continuity to ensure smooth transitions between adjacent frames.
The Pix2Video pipeline: Inversion of source frames is followed by self-attention feature injection from anchor/previous frames and a guided latent update to ensure temporal consistency.

3. Guided Latent Update

To further suppress flickering, an energy-based guidance step is introduced. At each denoising iteration, a small optimization is performed to minimize the $L_2$ distance between the predicted clean version of the current frame and the previous frame. This "nudges" the latent representation toward temporal harmony before the next step of the diffusion process.

Key Insights

  • The "Forgetful" Problem: Research revealed that attending only to the previous frame causes edits to diminish over time. Incorporating a static Anchor Frame acts as a "north star," maintaining consistent style throughout the clip.
  • Decoder Dominance: Feature injection is most effective when applied to the decoder layers of the U-Net. These layers capture high-resolution appearance and texture, whereas encoder layers focus more on high-level semantics.
  • Efficiency: Unlike concurrent methods like Tune-a-Video (requiring ~10 minutes of finetuning) or Text2Live (requiring hours of preprocessing), Pix2Video is ready for immediate use, generating frames in approximately 5 seconds on an NVIDIA A100.

Results and Evaluation

Pix2Video was evaluated using the DAVIS dataset, a standard benchmark for video editing. The method demonstrated superior performance across several key metrics:

  • Prompt Faithfulness: Achieved a CLIP-Text score of 0.2891, outperforming baselines like SDEdit and Text2Live in following user instructions.
  • Temporal Stability: Maintained a high CLIP-Image score (0.9767), confirming visual stability across frames.
  • User Preference: In a study with 37 participants, Pix2Video was consistently preferred for both faithfulness to the prompt and overall video quality.
Qualitative comparison of Pix2Video against per-frame editing. Our method maintains consistent textures and colors across frames compared to the flickering seen in independent frame processing.

Limitations and Future Work

While robust, the method faces challenges during extreme scene changes or very rapid motion, where the anchor frame may become less relevant. Future work may explore dynamic "anchor update" mechanisms that adapt as the scene evolves, or incorporating additional guidance terms like patch-based similarity to further refine stability in complex occlusions.

Conclusion

Pix2Video demonstrates that high-quality, text-guided video editing is possible using only pre-trained image diffusion models. By combining self-attention feature injection with guided latent updates, it provides a practical, training-free solution for creators seeking to edit video content with the same flexibility currently enjoyed in AI image generation.

Summary updated

BibTeX
@inproceedings{ceylan2023pix,
  author = {Duygu Ceylan and Chun-Hao Paul Huang and Niloy J. Mitra},
  title = {{Pix2Video: Video Editing using Image Diffusion}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.02121},
}
Figure