arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.20354cs.CV
收藏

扩散模型中的幻觉早期检测

Hallucination Early Detection in Diffusion Models

University of Trento(特伦托大学);Università di Pisa(比萨大学);University of Modena and Reggio Emilia(摩德纳和雷吉奥艾米利亚大学)

Federico Betti, Lorenzo Baraldi, Lorenzo Baraldi, Rita Cucchiara, Nicu Sebe

AI总结:

本文提出HEaD+方法,通过整合交叉注意力图和文本信息,早期检测扩散模型生成中的幻觉问题,提高生成完整图像的准确率并减少生成时间。

摘要:

文本到图像生成在扩散模型的出现下取得了显著的进步,输出的真实感得到了提升。然而,扩散模型在生成多个物体时面临困难,经常导致幻觉,即某些实体被遗漏。现有的解决方案通常集中在优化扩散模型中的潜在表示,但初始生成种子的相关性通常被低估。虽然在多个迭代中使用各种种子可以提高结果,但这种方法也显著增加了时间和能源成本。为了解决这一挑战,我们引入了HEaD+(幻觉早期检测+),一种新的方法,旨在在扩散过程的早期识别错误生成。HEaD+框架整合了交叉注意力图和文本信息,与一个新的输入,预测最终图像。目标是评估是否继续当前生成或重新启动使用不同种子,从而在探索多生成种子的同时节省时间。HEaD+是在新创建的InsideGen数据集上训练的,该数据集包含45,000张生成的图像,每张图像包含最多七个物体。我们的发现表明,当将HEaD+与现有模型结合使用时,生成四个物体的完整生成的可能性增加了6-8%。此外,HEaD+在追求完整图像时将生成时间减少了多达32%,提高了生成完整且准确的物体表示的效率,相对于领先模型。此外,我们提出了一种集成的定位模块,该模块预测物体质心位置,并在中间时间步验证用户请求的成对空间关系,通过与物体存在一起门控生成,进一步改进关系一致的结果。

英文摘要:

Text-to-Image generation has seen significant advancements in output realism with the advent of diffusion models. However, diffusion models encounter difficulties when tasked with generating multiple objects, frequently resulting in hallucinations where certain entities are omitted. While existing solutions typically focus on optimizing latent representations within diffusion models, the relevance of the initial generation seed is typically underestimated. While using various seeds in multiple iterations can improve results, this method also significantly increases time and energy costs. To address this challenge, we introduce HEaD+ (Hallucination Early Detection +), a novel approach designed to identify incorrect generations early in the diffusion process. The HEaD+ framework integrates cross-attention maps and textual information with a novel input, the Predicted Final Image. The objective is to assess whether to proceed with the current generation or restart it with a different seed, thereby exploring multiple-generation seeds while conserving time. HEaD+ is trained on the newly created InsideGen dataset of 45,000 generated images, each containing prompts with up to seven objects. Our findings demonstrate a 6-8% increase in the likelihood of achieving a complete generation (i.e., an image accurately representing all specified subjects) with four objects when applying HEaD+ alongside existing models. Additionally, HEaD+ reduces generation times by up to 32% when aiming for a complete image, enhancing the efficiency of generating complete and accurate object representations relative to leading models. Moreover, we propose an integrated localization module that predicts object centroid positions and verifies pairwise spatial relations (if requested by the users) at an intermediate timestep, gating generation together with object presence to further improve relation-consistent outcomes.

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

↑