DDiT: 动态补丁调度用于高效的扩散变换器
DDiT: Dynamic Patch Scheduling for Efficient Diffusion Transformers
AI总结:
DDiT通过动态调整补丁大小,在保持生成质量的同时显著提升扩散变换器的推理效率。
摘要:
扩散变换器(DiTs)在图像和视频生成中取得了最先进的性能,但其成功是以高昂的计算成本为代价的。这种低效性主要归因于固定的分词过程,该过程在整个去噪阶段都使用恒定大小的补丁,无论内容的复杂性如何。我们提出了动态分词,这是一种高效的测试时间策略,根据内容复杂性和去噪时间步调整补丁大小。我们的关键见解是,早期时间步只需使用较粗的补丁来建模全局结构,而后期迭代则需要更细(更小尺寸)的补丁来细化局部细节。在推理过程中,我们的方法在去噪步骤中动态重新分配补丁大小,用于图像和视频生成,并在保持感知生成质量的同时大幅减少成本。广泛的实验表明了我们方法的有效性:它在FLUX-1.Dev和Wan 2.1上分别实现了高达3.52倍和3.2倍的速度提升,而不会牺牲生成质量和提示的遵循性。
英文摘要:
Diffusion Transformers (DiTs) have achieved state-of-the-art performance in image and video generation, but their success comes at the cost of heavy computation. This inefficiency is largely due to the fixed tokenization process, which uses constant-sized patches throughout the entire denoising phase, regardless of the content's complexity. We propose dynamic tokenization, an efficient test-time strategy that varies patch sizes based on content complexity and the denoising timestep. Our key insight is that early timesteps only require coarser patches to model global structure, while later iterations demand finer (smaller-sized) patches to refine local details. During inference, our method dynamically reallocates patch sizes across denoising steps for image and video generation and substantially reduces cost while preserving perceptual generation quality. Extensive experiments demonstrate the effectiveness of our approach: it achieves up to $3.52\times$ and $3.2\times$ speedup on FLUX-1.Dev and Wan $2.1$, respectively, without compromising the generation quality and prompt adherence.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。