# Poster 31175

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/31175

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello, my name is Jungwon Park from Seoul National University. In this video, I will present our work cross-attention head vision patterns can align with human visual concepts in text-to-image generative models.
Although work makes four key contributions, first, we investigate the inner workings of text-to-image diffusion models and introduce head-relevant factors which capture the varying importance of cross -attention heads for human-specified visual concepts. Second, we propose the ordered ranking analysis demonstrating that HRVs can serve as human interpretable features.
Third, using HRVs, we introduce two head-level control techniques that rewrite cross-attention maps with head-dependent rescalers, enabling finer control over the strengths of human-specified concepts in generated images.
Last, we apply our techniques to three applications showing promising results in reducing misinterpretation and image generation, improving image editing across five challenging attributes, and mitigating neglect in multi-concept generation. The figure below on the left shows part of our ordered weakening analysis, where we weaken cross attention heads based on their relevance to the concepts color or furniture. When color relevant heads are weakened first, the blue concept disappears from the images first.
Conversely, when furniture-relevant heads are weakened first, the sofa concept disappears first. T2I diffusion models consists of a variational autoencoder, a UNET, and a clip-text encoder. Among these, the UNET contains multiple transformer blocks, each comprising a self-attention layer, a cross-attention layer, and an MLP layer.
We focused on the cross-attention layer in each transformer block. This layer processes text and image information using multiple cross-attention heads, with each head calculating correlations between the text and image in different projection spaces. Based on this, we hypothesized that some heads might contribute more to certain visual concepts than others. To demonstrate this, we proposed constructing head-relevant specters, or HRVs, for each human -specified visual concept.
If large H denotes the total number of cross-attention heads, we define a large H-dimensional vector for each visual concept called HRV.
We construct HRVs by interpretively updating them over numerous random image generations. During each generation for each head vision H, we compare activation strengths across various human specified visual concepts and identify the most activated one. This information is then used to update HRVs. In this figure, we illustrate the process with five visual concepts, whereas our paper utilizes 34 concepts.
And these 34 concepts, each paired with 10 representative concept words, were extracted using GPT-4.0, and the full list is shown on the right.
We introduce ordered weakening analysis, which compares two ways of weakening attention heads. In morph weakening, we start by weakening the heads with the highest values in the HRB, while in lerf weakening, we start with the heads that have the lowest values. Our results show that weakening the most relevant heads first can remove or distort the corresponding visual concept in generated images.
This is also illustrated in the clip similarity plot shown on the right. In this figure, a low clip score indicates that the information for the corresponding concept is removed or distorted first. This slide presents additional results. And this slide presents results with stable diffusion Excel.
Using HRVs, we propose two techniques for head-level control of cross-attention layers. Concept strengthening uses a single HRV to strengthen the desired concept in generated images, while concept adjusting uses two HRVs to strengthen the desired concept while weakening the undesired one. We apply these techniques in three visual generative applications. First, by applying concept adjusting to the standard stable division model.
We reduced the misinterpretation of polysmith's words in generated images. The first example shows how our method corrects the misinterpretation of lavender as a plant instead of a color.
Second, applying concept strengthening to product prompts shows promising image editing results in five challenging attributes of color, material, geometry patterns, image style, and weather conditions. Lastly, applying concept strengthening to the tandem side helps mitigate catastrophic neglect in multi-concept generation, ensuring that all specified objects and attributes are accurately generated.
Thank you for listening to my presentation. For more information, please feel free to scan the QR code shown below.
