Abstract
Diffusion Models (DMs) have set new benchmarks in high-fidelity image generation but are hindered by significant computational demands during inference. This paper introduces AT-EDM (Attention-driven Training-free Efficient Diffusion Model), a framework designed to accelerate DMs without requiring expensive retraining. By utilizing a graph-based token ranking algorithm and a novel recovery strategy for architectural compatibility, AT-EDM achieves up to a 1.53× speedup on Stable Diffusion XL while maintaining competitive image quality.
Introduction
State-of-the-art Diffusion Models like Stable Diffusion XL (SD-XL) produce impressive visual results but are notoriously slow and resource-intensive. Existing optimization methods often face a trade-off: they either require thousands of GPU hours for retraining or introduce architectural incompatibilities that degrade output quality. AT-EDM addresses these challenges by providing a "plug-and-play" solution that dynamically prunes redundant data during the denoising process, ensuring efficiency without sacrificing the original model's weights.
The AT-EDM Framework
AT-EDM optimizes the inference pipeline through three core technical innovations:
1. G-WPR (Generalized Weighted Page Rank)
Rather than relying on raw attention scores, AT-EDM treats the attention map as a directed graph. It employs a modified PageRank algorithm (G-WPR) to identify "hub" tokens—small patches of image data that carry the most influence. Tokens identified as redundant are pruned to reduce the computational load of subsequent layers.
2. Similarity-Based Recovery
Diffusion Models often combine Attention and ResNet (convolutional) layers. Because convolutions require a complete, regular grid of data, simple pruning creates gaps that break the architecture. AT-EDM resolves this by filling pruned slots with the most similar retained tokens, guided by the attention map. This approach prevents the distribution shifts typically caused by zero-padding or interpolation.
3. DSAP (Denoising-Steps-Aware Pruning)
Image generation is a multi-step process where early stages establish global structure and later stages refine details. DSAP implements a dynamic schedule that prunes less aggressively in early "chaotic" steps to preserve the image's basic layout, allowing for more aggressive pruning once the structure has stabilized.
Experimental Results
The researchers evaluated AT-EDM primarily on the MS-COCO 2017 dataset, focusing on efficiency metrics and image quality (FID and CLIP scores).
- Efficiency and Speed: On SD-XL, AT-EDM achieved a 38.8% reduction in FLOPs and a 1.53× speedup. It also enables running approximately 49.2% more generation tasks within the same VRAM constraints.
- Quality Maintenance: The framework maintained an FID score of 28.0 (compared to the baseline 27.3) while saving 40% of computation. Notably, when applied to the already-optimized SDXL-Turbo, AT-EDM acted as a regularizer, improving the FID score by 14.5%.
- Qualitative Fidelity: Visual comparisons show that AT-EDM preserves fine textures and complex spatial relationships even under aggressive pruning schedules.
Discussion and Future Work
AT-EDM demonstrates that training-free token pruning is a viable path for scaling diffusion models to resource-constrained environments. While the method is highly effective for object-centric images, extremely complex scenes with numerous small, distinct objects remain a challenge. Future work will focus on reducing the implementation overhead of extracting attention maps and further optimizing the graph-ranking algorithm for edge device deployment.
Summary updated