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

文生图模型对文本编码器的依赖比你想象的要少

Text-to-Image Models Need Less from Text Encoders Than You Think

Technion – Israel Institute of Technology(技术学院 – 以色列理工学院);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Nurit Spingarn, Noa Cohen, Tamar Rott Shaham, Tomer Michaeli

AI总结:

本文发现基于扩散Transformer的文生图模型主要依赖文本编码器提供的单词含义和词序信息,而非完整的上下文信息,并通过构建仅含位置标记词袋的嵌入验证了这一观点。

摘要:

文生图模型依赖文本提示作为与人类意图交互的主要接口。提示由文本编码器编码为嵌入,以条件化图像生成过程。除了单个标记的含义外,文本嵌入还编码了整个提示中的上下文信息,如组合性和属性绑定。然而,图像模型是否实际利用了这些更丰富的信息仍未被充分探索。在此,我们探讨问题:文本表示的哪些方面对图像生成至关重要?我们表明,基于扩散Transformer的文生图模型通常仅依赖文本表示的两个相对简单的方面:(i)相邻标记合并为单词表示(对于跨多个标记的单词),以及(ii)词序,该词序由文本编码器的位置嵌入印刻。为了证明这一点,我们构建了一种新的文本嵌入,它仅编码单个单词的含义和顺序,但缺乏关于整个提示的任何上下文信息。我们发现,这种带位置标记的词袋表示足以成功引导图像生成,实现了与完整文本嵌入引导生成相当的视觉质量和文本保真度。这表明,与普遍看法相反,文生图模型通常不使用文本嵌入中除单词含义和词序之外的丰富信息。相反,复杂语言结构的解码由图像模型本身执行。项目网页:此 https URL

英文摘要:

Text-to-image models rely on text prompts as their primary interface to human intent. Prompts are encoded by a text encoder into embeddings that condition the image generation process. Beyond individual token meanings, text embeddings encode contextual information across the full prompt, such as compositionality and attribute binding. However, whether image models actually exploit this richer information remains underexplored. Here, we address the question: Which aspects of text representation are essential for image generation? We show that text-to-image diffusion transformer-based models commonly rely only on two relatively straightforward aspects of text representations: (i) the merging of adjacent tokens into a word representation, for words spanning multiple tokens, and (ii) word order, which is imprinted by the positional embedding of the text-encoder. To show this, we construct a new text embedding that encodes only individual word meanings and order but lacks any contextual information about the full prompt. We find that this bag of position-tagged words representation is sufficient to successfully guide image generation, achieving visual quality and text fidelity that are on par with full text embedding-guided generation. This demonstrates that, contrary to common belief, text-to-image models often do not use the rich information encoded in the text embedding beyond individual word meanings and word order. Instead, the decoding of complex linguistic structures is performed by the image model itself. Project webpage: https://nsping13.github.io/contextless-TTI/

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

↑