MagDiff: Multi-alignment Diffusion for High-Fidelity Video Generation and Editing

Haoyu Zhao, Tianyi Lu, Jiaxi Gu, Xing Zhang, Qingping Zheng, Zuxuan Wu, Hang Xu, Yu-Gang Jiang

Abstract

MagDiff is a novel, tuning-free diffusion framework designed to unify video generation and editing within a single model. By addressing the common pitfalls of subject and action misalignment, MagDiff introduces three specialized strategies: Subject-Driven Alignment (SDA), Adaptive Prompts Alignment (APA), and High-Fidelity Alignment (HFA). These components allow the model to preserve a subject's identity while accurately following complex textual action prompts. Experimental results demonstrate that MagDiff achieves state-of-the-art performance across multiple benchmarks, including UCF-101 and DAVIS, offering a robust solution for high-quality video synthesis.

Introduction

Current video diffusion models typically specialize in either generation (creating video from text) or editing (modifying existing footage), but rarely excel at both simultaneously. This paper identifies a core "misalignment" problem in existing architectures. Text-only prompts often lack the precision to control fine visual details, leading to subject misalignment. Conversely, image-conditioned models often suffer from action misalignment, where the static reference image "overpowers" the text prompt, preventing dynamic animation. Furthermore, standard semantic encoders like CLIP often lose pixel-level textures, resulting in low-fidelity outputs.

MagDiff demonstrates high-fidelity video generation with precise text alignment, such as an astronaut waving or a car on a lake.

Methodology

MagDiff tackles these challenges through a "Multi-alignment" approach that unifies the generation and editing pipelines.

Subject-Driven Alignment (SDA)

Instead of conditioning on a full reference image, MagDiff utilizes a segmentation mask to isolate the subject. This allows the model to focus exclusively on the subject's identity, leaving the background and specific actions to be governed by the text prompt. This subject-centric condition serves as the bridge for both generation (from noise) and editing (from a source video).

The MagDiff framework unifies video generation and editing by utilizing subject segmentation masks as a core conditioning mechanism.

Adaptive Prompts Alignment (APA)

To prevent the reference image from suppressing textual instructions, MagDiff introduces learnable parameters in the cross-attention layers. This allows the model to dynamically balance homogeneous information (image-to-video) and heterogeneous information (text-to-video), ensuring the subject follows the text's instructions without losing its visual identity.

High-Fidelity Alignment (HFA)

To recover lost visual details, MagDiff bypasses the semantic bottleneck of CLIP. It employs a VAE-based pyramid structure to inject multi-scale pixel-level information directly into the latent space at various resolutions (384, 320, and 256), ensuring the final output retains the specific textures of the reference subject.

Experiments and Results

The model was trained on a cleaned subset of the Pexel Videos dataset (76K high-quality clips) and evaluated against several industry standards:

  • Video Generation: On the UCF-101 benchmark, MagDiff achieved an Inception Score (IS) of 48.57 and a Fréchet Video Distance (FVD) of 339.62, significantly outperforming models like VideoCrafter1 and I2VGen-XL.
  • Video Editing: On the DAVIS dataset, MagDiff outperformed tuning-free methods such as Framewise IP2P, showing a +2.54 improvement in textual alignment and +4.10 in frame consistency.
  • Human Evaluation: In a study with 34 raters, MagDiff was ranked highest in image-prompt alignment, text-prompt alignment, and overall video quality compared to its competitors.

Conclusion

MagDiff successfully unifies video generation and editing by treating the subject as a central anchor. Through its multi-alignment strategies, it overcomes the traditional trade-off between identity preservation and action fidelity. While the model excels in zero-shot performance, future work may explore maintaining this fidelity over longer temporal sequences and further optimizing the computational overhead of the multi-scale HFA module.

Summary updated

BibTeX
@inproceedings{zhao2024magdiff,
  author = {Haoyu Zhao and Tianyi Lu and Jiaxi Gu and Xing Zhang and Qingping Zheng and Zuxuan Wu and Hang Xu and Yu-Gang Jiang},
  title = {{MagDiff: Multi-alignment Diffusion for High-Fidelity Video Generation and Editing}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72649-1\_12},
}
Figure