INQUIRING LINE

Why do AI models mess up finding a shape's center or measuring distances once that shape gets tilted or irregular?

How do non-axis-aligned polygons cause LLM centroid and distance errors?

This explores why language models get geometry wrong when shapes are tilted or irregular (not neat rectangles lined up with the x and y axes), and specifically whether that is what breaks their calculations of center points and distances.


This explores why LLMs struggle with geometry once shapes stop being tidy, grid-aligned rectangles. The corpus partly supports the question and partly corrects it. The most direct evidence is FloorplanQA, which tested 15 models on 2,000 floorplans Can language models reason reliably about indoor spatial layouts?. Simple distance and angle calculations held up well. The models broke down on irregular polygons, on finding the combined area of overlapping shapes, and on planning multi-step paths. So the trouble isn't that tilted shapes spoil the distance formula. It's that anything needing a consistent mental picture of the whole space, such as where an odd-shaped room's true center sits or how two regions overlap, goes wrong. The researchers trace this to the models lacking a single internal model of space, not to arithmetic mistakes.

The same pattern shows up in neighboring areas under different names. In CAD generation, a model trained with supervised fine-tuning alone writes code that runs 91% of the time but matches the intended shape only about 50% of the time Can CAD code be syntactically correct yet geometrically wrong?. Writing valid code and getting the shape right turn out to be separate skills. Room layouts generated by GPT show it too: about 55% had structural flaws, including wrong object orientations and clustering, and needed human correction before anyone could use them Why do GPT-generated room layouts fail so often?. Orientation errors are exactly what you'd expect if a model handles positions as a list of numbers rather than as shapes in a shared space.

What may surprise you is where the fixes come from. The approaches that work don't try to make the model reason better in its head. They render or run the output and check the real geometry. CAD-Coder executes the generated code and rewards the model by how close the resulting 3D shape is to the target Can executing generated code measure CAD generation quality?. Adding chain-of-thought reasoning and then RL raised CAD shape accuracy from 50% to 72% Can CAD code be syntactically correct yet geometrically wrong?. AeSlides scores rendered slides with rule-based layout checks instead of asking a vision model for its opinion, and lifts aspect-ratio compliance from 36% to 85% Can rule-based rewards fix LLM slide layout quality?. In each case, a checker outside the model makes up for the spatial picture the model doesn't have.

A caveat on coverage: the collection has no paper that isolates rotated or non-axis-aligned polygons as a variable, or that measures centroid errors on their own. The claim that tilt causes the failure is plausible given FloorplanQA's irregular-polygon results, but no paper here tests it directly. Several notes in the collection use "centroid" and "distance" in a different sense, meaning the distance between internal model states in emergent-misalignment research. Those are about representations, not shapes.


Sources 5 notes

Can language models reason reliably about indoor spatial layouts?

Testing 15 models on 2,000 floorplans reveals they handle simple metrics like distance and angle correctly but collapse on area unions, irregular polygons, and multi-step path planning. Failures appear rooted in lacking unified internal spatial models rather than insufficient computation.

Can CAD code be syntactically correct yet geometrically wrong?

Supervised fine-tuning alone produces 91% executable CAD code but only 50% geometric IoU. Chain-of-thought reasoning raises IoU to 61%, while RL post-training pushes it to 72%, showing the two capabilities decouple during early training.

Why do GPT-generated room layouts fail so often?

About 55% of Holodeck's GPT-generated layouts contained structural flaws including under-population, clustering, and wrong object counts or orientations. OptiScene required manual filtering and correction before the layouts could train downstream models.

Can executing generated code measure CAD generation quality?

CAD-Coder trains LLMs to write executable CadQuery code, then uses GRPO with Chamfer Distance to the target shape as a geometric reward signal. This approach reduces mean Chamfer Distance to 6.54 and outperforms existing text-to-CAD systems while maintaining low code invalidity rates.

Can rule-based rewards fix LLM slide layout quality?

AeSlides uses GRPO with render-time metrics to train slide generation, raising aspect-ratio compliance from 36% to 85% and outperforming reflection methods and Claude-Sonnet-4.5. The key: scoring rendered HTML directly rather than judging markup.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.