liveBook · Manning

Geometric consistency

As explained in Build a Text-to-Image Generator (from Scratch)

The preservation of coherent spatial structure, proportions, and object geometry across objects, scenes, and viewpoints.

Geometric consistency is the preservation of coherent spatial structure, proportions, and object geometry across objects, scenes, and viewpoints. Text-to-image models often fail because training on diverse 2D images does not provide an internal representation of 3D structure or the physical rules governing spatial relationships. section 1.5.2

The problem appears through several linked limitations:

  • Positional encodings capture some spatial relationships but do not reliably enforce strict geometric constraints across complex 3D objects. section 1.5.2
  • Models lack robust, consistent representations of depth and perspective and do not understand lighting or physics as humans do. section 13.2
  • Failures can produce objects that defy physical laws or become distorted when viewed from particular angles. section 1.5.2

Improving geometric consistency requires mechanisms that explicitly model 3D structure, simulate physics, or otherwise enforce spatial coherence. These approaches address a limitation shared by transformer- and diffusion-based text-to-image systems, but their computational cost remains an important concern. section 13.2

A viewpoint failure

A generated object may look plausible from one angle yet appear distorted from another, revealing inconsistent geometry rather than merely imperfect visual detail. section 1.5.2

How Build a Text-to-Image Generator (from Scratch) covers it

How deep it goes
Defines the failure, traces it to missing 3D representations, and identifies possible remedies without detailing their implementation.
Examples
Uses distorted objects at different viewpoints and objects that violate physical laws as failure examples.
What you can do after
Evaluate why generated scenes lose spatial coherence and identify 3D structure or physics-based mechanisms as potential remedies.
How it connects
Connects text-to-image generation with transformers, diffusion models, positional encodings, depth, perspective, and physics simulations.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Text-to-Image Generator (from Scratch). The section links point to the parts of the book it draws on.