Energy-Based Cross Attention for Bayesian Context Update in Text-to-Image Diffusion Models
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Despite the remarkable performance of text-to-image diffusion models in image generation tasks, recent studies have raised the issue that generated images sometimes cannot capture the intended semantic contents of the text prompts, which phenomenon is often called semantic misalignment. To address this, here we present a novel energy-based model (EBM) framework for adaptive context control by modeling the posterior of context vectors. Specifically, we first formulate EBMs of latent image representations and text embeddings in each cross-attention layer of the denoising autoencoder. Then, we obtain the gradient of the log posterior of context vectors, which can be updated and transferred to the subsequent cross-attention layer, thereby implicitly minimizing a nested hierarchy of energy functions. Our latent EBMs further allow zero-shot compositional generation as a linear combination of cross-attention outputs from different contexts. Using extensive experiments, we demonstrate that the proposed method is highly effective in handling various image generation tasks, including multi-concept generation, text-guided image inpainting, and real and synthetic image editing. Code: https://github.com/EnergyAttention/Energy-Based-CrossAttention.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 35 of its 44 references that are in the map. First posted on arXiv 16 Jun 2023.
Builds on
35 of 44 references.
Closest ancestors · 5
Same direction, newest first
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
- 2022Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesis9 Dec
- 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
- 2022Compositional Visual Generation with Composable Diffusion Models3 Jun
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
Other references · 30
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 5,986
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
18 more
- 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
- 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,419
- 2021Variational Diffusion Modelscited by 1,145
- 2019StarGAN v2: Diverse Image Synthesis for Multiple Domainscited by 1,095
- 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 897
- 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 695
- 2023Zero-shot Image-to-Image Translationcited by 503
- 2020Hopfield Networks is All You Needcited by 461
- 2022SmartBrush: Text and Shape Guided Object Inpainting with Diffusion Modelcited by 276
- 2022Splicing ViT Features for Semantic Appearance Transfercited by 209
- 2019Learning Non-Convergent Non-Persistent Short-Run MCMC Toward Energy-Based Modelcited by 147
- 2020Improved Contrastive Divergence Training of Energy Based Modelscited by 127
- 2018IntroVAE: Introspective Variational Autoencoders for Photographic Image Synthesiscited by 85
- 2023Energy Transformercited by 69
- 2022Unifying Diffusion Models' Latent Space, with Applications to CycleDiffusion and Guidancecited by 67
- 2021Controllable and Compositional Generation with Latent-Space Energy-Based Modelscited by 64
- 2017Dense Associative Memory is Robust to Adversarial Inputscited by 45
Built on by
Citing papers per year: 2023: 3; 2024: 15; 2025: 8; 2026: 4.
30 papers.
Sort:
By area:
- 2024Diffusion Model-Based Image Editing: A Surveycited by 212
- 2024CFG++: Manifold-constrained Classifier Free Guidance for Diffusion Modelscited by 138
- 2023Ground-A-Video: Zero-shot Grounded Video Editing using Text-to-image Diffusion Modelscited by 58
- 2024Smoothed Energy Guidance: Guiding Diffusion Models with Reduced Energy Curvature of Attentioncited by 55
- 2023Regularization by Texts for Latent Diffusion Inverse Solverscited by 31
- 2024EnergyMoGen: Compositional Human Motion Generation with Energy-Based Diffusion Model in Latent Spacecited by 30
- 2024Conditional Image Synthesis with Diffusion Models: A Surveycited by 29
- 2024Concept Weaver: Enabling Multi-Concept Fusion in Text-to-Image Modelscited by 23
- 2024DreamSampler: Unifying Diffusion Sampling and Score Distillation for Image Manipulationcited by 22
- 2024RealCompo: Balancing Realism and Compositionality Improves Text-to-Image Diffusion Modelscited by 18
- 2024Object-Conditioned Energy-Based Attention Map Alignment in Text-to-Image Diffusion Modelscited by 18
- 2024Minority-Focused Text-to-Image Generation via Prompt Optimizationcited by 18
18 more
- 2024Optical-Flow Guided Prompt Optimization for Coherent Video Generationcited by 17
- 2025Entropy Rectifying Guidance for Diffusion and Flow Modelscited by 11
- 2024Energy-based Hopfield Boosting for Out-of-Distribution Detectioncited by 9
- 2025PLADIS: Pushing the Limits of Attention in Diffusion Models at Inference Time by Leveraging Sparsitycited by 7
- 2024Enhancing Prompt Following with Visual Control Through Training-Free Mask-Guided Diffusioncited by 6
- 2025Diffusion Adaptive Text Embedding for Text-to-Image Diffusion Modelscited by 5
- 2024Inference-Time Diffusion Model Distillationcited by 4
- 2025Attention in Diffusion Model: A Surveycited by 4
- 2025Detail++: Training-Free Detail Enhancer for T2I Diffusion Modelscited by 4
- 2023RealCraft: Attention Control as A Tool for Zero-Shot Consistent Video Editingcited by 2
- 2024Unlocking the Potential of Text-to-Image Diffusion with PAC-Bayesian Theorycited by 2
- 2025ESA: Energy-Based Shot Assembly Optimization for Automatic Video Editingcited by 2
- 2026Hybrid Energy-Based Models for Physical AI: Provably Stable Identification of Port-Hamiltonian Dynamicscited by 1
- 2025Diversity Has Always Been There in Your Visual Autoregressive Modelscited by 0
- 2025DeMoGen: Towards Decompositional Human Motion Generation with Energy-Based Diffusion Modelscited by 0
- 2026AI-T2I: Aggregating-and-Isolating Cross-Attention to Diffusion Models for Text-to-Image Synthesiscited by 0
- 2026Text Dictates, Music Decorates: Energy-based Attention for Editable Dance Motion Generationcited by 0
- 2026LumaGuide: Distribution Shaping for Training-Free HDR Generation in Diffusion Modelscited by 0
- 2026LumaGuide: Distribution Shaping for Training-Free HDR Generation in Diffusion Models28 Jul 2026
- 2026Text Dictates, Music Decorates: Energy-based Attention for Editable Dance Motion Generation22 Jun 2026
- 2026AI-T2I: Aggregating-and-Isolating Cross-Attention to Diffusion Models for Text-to-Image Synthesis25 May 2026
- 2026Hybrid Energy-Based Models for Physical AI: Provably Stable Identification of Port-Hamiltonian Dynamics31 Mar 2026
- 2025DeMoGen: Towards Decompositional Human Motion Generation with Energy-Based Diffusion Models26 Dec 2025
- 2025Diversity Has Always Been There in Your Visual Autoregressive Models21 Nov 2025
- 2025ESA: Energy-Based Shot Assembly Optimization for Automatic Video Editing4 Nov 2025
- 2025Diffusion Adaptive Text Embedding for Text-to-Image Diffusion Models28 Oct 2025
- 2025Detail++: Training-Free Detail Enhancer for T2I Diffusion Models23 Jul 2025
- 2025Entropy Rectifying Guidance for Diffusion and Flow Models18 Apr 2025
- 2025Attention in Diffusion Model: A Survey1 Apr 2025
- 2025PLADIS: Pushing the Limits of Attention in Diffusion Models at Inference Time by Leveraging Sparsity10 Mar 2025
18 more
- 2024EnergyMoGen: Compositional Human Motion Generation with Energy-Based Diffusion Model in Latent Space19 Dec 2024
- 2024Inference-Time Diffusion Model Distillation12 Dec 2024
- 2024Unlocking the Potential of Text-to-Image Diffusion with PAC-Bayesian Theory25 Nov 2024
- 2024Optical-Flow Guided Prompt Optimization for Coherent Video Generation23 Nov 2024
- 2024Minority-Focused Text-to-Image Generation via Prompt Optimization10 Oct 2024
- 2024Conditional Image Synthesis with Diffusion Models: A Survey28 Sep 2024
- 2024Smoothed Energy Guidance: Guiding Diffusion Models with Reduced Energy Curvature of Attention1 Aug 2024
- 2024CFG++: Manifold-constrained Classifier Free Guidance for Diffusion Models12 Jun 2024
- 2024Energy-based Hopfield Boosting for Out-of-Distribution Detection14 May 2024
- 2024Enhancing Prompt Following with Visual Control Through Training-Free Mask-Guided Diffusion23 Apr 2024
- 2024Object-Conditioned Energy-Based Attention Map Alignment in Text-to-Image Diffusion Models10 Apr 2024
- 2024Concept Weaver: Enabling Multi-Concept Fusion in Text-to-Image Models5 Apr 2024
- 2024DreamSampler: Unifying Diffusion Sampling and Score Distillation for Image Manipulation18 Mar 2024
- 2024Diffusion Model-Based Image Editing: A Survey27 Feb 2024
- 2024RealCompo: Balancing Realism and Compositionality Improves Text-to-Image Diffusion Models20 Feb 2024
- 2023RealCraft: Attention Control as A Tool for Zero-Shot Consistent Video Editing19 Dec 2023
- 2023Regularization by Texts for Latent Diffusion Inverse Solvers27 Nov 2023
- 2023Ground-A-Video: Zero-shot Grounded Video Editing using Text-to-image Diffusion Models2 Oct 2023
- 2024Diffusion Model-Based Image Editing: A Surveycited by 212
- 2024CFG++: Manifold-constrained Classifier Free Guidance for Diffusion Modelscited by 138
- 2023Ground-A-Video: Zero-shot Grounded Video Editing using Text-to-image Diffusion Modelscited by 58
- 2024Smoothed Energy Guidance: Guiding Diffusion Models with Reduced Energy Curvature of Attentioncited by 55
- 2023Regularization by Texts for Latent Diffusion Inverse Solverscited by 31
- 2024EnergyMoGen: Compositional Human Motion Generation with Energy-Based Diffusion Model in Latent Spacecited by 30
- 2024Conditional Image Synthesis with Diffusion Models: A Surveycited by 29
- 2024DreamSampler: Unifying Diffusion Sampling and Score Distillation for Image Manipulationcited by 22
- 2024RealCompo: Balancing Realism and Compositionality Improves Text-to-Image Diffusion Modelscited by 18
- 2024Object-Conditioned Energy-Based Attention Map Alignment in Text-to-Image Diffusion Modelscited by 18
- 2024Minority-Focused Text-to-Image Generation via Prompt Optimizationcited by 18
- 2024Optical-Flow Guided Prompt Optimization for Coherent Video Generationcited by 17
12 most cited of 23 All 23 (JSON)
- 2026LumaGuide: Distribution Shaping for Training-Free HDR Generation in Diffusion Models28 Jul 2026
- 2026AI-T2I: Aggregating-and-Isolating Cross-Attention to Diffusion Models for Text-to-Image Synthesis25 May 2026
- 2025DeMoGen: Towards Decompositional Human Motion Generation with Energy-Based Diffusion Models26 Dec 2025
- 2025Diversity Has Always Been There in Your Visual Autoregressive Models21 Nov 2025
- 2025Diffusion Adaptive Text Embedding for Text-to-Image Diffusion Models28 Oct 2025
- 2025Detail++: Training-Free Detail Enhancer for T2I Diffusion Models23 Jul 2025
- 2025Attention in Diffusion Model: A Survey1 Apr 2025
- 2025PLADIS: Pushing the Limits of Attention in Diffusion Models at Inference Time by Leveraging Sparsity10 Mar 2025
- 2024EnergyMoGen: Compositional Human Motion Generation with Energy-Based Diffusion Model in Latent Space19 Dec 2024
- 2024Inference-Time Diffusion Model Distillation12 Dec 2024
- 2024Unlocking the Potential of Text-to-Image Diffusion with PAC-Bayesian Theory25 Nov 2024
- 2024Optical-Flow Guided Prompt Optimization for Coherent Video Generation23 Nov 2024
12 newest of 23 All 23 (JSON)
- 2024Concept Weaver: Enabling Multi-Concept Fusion in Text-to-Image Modelscited by 23
- 2025Entropy Rectifying Guidance for Diffusion and Flow Modelscited by 11
- 2024Energy-based Hopfield Boosting for Out-of-Distribution Detectioncited by 9
- 2023RealCraft: Attention Control as A Tool for Zero-Shot Consistent Video Editingcited by 2
- 2025ESA: Energy-Based Shot Assembly Optimization for Automatic Video Editingcited by 2
- 2026Hybrid Energy-Based Models for Physical AI: Provably Stable Identification of Port-Hamiltonian Dynamicscited by 1
- 2026Text Dictates, Music Decorates: Energy-based Attention for Editable Dance Motion Generationcited by 0
- 2026Text Dictates, Music Decorates: Energy-based Attention for Editable Dance Motion Generation22 Jun 2026
- 2026Hybrid Energy-Based Models for Physical AI: Provably Stable Identification of Port-Hamiltonian Dynamics31 Mar 2026
- 2025ESA: Energy-Based Shot Assembly Optimization for Automatic Video Editing4 Nov 2025
- 2025Entropy Rectifying Guidance for Diffusion and Flow Models18 Apr 2025
- 2024Energy-based Hopfield Boosting for Out-of-Distribution Detection14 May 2024
- 2024Concept Weaver: Enabling Multi-Concept Fusion in Text-to-Image Models5 Apr 2024
- 2023RealCraft: Attention Control as A Tool for Zero-Shot Consistent Video Editing19 Dec 2023
Similar, not cited
Close in wording, no citation either way
- 2024Enhancing Semantic Fidelity in Text-to-Image Synthesis: Attention Regulation in Diffusion Models
- 2024Towards Better Text-to-Image Generation Alignment via Attention Modulation
- 2023A-STAR: Test-time Attention Segregation and Retention for Text-to-image Synthesis
- 2024Contextualized Diffusion Models for Text-Guided Image and Video Generation
- 2026Adaptive Auxiliary Prompt Blending for Target-Faithful Diffusion Generation
- 2026Concept Unlearning via Cross-Attention Activation Projection for Diffusion Models
- 2023Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editing
- 2026In-Loop Model Adaptation with Coupled Latent-Noise Guidance for High-Fidelity Subject-Driven Text-to-Image Generation