arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.11936cs.LGcs.AIcs.CV
收藏

LD-Pruner:利用任务无关洞察对潜在扩散模型进行高效剪枝

LD-Pruner: Efficient Pruning of Latent Diffusion Models using Task-Agnostic Insights

Nota AI

Thibault Castells, Hyoung-Kyu Song, Bo-Kyeong Kim, Shinkook Choi

AI总结:

LD-Pruner利用任务无关的潜在空间洞察,对潜在扩散模型进行结构化剪枝,在保持性能的同时减少推理时间和参数,实验显示SD推理时间降低34.9%,FID提升5.2%。

摘要:

潜在扩散模型(LDMs)已成为强大的生成模型,以在有限计算资源下提供卓越结果而闻名。然而,在资源受限设备上部署LDMs仍然是一个复杂问题,带来了内存消耗和推理速度等挑战。为解决此问题,我们引入了LD-Pruner,一种新颖的保持性能的结构化剪枝方法,用于压缩LDMs。针对深度神经网络的传统剪枝方法并不适用于LDMs的独特特性,例如训练的高计算成本以及缺乏快速、直接且任务无关的模型性能评估方法。我们的方法通过在剪枝过程中利用潜在空间来应对这些挑战,使我们能够独立于当前任务,有效量化剪枝对模型性能的影响。这种对输出影响最小的组件的定向剪枝允许在训练期间更快收敛,因为模型需要重新学习的信息更少,从而解决了高计算成本问题。因此,我们的方法实现了压缩模型,提供了改进的推理速度和减少的参数数量,同时保持最小的性能下降。我们在三个不同任务上展示了我们方法的有效性:文本到图像(T2I)生成、无条件图像生成(UIG)和无条件音频生成(UAG)。值得注意的是,我们在MS-COCO T2I基准上将稳定扩散(SD)的推理时间减少了34.9%,同时将其FID提高了5.2%。这项工作为LDMs更高效的剪枝方法铺平了道路,增强了它们的适用性。

英文摘要:

Latent Diffusion Models (LDMs) have emerged as powerful generative models, known for delivering remarkable results under constrained computational resources. However, deploying LDMs on resource-limited devices remains a complex issue, presenting challenges such as memory consumption and inference speed. To address this issue, we introduce LD-Pruner, a novel performance-preserving structured pruning method for compressing LDMs. Traditional pruning methods for deep neural networks are not tailored to the unique characteristics of LDMs, such as the high computational cost of training and the absence of a fast, straightforward and task-agnostic method for evaluating model performance. Our method tackles these challenges by leveraging the latent space during the pruning process, enabling us to effectively quantify the impact of pruning on model performance, independently of the task at hand. This targeted pruning of components with minimal impact on the output allows for faster convergence during training, as the model has less information to re-learn, thereby addressing the high computational cost of training. Consequently, our approach achieves a compressed model that offers improved inference speed and reduced parameter count, while maintaining minimal performance degradation. We demonstrate the effectiveness of our approach on three different tasks: text-to-image (T2I) generation, Unconditional Image Generation (UIG) and Unconditional Audio Generation (UAG). Notably, we reduce the inference time of Stable Diffusion (SD) by 34.9% while simultaneously improving its FID by 5.2% on MS-COCO T2I benchmark. This work paves the way for more efficient pruning methods for LDMs, enhancing their applicability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