The Missing Root: Geometric Imagination Without Images in Large Language Models

Loïc Magnan, Tomasz KozlowskiarXiv 2026

TL;DR

Large Language Models (LLMs) usually guess geometry through clever wordplay, and trying to fix this by bolting on camera-image encoders confuses vision with space. This paper gives a text-only LLM an internal, non-visual "geometric imagination" by letting continuous 2D shapes and coordinates sit directly alongside words in the same transformer sequence. With less than 5% extra weights and zero pixels, the model spawns objects from plain English, moves and rotates them in a mental workspace, and inspects the final geometry to answer spatial questions.

What Problem Does This Paper Address?

Think about someone born completely blind, or someone with congenital aphantasia (the inability to form mental pictures). Both still crush mental rotation and spatial layout tasks. Why? Because the human brain's spatial intuition isn't a JPEG—it's a tactile, continuous sense of coordinate frames, solid boundaries, and clearances.

Standard LLMs lack this entirely. They live in a 1D chain of discrete symbols—pointers to things, rather than the things themselves. When asked if a rotated couch will clear a hallway, an LLM has to approximate continuous space using verbal heuristics. Most multimodal fixes try to give LLMs "eyes" via 2D camera patches, which throw away exact metric poses and hide object interiors behind outer surfaces. The authors ask: instead of giving an LLM eyes, can we give it "virtual hands"—an internal, continuous geometric state where it can spawn, manipulate, and inspect solid objects right alongside words?

Methods

The authors introduce the Spatial Workspace Paradigm, adapting a pretrained Qwen3-1.7B model without relying on external code or geometry engines at inference.

Figure 1. Overview of the spatial workspace paradigm. Words and continuous objects share a single sequence through the language model (treated as a black box). Each object combines a 5-element pose (𝑥, 𝑦, cos 𝜃, sin 𝜃, 𝑠) with a 32-element signed-distance shape embedding ®𝑧32 compressed from its 128-point outline [13], projected by 𝑊in into object embeddings ®𝑒obj alongside word embeddings ®𝑒𝑤projected by 𝑊emb. Control tokens switch between natural language (Word Head) and object representation (Object Head). Emitting the <LOOK> token masks the entire prior sequence so the model can only read the current geometry from the object workspace.
  • Continuous Object Tokens: Alongside standard discrete word tokens, the transformer sequence accepts continuous object tokens. Each 2D rigid object combines a 5-element pose $(x, y, \cos\theta, \sin\theta, \text{scale})$ with a 32-element shape embedding compressed from a 128-point perimeter loop via a frozen signed-distance (DeepSDF-style) boundary autoencoder.
  • Head Switching & The Workspace: Five new control tokens (<SCENE>, <NEW>, <STEP>, </STEP>, <LOOK>) let the model seamlessly switch between its standard Word Head and a new Object Head in one uninterrupted pass. Emitting <NEW> registers an object in an external floating-point memory array (the Object Workspace); <STEP> triggers the Object Head to output continuous pose and shape updates ($\Delta \vec{p}, \Delta \vec{z}_{32}$) to that workspace.
  • Parallel Spatial Stream: To avoid wrecking Qwen3-1.7B's language abilities, the authors attach a narrow, 256-wide parallel spatial block alongside each of the 28 pretrained 2048-wide language layers (+4.4% parameters, or 75.9M weights), connected via down-projections and zero-initialized cross-projections.
  • The <LOOK> Mask: If an LLM sees "Triangle at -0.6, move 0.8 right," it might just do the math -0.6 + 0.8 = 0.2 verbally and ignore the geometry. To prevent verbal shortcuts, emitting <LOOK> applies an attention mask that blocks all prior text and intermediate steps, forcing the model to read its final answer strictly from the settled objects in the workspace.
Parallel spatial stream and attention visibility mask

Datasets

The authors built three custom synthetic datasets while mixing in WikiText-2 (20% of training batches) to preserve English fluency:

  • Shape Autoencoder Pool: 36,000 synthetic 2D outlines (65% parametric families, 35% random polygons/loops) used to pretrain and freeze the boundary encoder.
  • Reference Shape Table: 2,840 hand-labeled everyday English nouns mapped onto ~50 basic 2D silhouettes (discs, crescents, cups, rods, etc.), strictly separated at word boundaries from 332 held-out test nouns and 3 held-out shape families.
  • Synthetic Multi-Step Scenes: 2D spatial puzzles in $[-1, 1]^2$ with 2–5 non-overlapping objects and 0–5 translations/rotations, constructed backward from valid final scenes. Numerical question thresholds are sampled before scenes to stop the LLM from exploiting wording cues.

