mlsanityData to 14 Oct 2026

Reverse Stable Diffusion: What prompt was used to generate this image?

arXiv 2308.01472 ↗First posted 2 Aug 2023cs.CV cs.CL cs.LGcited by 7

On the map: Diffusion models → Image generation, text-to-image and editing

Abstract (arXiv)

Text-to-image diffusion models have recently attracted the interest of many researchers, and inverting the diffusion process can play an important role in better understanding the generative process and how to engineer prompts in order to obtain the desired images. To this end, we study the task of predicting the prompt embedding given an image generated by a generative diffusion model. We consider a series of white-box and black-box models (with and without access to the weights of the diffusion network) to deal with the proposed task. We propose a novel learning framework comprising a joint prompt regression and multi-label vocabulary classification objective that generates improved prompts. To further improve our method, we employ a curriculum learning procedure that promotes the learning of image-prompt pairs with lower labeling noise (i.e. that are better aligned). We conduct experiments on the DiffusionDB data set, predicting text prompts from images generated by Stable Diffusion. In addition, we make an interesting discovery: training a diffusion model on the prompt generation task can make the model generate images that are much better aligned with the input prompts, when the model is directly reused for text-to-image generation. Our code is publicly available for download at https://github.com/CroitoruAlin/Reverse-Stable-Diffusion.

Key facts. Cited by 7 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 66 of its 85 references that are in the map. First posted on arXiv 2 Aug 2023.

Builds on

66 of 85 references.

Closest ancestors · 5

Same direction, newest first

  1. 2022DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Models26 Oct
  2. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug
  3. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
  4. 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
  5. 2021Blended Diffusion for Text-driven Editing of Natural Images29 Nov

Other references · 61

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  6. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  7. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  8. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  9. 2020Denoising Diffusion Implicit Modelscited by 9,781
  10. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  11. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
  12. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
38 more
  1. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
  2. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,137
  3. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,322
  4. 2014Going Deeper with Convolutionscited by 4,241
  5. 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
  6. 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,761
  7. 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,988
  8. 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,424
  9. 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,245
  10. 2021Image Super-Resolution via Iterative Refinementcited by 1,511
  11. 2015Microsoft COCO Captions: Data Collection and Evaluation Servercited by 1,462
  12. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,423
  13. 2020Oscar: Object-Semantics Aligned Pre-training for Vision-Language Taskscited by 1,214
  14. 2020Improved Techniques for Training Score-Based Generative Modelscited by 1,043
  15. 2022Diffusion Models in Vision: A Surveycited by 1,015
  16. 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 968
  17. 2014Show and Tell: A Neural Image Caption Generatorcited by 879
  18. 2021ClipCap: CLIP Prefix for Image Captioningcited by 559
  19. 2021FlexMatch: Boosting Semi-Supervised Learning with Curriculum Pseudo Labelingcited by 540
  20. 2020Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamicscited by 425
  21. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
  22. 2021How Much Can CLIP Benefit Vision-and-Language Tasks?cited by 321
  23. 2021Come-Closer-Diffuse-Faster: Accelerating Conditional Diffusion Models for Inverse Problems through Stochastic Contractioncited by 307
  24. 2019Attention on Attention for Image Captioningcited by 289
  25. 2021Curriculum Learning: A Surveycited by 259
  26. 2022EDICT: Exact Diffusion Inversion via Coupled Transformationscited by 258
  27. 2016Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioningcited by 232
  28. 2019Competence-based Curriculum Learning for Neural Machine Translationcited by 202
  29. 2020X-Linear Attention Networks for Image Captioningcited by 198
  30. 2019Image Captioning: Transforming Objects into Wordscited by 171
  31. 2021From Show to Tell: A Survey on Deep Learning-based Image Captioningcited by 138
  32. 2014From Captions to Visual Concepts and Backcited by 109
  33. 2015Webly Supervised Learning of Convolutional Networkscited by 95
  34. 2014Deep Captioning with Multimodal Recurrent Neural Networks (m-RNN)cited by 94
  35. 2021Dual-Level Collaborative Transformer for Image Captioningcited by 71
  36. 2017Curriculum Learning and Minibatch Bucketing in Neural Machine Translationcited by 63
  37. 2020Normalized and Geometry-Aware Self-Attention Network for Image Captioningcited by 63
  38. 2021Score-based Generative Neural Networks for Large-Scale Optimal Transportcited by 60

50 most cited of 61 All 61 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 2; 2025: 2; 2026: 2.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Models
  2. 2023Prompting Hard or Hardly Prompting: Prompt Inversion for Text-to-Image Diffusion Models
  3. 2024Prompt Diffusion Robustifies Any-Modality Prompt Learning
  4. 2025Reusing Computation in Text-to-Image Diffusion for Efficient Generation of Image Sets
  5. 2023Diffusion Explainer: Visual Explanation for Text-to-image Stable Diffusion
  6. 2023If at First You Don't Succeed, Try, Try Again: Faithful Diffusion-based Text-to-Image Generation by Selection
  7. 2023Harnessing Diffusion Models for Visual Perception with Meta Prompts
  8. 2025Steer Away From Mode Collisions: Improving Composition In Diffusion Models