Explorations into (LLM) spatial reasoning with design patents

§1 Validating the bitter lesson

In this work, we study structural reasoning in the context of patent and technical design understanding. Our contributions include several novel task types that benchmark capabilities needed for strong agentic performance in physical design domains.

For each task, we experiment with multiple representations of the underlying information. We are interested not only in which models perform best, but how the way the information they are presented and asked to present is structured. To do this, we also release a gym environment with design patent figures as states, a DSL action space for composing figures, gradeable spatial reasoning tasks that provide verifiable rewards, and a renderer that turns the DSL into a visual form.

In general, we find that representational interventions can equip models with the support they need to perform on tasks that require spatial understanding, however, it is important to be intentional about the types of representations and when they are implemented. In our view, spatial reasoning can be decomposed into two parts: categorical and geometric thinking. Categorical thinking — where a model, for example, should identify the correct viewpoints from a set — is best supported via test-time reasoning, whereas geometric thinking likely needs to be imbued in a model during early stages (i.e. training).

§2 Why we use design patents to probe into spatial reasoning

We view patents and their figures as a rich data source given their ground truth and real-world implications for relational structural understanding in a visual domain. Patent analysts and inventors ask questions relevant to anyone building generatively: how similar is what I’m building to existing tools? How do I build cumulatively without redundant work? And what should I add next? We use these as the basis for our task design. For agents to be true builders, they should understand how their outputs fit into the existing innovation landscape and situate their generations within that context.

A cleaning tool rack shown across six viewpoints: two isometric views, a top plan, a section, a rear elevation, and a bottom plan.
Fig. 1. Sample figure for a cleaning tool rack with all viewpoints displayed.

Our findings

Overall, we find that models have the necessary knowledge but struggle to apply it in physical domains. That is, they can describe what they should do but struggle to execute. We use Locarno classifications to understand whether different types of design are more difficult for models.

§3 Tasks

  1. Masked view. For this task, we try to assess models’ ability to determine the viewpoint of a given figure. This task is structured where the figures of a patent are described, all but one have their viewpoints written out and the remaining one does not. From this, the model has to write out the viewpoint of the masked figure.

    FIG. 1 is a perspective view thereof.
    FIG. 2 is a ____ view thereof.    (masked; target: front elevation)
    FIG. 3 is a rear elevational view thereof.
  2. Figure retrieval. For this task, we split it into two parts: first, we identify whether models can find the correct figure from a set of figures drawn from various patents (i.e., other objects); second, we identify whether models can find the right view of a given object among its other views, which are similar in embedding space.

    Part 1 (across patents): query = front elevation of a beverage container
      [A] front elevation of a desk lamp        (other object)
      [B] perspective of a hinge bracket        (other object)
      [C] front elevation of a beverage container <- target
    
    Part 2 (within object): query = "rear elevation" of object D1023456
      candidates = its own sibling views {perspective, front, top, rear*}
      target = rear   (* nearest neighbors in CLIP space, hardest distractors)
  3. Intent elicitation. With this task, we ask whether drawing descriptions can be mapped to design intent. We give a structured schema and employ token overlap (F1) as our measure for accuracy. Here, we ask whether the model can produce coherent explanations of designs instead of only summarizing the description McCarthy et al., 2024. We use this task, in particular, to probe into how models reason.

    Input (drawing description): "FIG. 1 is a perspective view of a folding
      chair; FIG. 2 is a side elevational view thereof; ..."
    Output (filled schema):
      viewpoint_set  : [perspective, front, side, top]
      primary_view   : perspective
      component_vocab: [seat, backrest, legs, hinge]
      spatial_layout : "hinged seat and backrest over four folding legs"
      design_intent  : "a collapsible chair for compact storage"
  4. Agent-to-agent communication. We view a model’s ability to express its work and outputs as a pre-cursor to collaborating and iterating in offline settings. For this task, two agents form a dyad and play a reference game adapted from the procedural-abstraction communication setup of McCarthy et al. (2021), in which agent A is given a patent figure and expresses its design in natural language to agent B, who must reconstruct it. We run this under two conditions, viewpoint-aware and viewpoint-agnostic.

    Designer (sees target view): "A perspective view of a cylindrical bottle
      with a ribbed cap and a tapered neck."
    Maker (sees a pool of candidate figures, no labels): picks 1 of N
    Score: 1 if Maker’s pick == Designer’s target, else 0

§4 Benchmark construction

Dataset

