arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.12331cs.CVcs.AI

I2AM:通过双归因图解释图像到图像的潜在扩散模型

I2AM: Interpreting Image-to-Image Latent Diffusion Models via Bi-Attribution Maps

Dongguk University(东国大学)

Junseo Park, Hyeryung Jang

AI总结:

针对图像到图像扩散模型可解释性不足的问题,提出I2AM方法,通过聚合多维度交叉注意力生成双向归因图,还提出IMACS评估指标,可用于模型调试优化,提升模型性能与可解释性。

摘要:

大规模扩散模型在图像生成领域已取得显著进展,尤其是借助交叉注意力机制实现的。尽管交叉注意力在文本到图像任务中已得到充分研究,但它们在图像到图像(I2I)扩散模型中的可解释性仍有待深入探索。本文提出了图像到图像归因图(Image-to-Image Attribution Maps,I2AM)方法,该方法通过可视化从参考图像到生成图像、以及从生成图像到参考图像的双向归因图,提升了I2I模型的可解释性。I2AM聚合了不同时间步、注意力头和网络层的交叉注意力分数,能够揭示关键特征在图像间的传递方式。我们在目标检测、图像修复和超分辨率三类任务上验证了I2AM的有效性。结果表明,即使在复杂场景中,I2AM也能成功识别出对生成输出起关键作用的区域。此外,我们还提出了一种全新的评估指标——修复掩模注意力一致性得分(Inpainting Mask Attention Consistency Score,IMACS),用于评估归因图与修复掩模之间的对齐程度,该指标与现有性能指标具有强相关性。通过大量实验,我们证明I2AM可用于模型调试与优化,为提升I2I模型的性能和可解释性提供了实用工具。

英文摘要:

Large-scale diffusion models have made significant advances in image generation, particularly through cross-attention mechanisms. While cross-attention has been well-studied in text-to-image tasks, their interpretability in image-to-image (I2I) diffusion models remains underexplored. This paper introduces Image-to-Image Attribution Maps (I2AM), a method that enhances the interpretability of I2I models by visualizing bidirectional attribution maps, from the reference image to the generated image and vice versa. I2AM aggregates cross-attention scores across time steps, attention heads, and layers, offering insights into how critical features are transferred between images. We demonstrate the effectiveness of I2AM across object detection, inpainting, and super-resolution tasks. Our results demonstrate that I2AM successfully identifies key regions responsible for generating the output, even in complex scenes. Additionally, we introduce the Inpainting Mask Attention Consistency Score (IMACS) as a novel evaluation metric to assess the alignment between attribution maps and inpainting masks, which correlates strongly with existing performance metrics. Through extensive experiments, we show that I2AM enables model debugging and refinement, providing practical tools for improving I2I model's performance and interpretability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