Do Large Language Models Truly Understand Geometric Structures?

Xiaofeng Wang, Yiming Wang, Wenhong Zhu, Rui Wang

Abstract

While Large Language Models (LLMs) have demonstrated remarkable proficiency in general mathematical benchmarks, their success in geometry often masks a fundamental deficiency in structural reasoning. This paper introduces GeomRel, a novel benchmark designed to isolate Geometric Relationship Identification (GRI)—the ability to recognize spatial properties like parallelism or containment—from final numerical calculations. Our evaluation reveals a significant "coincidence phenomenon," where models arrive at correct answers despite misidentifying the underlying geometric relationships. To address this, we propose Geometry Chain-of-Thought (GeoCoT), a two-stage prompting framework that utilizes structural breakdown and reverse thinking to enhance geometric reasoning by up to 14.8%.

Introduction

In the landscape of artificial intelligence, benchmarks like MATH and GSM8K serve as the gold standard for evaluating mathematical reasoning. However, geometry presents a unique challenge that these benchmarks often fail to capture. Solving a geometry problem typically requires two distinct phases: identifying the geometric relationships (GRI) and executing the subsequent calculation.

Current evaluation metrics focus almost exclusively on the final answer, which can be deceptive. This research suggests that LLMs often rely on "unmeaningful reasoning" or pattern-matching rather than a true understanding of spatial logic. By isolating the GRI step, this study aims to determine whether LLMs possess a genuine grasp of geometric structures or are simply lucky guessers.

The GeomRel Benchmark

To rigorously test geometric understanding, the researchers developed GeomRel, a benchmark containing 2,629 samples across three domains: Line-based, Angle-based, and Shape-based relationships. The benchmark is structured into two tiers:

  • Basic Data: Derived from fundamental geometric definitions and properties.
  • Advanced Data: Created through "condition concatenation," where multiple simple rules are chained to form complex logical structures.

To ensure models are not simply memorizing common problem formats, the authors implemented Diversity Operations. These include Point Relabeling (RP)—shuffling vertex names (e.g., changing triangle ABC to EWG)—and the introduction of Unrelated Information (UI), such as irrelevant measurements, to test the model's ability to filter noise.

Geometry Chain-of-Thought (GeoCoT)

Recognizing that LLMs struggle with forward-only logical chains in geometry, the authors propose GeoCoT, a two-stage prompting strategy:

  1. Stage 1: Geometry Breakdown: The model is prompted to list all primitives (points, lines) and secondary conditions (e.g., if a shape is a rectangle, the model must explicitly state that opposite sides are parallel and equal) before addressing the specific question.
  2. Stage 2: Relationship Observation (Reverse Thinking): Instead of attempting to derive a conclusion directly, the model employs Reverse Thinking (RT). It assumes a specific relationship holds and checks for logical contradictions within the established geometric properties. This method helps models navigate "reasoning obstacles" that often derail standard forward logic.

Key Insights and Experimental Results

The "Coincidence" Phenomenon

The study's most striking finding is the gap between answer accuracy and relationship understanding. On the Geometry3K dataset, GPT-3.5 achieved a 36% answer accuracy but only a 12% GRI accuracy. This confirms that models are frequently "right for the wrong reasons," succeeding through lucky guesses or flawed heuristics.

The Difficulty of Angles

While LLMs perform reasonably well on line and shape relationships, angles represent a significant hurdle. Performance on tasks involving alternate interior or complementary angles often drops to near-random levels, particularly in the Advanced GeomRel set.

Model Performance and Robustness

Even state-of-the-art models like GPT-4o are not immune to complexity. GPT-4o's accuracy plummeted from 77.86% on Basic tasks to 47.93% on Advanced tasks. Furthermore, the Point Relabeling tests revealed that LLMs are highly sensitive to notation; changing vertex names caused performance fluctuations, suggesting that models have not fully abstracted geometric concepts into a notation-independent form.

Effectiveness of GeoCoT

Implementing the GeoCoT strategy yielded substantial improvements. In few-shot settings, the method led to an average accuracy gain of 9.15% on Basic tasks and 14.79% on Advanced tasks, demonstrating that structured reasoning can partially mitigate the spatial imagination gap in text-based models.

Limitations and Future Directions

The current research focuses on 2D planar geometry and text-based reasoning. The authors acknowledge that 3D geometry and the integration of Vision-Language Models (VLMs) represent the next frontier. Future work will likely explore whether visual inputs can help models overcome the "spatial imagination" limitations observed in text-only LLMs and expand the condition pool to include a broader range of geometric theorems.

Conclusion

The GeomRel benchmark exposes a critical weakness in the geometric reasoning of current LLMs. While models can be prompted to perform better through strategies like GeoCoT, the fundamental gap between calculation and structural understanding remains. True geometric intelligence will require models to move beyond pattern matching toward a more robust, abstract understanding of spatial relationships.

Summary updated

BibTeX
@inproceedings{wang2025do,
  author = {Xiaofeng Wang and Yiming Wang and Wenhong Zhu and Rui Wang},
  title = {{Do Large Language Models Truly Understand Geometric Structures?}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=FjQOXenaXK},
}
Figure