TL;DR
Large Language Models (LLMs) process information as one-dimensional token sequences, but many real-world problems are natively two-dimensional (like matrices, tables, or grids). This paper introduces the concept of "serialization friction"—the performance penalty incurred when flattening 2D spatial relationships into 1D text—and demonstrates that presenting these tasks visually in their native 2D layout significantly improves an LLM's reasoning and scaling capabilities.
What Problem Does This Paper Address?
From source code to spreadsheets, we routinely feed structured data into LLMs by flattening it into a linear string of text using delimiters like newlines, commas, or brackets. While this 1D serialization preserves the symbolic content (the actual numbers or characters), it obscures the relational structure—such as column alignment or spatial adjacency.
The authors investigate a fundamental representational question: Is reducing a 2D layout to a 1D text sequence a neutral interface choice? They argue it is not. Instead, it introduces "serialization friction," forcing models to waste computational capacity tracking indices and positions implicitly rather than focusing on the core task logic.
Methods
To evaluate the impact of serialization friction, the authors constructed a controlled synthetic testbed consisting of three tasks with explicit 2D structures:
- Matrix Transpose: Tests global row-column correspondence.
- Conway’s Game of Life: Tests local spatial adjacency rules.
- LU Decomposition: Tests sustained, multi-step row-column algorithmic operations.
They compared two distinct input pathways for identical problem instances:
- The Text Condition (1D): The serialized text string is fed directly to a text-based LLM (GLM-4-9B).
- The Visual Condition (2D): The native 2D layout is rendered as an image and processed by a vision-language model (Glyph, which couples a vision encoder with the same GLM-4 base).
To ensure a fair comparison, task definitions, prompts, and evaluation criteria were held constant. They used Supervised Fine-Tuning (SFT) for the first two tasks and Reinforcement Learning from Verifiable Reward (RLVR) for the complex LU decomposition task.
Datasets
The study relies entirely on programmatically generated synthetic datasets, allowing the authors to systematically scale the dimensions of the problems:
- Matrix Transpose: Square integer matrices scaled from $12 \times 12$ up to $20 \times 20$.
- Conway’s Game of Life: Binary grids scaled from $4 \times 4$ to $8 \times 8$.
- LU Decomposition: Square matrices with integer entries ranging from $-9$ to $9$, scaled from $3 \times 3$ to $6 \times 6$.
Key Insights and Ideas
- Serialization is Not Neutral: As the size of a structured task grows, 1D text performance degrades much faster than 2D visual performance.
- Spatially Structured Errors: Errors in the 1D text condition are not random noise. In the matrix transpose task, errors heavily concentrate in the lower-right region of the matrix, showing that the model progressively loses track of sequential positions as the string grows longer.
- Layout Matters More Than Modality: In a clever "within-visual probe," the authors rendered the 1D serialized text string as an image (disrupting the 2D layout but using the visual pathway). This layout-disrupted image performed significantly worse than both pure text and the native 2D image layout, proving that the performance boost stems from the 2D spatial arrangement itself, not just the shift from text to pixels.
Key Results
- Matrix Transpose: In matched train/eval settings, the 1D text condition's exact-match accuracy plummeted from 92.7% at $12 \times 12$ to a mere 0.8% at $20 \times 20$. Meanwhile, the 2D visual condition maintained a robust 90.8% accuracy at the largest size.
- Conway’s Game of Life: The text condition's accuracy dropped steadily from 86.5% ($4 \times 4$) to 46.6% ($8 \times 8$), whereas the visual condition remained near-perfect at >99.7% across all tested grid sizes.
- LU Decomposition: Under mixed-dimension training, the text-based model completely failed to generalize, hovering near 0% accuracy. In contrast, the visual model achieved 98.8% (at $3 \times 3$), 93.5% (at $4 \times 4$), and 69.2% (at $5 \times 5$).

Limitations and Future Work
While compelling, the authors note that this is a system-level comparison. Because the text and visual pathways differ in modality, tokenization, and pretraining histories, it is difficult to isolate a single, definitive causal mechanism. Furthermore, the testbed is intentionally narrow and synthetic.
Future work should explore whether these findings hold true for complex, real-world 2D tasks (like financial spreadsheet analysis or user interface navigation) and investigate how to build better 2D inductive biases directly into text tokenizers and LLM architectures without needing to render everything as images.
Summary updated