Locality Constraints for Single Sample Generative Learning

This direction is split into other directions: receptive field restriction (patch-level distribution learning). Its last version stays readable and citable here.

Version 1 of 132 papers50 conceptsfrozen 2026-10-04

When a deep generative model is trained on a single image, it faces a fundamental problem: memorization. Without constraints, a powerful neural network will simply learn the exact mapping of pixel coordinates to colors, effectively "copy-pasting" the training image rather than understanding its underlying patterns.

To transform a single sample into a meaningful training set, researchers have converged on a shared architectural strategy: restricting the receptive field. By forcing the model to operate only on local patches, the network is prevented from seeing the global layout. This constraint forces the model to learn the statistical distribution of internal textures and motifs, enabling it to "remix" these patches into novel, diverse configurations.

From One Image to a Dataset of Patches

The core intuition behind models like SinDiffusion and SinDDM is that a single natural image is not just one data point—it is a collection of thousands of overlapping local patches. If a model's receptive field is limited to a small window (e.g., $64 \times 64$ pixels), it cannot "know" where it is in the larger image.

Weilun Wang and colleagues demonstrate in SinDiffusion that by removing global attention layers and reducing downsampling, a U-Net becomes a fully convolutional patch-level learner. This architectural choice ensures spatial invariance; the model learns that a specific texture or edge is equally valid regardless of its global coordinate. Consequently, the model treats the single image as a rich dataset of local patterns, which Vladimir Kulikov and Tomer Michaeli show allows for the generation of diverse variations that maintain the original's stylistic integrity without replicating its exact structure.

The Theory of Local Mosaics

Why does this locality lead to "creativity" rather than just blurry patches? Mason Kamb and Surya Ganguli provide an analytic theory in An analytic theory of creativity in convolutional diffusion models. They argue that generative novelty is a byproduct of translational equivariance and locality.

When the score function in a diffusion model is restricted to a local neighborhood, it acts as a "Local Score" machine. During inference, the model attempts to make every local patch consistent with the training data. Because these local constraints can be satisfied in many different global arrangements, the model naturally constructs images as "mosaics" of locally consistent patches drawn from different parts of the training sample. This explains why these models can generate infinite variations of a texture or extend a scene (outpainting) while remaining visually coherent.

Generalization Through Local Fingerprints

This focus on locality also solves a major problem in AI forensics and out-of-distribution (OOD) detection. Global semantic features (like the "concept" of a bedroom) vary wildly between datasets, but the low-level artifacts left by generative processes are often universal.

David Bau and Phillip Isola found that patch-based classifiers generalize across different AI architectures much better than global models (What Makes Fake Images Detectable?). By restricting the receptive field, the detector is forced to ignore the "scene" and focus on the "fingerprints"—the stereotyped local artifacts inherent to convolutional or upsampling layers. Similarly, Chende Zheng uses patch-shuffling to break global context, forcing models to learn these universal local signatures.

Beyond Static Images

The principle of locality as a regularizer extends to temporal and 3D domains:

  • Motion: In Single Motion Diffusion, Sigal Raab and Guy Tevet use a shallow architecture to restrict the temporal receptive field. This prevents the model from memorizing a specific sequence of movements, forcing it to learn and remix local "motifs" of motion.
  • 3D Geometry: Rundi Wu applies this to 3D textured shapes in Sin3DM, restricting the denoiser to a fraction of a triplane feature map to capture local geometric patterns.
  • Structured Levels: For game design, Shiqi Dai demonstrates that removing downsampling layers allows a model to learn the local "grammar" of a Minecraft or Mario level from a single example, preventing global coordinate memorization while ensuring local structural coherence (Procedural Level Generation with Diffusion Models from a Single Example).

In all these cases, the "bottleneck" of a restricted receptive field acts as a powerful inductive bias. It shifts the model's objective from reconstructing a specific instance to modeling a local distribution, which is the key to learning from minimal data.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_locality_constraints_for_single_sample_g_8dbfc0bc,
  title = {Locality Constraints for Single Sample Generative Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/locality-constraints-for-single-sample-generative-learning/rdr_8dbfc0bcd82c4f1fbb5a757187cea60c},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_locality_constraints_for_single_sample_g_8dbfc0bc_v1,
  title = {Locality Constraints for Single Sample Generative Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/locality-constraints-for-single-sample-generative-learning/rdr_8dbfc0bcd82c4f1fbb5a757187cea60c/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}