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

基于时间步的块掩码:用于高效扩散模型推理的优化方法

Timestep-Aware Block Masking for Efficient Diffusion Model Inference

School of Computer Science, Wuhan University(武汉大学计算机学院);School of Artificial Intelligence, Wuhan University(武汉大学人工智能学院);School of Data Science, Fudan University(复旦大学数据科学学院)

Haodong He, Yuan Gao, Weizhong Zhang, Gui-Song Xia

AI总结:

本文提出基于时间步的块掩码方法,通过动态决定执行或跳过哪些块来优化预训练DPMs的计算图,提升推理效率。

摘要:

扩散概率模型(DPMs)在图像生成中取得巨大成功,但因其迭代去噪性质导致推理延迟高。受去噪轨迹中特征动态演变的启发,我们提出一种新的框架,通过每时间步的优化来改进预训练DPMs的计算图。通过学习时间步特定的掩码,我们的方法在每个推理阶段动态决定执行或跳过哪些块,通过特征重用。不同于需要通过全链反向传播导致高内存成本的全局优化方法,我们的方法独立优化每个时间步的掩码,确保内存高效。为指导此过程,我们引入时间步感知的损失缩放机制,优先在敏感去噪阶段保持特征保真度,并辅以知识引导的掩码校正策略来修剪冗余的空间-时间依赖性。我们的方法架构无关,并在广泛的模型范围内实现了显著的效率提升,包括DDPM、LDM、DiT和PixArt。实验结果表明,通过将去噪过程视为一系列优化的计算路径,我们的方法在采样速度和生成质量之间实现了更优的平衡。我们的代码将被发布。

英文摘要:

Diffusion Probabilistic Models (DPMs) have achieved great success in image generation but suffer from high inference latency due to their iterative denoising nature. Motivated by the evolving feature dynamics across the denoising trajectory, we propose a novel framework to optimize the computational graph of pre-trained DPMs on a per-timestep basis. By learning timestep-specific masks, our method dynamically determines which blocks to execute or bypass through feature reuse at each inference stage. Unlike global optimization methods that incur prohibitive memory costs via full-chain backpropagation, our method optimizes masks for each timestep independently, ensuring a memory-efficient training process. To guide this process, we introduce a timestep-aware loss scaling mechanism that prioritizes feature fidelity during sensitive denoising phases, complemented by a knowledge-guided mask rectification strategy to prune redundant spatial-temporal dependencies. Our approach is architecture-agnostic and demonstrates significant efficiency gains across a broad spectrum of models, including DDPM, LDM, DiT, and PixArt. Experimental results show that by treating the denoising process as a sequence of optimized computational paths, our method achieves a superior balance between sampling speed and generative quality. Our code will be released.

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

↑