Not All Prompts Are Made Equal: Prompt-based Pruning of Text-to-Image Diffusion Models
Alireza Ganjdanesh, Reza Shirkavand, Shangqian Gao, Heng Huang

TL;DR
This paper introduces Adaptive Prompt-Tailored Pruning (APTP), a novel method for dynamically pruning text-to-image diffusion models based on prompt requirements, improving efficiency while maintaining high image quality.
Contribution
The paper proposes a prompt router and architecture codes trained with contrastive learning and optimal transport to enable prompt-specific pruning of T2I diffusion models, a novel approach in this domain.
Findings
APTP outperforms static pruning baselines in FID, CLIP, and CMMD scores.
Learned prompt clusters are semantically meaningful.
Automatically identifies challenging prompts requiring higher capacity.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComputational and Text Analysis Methods
MethodsContrastive Language-Image Pre-training · Diffusion · Pruning
