paper-with-me

Papers

Cross-Attention Head Position Patterns Can Align with Human Visual Concepts in Text-to-Image Generative Models

2024-12-03 · Jungwon Park, Jungmin Ko, Dongnam Byun, Jangwon Suh, Wonjong Rhee

Recent text-to-image diffusion models leverage cross-attention layers, which have been effectively utilized to enhance a range of visual generative tasks. However, our understanding of cross-attention layers remains somewhat limited. In this study, we present a method for constructing Head Relevance Vectors (HRVs) that align with useful visual concepts. An HRV for a given visual concept is a vector with a length equal to the total number of cross-attention heads, where each element represents the importance of the corresponding head for the given visual concept. We develop and employ an ordered weakening analysis to demonstrate the effectiveness of HRVs as interpretable features. To demonstrate the utility of HRVs, we propose concept strengthening and concept adjusting methods and apply them to enhance three visual generative tasks. We show that misinterpretations of polysemous words in image generation can be corrected in most cases, five challenging attributes in image editing can be successfully modified, and catastrophic neglect in multi-concept generation can be mitigated. Overall, our work provides an advancement in understanding cross-attention layers and introduces new approaches for fine-controlling these layers at the head level.

📄 PDF Abstract BibTeX arXiv:2412.02237

Code (1)

snu-drl/hrv 공식 구현 pytorch

Tasks

Image GenerationPosition

Methods 이 논문이 사용한 방법론

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…
ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…

Similar Papers 제목 키워드 기반

Beyond Position: the emergence of wavelet-like properties in Transformers

2024-10-23 · Valeria Ruscio, Fabrizio Silvestri

This paper studies how transformer models develop robust wavelet-like properties that effectively compensate for the theoretical limitations of Rotary Position Embeddings (RoPE), providing insights into how these network…

Position

DoPE: Denoising Rotary Position Embedding

2025-11-12 · Jing Xiong, Liyang Fan, Hui Shen, Zunhai Su 외 arxiv

Positional encoding is essential for large language models (LLMs) to represent sequence order, yet recent studies show that Rotary Position Embedding (RoPE) can induce massive activation. We investigate the source of the…

Vision Transformer attention alignment with human visual perception in aesthetic object evaluation

2025-07-23 · Miguel Carrasco, César González-Martín, José Aranda, Luis Oliveros arxiv

Visual attention mechanisms play a crucial role in human perception and aesthetic evaluation. Recent advances in Vision Transformers (ViTs) have demonstrated remarkable capabilities in computer vision tasks, yet their al…

Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translation

2020-02-24 · Findings of the Association for Computational Linguistics 2020 · Alessandro Raganato, Yves Scherrer, Jörg Tiedemann

Transformer-based models have brought a radical change to neural machine translation. A key feature of the Transformer architecture is the so-called multi-head attention mechanism, which allows the model to focus simulta…

Machine TranslationPositionTranslation

Rotary Outliers and Rotary Offset Features in Large Language Models

2025-03-03 · André Jonasson

Transformer-based Large Language Models (LLMs) rely on positional encodings to provide sequence position information to their attention mechanism. Rotary Positional Encodings (RoPE), which encode relative position by rot…

Position