Abstract
Diffusion models have demonstrated superior performance across various generative tasks including images, videos, and audio. However, they encounter difficulties in directly generating high-resolution samples. Previously proposed solutions to this issue involve modifying the architecture, further training, or partitioning the sampling process into multiple stages. These methods have the limitation of not being able to directly utilize pre-trained models as-is, requiring additional work. In this paper, we introduce upsample guidance, a technique that adapts pretrained diffusion model (e.g., $512^2$) to generate higher-resolution images (e.g., $1536^2$) by adding only a single term in the sampling process. Remarkably, this technique does not necessitate any additional training or relying on external models. We demonstrate that upsample guidance can be applied to various models, such as pixel-space, latent space, and video diffusion models. We also observed that the proper selection of guidance scale can improve image quality, fidelity, and prompt alignment.
Introduction
Diffusion models are state-of-the-art for generative tasks, but they are typically constrained to the resolution of their training data. Attempting to generate images at resolutions higher than the native training scale often results in catastrophic failures, such as "object duplication" (e.g., multi-headed animals) and poor global structural coherence. This occurs because the model's receptive field is optimized for smaller scales, leaving it without a global "blueprint" for a larger canvas.
Existing solutions, such as cascaded super-resolution models or fine-tuning on high-resolution datasets, are computationally expensive and complex. Upsample Guidance (UG) offers a "zero-shot" alternative, allowing researchers to leverage existing pre-trained weights for high-resolution generation without additional training or external models.
Methodology: SNR Matching
The fundamental insight of Upsample Guidance is that resolution scaling is a statistical problem. Simply downsampling a high-resolution noisy image does not yield a standard low-resolution noisy image. Due to the Central Limit Theorem, the averaging process during downsampling reduces noise variance, fundamentally altering the Signal-to-Noise Ratio (SNR).
To address this, UG introduces two key adjustments:
- Time Adjustment ($\tau$): Finding an adjusted time step where the low-resolution model's SNR matches the effective SNR of the downsampled high-resolution image.
- Power Adjustment ($P$): Scaling the variance to ensure the model observes the expected distribution.
The final sampling step incorporates a modified noise prediction formula: $$\tilde{\epsilon} = \epsilon_{high} + w_t \cdot \text{Upsample}(\epsilon_{low\_adjusted} - \text{Downsample}(\epsilon_{high}))$$
This guidance term acts as a global structural anchor, ensuring that high-resolution details align with a coherent low-resolution composition.
Experimental Results
The effectiveness of UG was validated across pixel-space models (CIFAR-10, CelebA-HQ), Latent Diffusion Models (Stable Diffusion v1.5), and video models (AnimateDiff).
Key findings include:
- Artifact Suppression: UG successfully eliminates the "multiple subjects" problem in Stable Diffusion when generating at $1024^2$ and beyond.
- Quality Improvements: On CelebA-HQ, generating $512^2$ images using a $256^2$ model with UG achieved better FID scores than the original model at its native resolution.
- Efficiency: UG adds less than 10% wall-time overhead for a 20-step inference, making it significantly faster than tiling methods like MultiDiffusion.
- Temporal Consistency: The method extends to the temporal domain, allowing for the generation of longer, more consistent video sequences (e.g., 32 frames from a 16-frame model).
Discussion and Limitations
While UG is highly effective, it faces challenges in Latent Diffusion Models (LDMs) due to the non-linear nature of Variational Autoencoders (VAEs). Upsampling in latent space can introduce artifacts if the guidance scale ($w_t$) is not decayed as $t \to 0$. Additionally, the guidance scale parameters currently require heuristic tuning to balance structural adherence with creative detail. Future work may explore the application of UG to other domains, such as audio diffusion, where temporal downsampling presents unique challenges like pitch shifting.
Summary updated