文本到图像生成模型面临对齐问题,生成图像无法准确捕捉文本提示中的对象和关系。本文研究文本到图像提示中语义信息在令牌表示中的分布,分析两个层面:(1) 个体令牌是否代表其词项,(2) 交叉令牌交互是否信息流动。通过拼接技术揭示编码模式,发现信息通常集中于少数几个令牌;例如,在'San Francisco's Golden Gate Bridge'中,'Gate'足以表示整个表达,其他令牌可被丢弃。词项常保持孤立;如在'green dog'中,'dog'无'green'的视觉信息。但某些情况下,词项会相互影响表示,常导致误解,如'pool by a table'中'pool'可能表示'pool table'。研究强调令牌级编码在图像生成中的关键作用,证明简单编码干预可显著提升对齐和生成质量。
英文摘要:
Text-to-image generation models suffer from alignment problems, where generated images fail to accurately capture the objects and relations in the text prompt. Prior work has focused on improving alignment by refining the diffusion process, ignoring the role of the text encoder, which guides the diffusion. In this work, we investigate how semantic information is distributed across token representations in text-to-image prompts, analyzing it at two levels: (1) in-item representation-whether individual tokens represent their lexical item (i.e., a word or expression conveying a single concept), and (2) cross-item interaction-whether information flows between tokens of different lexical items. We use patching techniques to uncover encoding patterns, and find that information is usually concentrated in only one or two of the item's tokens; for example, in the item ``San Francisco's Golden Gate Bridge'', the token ``Gate'' sufficiently captures the entire expression while the other tokens could effectively be discarded. Lexical items also tend to remain isolated; for instance, in the prompt ``a green dog'', the token ``dog'' encodes no visual information about ``green''. However, in some cases, items do influence each other's representation, often leading to misinterpretations-e.g., in the prompt ``a pool by a table'', the token ``pool'' represents a ``pool table'' after contextualization. Our findings highlight the critical role of token-level encoding in image generation, and demonstrate that simple interventions at the encoding stage can substantially improve alignment and generation quality.
RTD-Guard: A Black-Box Textual Adversarial Detection Framework via Replacement Token Detection
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
Entry Separation using a Mixed Visual and Textual Language Model: Application to 19th century French Trade Directories
CRH-EHESS(CRH-法国社会科学高等研究院);EPITA Research & Development Laboratory (LRDE)(EPITA研究与开发实验室(LRDE));LASTIG;Univ. Gustave Eiffel(古斯塔夫·埃菲尔大学);IGN-ENSG(法国国家地理学院-国立地理科学学院)
UniVLR: Unifying Text and Vision in Visual Latent Reasoning for Multimodal LLMs
University of Science and Technology of China(中国科学技术大学);Tsinghua University(清华大学);National University of Singapore(新加坡国立大学);Zhongguancun Academy(中关村学院)
Pre-trained Models Perform the Best When Token Distributions Follow Zipf's Law
School of Mathematical Sciences, Peking University(北京大学数学科学学院);Department of Computer Science and Engineering, University of Notre Dame(圣母大学计算机科学与工程系);College of Computer Science, Nankai University(南开大学计算机学院)