FreeMask: Rethinking the Importance of Attention Masks for Zero-Shot Video Editing
<|reference_start|>FreeMask: Rethinking the Importance of Attention Masks for Zero-Shot Video Editing: Text-to-video diffusion models have made remarkable advancements. Driven by their ability to generate temporally coherent videos, research on zero-shot video editing using these fundamental models has expanded rapidly. To enhance editing quality, structural controls are frequently employed in video editing. Among these techniques, cross-attention mask control stands out for its effectiveness and efficiency. However, when cross-attention masks are naively applied to video editing, they can introduce artifacts such as blurring and flickering. Our experiments uncover a critical factor overlooked in previous video editing research: cross-attention masks are not consistently clear but vary with model structure and denoising timestep. To address this issue, we propose the metric Mask Matching Cost (MMC) that quantifies this variability and propose FreeMask, a method for selecting optimal masks tailored to specific video editing tasks. Using MMC-selected masks, we further improve the masked fusion mechanism within comprehensive attention features, e.g., temp, cross, and self-attention modules. Our approach can be seamlessly integrated into existing zero-shot video editing frameworks with better performance, requiring no control assistance or parameter fine-tuning but enabling adaptive decoupling of unedited semantic layouts with mask precision control. Extensive experiments demonstrate that FreeMask achieves superior semantic fidelity, temporal consistency, and editing quality compared to state-of-the-art methods.<|reference_end|>
@article{cai2024freemask:,
    title={FreeMask: Rethinking the Importance of Attention Masks for Zero-Shot
  Video Editing},
    author={Lingling Cai, Kang Zhao, Hangjie Yuan, Yingya Zhang, Shiwei Zhang,
  Kejie Huang},
    journal={arXiv preprint arXiv:2409.20500},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.20500},
    primaryClass={cs.CV cs.MM}
}