mlsanityData to 7 Oct 2026

Energy-Based Cross Attention for Bayesian Context Update in Text-to-Image Diffusion Models

arXiv 2306.09869 ↗First posted 16 Jun 2023cs.CV cs.AI cs.CLcited by 30

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

  1. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
  2. 2022Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesis9 Dec
  3. 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
  4. 2022Compositional Visual Generation with Composable Diffusion Models3 Jun
  5. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May

Other references · 30

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  4. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  5. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  6. 2020Denoising Diffusion Implicit Modelscited by 9,655
  7. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
  8. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  9. 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 5,986
  10. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  11. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
  12. 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
18 more
  1. 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
  2. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  3. 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,419
  4. 2021Variational Diffusion Modelscited by 1,145
  5. 2019StarGAN v2: Diverse Image Synthesis for Multiple Domainscited by 1,095
  6. 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 897
  7. 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 695
  8. 2023Zero-shot Image-to-Image Translationcited by 503
  9. 2020Hopfield Networks is All You Needcited by 461
  10. 2022SmartBrush: Text and Shape Guided Object Inpainting with Diffusion Modelcited by 276
  11. 2022Splicing ViT Features for Semantic Appearance Transfercited by 209
  12. 2019Learning Non-Convergent Non-Persistent Short-Run MCMC Toward Energy-Based Modelcited by 147
  13. 2020Improved Contrastive Divergence Training of Energy Based Modelscited by 127
  14. 2018IntroVAE: Introspective Variational Autoencoders for Photographic Image Synthesiscited by 85
  15. 2023Energy Transformercited by 69
  16. 2022Unifying Diffusion Models' Latent Space, with Applications to CycleDiffusion and Guidancecited by 67
  17. 2021Controllable and Compositional Generation with Latent-Space Energy-Based Modelscited by 64
  18. 2017Dense Associative Memory is Robust to Adversarial Inputscited by 45

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 15; 2025: 8; 2026: 4.

30 papers.

Sort:

By area:

  1. 2024Diffusion Model-Based Image Editing: A Surveycited by 212
  2. 2024CFG++: Manifold-constrained Classifier Free Guidance for Diffusion Modelscited by 138
  3. 2023Ground-A-Video: Zero-shot Grounded Video Editing using Text-to-image Diffusion Modelscited by 58
  4. 2024Smoothed Energy Guidance: Guiding Diffusion Models with Reduced Energy Curvature of Attentioncited by 55
  5. 2023Regularization by Texts for Latent Diffusion Inverse Solverscited by 31
  6. 2024EnergyMoGen: Compositional Human Motion Generation with Energy-Based Diffusion Model in Latent Spacecited by 30
  7. 2024Conditional Image Synthesis with Diffusion Models: A Surveycited by 29
  8. 2024Concept Weaver: Enabling Multi-Concept Fusion in Text-to-Image Modelscited by 23
  9. 2024DreamSampler: Unifying Diffusion Sampling and Score Distillation for Image Manipulationcited by 22
  10. 2024RealCompo: Balancing Realism and Compositionality Improves Text-to-Image Diffusion Modelscited by 18
  11. 2024Object-Conditioned Energy-Based Attention Map Alignment in Text-to-Image Diffusion Modelscited by 18
  12. 2024Minority-Focused Text-to-Image Generation via Prompt Optimizationcited by 18
18 more
  1. 2024Optical-Flow Guided Prompt Optimization for Coherent Video Generationcited by 17
  2. 2025Entropy Rectifying Guidance for Diffusion and Flow Modelscited by 11
  3. 2024Energy-based Hopfield Boosting for Out-of-Distribution Detectioncited by 9
  4. 2025PLADIS: Pushing the Limits of Attention in Diffusion Models at Inference Time by Leveraging Sparsitycited by 7
  5. 2024Enhancing Prompt Following with Visual Control Through Training-Free Mask-Guided Diffusioncited by 6
  6. 2025Diffusion Adaptive Text Embedding for Text-to-Image Diffusion Modelscited by 5
  7. 2024Inference-Time Diffusion Model Distillationcited by 4
  8. 2025Attention in Diffusion Model: A Surveycited by 4
  9. 2025Detail++: Training-Free Detail Enhancer for T2I Diffusion Modelscited by 4
  10. 2023RealCraft: Attention Control as A Tool for Zero-Shot Consistent Video Editingcited by 2
  11. 2024Unlocking the Potential of Text-to-Image Diffusion with PAC-Bayesian Theorycited by 2
  12. 2025ESA: Energy-Based Shot Assembly Optimization for Automatic Video Editingcited by 2
  13. 2026Hybrid Energy-Based Models for Physical AI: Provably Stable Identification of Port-Hamiltonian Dynamicscited by 1
  14. 2025Diversity Has Always Been There in Your Visual Autoregressive Modelscited by 0
  15. 2025DeMoGen: Towards Decompositional Human Motion Generation with Energy-Based Diffusion Modelscited by 0
  16. 2026AI-T2I: Aggregating-and-Isolating Cross-Attention to Diffusion Models for Text-to-Image Synthesiscited by 0
  17. 2026Text Dictates, Music Decorates: Energy-based Attention for Editable Dance Motion Generationcited by 0
  18. 2026LumaGuide: Distribution Shaping for Training-Free HDR Generation in Diffusion Modelscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Enhancing Semantic Fidelity in Text-to-Image Synthesis: Attention Regulation in Diffusion Models
  2. 2024Towards Better Text-to-Image Generation Alignment via Attention Modulation
  3. 2023A-STAR: Test-time Attention Segregation and Retention for Text-to-image Synthesis
  4. 2024Contextualized Diffusion Models for Text-Guided Image and Video Generation
  5. 2026Adaptive Auxiliary Prompt Blending for Target-Faithful Diffusion Generation
  6. 2026Concept Unlearning via Cross-Attention Activation Projection for Diffusion Models
  7. 2023Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editing
  8. 2026In-Loop Model Adaptation with Coupled Latent-Noise Guidance for High-Fidelity Subject-Driven Text-to-Image Generation