# Poster 29121

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

> 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.

My name is Junsuh Park. Today I will introduce how we can analyze an image-to-image latent diffusion model using attribution maps, specifically cross-attention maps. There has been a lot of research on explaining text-to-image models. However, studies analyzing the generation process of image-to-image models are relatively rare. This motivated us to conduct this research.
To understand the difference between text -to-image and image-to-image models, we can think about the type of conditioning information they use. In our study, we use an image as conditioning. We call this the reference image and the generated output the generated image. At this point, you might wonder can't we just use existing XAI methods for text-to-image models?
However, text can be divided into tokens for visualization, while images consist of pixels or patches that are closely connected making independent interpretation more difficult. Another key difference is that when text is used as conditioning we can only analyze its influence, but when an image is used as conditioning we can also analyze its influence.
How the generated image influences the process? This is the core idea. We propose a method that treats the relationship between the reference and generated images as a single token for visualization. The analysis method changes depending on which image we focus on.
If we focus on the reference image, we use the reference jet 2 generated attention score to see how much the reference influenced the generated image. If we focus on the generated image, we use the generated to reference attention score to see how much the generated image referred to the reference image.
Based on this, we designed five types of attribution maps. Unified Label Attribution Map shows the overall generation flow. Header Label Attribution Map displays core distributions for each attention head. Time Label Attribution Map analyzes how the process changes over time. Layer-Level Attribution Map helps understand the role of each layer.
In inpainting models, we can clearly see the transition from low frequency to high frequency generation. Specific reference attribution map highlights the areas in the reference image that influence specific patches in the generation generated image. For example, when generating a red box, we can check which part of the reference image was used, helping us understand geometric matching.
We conducted experiments on two tasks in painting and super-resolution using five different models. The diagram below visualizes the generation process using our method. Each attribution map helps us understand which reference information the model used to generate the image.
In particular, the specific reference attribution may clearly show which reference details, such as logos on clothing, were used when generating key features. What happens if we apply traditional techniques to image XAI methods directly? In practice, due to mathematical differences, they produce maps that are difficult to interpret.
Finally, we applied our method to model debugging and refinement. We evaluated model performance using FID, KID, LPIPS, and SSIM downstream metric. First, we designed a custom model and trained it on an impending task. Using our method for debugging, we found that the original model had an issue where attention was spread too widely.
causing inconsistent colors. By identifying this issue, we applied a new loss function and retrained the model. As a result, we achieved more consistent attention scores, which also lead to better downstream performance. Here are the reference papers. That concludes my presentation. Thank you.
