Autoregressive Mosaics: Probing 2D Spatial Reasoning in Text-Only Language Models
On the map: LLM reasoning → Spatial and embodied reasoning
Abstract (arXiv)
Large language models (LLMs) trained only on text and code can sometimes generate programs that draw recognizable images. However, it is unclear whether this reflects an internal representation of 2D spatial layout or simply the ability to translate spatial descriptions into code. We introduce Autoregressive Mosaics (AM-Bench), a benchmark that separates these factors: First, a translation task gives a model a fully specified geometry of a picture in words as a prompt and asks for the code that produces it. Second, a layout task requires the model to compose an image from an underspecified prompt. Across eight open-weight text-and-code-only models, all models reliably translate specified geometry into code, but their open-ended layout performance differs substantially, indicating that these differences are not explained by code-generation ability alone. An output-medium ablation further shows that the interface or medium of expression that the model uses matters: replacing procedural code with raw SVG improves layout scores across all models. Finally, probing model activations shows that a coarse layout plan is present before generation, but reflects only the layout implied by the prompt. During generation, models track the evolving geometric state instead of executing an initially fixed plan. Overall, these results show that 2D spatial performance in text-only LLMs depends on both the model and the output medium, and is not explained by code-generation ability alone.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Spatial and embodied reasoning, one of 17 directions in LLM reasoning. Builds on 44 of its 64 references that are in the map. First posted on arXiv 31 Aug 2026.
Builds on
44 of 64 references.
Closest ancestors · 4
Same direction, newest first
- 2026PlanarBench: Evaluating LLM Spatial Reasoning via Planar Graph Drawing1 Jun
- 2026Limits of Spatial Imagery Reasoning in Frontier LLM Models25 Mar
- 2025DrawingBench: Evaluating Spatial Reasoning and UI Interaction Capabilities of Large Language Models through Mouse-Based Drawing Tasks1 Dec
- 20243DSRBench: A Comprehensive 3D Spatial Reasoning Benchmark10 Dec
Other references · 40
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
- 2025InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Modelscited by 1,769
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2019Designing and Interpreting Probes with Control Taskscited by 608
28 more
- 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 603
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 591
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2024Evaluating Text-to-Visual Generation with Image-to-Text Generationcited by 465
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
- 2023TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answeringcited by 416
- 2024MLLM-as-a-Judge: Assessing Multimodal LLM-as-a-Judge with Vision-Language Benchmarkcited by 362
- 2024DINO-WM: World Models on Pre-trained Visual Features enable Zero-shot Planningcited by 357
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
- 2017A Neural Representation of Sketch Drawingscited by 311
- 2023Davidsonian Scene Graph: Improving Reliability in Fine-grained Evaluation for Text-to-Image Generationcited by 159
- 2024SceneCraft: An LLM Agent for Synthesizing 3D Scene as Blender Codecited by 125
- 2024SceneScript: Reconstructing Scenes With An Autoregressive Structured Language Modelcited by 95
- 2024Empowering LLMs to Understand and Generate Complex Vector Graphicscited by 63
- 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 62
- 2024Emergent World Models and Latent Variable Estimation in Chess-Playing Language Modelscited by 60
- 2023LLM Blueprint: Enabling Text-to-Image Generation with Complex and Detailed Promptscited by 53
- 2023xVal: A Continuous Numerical Tokenization for Scientific Language Modelscited by 26
- 2025Revisiting the Othello World Model Hypothesiscited by 11
- 2025Symbolic Graphics Programming with Large Language Modelscited by 6
- 2026CoCo: Code as CoT for Text-to-Image Preview and Rare Concept Generationcited by 6
- 2025ASCIIBench: Evaluating Language-Model-Based Understanding of Visually-Oriented Textcited by 4
- 2025Seeing Isn't Orienting: A Cognitively Informed Hierarchical Benchmark for Object Orientation in MLLMscited by 3
- 2026Unlocking the Latent Canvas: Eliciting and Benchmarking Symbolic Visual Expression in LLMscited by 2
- 2026How Do LLMs and VLMs Understand Viewpoint Rotation Without Vision? An Interpretability Studycited by 1
- 2026PRISM: A Benchmark for Programmatic Spatial-Temporal Reasoningcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Learning to Draw ASCII Improves Spatial Reasoning in Language Models
- 2025Stuck in the Matrix: Probing Spatial Reasoning in Large Language Models
- 20263D-Layout-R1: Structured Reasoning for Language-Instructed Spatial Editing
- 2026Spatial Reasoning is Not a Free Lunch: A Controlled Study on LLaVA
- 20263D Space as a Scratchpad for Editable Text-to-Image Generation
- 2026SpatialImaginer: Towards Adaptive Visual Imagination for Spatial Reasoning
- 2025Spatial Reasoning in Multimodal Large Language Models: A Survey of Tasks, Benchmarks and Methods
- 2024Can Large Language Models Understand Symbolic Graphics Programs?