mlsanityData to 7 Oct 2026

Not All Prompts Are Made Equal: Prompt-based Pruning of Text-to-Image Diffusion Models

arXiv 2406.12042 ↗First posted 17 Jun 2024cs.CV cs.LGcited by 13

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

Abstract (arXiv)

Text-to-image (T2I) diffusion models have demonstrated impressive image generation capabilities. Still, their computational intensity prohibits resource-constrained organizations from deploying T2I models after fine-tuning them on their internal target data. While pruning techniques offer a potential solution to reduce the computational burden of T2I models, static pruning methods use the same pruned model for all input prompts, overlooking the varying capacity requirements of different prompts. Dynamic pruning addresses this issue by utilizing a separate sub-network for each prompt, but it prevents batch parallelism on GPUs. To overcome these limitations, we introduce Adaptive Prompt-Tailored Pruning (APTP), a novel prompt-based pruning method designed for T2I diffusion models. Central to our approach is a prompt router model, which learns to determine the required capacity for an input text prompt and routes it to an architecture code, given a total desired compute budget for prompts. Each architecture code represents a specialized model tailored to the prompts assigned to it, and the number of codes is a hyperparameter. We train the prompt router and architecture codes using contrastive learning, ensuring that similar prompts are mapped to nearby codes. Further, we employ optimal transport to prevent the codes from collapsing into a single one. We demonstrate APTP's effectiveness by pruning Stable Diffusion (SD) V2.1 using CC3M and COCO as target datasets. APTP outperforms the single-model pruning baselines in terms of FID, CLIP, and CMMD scores. Our analysis of the clusters learned by APTP reveals they are semantically meaningful. We also show that APTP can automatically discover previously empirically found challenging prompts for SD, e.g. prompts for generating text images, assigning them to higher capacity codes.

Key facts. Cited by 13 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 85 of its 98 references that are in the map. First posted on arXiv 17 Jun 2024.

Builds on

85 of 98 references.

Closest ancestors · 10

Same direction, newest first

  1. 2023Concept Sliders: LoRA Adaptors for Precise Control in Diffusion Models20 Nov
  2. 2023SnapFusion: Text-to-Image Diffusion Model on Mobile Devices within Two Seconds1 Jun
  3. 2023RAPHAEL: Text-to-Image Generation via Large Mixture of Diffusion Paths29 May
  4. 2023GlyphControl: Glyph Conditional Control for Visual Text Generation29 May
  5. 2023DiffUTE: Universal Text Editing Diffusion Model18 May
  6. 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
  7. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
  8. 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
  9. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec
  10. 2021DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulation6 Oct

Other references · 75

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  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. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  7. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  8. 2020Denoising Diffusion Implicit Modelscited by 9,655
  9. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  10. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
  11. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  12. 2022Classifier-Free Diffusion Guidancecited by 5,717
38 more
  1. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
  2. 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
  3. 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,736
  4. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
  5. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
  6. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  7. 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
  8. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
  9. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  10. 2018DARTS: Differentiable Architecture Searchcited by 1,782
  11. 2016Neural Architecture Search with Reinforcement Learningcited by 1,489
  12. 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,287
  13. 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,135
  14. 2016Pruning Filters for Efficient ConvNetscited by 1,129
  15. 2023Pick-a-Pic: An Open Dataset of User Preferences for Text-to-Image Generationcited by 950
  16. 2022DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Modelscited by 924
  17. 2023PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesiscited by 854
  18. 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
  19. 2022On Distillation of Guided Diffusion Modelscited by 721
  20. 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 695
  21. 2019Self-labelling via simultaneous clustering and representation learningcited by 525
  22. 2023Scaling up GANs for Text-to-Image Synthesiscited by 492
  23. 2023InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generationcited by 387
  24. 2018AMC: AutoML for Model Compression and Acceleration on Mobile Devicescited by 375
  25. 2023DeepCache: Accelerating Diffusion Models for Freecited by 346
  26. 2022CogView2: Faster and Better Text-to-Image Generation via Hierarchical Transformerscited by 305
  27. 2023Rethinking FID: Towards a Better Evaluation Metric for Image Generationcited by 303
  28. 2023Q-Diffusion: Quantizing Diffusion Modelscited by 266
  29. 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
  30. 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendationscited by 200
  31. 2023Structural Pruning for Diffusion Modelscited by 193
  32. 2022Learning Fast Samplers for Diffusion Models by Differentiating Through Sample Qualitycited by 181
  33. 2023PTQD: Accurate Post-Training Quantization for Diffusion Modelscited by 167
  34. 2023Cache Me if You Can: Accelerating Diffusion Models through Block Cachingcited by 149
  35. 2023Neural Architecture Search: Insights from 1000 Paperscited by 136
  36. 2021Learning to Efficiently Sample from Diffusion Probabilistic Modelscited by 129
  37. 2020Dynamic Model Pruning with Feedbackcited by 125
  38. 2022gDDIM: Generalized denoising diffusion implicit modelscited by 125

50 most cited of 75 All 75 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 9; 2026: 2.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Reusing Computation in Text-to-Image Diffusion for Efficient Generation of Image Sets
  2. 2025CAT Pruning: Cluster-Aware Token Pruning For Text-to-Image Diffusion Models
  3. 2024On Discrete Prompt Optimization for Diffusion Models
  4. 2023SpeedUpNet: A Plug-and-Play Adapter Network for Accelerating Text-to-Image Diffusion Models
  5. 2023Prompt-Free Diffusion: Taking "Text" out of Text-to-Image Diffusion Models
  6. 2026Evolutionary Token-Level Prompt Optimization for Diffusion Models
  7. 2024Efficient Pruning of Text-to-Image Models: Insights from Pruning Stable Diffusion
  8. 2026LegoDiffusion: Micro-Serving Text-to-Image Diffusion Workflows