arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.08645cs.CVcs.LGeess.IV
收藏

面向可变尺寸文本到图像合成的免训练扩散模型适配

Training-free Diffusion Model Adaptation for Variable-Sized Text-to-Image Synthesis

Fudan University(复旦大学);UniDT Technology(UniDT科技)

Zhiyu Jin, Xuli Shen, Bin Li, Xiangyang Xue

AI总结:

本文针对扩散模型在可变尺寸文本到图像合成中的缺陷,通过分析注意力熵与分辨率的关系,提出一种免训练的缩放因子,在不增加训练或微调的情况下提升图像质量、视觉效果和文本对齐。

摘要:

扩散模型(DMs)近期因在文本到图像合成中取得最先进性能而受到关注。遵循深度学习的传统,扩散模型在固定尺寸的图像上进行训练和评估。然而,用户需要具有特定尺寸和不同宽高比的各种图像。本文专注于适配文本到图像扩散模型以处理这种多样性,同时保持视觉保真度。首先,我们观察到,在合成过程中,较低分辨率图像存在物体描绘不完整的问题,而较高分辨率图像则表现出重复无序的呈现。其次,我们建立了一种统计关系,表明注意力熵随token数量变化,这提示模型按图像分辨率比例聚合空间信息。随后对我们观察结果的解释是:低分辨率下由于空间信息有限导致物体描绘不完整,而高分辨率下由于空间信息冗余导致重复无序的呈现。基于这一视角,我们提出一个缩放因子来缓解注意力熵的变化并减轻所观察到的缺陷模式。大量实验结果验证了所提缩放因子的有效性,使模型能够获得更好的视觉效果、图像质量和文本对齐。值得注意的是,这些改进无需额外的训练或微调技术即可实现。

英文摘要:

Diffusion models (DMs) have recently gained attention with state-of-the-art performance in text-to-image synthesis. Abiding by the tradition in deep learning, DMs are trained and evaluated on the images with fixed sizes. However, users are demanding for various images with specific sizes and various aspect ratio. This paper focuses on adapting text-to-image diffusion models to handle such variety while maintaining visual fidelity. First we observe that, during the synthesis, lower resolution images suffer from incomplete object portrayal, while higher resolution images exhibit repetitively disordered presentation. Next, we establish a statistical relationship indicating that attention entropy changes with token quantity, suggesting that models aggregate spatial information in proportion to image resolution. The subsequent interpretation on our observations is that objects are incompletely depicted due to limited spatial information for low resolutions, while repetitively disorganized presentation arises from redundant spatial information for high resolutions. From this perspective, we propose a scaling factor to alleviate the change of attention entropy and mitigate the defective pattern observed. Extensive experimental results validate the efficacy of the proposed scaling factor, enabling models to achieve better visual effects, image quality, and text alignment. Notably, these improvements are achieved without additional training or fine-tuning techniques.

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

↑