Introduction
Latent Diffusion Models (LDMs) like Stable Diffusion have revolutionized AI art, yet they face a significant hurdle: resolution scaling. While trained on fixed dimensions (e.g., 512x512), attempting to generate larger images (e.g., 2048x2048) often results in "hallucinated" repetitions—multiple subjects, tiled textures, or incoherent layouts. This paper investigates the root cause of these failures and introduces Progressive Boundary Complement (PBC), a training-free method to enable high-resolution generation with structural integrity.
The Positional Encoding Problem
The researchers identify that Diffusion U-Nets lack explicit positional embeddings in their attention layers. Instead, they rely on convolutional zero-padding at the edges of feature maps as an implicit positional signal.
As resolution increases, the center of the image becomes spatially distant from these boundaries. This creates a "positional vacuum" where the model loses its sense of global coordinates, leading to the duplication of objects as the model treats local patches as independent canvases.
Progressive Boundary Complement (PBC)
To bridge this "propagation gap," the authors propose PBC, a plug-and-play module that introduces hierarchical "virtual boundaries" into the U-Net backbone.
- Virtual Boundaries: PBC inserts unidirectional padding throughout the feature map, effectively providing the model with internal spatial anchors.
- Valued-Padding: To avoid the "split effect" caused by harsh zero-padding, PBC uses "valued-padding" ($p = F * \lambda$), which smooths transitions while maintaining positional cues.
- Hierarchical & Randomized Placement: By placing boundaries in a hierarchy and slightly perturbing their positions across layers, the method simulates natural information decay and prevents grid-like artifacts.
Key Insights: Convolutions as a Compass
A pivotal finding of this research is that zero-padding is the primary source of spatial awareness in traditional U-Nets.
Replacing zero-padding with circular or reflective padding—techniques often used to avoid edge artifacts—actually destroys the model's ability to maintain a coherent global layout. This confirms that the model "reads" the distance from the zero-padded edge to determine its location on the canvas.
Results and Efficiency
PBC was evaluated using Stable Diffusion 2.1 and SD-XL on prompts from the LAION-5B dataset. It consistently outperformed training-free baselines like ScaleCrafter and FouriScale in terms of Kernel Image Distance (KID) and Human Preference Score (HPS).
Notably, PBC is highly efficient. For SD-XL at 2048x2048, it adds only 4% to inference time, compared to the 178% increase required by multi-stage methods like DemoFusion. Furthermore, a new metric, Content Richness (CR), demonstrates that PBC encourages the model to add meaningful new details rather than simply upscaling existing ones.
Conclusion
By identifying the role of zero-padding in spatial encoding, the authors have unlocked a simple, training-free path to high-resolution diffusion. Progressive Boundary Complement provides the necessary "spatial compass" for U-Nets to navigate large canvases, ensuring that high-resolution outputs are both detailed and structurally sound.
Summary updated