Search papers, labs, and topics across Lattice.
The paper introduces Dynamic Diffusion Transformer (DDiT), a novel inference-time optimization for Diffusion Transformers that dynamically adjusts patch sizes based on content complexity and denoising timestep. DDiT leverages the insight that coarser patches suffice for early denoising steps focused on global structure, while finer patches are needed later for local refinement. Experiments on image and video generation demonstrate speedups of up to 3.52x on FLUX-1.Dev and 3.2x on Wan 2.1, without sacrificing generation quality or prompt adherence.
Diffusion Transformers get a 3x speed boost without sacrificing image quality, thanks to a clever trick of dynamically adjusting patch sizes during denoising.
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.