Understanding Attention Mechanism in Video Diffusion Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Bingyan, Wang, Chengyu, Su, Tongtong, Ten, Huan, Huang, Jun, Guo, Kailing, Jia, Kui
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909582047051776
author Liu, Bingyan
Wang, Chengyu
Su, Tongtong
Ten, Huan
Huang, Jun
Guo, Kailing
Jia, Kui
author_facet Liu, Bingyan
Wang, Chengyu
Su, Tongtong
Ten, Huan
Huang, Jun
Guo, Kailing
Jia, Kui
contents Text-to-video (T2V) synthesis models, such as OpenAI's Sora, have garnered significant attention due to their ability to generate high-quality videos from a text prompt. In diffusion-based T2V models, the attention mechanism is a critical component. However, it remains unclear what intermediate features are learned and how attention blocks in T2V models affect various aspects of video synthesis, such as image quality and temporal consistency. In this paper, we conduct an in-depth perturbation analysis of the spatial and temporal attention blocks of T2V models using an information-theoretic approach. Our results indicate that temporal and spatial attention maps affect not only the timing and layout of the videos but also the complexity of spatiotemporal elements and the aesthetic quality of the synthesized videos. Notably, high-entropy attention maps are often key elements linked to superior video quality, whereas low-entropy attention maps are associated with the video's intra-frame structure. Based on our findings, we propose two novel methods to enhance video quality and enable text-guided video editing. These methods rely entirely on lightweight manipulation of the attention matrices in T2V models. The efficacy and effectiveness of our methods are further validated through experimental evaluation across multiple datasets.
format Preprint
id arxiv_https___arxiv_org_abs_2504_12027
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Understanding Attention Mechanism in Video Diffusion Models
Liu, Bingyan
Wang, Chengyu
Su, Tongtong
Ten, Huan
Huang, Jun
Guo, Kailing
Jia, Kui
Computer Vision and Pattern Recognition
Text-to-video (T2V) synthesis models, such as OpenAI's Sora, have garnered significant attention due to their ability to generate high-quality videos from a text prompt. In diffusion-based T2V models, the attention mechanism is a critical component. However, it remains unclear what intermediate features are learned and how attention blocks in T2V models affect various aspects of video synthesis, such as image quality and temporal consistency. In this paper, we conduct an in-depth perturbation analysis of the spatial and temporal attention blocks of T2V models using an information-theoretic approach. Our results indicate that temporal and spatial attention maps affect not only the timing and layout of the videos but also the complexity of spatiotemporal elements and the aesthetic quality of the synthesized videos. Notably, high-entropy attention maps are often key elements linked to superior video quality, whereas low-entropy attention maps are associated with the video's intra-frame structure. Based on our findings, we propose two novel methods to enhance video quality and enable text-guided video editing. These methods rely entirely on lightweight manipulation of the attention matrices in T2V models. The efficacy and effectiveness of our methods are further validated through experimental evaluation across multiple datasets.
title Understanding Attention Mechanism in Video Diffusion Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2504.12027