English

Diffusion Lens: Interpreting Text Encoders in Text-to-Image Pipelines

Computer Vision and Pattern Recognition 2025-03-04 v2 Computation and Language

Abstract

Text-to-image diffusion models (T2I) use a latent representation of a text prompt to guide the image generation process. However, the process by which the encoder produces the text representation is unknown. We propose the Diffusion Lens, a method for analyzing the text encoder of T2I models by generating images from its intermediate representations. Using the Diffusion Lens, we perform an extensive analysis of two recent T2I models. Exploring compound prompts, we find that complex scenes describing multiple objects are composed progressively and more slowly compared to simple scenes; Exploring knowledge retrieval, we find that representation of uncommon concepts requires further computation compared to common concepts, and that knowledge retrieval is gradual across layers. Overall, our findings provide valuable insights into the text encoder component in T2I pipelines.

Keywords

Cite

@article{arxiv.2403.05846,
  title  = {Diffusion Lens: Interpreting Text Encoders in Text-to-Image Pipelines},
  author = {Michael Toker and Hadas Orgad and Mor Ventura and Dana Arad and Yonatan Belinkov},
  journal= {arXiv preprint arXiv:2403.05846},
  year   = {2025}
}

Comments

Published in: ACL 2024 Project webpage: tokeron.github.io/DiffusionLensWeb

R2 v1 2026-06-28T15:14:24.822Z