paper-with-me

홈 › Papers

FreeMask: Rethinking the Importance of Attention Masks for Zero-Shot Video Editing

2024-09-30 · Lingling Cai, Kang Zhao, Hangjie Yuan, Yingya Zhang, Shiwei Zhang, Kejie Huang

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.

📄 PDF Abstract BibTeX arXiv:2409.20500

Code (0)

등록된 구현이 없습니다.

Tasks

DenoisingVideo Editing

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

FreeMask: Synthetic Images with Dense Annotations Make Stronger Segmentation Models

2023-10-23 · NeurIPS 2023 11 · Lihe Yang, Xiaogang Xu, Bingyi Kang, Yinghuan Shi 외

Semantic segmentation has witnessed tremendous progress due to the proposal of various advanced network architectures. However, they are extremely hungry for delicate annotations to train, and the acquisition is laboriou…

SegmentationSemantic Segmentation

SparseBERT: Rethinking the Importance Analysis in Self-attention

2021-02-25 · Han Shi, Jiahui Gao, Xiaozhe Ren, Hang Xu 외

Transformer-based models are popularly used in natural language processing (NLP). Its core component, self-attention, has aroused widespread interest. To understand the self-attention mechanism, a direct method is to vis…

How Do Decoder-Only LLMs Perceive Users? Rethinking Attention Masking for User Representation Learning

2026-02-11 · Jiahao Yuan, Yike Xu, Jinyong Wen, Baokun Wang 외 arxiv

Decoder-only large language models are increasingly used as behavioral encoders for user representation learning, yet the impact of attention masking on the quality of user embeddings remains underexplored. In this work,…

Representation LearningContrastive Learning

Efficiently Dispatching Flash Attention For Partially Filled Attention Masks

2024-09-23 · Agniv Sharma, Jonas Geiping

Transformers are widely used across various applications, many of which yield sparse or partially filled attention matrices. Examples include attention masks designed to reduce the quadratic complexity of attention, sequ…

FALIP: Visual Prompt as Foveal Attention Boosts CLIP Zero-Shot Performance

2024-07-08 · Jiedong Zhuang, Jiaqi Hu, Lianrui Mu, Rui Hu 외

CLIP has achieved impressive zero-shot performance after pre-training on a large-scale dataset consisting of paired image-text data. Previous works have utilized CLIP by incorporating manually designed visual prompts lik…

image-classificationImage Classification