We source patents and the corresponding designs from the IMPACT dataset (Shomee et al., 2024) — a multi-modal dataset of patents and their figures in paired image–caption format with accompanying patent metadata including the issuing year, the author, and its description. The dataset includes patents from a 15-year time-span (2007–2022). We enrich the dataset with data from 2023–April 2026 and include model-generated descriptions of the images themselves and we gather metadata for the figures including how many there are per patent, the ID, sibling figures and we number the components. For the years we extend, we source the figure images from Google Patents image hosting. In total, we analyze 2.65M patent figures. As part of our processing for this data and as the setup for our tasks we embed each figure with CLIP ViT-L/14, 768-dim.

A graphical DSL

Acknowledging that there was no pre-defined programming language for patent visual reasoning that could be used for our corpus, we induce a DSL directly from the corpus. To induce the grammar, we extract unique terms from each figure’s description and attach each to a “projection.” In a given patent, the same article — for example, a hinge bracket — is shown in a variety of viewpoints (the front view, rear view, and the left and right views). We define each of these viewpoints as leaves in the tree.

From the corpus — Patent D1017555, “fastening clip for cables” (the clip in Fig. 2)

FIG. 1 is an isometric view showing the left side and top of our design of a fastening clip for cables. FIG. 2 is an isometric view showing the right side and bottom thereof; FIG. 3 is a front elevational view thereof; FIG. 4 is a rear elevational view thereof; FIG. 5 is a left side elevational view thereof; FIG. 6 is a right side elevational view thereof; FIG. 7 is a top plan view thereof; and, FIG. 8 is a bottom view thereof.

FIG. 1isometricpictorial
FIG. 2isometricpictorial
FIG. 3front elevationorthographic
FIG. 4rear elevationorthographic
FIG. 5left elevationorthographic
FIG. 6right elevationorthographic
FIG. 7top planorthographic
FIG. 8bottom planorthographic

At the root of the grammar, it breaks down into pictorial and orthographic representations. Pictorial representations refer to images of the figures with depth; orthographic ones are flat and taken head-on (e.g. front, rear, left, right, top, and bottom views). Pictorial views then branch into perspective (representing the figure as it would be perceived from different viewpoints) or isometric (representing the figure at 30 degrees off horizontal on each side, so that scale is preserved).

A cable fastening clip drawn two ways: pictorial isometric views with depth on the left, and flat orthographic top, bottom, and side views on the right.
Fig. 2. Comparison of pictorial and orthographic perspective for a small molded cable clip for cables (Patent D1017555).
Pictorial Orthographic Perspective 17 views Isometric 1 view Elevation 5 views Plan 2 views Section 1 view
Fig. 3. The induced hierarchical viewpoint grammar. The node size is proportional to corpus frequency.

Models are given a canvas and essentially a set of shapes and lines forming a total of three primitives (lines, circles, and arcs) that they can use to build figures. The transformation of these primitives into ink on the blank canvas is known as rasterization.

D = {
  l((0.20,0.80),(0.80,0.80)),           % line: two endpoints
  c((0.40,0.50),(0.60,0.50)),           % circle: diameter endpoints
  a((0.20,0.30),(0.50,0.45),(0.80,0.30)) % arc: start, mid, end
}
Three panels: a target patent figure, then the model's DSL render at turn 0, then a closer render at turn 1.
Fig. 4. We also introduce an extension of the task where the agent gets to see intermediate renderings of the figures as they write in the DSL to emulate the visual feedback that a human would use while working.

§5 Results

We find that models are capable of identifying perspective from flat orthographic views (2D representations, akin to what you would observe if you had scanned a 3D object), but struggle with pictorial views (3D representations, akin to what you would observe if you had taken a picture of a 3D object from an angle). We see that models lack the ability to verify the viewpoints they suggest.

ConditionSimilarityΔ
Same object, same viewpoint0.892+0.122
Same object, different viewpoint0.860+0.090
Different object, same viewpoint0.776+0.006
Different object, different viewpoint0.7700.000
Mean pairwise cosine similarity in CLIP ViT-L/14 across four conditions. Different-object conditions (C, D) each use n=5,000 sampled pairs per year; same-object conditions (A, B) use all available within-patent pairs (n ≤ 15/year). Object identity explains an effect (+0.090) 15× larger than shared viewpoint (+0.006).

Comparing representations

We also explore a notion of ‘format tax.’ In this work, the DSL also served as a normalizer for the sake of scoring. However, we look at the costs of representation and how lossy it was. Across models we see that different ones are more capable than others at adhering to new languages and learning abstractions. Given the language to describe figures as an input, we see that it costs every model 26–30 points for accuracy.

50 60 70 80 90 100 raw prose raw text shuffled label list DSL code Accuracy (%)
Opus 4.5GPT-4oGemini 2.5 ProKimi K2Llama 3.3 70B
Fig. 5. Accuracy by representation across models on the masked-view task. Natural prose leads to the best performance for the models.

