arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.06751cs.CV

OBS-Diff: 高精度扩散模型的一次性剪枝

OBS-Diff: Accurate Pruning For Diffusion Models in One-Shot

Westlake University(西湖大学);Zhejiang University(浙江大学)

Junhan Zhu, Hesong Wang, Mingluo Su, Zefang Wang, Huan Wang

AI总结:

OBS-Diff通过引入时间步感知Hessian构造和高效分组顺序剪枝策略,实现了扩散模型的一次性精准剪枝,提升推理效率并保持视觉质量。

摘要:

大规模的文本到图像扩散模型虽然强大,但存在计算成本过高的问题。现有的一次性网络剪枝方法难以直接应用于它们,因为扩散模型具有迭代去噪的特性。为弥合这一差距,本文提出了OBS-Diff,一种新的一次性剪枝框架,能够实现大规模文本到图像扩散模型的准确且无训练压缩。具体而言,(i) OBS-Diff重新激活经典的最优脑外科手术(OBS),将其适应于现代扩散模型的复杂架构,并支持多种剪枝粒度,包括无结构、N:M半结构化和结构化(MHA头部和FFN神经元)稀疏性;(ii) 为了使剪枝标准与扩散过程的迭代动态对齐,通过从误差累积的角度审视问题,我们提出了一种新的时间步感知Hessian构造,该构造结合了对数递减加权方案,赋予早期时间步更大的重要性,以减轻潜在的误差累积;(iii) 此外,提出了一种计算高效的分组顺序剪枝策略,以缓解昂贵的校准过程。广泛的实验表明,OBS-Diff在扩散模型的一次性剪枝方面达到了最先进的水平,实现了推理加速,同时在视觉质量上几乎没有降级。

英文摘要:

Large-scale text-to-image diffusion models, while powerful, suffer from prohibitive computational cost. Existing one-shot network pruning methods can hardly be directly applied to them due to the iterative denoising nature of diffusion models. To bridge the gap, this paper presents OBS-Diff, a novel one-shot pruning framework that enables accurate and training-free compression of large-scale text-to-image diffusion models. Specifically, (i) OBS-Diff revitalizes the classic Optimal Brain Surgeon (OBS), adapting it to the complex architectures of modern diffusion models and supporting diverse pruning granularity, including unstructured, N:M semi-structured, and structured (MHA heads and FFN neurons) sparsity; (ii) To align the pruning criteria with the iterative dynamics of the diffusion process, by examining the problem from an error-accumulation perspective, we propose a novel timestep-aware Hessian construction that incorporates a logarithmic-decrease weighting scheme, assigning greater importance to earlier timesteps to mitigate potential error accumulation; (iii) Furthermore, a computationally efficient group-wise sequential pruning strategy is proposed to amortize the expensive calibration process. Extensive experiments show that OBS-Diff achieves state-of-the-art one-shot pruning for diffusion models, delivering inference acceleration with minimal degradation in visual quality.

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

↑