Abstract
Standard diffusion models, trained on fixed resolutions, often fail when generating high-resolution images, resulting in object repetition and excessive GPU memory consumption. We present AccDiffusion, a training-free, plug-and-play method that enables accurate higher-resolution generation (up to 4K). By utilizing patch-content-aware prompts and window interaction during dilated sampling, AccDiffusion maintains global structural coherence and local detail without the "multi-object" artifacts common in existing patch-wise denoising methods.
Introduction
Diffusion models like Stable Diffusion (SD) have revolutionized image generation but remain constrained by their training resolutions (e.g., 512x512 or 1024x1024). Attempting to generate 4K images directly leads to two primary issues: the "object repetition" bug, where the model treats the canvas as a grid of independent images, and quadratic GPU memory growth. While patch-wise denoising mitigates memory issues, it often exacerbates repetition because every patch is conditioned on the full global prompt.
Methodology
AccDiffusion introduces two key innovations to the patch-wise denoising pipeline:
1. Patch-Content-Aware Prompts
The "repetition" issue stems from a logical conflict: applying a global prompt (e.g., "a teddy bear") to a local patch that should only contain background (e.g., "sky"). AccDiffusion resolves this by:
- Generating a low-resolution "preview."
- Extracting cross-attention maps to identify which prompt tokens correspond to specific spatial regions.
- Decoupling the prompt for each patch, ensuring patches only receive relevant text conditioning. This prevents the model from hallucinating subjects in background areas.
2. Dilated Sampling with Window Interaction
To ensure global coherence, AccDiffusion builds on dilated sampling. Unlike previous methods that denoise dilated samples independently—leading to jittery structures—AccDiffusion employs a position-wise bijection function. This allows noise from different dilation samples to interact, fostering smoother global semantic consistency across the entire high-resolution canvas.
Experimental Results
The method was evaluated using SDXL as the base model on 10,000 reference images from LAION-5B.
Quantitative Performance
At 4096 x 4096 resolution, AccDiffusion achieved a state-of-the-art FID of 63.89 and a CLIP Score of 33.79. It significantly outperforms competitors like DemoFusion and ScaleCrafter in both image quality and text alignment.
Qualitative Analysis
Visual results demonstrate that AccDiffusion consistently generates single, coherent subjects with intricate details, avoiding the "armies" of objects seen in MultiDiffusion or the distorted creatures produced by other upscaling techniques. It maintains a similar inference time to DemoFusion while significantly improving accuracy.
Conclusion
AccDiffusion provides an efficient, training-free solution for high-resolution image generation. By making the model "aware" of patch content through cross-attention and enabling inter-patch interaction, it effectively solves the long-standing object repetition problem. While inference remains slower than low-res generation, its accuracy and plug-and-play nature make it a powerful tool for high-fidelity synthesis.
Summary updated