Object-Centric Diffusion for Efficient Video Editing

Kumara Kahatapitiya, Adil Karjauv, Davide Abati, Fatih Porikli, Yuki M. Asano, Amirhossein Habibian

Abstract

Object-Centric Diffusion (OCD) is a training-free framework designed to significantly reduce the computational and memory costs associated with diffusion-based video editing. By focusing intensive denoising and attention operations on foreground objects—where visual fidelity is most critical—OCD achieves up to a 10x speedup in generation latency and a 17x reduction in memory consumption. This approach maintains state-of-the-art temporal consistency and text-alignment without requiring model retraining.

Introduction

Diffusion models have transformed video editing, enabling complex transformations such as changing a "black swan" into a "white duck" through simple text prompts. However, these models face two major hurdles: high computational latency due to numerous denoising steps and cross-frame attention, and massive memory overhead from storing high-resolution attention maps. Traditional methods treat every pixel as equally important, which is inefficient for most editing tasks where the user's focus is primarily on a specific modified object.

Methodology

The OCD framework introduces two key "Object-Centric" modifications that can be integrated into existing models like FateZero or ControlVideo without retraining:

1. Object-Centric Sampling

OCD decouples the diffusion process for foreground and background regions. The foreground receives the full count of denoising steps to ensure high-quality editing of the target object. Conversely, the background undergoes significantly fewer steps, accelerated by a factor $\phi$. In the final stages of the process, a blending operation merges the two regions to ensure seamless edges and consistent lighting.

2. Object-Centric Token Merging (ToMe)

While Token Merging typically speeds up Transformers by fusing redundant tokens, it can often degrade the details of edited objects. OCD addresses this by introducing a weighting factor ($\eta$) that protects foreground tokens from merging. This technique is extended across spatiotemporal volumes, exploiting the temporal redundancy of background pixels to further enhance efficiency.

Key Insights

Analysis of the diffusion pipeline reveals that memory access operations often dominate latency more than raw computation, particularly as video length increases. Interestingly, reducing denoising steps for the background can actually improve fidelity by keeping the background closer to the original video pixels, thereby preventing unwanted "drifting" or hallucinations.

Computational breakdown of generation latency across different attention types, illustrating the efficiency gains of sparse/object-centric approaches.

Key Results

The researchers evaluated OCD using the DAVIS dataset, demonstrating substantial efficiency gains. For the inversion-based FateZero model, OCD achieved a 10x speedup in generation latency, reducing processing time from approximately 135 seconds to just 9 seconds in typical benchmarks.

Visual comparison of the source video (black swan) and edited results (white duck). The baseline FateZero took 177.14s, while OCD achieved comparable quality in only 17.51s.

Memory efficiency also saw dramatic improvements, with reductions of up to 17x in specific configurations. Despite these gains, quantitative metrics for temporal consistency (Tem-con) and text-alignment (CLIP-score) remained nearly identical to the original, slower baseline models.

Conclusion

Object-Centric Diffusion provides a powerful, training-free solution for efficient video editing. While highly effective for local object modifications, it is less suited for global style transfers where background acceleration might lead to inconsistent results. Future research will focus on automating hyperparameter selection to further streamline the editing pipeline.

Summary updated

BibTeX
@inproceedings{kahatapitiya2024object,
  author = {Kumara Kahatapitiya and Adil Karjauv and Davide Abati and Fatih Porikli and Yuki M. Asano and Amirhossein Habibian},
  title = {{Object-Centric Diffusion for Efficient Video Editing}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72998-0\_6},
}
Figure