Abstract
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.
Abstract (translated)
大型文本到图像的扩散模型虽然强大,但其计算成本极高。现有的单次网络剪枝方法由于扩散模型特有的去噪迭代特性而难以直接应用。为解决这一问题,本文提出了一种新的单次剪枝框架OBS-Diff,该框架能够实现大规模文本到图像扩散模型在无需重新训练情况下的准确压缩。 具体而言,(i)OBS-Diff 重启了经典的“最佳脑外科医生” (Optimal Brain Surgeon, OBS) 方法,并将其适应于现代复杂架构的扩散模型中,支持包括无序、N:M半结构化和有组织(注意力头和前馈神经元稀疏性)在内的多种剪枝粒度;(ii)为了使剪枝标准与扩散过程的迭代动态相一致,通过从误差累积的角度审视问题,我们提出了一种新颖的时间步长感知Hessian构造方法,并采用对数递减加权方案,在早期时间步骤中赋予更大权重以缓解潜在的误差积累;(iii)此外,还提出了一种计算高效的分组顺序剪枝策略来摊销昂贵的校准过程。 广泛实验表明,OBS-Diff 实现了扩散模型单次剪枝的最新成果,并在视觉质量几乎没有下降的情况下显著加速了推理过程。
URL
https://arxiv.org/abs/2510.06751