Abstract
Diffusion models (DMs) have become the leading choice for generative tasks across diverse domains. However, their reliance on multiple sequential forward passes significantly limits real-time performance. Previous acceleration methods have primarily focused on reducing the number of sampling steps or reusing intermediate results, failing to leverage variations across spatial regions within the image due to the constraints of convolutional U-Net structures. By harnessing the flexibility of Diffusion Transformers (DiTs) in handling variable number of tokens, we introduce RAS, a novel, training-free sampling strategy that dynamically assigns different sampling ratios to regions within an image based on the focus of the DiT model. Our key observation is that during each sampling step, the model concentrates on semantically meaningful regions, and these areas of focus exhibit strong continuity across consecutive steps. Leveraging this insight, RAS updates only the regions currently in focus, while other regions are updated using cached noise from the previous step. The model's focus is determined based on the output from the preceding step, capitalizing on the temporal consistency we observed. We evaluate RAS on Stable Diffusion 3 and Lumina-Next-T2I, achieving speedups up to 2.36x and 2.51x, respectively, with minimal degradation in generation quality. Additionally, a user study reveals that RAS delivers comparable qualities under human evaluation while achieving a 1.6x speedup. Our approach makes a significant step towards more efficient diffusion transformers, enhancing their potential for real-time applications.
Introduction
Traditional diffusion models are computationally "blind" to spatial complexity. Whether refining the intricate fur of a cat or a repetitive brick wall, standard models allocate the same amount of FLOPs to every region during every step. While previous acceleration techniques have focused on reducing total steps or architectural caching, they are often constrained by the rigid structure of convolutional U-Nets. The emergence of Diffusion Transformers (DiTs) presents a new opportunity: because Transformers treat images as a collection of independent tokens, computation can be selectively applied to a subset of tokens. Region-Adaptive Sampling (RAS) exploits this flexibility to address the inefficiency of uniform spatial sampling.
Methods: A "Sense of Focus"
The core innovation of RAS is identifying "fast-update" (high importance) and "slow-update" (low importance) regions dynamically.
Region Identification and Adaptive Masking
The authors observed that the standard deviation (or L2 norm) of predicted noise at each step serves as an effective proxy for semantic importance. Regions with lower standard deviation typically correspond to the main subject or intricate details. RAS selects a percentage of tokens (e.g., 25% or 50%) to be processed by the DiT based on this metric. "Slow" tokens are updated using cached noise from the previous step, significantly reducing computation.
Starvation Prevention and Attention Recovery
To maintain background quality, RAS tracks how many times a token has been skipped and forces an update if a "starvation" threshold is reached. Furthermore, to preserve global context, RAS employs a Key-Value (KV) caching mechanism. Even when a background token is not updated, its previous state remains available for self-attention, ensuring foreground tokens retain a coherent global perspective.
Key Results
RAS was evaluated on MS-COCO 2017 using Stable Diffusion 3 (SD3) and Lumina-Next-T2I. The method achieves substantial speedups—up to 2.36x for SD3 and 2.51x for Lumina-Next-T2I—with negligible loss in image fidelity.
Quantitative metrics demonstrate Pareto superiority over standard Rectified Flow baselines. For instance, a 7-step RAS generation often achieves a lower FID than a 5-step standard generation despite similar total computation time. Human evaluation further validates these findings; in a study with 100 participants, a 1.6x speedup was found to be virtually indistinguishable from the full-computation baseline.
Conclusion and Future Work
RAS represents a significant advancement in making high-end generative models viable for real-time applications. By leveraging the inherent temporal consistency of model focus, RAS provides a training-free, "plug-and-play" solution for accelerating DiTs. Future work may explore more sophisticated importance metrics and address potential "drift" artifacts in extremely aggressive pruning scenarios.
Summary updated