Saved in:
Bibliographic Details
Main Authors: Kaplan, Guy, Toker, Michael, Reif, Yuval, Belinkov, Yonatan, Schwartz, Roy
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.01137
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917414544867328
author Kaplan, Guy
Toker, Michael
Reif, Yuval
Belinkov, Yonatan
Schwartz, Roy
author_facet Kaplan, Guy
Toker, Michael
Reif, Yuval
Belinkov, Yonatan
Schwartz, Roy
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2504_01137
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Follow the Flow: On Information Flow Across Textual Tokens in Text-to-Image Models
Kaplan, Guy
Toker, Michael
Reif, Yuval
Belinkov, Yonatan
Schwartz, Roy
Computation and Language
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.
title Follow the Flow: On Information Flow Across Textual Tokens in Text-to-Image Models
topic Computation and Language
url https://arxiv.org/abs/2504.01137