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.
- 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.2verbally 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.
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