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.
Figures & tables
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 (x,y,cosθ,sinθ,s) with a 32 -element signed-distance shape embedding z32 compressed from its 128 -point outline [ 13 ] , projected by Win into object embeddings eobj alongside word embeddings ew projected by Wemb . 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.
Figure 2: Parallel spatial stream and attention mask on Qwen3-1.7B [ 12 ] . (a) Across each of the 28 pretrained layers, a 256 -dimensional parallel spatial block runs alongside the 2048 -dimensional language stream ( +4.4% added parameters). Language features are down-projected from 2048 to 256 dimensions so language and geometry enter each spatial block at equal width, and spatial updates are projected back into upper language layers ( ℓ≥6 ) through zero-initialized cross-projections ( B=0 ). (b) Attention visibility across the sequence: text tokens attend causally, object tokens within the same <STEP> or <LOOK> block attend to each other bidirectionally, and <LOOK> blocks all earlier text and intermediate steps.
Parallel stream + heads (LR 2×10−4 ) Qwen3-1.7B (LR 3×10−6 , word table fixed)
Curriculum completes at step 9,600 , then held constant; question weights →(2,1.5,2.5,1.5,1)
Table 1: Training stage order, batch composition, and linear curriculum schedule. Stage 2 linearly interpolates t=min(1,step/9,600) across Stages 2a and 2b from step 0 to 9,600 (ramping question weights from (5,2,0.5,0.2,1) to (2,1.5,2.5,1.5,1) ) and holds the t=1 distribution through step 16,000 . Question weights give relative sampling shares across the five basic question types ( relation , closest , touch , gap , name ); scenarios are multi-constraint spatial problems.
Figure 3: Judging whether one object sits inside another after step updates. Colored contours decode 32 -element shape embeddings and 5 -element poses; dark dashed outlines on <LOOK> show exact target polygons.
Figure 4: Assembling scattered held-out nouns across translations and rotation. Dotted outlines and arrows mark the previous step; dark dashed outlines on <LOOK> show exact target polygons.
Figure 5: Multi-step rotation and nearest-object question. Turning a horizontal red crayon 90∘ upright, shifting it left, and moving the green coin beneath the yellow umbrella .
Figure 6: Coordinate-free scene layout. The user prompt contains only relative natural-language statements with no coordinates or sizes; the model constructs a 2×2 workspace layout across four held-out nouns and answers from <LOOK> .
Figure 7: Silhouettes generated for 14 held-out nouns omitted from spatial training. Numbers in parentheses report intersection-over-union (IoU) against the exact reference shapes (dark dashed outlines). (a) Twelve held-out nouns (blue) whose geometry resembles basic shapes in the ∼50 -shape library. (b) Two held-out shapes (red: heart , spoon ) absent from the library, illustrating the shape-embedding limitation described in Section 3 .
Trained Nouns
Held-Out Nouns ( 32 )
Unrepresented ( 3 )
Model
Shape IoU
Basic Shape
Shape IoU
Basic Shape
Shape IoU
Autoencoder (exact outline input)
0.98
—
0.98
—
0.92
Adapted Qwen3-1.7B (text input)
0.91
98%
0.79
74%
0.63
Table 2: Shape creation accuracy across trained nouns, 32 held-out nouns, and 3 unrepresented shapes. Shape IoU measures overlap between the decoded 32 -element shape embedding and the exact target polygon; Basic Shape measures whether the nearest basic shape matches the target.
Answer Order
<LOOK> Condition
All
Shape ID
Position
Form
Scenarios
Direct from objects
Normal workspace
71%
100%
98%
55%
64%
Exact <LOOK> (true state)
70%
100%
96%
58%
61%
Zeroed <LOOK> (all zeros)
38%
0%
54%
30%
41%
Randomized <LOOK> (random)
36%
0%
57%
26%
39%
Describe then answer
Normal workspace
69%
100%
98%
53%
61%
Exact <LOOK> (true state)
68%
100%
98%
48%
61%
Table 3: Workspace ablations across 300 identical held-out problems. Across full multi-step runs, valid sequence completion is 100% , mean final position error is 0.03 , and scale error is 0.03 .
Model
WikiText-2 PPL ( ↓ )
Top-1 Agreement
Mean KL(pbase∥pθ)
Control Token Rate
Original Qwen3-1.7B-Base
16.38
—
0.00
—
Adapted Qwen3-1.7B (cross-proj. off)
18.19
—
—
—
Full adapted model ( +4.4% active)
18.72
70.2%
0.50 nats
0.00% ( 0/32,640 )
Table 4: English language retention on WikiText-2 test ( 128×256 -token blocks, 32,640 next-token predictions; lower PPL is better). Full adapted model evaluation includes all parallel spatial layers, cross-projections, and control heads.
College of Computer Science and Artificial Intelligence, Fudan University · School of Computing and Information Systems, Singapore Management University · School of Computer Science and Technology, East China Normal University +2