Key Insights and Ideas

  • Pretrained words already hide physical shapes: Across trillions of text tokens, slender rods "roll" or "slide into slots," while curved shells "cup" or "arch." By training the spatial stream to map 2,840 diverse nouns to ~50 basic silhouettes, the model isolates the geometric directions already latent in Qwen3's word representations. Consequently, held-out nouns never seen in spatial training (like croissant, umbrella, or crayon) materialize with accurate shapes!
  • Coordinate-free imagination: Even when given zero numbers—just relative prose like "A blue umbrella is directly above the red croissant..."—the model invents a valid 2D metric layout on its workspace and reads it back to answer unstated transitive questions.
  • Signal-to-noise calibration is make-or-break: PyTorch's default $\mathcal{N}(0,1)$ initialization on per-scene object IDs drowns out pose and shape variance by 4x; scaling embeddings so geometry carries ~95% of initial variance was critical for learning.

Key Results

  • Causal Workspace Reliance: Across 300 held-out multi-step problems, normal workspace execution hits 71% accuracy (matching the 70% ceiling when fed exact ground-truth final states), with a mean final position error of just 0.03. Zeroing or randomizing the <LOOK> workspace crashes accuracy to 38% and 36% (and drops unnamed Shape ID from 100% to 0%), proving the model genuinely reads its geometry.
  • Coordinate-Free Layouts: Across 200 number-free relative placement puzzles, the model satisfies 99%–100% of spatial relations and scores 100% on unstated transitive yes/no questions (dropping to ~50% random chance when <LOOK> is zeroed).
  • Zero-Shot Noun Generalization: Shape intersection-over-union (IoU) reaches 0.91 on trained nouns and generalizes to 0.79 IoU across 32 held-out nouns.
  • Language Retention: WikiText-2 perplexity rises modestly from 16.38 to 18.72, with 0.00% spurious control tokens emitted during normal text generation.

Limitations and Future Work

Because new shapes are generated by softmax-blending a ~50-shape reference table (plus a tiny residual adjustment), the model cannot invent wholly unrepresented shapes from scratch—scoring just 0.63 IoU on held-out heart, spoon, and T-shape outlines. Additionally, discrete <STEP> updates currently lack intermediate collision checking, letting objects teleport through walls between steps.

Looking ahead, the authors point toward replacing table lookup with generative shape decoders, co-training language and geometry from scratch in a single stream, scaling from 2D $SE(2)$ to 3D $SE(3)$ meshes with hierarchical <ZOOM> tokens for complex machinery, adding physics channels (mass, velocity, deformation), and closing the perception-action loop in robotics.

Summary updated

Abstract

This paper proposes a new paradigm and method for giving large language models spatial understanding. Standard language models operate exclusively over discrete words (secondary representations of things rather than continuous space itself), forcing them to guess geometry verbally. Whereas most multimodal approaches equate spatial grounding with camera images or video frames, spatial structure itself is not a picture: it consists of coordinate frames, solid boundaries, and how objects move and relate to each other in continuous space. Motivated by this distinction, we place continuous object tokens combining pose (position, orientation, and scale) and signed-distance shape embeddings alongside word tokens inside a single uninterrupted transformer sequence, allowing language and geometry to attend to each other as object scenes are built and updated step by step. Control tokens switch output automatically between natural-language words and continuous object state updates to a persistent object workspace, while an attention mask blocks earlier prose when generating the answer, so responses must be read directly from settled geometry. To prove this method works, we attach a narrow parallel spatial stream (+4.4% weights) alongside unfrozen Qwen3-1.7B layers. In our two-dimensional tests, the model spawns and transforms multi-object scenes from English descriptions, transfers shapes to held-out nouns, and relies causally on the workspace to answer spatial questions.
BibTeX
@misc{magnan2026missing,
  author = {Loïc Magnan and Tomasz Kozlowski},
  title = {{The Missing Root: Geometric Imagination Without Images in Large Language Models}},
  year = {2026},
  eprint = {2611.33841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33841},
}
Figure