arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.12314cs.CRcs.AIcs.CVcs.LG
收藏

理解文本到图像生成模型中的内爆现象

Understanding Implosion in Text-to-Image Generative Models

University of Chicago(芝加哥大学)

Wenxin Ding, Cathy Y. Li, Shawn Shan, Ben Y. Zhao, Haitao Zheng

AI总结:

本文建立首个分析框架,通过监督图对齐与对齐难度指标,证明投毒提示数量增加导致交叉注意力对齐困难,从而引发文本到图像模型内爆,并实验验证该机制。

摘要:

近期研究表明,文本到图像生成模型对各种投毒攻击出人意料地脆弱。实证结果发现,这些模型可以通过改变单个文本提示与相关视觉特征之间的关联而被破坏。此外,大量并发投毒攻击可以诱发“模型内爆”,即模型对于未投毒的提示也无法生成有意义的图像。这些引人注目的发现凸显了缺乏一个直观的框架来理解针对这些模型的投毒攻击。在本工作中,我们建立了首个关于图像生成模型对投毒攻击鲁棒性的分析框架,通过对潜在扩散模型中交叉注意力机制的行为进行建模和分析。我们将交叉注意力训练建模为一个抽象的“监督图对齐”问题,并通过对齐难度(AD)指标来正式量化训练数据的影响,该指标衡量对齐的难度。AD越高,对齐越困难。我们证明AD随着被投毒的单个提示(或概念)数量的增加而增加。随着AD的增长,对齐任务变得越来越困难,产生高度扭曲的结果,经常将有意义的文本提示映射到未定义或无意义的视觉表示。因此,生成模型发生内爆,并大规模输出随机、不连贯的图像。我们通过大量实验验证了我们的分析框架,并确认和解释了模型内爆这一意外(且此前未解释的)效应,同时产生了新的、未预见的见解。我们的工作为研究针对扩散模型的投毒攻击及其防御提供了一个有用的工具。

英文摘要:

Recent works show that text-to-image generative models are surprisingly vulnerable to a variety of poisoning attacks. Empirical results find that these models can be corrupted by altering associations between individual text prompts and associated visual features. Furthermore, a number of concurrent poisoning attacks can induce "model implosion," where the model becomes unable to produce meaningful images for unpoisoned prompts. These intriguing findings highlight the absence of an intuitive framework to understand poisoning attacks on these models. In this work, we establish the first analytical framework on robustness of image generative models to poisoning attacks, by modeling and analyzing the behavior of the cross-attention mechanism in latent diffusion models. We model cross-attention training as an abstract problem of "supervised graph alignment" and formally quantify the impact of training data by the hardness of alignment, measured by an Alignment Difficulty (AD) metric. The higher the AD, the harder the alignment. We prove that AD increases with the number of individual prompts (or concepts) poisoned. As AD grows, the alignment task becomes increasingly difficult, yielding highly distorted outcomes that frequently map meaningful text prompts to undefined or meaningless visual representations. As a result, the generative model implodes and outputs random, incoherent images at large. We validate our analytical framework through extensive experiments, and we confirm and explain the unexpected (and unexplained) effect of model implosion while producing new, unforeseen insights. Our work provides a useful tool for studying poisoning attacks against diffusion models and their defenses.

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

↑