ElasticDiffusion: Training-free Arbitrary Size Image Generation through Global-Local Content Separation
Moayed Haji-Ali, Guha Balakrishnan, Vicente Ordonez
TL;DR
ElasticDiffusion presents a training-free decoding strategy that enables a pretrained diffusion model to generate images at arbitrary resolutions and aspect ratios by decoupling global content guidance from local pixel-level details. It estimates local unconditional scores on patches with contextual information and derives a global class-direction score from a downsampled reference latent, which is upscaled to the target size; a refined, iterative resampling of the global score and a Reduced-Resolution Guidance mechanism further stabilize outputs. The approach yields coherent images across diverse sizes on CelebA-HQ and LAION-COCO, with competitive FID and CLIP scores and favorable memory footprints compared to SDXL. While effective across a wide range of sizes, it acknowledges limitations at extreme resolutions and in complex prompts, and suggests avenues for broader applicability and further disentanglement of global/local signals.
Abstract
Diffusion models have revolutionized image generation in recent years, yet they are still limited to a few sizes and aspect ratios. We propose ElasticDiffusion, a novel training-free decoding method that enables pretrained text-to-image diffusion models to generate images with various sizes. ElasticDiffusion attempts to decouple the generation trajectory of a pretrained model into local and global signals. The local signal controls low-level pixel information and can be estimated on local patches, while the global signal is used to maintain overall structural consistency and is estimated with a reference image. We test our method on CelebA-HQ (faces) and LAION-COCO (objects/indoor/outdoor scenes). Our experiments and qualitative results show superior image coherence quality across aspect ratios compared to MultiDiffusion and the standard decoding strategy of Stable Diffusion. Project page: https://elasticdiffusion.github.io/