Text outperforms vision

For fill-in-the-middle (FIM) tasks, we find that natural language representations substantially outperform vision-only approaches. One plausible explanation is that vision-only models encounter a distribution mismatch: technical wireframes and patent figures are relatively uncommon compared to the image distributions on which these models are typically trained.

SettingAccuracyRandom (1/8)
Masked-view, text88–95%12.5%
Viewpoint ID, vision-only~23%12.5%
Linear probe (CLIP → viewpoint)43.2% (33.8% bal.)12.5%
Viewpoint accessibility by representation; random is uniform chance over the eight viewpoint families (1/8).

Probing the model internals

To understand whether pattern-matching is happening in model cognition we use logistic regression to separate visual features from patent figure images (224×224, 50,176 pixels). This provides us a vector representation projected into a lower dimensional space (768 features), where each patch corresponds to a set of pixels from the original space (256 patches of 14×14 pixels). We see whether the geometry of this visual space corresponds to the outputs of the model by seeing if they are linearly accessible. We observe that the model has an internal representation of pictorial views with depth but not orthographic ones.

We see that information about some views are already in CLIP’s features but are not expressed. However, we can double the accuracy of retrieval on new objects by using a lightweight linear probe and simply reading out the encoded knowledge about the perspective (going from 18.9% to 46.9%). This further supports the notion that communication is a core bottleneck for models in spatial reasoning environments rather than their knowledge alone. The Platonic Representation Hypothesis posits that representations for a model across modalities are convergent (Huh et al., 2024). Experiments from work on the universal geometry of embeddings across architectures also agree (Jha et al., 2025). However, we argue that viewpoint is a unique dimension such that it requires different internal understanding of the world. While the identity of the object agrees across modalities, there is no shared structure across viewpoints.

To check that the orthographic collapse is not an artifact of linear decoding, we re-run the viewpoint probe with a Handa-style 2-layer MLP (one hidden layer, 256 units) on the same frozen CLIP ViT-L/14 features, each with a Hewitt–Liang shuffled-label control task (Hewitt & Liang, 2019). The collapse persists: the flat orthographic views (front, top, section) stay near-floor under the more expressive probe, overall accuracy rises only +1.7pp, and selectivity increases (+0.20 → +0.23) — so the small gains are genuine signal, not the capacity overfitting an MLP can introduce. Viewpoint is weakly recoverable from CLIP linearly and nonlinearly.

§6 Supporting models with anchors

Just as humans have heuristics and cognitive tools to help them navigate the world, we question whether with the right support, models can also reason and to what degree it helps. We provide different anchors to test this. The first anchor is an image of an object of the same view with a description and the prompting question. The second is a landmark, where we have the same two images and instead of asking the model to simply supply the view, we ask it to first identify a distinguishing feature or form of asymmetry to figure out the second image’s viewpoint.

§7 Discussion

We find this suite of tasks compelling because domain expertise should not be a prerequisite for success.

More broadly, we hope these findings can inform the design of new interfaces for interacting with foundation models, rather than focusing exclusively on measurable model capabilities. While we focus on evaluating models out of the box, future work might look at a broader set of models and their harnesses to emulate real-world conditions. Additionally, many of the tasks we include require compositional understanding of how components fit together in the physical world. It remains unclear, however, whether such understanding depends on visual reasoning and spatial cognition, or whether language and code abstractions alone are sufficient.

§8 References

  1. Hewitt, J. & Liang, P. (2019). Designing and Interpreting Probes with Control Tasks. EMNLP-IJCNLP. arXiv:1909.03368
  2. Huh, M., Cheung, B., Wang, T. & Isola, P. (2024). The Platonic Representation Hypothesis. ICML. arXiv:2405.07987
  3. Jha, R., Zhang, C., Shmatikov, V. & Morris, J. X. (2025). Harnessing the Universal Geometry of Embeddings. NeurIPS. arXiv:2505.12540
  4. McCarthy, W. P., Hawkins, R. D., Wang, H., Holdaway, C. & Fan, J. E. (2021). Learning to communicate about shared procedural abstractions. Proceedings of the 43rd Annual Conference of the Cognitive Science Society (CogSci). arXiv:2107.00077
  5. McCarthy, W. P., Matejka, J., Willis, K. D. D., Fan, J. E. & Pu, Y. (2024). Communicating design intent using drawing and text. Proceedings of the 16th Conference on Creativity & Cognition, 512–519.
  6. Shomee, H. H., Wang, Z., Medya, S. & Ravi, S. N. (2024). IMPACT: A Large-scale Integrated Multimodal Patent Analysis and Creation Dataset for Design Patents. NeurIPS Datasets and Benchmarks Track. OpenReview