Tiled Diffusion

Or Madar, Ohad Fried

Abstract

Tiled Diffusion is a novel framework that enables Latent Diffusion Models (LDMs) to generate sets of images that fit together seamlessly. Unlike previous methods limited to simple repeating patterns, this approach supports complex "many-to-many" connections, allowing for the creation of infinite landscapes, 360° panoramas, and diverse texture libraries. By enforcing constraints directly in the latent space during the iterative denoising process, Tiled Diffusion maintains both local detail and global structural coherence across image boundaries.

Introduction

In computer graphics and procedural content generation, "tiling" is essential for creating large, continuous visual environments. While modern AI models can generate high-quality individual images, ensuring that multiple images align perfectly across their borders remains a significant challenge. Existing solutions often suffer from two primary issues: they are restricted to self-tiling (repeating a single pattern) or they lack macro-coherence, where large-scale structures like tree branches or mountain ridges fail to align logically across tiles. Tiled Diffusion addresses these gaps by defining a flexible constraint system that allows any side of an image to connect to any side of another, ensuring contextual awareness across boundaries.

Methodology

Tiled Diffusion operates as a wrapper around standard Latent Diffusion Models, such as Stable Diffusion. Unlike pixel-space methods, it introduces constraints within the latent space during the iterative denoising process. This approach allows the model to "plan" the global composition of the image to accommodate its neighbors. Three primary innovations drive this consistency:

  • The Tiling Constraint: This mechanism replaces standard zero-padding at the edges of an image's latent representation with a "padding" slice from its matching neighbor's latent data. This forces the model to generate content that is contextually aware of the adjacent tile's structure, ensuring that features like horizons or large objects transition smoothly.
  • The Similarity Constraint: In complex "many-to-many" scenarios—where a single tile must match multiple different neighbors—the model enforces a small window of identical latent values at the edges. This prevents visual artifacts and ensures a "perfect fit" regardless of which neighbor is placed next to it.
  • Round-Robin Application: When dealing with multiple conflicting constraints, the system cycles through different matching neighbors at each diffusion step. This ensures the final image is a "diplomatic" compromise that fits all its intended connections.

Evaluation

The framework was evaluated using a random sample of 1,000 captions from the LAION 400M dataset to test its versatility across various content types, including landscapes and textures. It was tested against multiple versions of Stable Diffusion (1.5, 2.0, XL, and 3) and ControlNet, demonstrating its architecture-agnostic nature. To quantify performance, the authors introduced the Tiling Score (TS), which measures the mean absolute difference of pixel values across connection areas at multiple offsets.

Results

Tiled Diffusion demonstrates significant improvements over existing baselines such as Asymmetric Tiling (AT) and Seamless Tile Inpainting (STI).

Overview of Tiled Diffusion applications including constrained generation, 360° synthesis, and seamless tiling.

Qualitatively, the method maintains logical continuity for complex objects like trees and clouds, avoiding the "ghosting" or horizon misalignment common in STI. While STI often fails to align macro-structures, Tiled Diffusion ensures that a tree branch starting in one tile ends correctly in the next. Quantitatively, Tiled Diffusion achieved a Tiling Score of 0.03, a substantial improvement over the baseline score of 0.29. This indicates much higher stability and seamlessness as the number of constraints increases.

Examples of seamless tiled textures generated using the framework.

The framework's versatility is further showcased in its ability to generate high-quality, diverse, and perfectly tileable textures from scratch, as well as its application in 360° panoramic synthesis and the seamless tiling of existing non-tileable images.

Discussion

A key insight of this work is that applying constraints in the latent space allows the model to plan the image composition to accommodate neighbors, rather than simply stitching edges post-hoc. The size of the "context window" ($w$) represents a critical trade-off: larger windows enhance global coherence (e.g., spanning mountain ranges), while smaller windows allow for greater local variety at the risk of logical seams. Furthermore, the "many-to-many" capability enables the generation of "Wang Tiles," which are crucial for non-periodic procedural generation in video games, allowing for infinite, non-repeating environments.

Conclusion

While Tiled Diffusion excels at standard tiling, it faces limitations with cross-axis connections (e.g., matching a top edge to a left edge) due to the lack of perfect rotation invariance in latent features. Future research may focus on rotation-aware latent processing or post-processing refinement to achieve pixel-perfect alignment in these specific scenarios. Overall, Tiled Diffusion provides a robust and versatile tool for generating expansive, coherent visual content across a wide range of applications.

Summary updated

BibTeX
@inproceedings{madar2025tiled,
  author = {Or Madar and Ohad Fried},
  title = {{Tiled Diffusion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00730},
}
Figure