Introduction
Generating high-resolution images (e.g., 4K) using pre-trained diffusion models like Stable Diffusion 3 or SDXL often leads to significant challenges. Models trained on fixed resolutions (512x512 or 1024x1024) suffer from a limited receptive field, causing "pattern repetition" where the model treats a large canvas as a grid of smaller ones. This results in artifacts like multi-headed animals or repeated objects. Furthermore, the computational cost for high-resolution generation is prohibitive, often requiring sequential patch processing that fails to leverage multi-GPU acceleration effectively.
Methodology
ASGDiffusion is a training-free framework designed to overcome these hurdles through a two-stage, patch-based approach.
Asynchronous Structure Guidance (ASG)
To maintain global coherence and prevent repetitive patterns, ASGDiffusion utilizes a low-resolution (LR) noise map as a "global blueprint." During the initial denoising stage, this blueprint guides high-resolution patches, ensuring they align with a single, unified structure.
Cross-Attention Masking
To avoid blurring the background while maintaining structural integrity, the framework employs cross-attention heatmaps. By creating a mask based on these maps, the model applies heavy structural guidance to primary objects while allowing the background to retain natural, local details. The authors observed that upsampling layers focus more on semantic objects, making their attention maps ideal for pinning global structure to the subject.
Asynchronous Parallelism
The core innovation for speed is an asynchronous parallelism strategy. Unlike traditional methods that require frequent GPU synchronization, ASGDiffusion uses guidance from the previous timestep ($t-1$) to compute the current step ($t$). This "slight lag" allows for simultaneous computation and communication, effectively hiding latency and enabling efficient scaling across multiple GPUs.
Evaluation and Results
The framework was evaluated using the Laion-5B dataset and tested across various models, including SD1.5, SD2.1, SDXL, and SD3, demonstrating its versatility across different architectures.
Performance and Efficiency
ASGDiffusion demonstrates remarkable speed improvements. At a 2048x2048 resolution using 4 GPUs, it generates images in just 14 seconds, representing a 13.4x speedup over DemoFusion (188 seconds). Even on a single GPU, the asynchronous pipeline achieves a 2.4x speedup over its synchronous counterpart by optimizing the computation pipeline.
Image Quality
Human evaluations indicate a preference for ASGDiffusion over competitors like ScaleCrafter and DemoFusion. The method excels in maintaining global consistency without sacrificing sharp local details, achieving superior FID scores on 1024x2048 resolutions compared to other training-free methods.
Limitations and Future Work
While highly effective up to 4x upscaling, extreme upscaling (e.g., 16x) can still occasionally produce small object repetitions. Additionally, the accuracy of the cross-attention mask can impact clarity if it fails to fully encompass an object. Future research will focus on adaptive methods to dynamically balance structural guidance and detail preservation to further optimize quality for diverse image types.
Summary updated