Exploring Position Encoding in Diffusion U-Net for Training-free High-resolution Image Generation
Feng Zhou, Pu Cao, Yiyang Ma, Lu Yang, Jianqin Yin
TL;DR
This work identifies inconsistent position encoding as the root cause of repetitive and disordered patterns when generating high-resolution images with a pre-trained diffusion U-Net. It introduces Progressive Boundary Complement (PBC), a training-free approach that inserts hierarchical virtual boundaries and employs valued-padding to enhance the propagation of position information from feature-map edges to central regions. Through quantitative analyses and extensive experiments on SD-XL, PBC yields superior high-resolution image quality and content richness, including non-square outputs, with modest computational overhead. The method provides a simple, architecture-agnostic route to improve high-resolution diffusion-based image generation with enriched content and structural coherence.
Abstract
Denoising higher-resolution latents via a pre-trained U-Net leads to repetitive and disordered image patterns. Although recent studies make efforts to improve generative quality by aligning denoising process across original and higher resolutions, the root cause of suboptimal generation is still lacking exploration. Through comprehensive analysis of position encoding in U-Net, we attribute it to inconsistent position encoding, sourced by the inadequate propagation of position information from zero-padding to latent features in convolution layers as resolution increases. To address this issue, we propose a novel training-free approach, introducing a Progressive Boundary Complement (PBC) method. This method creates dynamic virtual image boundaries inside the feature map to enhance position information propagation, enabling high-quality and rich-content high-resolution image synthesis. Extensive experiments demonstrate the superiority of our method.
