Precise Parameter Localization for Textual Generation in Diffusion Models
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Novel diffusion models can synthesize photo-realistic images with integrated high-quality text. Surprisingly, we demonstrate through attention activation patching that only less than 1% of diffusion models' parameters, all contained in attention layers, influence the generation of textual content within the images. Building on this observation, we improve textual generation efficiency and performance by targeting cross and joint attention layers of diffusion models. We introduce several applications that benefit from localizing the layers responsible for textual content generation. We first show that a LoRA-based fine-tuning solely of the localized layers enhances, even more, the general text-generation capabilities of large diffusion models while preserving the quality and diversity of the diffusion models' generations. Then, we demonstrate how we can use the localized layers to edit textual content in generated images. Finally, we extend this idea to the practical use case of preventing the generation of toxic text in a cost-free manner. In contrast to prior work, our localization approach is broadly applicable across various diffusion model architectures, including U-Net (e.g., SDXL and DeepFloyd IF) and transformer-based (e.g., Stable Diffusion 3), utilizing diverse text encoders (e.g., from CLIP to the large language models like T5). Project page available at https://t2i-text-loc.github.io/.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 38 of its 50 references that are in the map. First posted on arXiv 14 Feb 2025.
Builds on
38 of 50 references.
Closest ancestors · 12
Same direction, newest first
- 2023Brush Your Text: Synthesize Any Scene Text on Images via Diffusion Model19 Dec
- 2023AnyText: Multilingual Visual Text Generation And Editing6 Nov
- 2023Localizing and Editing Knowledge in Text-to-Image Generative Models20 Oct
- 2023Grounded Text-to-Image Synthesis with Attention Refocusing8 Jun
- 2023GlyphControl: Glyph Conditional Control for Visual Text Generation29 May
- 2023TextDiffuser: Diffusion Models as Text Painters18 May
- 2023Localizing Object-level Shape Variations with Text-to-Image Diffusion Models20 Mar
- 2023Editing Implicit Assumptions in Text-to-Image Diffusion Models14 Mar
- 2022Multi-Concept Customization of Text-to-Image Diffusion8 Dec
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
Other references · 26
- 2017Attention Is All You Needcited by 60,361
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
- 2020Improved Techniques for Training Score-Based Generative Modelscited by 1,043
14 more
- 2019Improved Precision and Recall Metric for Assessing Generative Modelscited by 944
- 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 906
- 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Modelscited by 513
- 2023TokenFlow: Consistent Diffusion Features for Consistent Video Editingcited by 442
- 2013Direct and Indirect Effectscited by 280
- 2019Real-time Scene Text Detection with Differentiable Binarizationcited by 214
- 2022Scaling Up Models and Data with textttt5x and textttseqiocited by 187
- 2024Implicit Style-Content Separation using B-LoRAcited by 135
- 2020LayoutTransformer: Layout Generation and Completion with Self-attentioncited by 123
- 2021Paint by Wordcited by 107
- 2024Finding NeMo: Localizing Neurons Responsible For Memorization in Diffusion Modelscited by 37
- 2024On Mechanistic Knowledge Localization in Text-to-Image Generative Modelscited by 28
- 2023Efficient Toxic Content Detection by Bootstrapping and Distilling Large Language Modelscited by 21
- 2024Explaining generative diffusion models via visual analysis for interpretable decision-making processcited by 17
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2026TextAlign: Preference Alignment for Text Rendering with Hierarchical Rewardscited by 5
- 2026TADA! Tuning Audio Diffusion Models through Activation Steeringcited by 4
- 2026Attention, May I Have Your Decision? Localizing Generative Choices in Diffusion Modelscited by 2
- 2025What "Not" to Detect: Negation-Aware VLMs via Structured Reasoning and Token Mergingcited by 1
- 2025Zero-Residual Concept Erasure via Progressive Alignment in Text-to-Image Modelcited by 0
- 2026TextAlign: Preference Alignment for Text Rendering with Hierarchical Rewards19 May 2026
- 2026Attention, May I Have Your Decision? Localizing Generative Choices in Diffusion Models29 Mar 2026
- 2026TADA! Tuning Audio Diffusion Models through Activation Steering12 Feb 2026
- 2025What "Not" to Detect: Negation-Aware VLMs via Structured Reasoning and Token Merging15 Oct 2025
- 2025Zero-Residual Concept Erasure via Progressive Alignment in Text-to-Image Model6 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2024Enhancing Semantic Fidelity in Text-to-Image Synthesis: Attention Regulation in Diffusion Models
- 2026FreeText: Training-Free Text Rendering in Diffusion Transformers via Attention Localization and Spectral Glyph Injection
- 2023Harnessing the Spatial-Temporal Attention of Diffusion Models for High-Fidelity Text-to-Image Synthesis
- 2024Controllable Generation with Text-to-Image Diffusion Models: A Survey
- 2024LocInv: Localization-aware Inversion for Text-Guided Image Editing
- 2023R&B: Region and Boundary Aware Zero-shot Grounded Text-to-image Generation
- 2025Reusing Computation in Text-to-Image Diffusion for Efficient Generation of Image Sets
- 2023Text-to-image Diffusion Models in Generative AI: A Survey