NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Beyond Lines and Circles: Unveiling the Geometric Reasoning Gap in Large Language Models

Spyridon Mouselinos, Henryk Michalewski, Mateusz MalinowskiarXiv 2024

TL;DR

While Large Language Models (LLMs) excel at algebra and coding, they hit a surprising "reasoning gap" when faced with ruler-and-compass style constructive geometry. This paper identifies key failures—like spatial hallucinations and alphabetical naming biases—and introduces a multi-agent "Academy" framework that uses internal dialogue and visual scene descriptions to nearly double the performance of state-of-the-art models.

What Problem Does This Paper Address?

Constructive geometry is a cornerstone of human mathematical development, requiring a unique blend of spatial reasoning, long-term planning, and precise tool usage. While LLMs have mastered many text-based reasoning tasks, they struggle significantly in this domain.

The authors identify three primary hurdles:

  1. Spatial Blindness: Even multimodal models like GPT-4V can identify objects in a scene but struggle to integrate them into a coherent construction plan, often "hallucinating" points or assuming non-existent alignments.
  2. Naming Bias: LLMs are so conditioned on alphabetical patterns that they often choose longer, inefficient reasoning paths just to follow alphabetical order (e.g., creating an unnecessary point 'D' before reaching a target point 'E').
  3. Instruction Over-reliance: In few-shot settings, models often blindly mimic the style of examples rather than the underlying geometric logic, leading to redundant or incorrect steps.

Methods

To bridge this gap, the authors propose a multi-agent framework inspired by the Ancient Greek Academy. Instead of a single prompt, they deploy four specialized agents that engage in a multi-round dialogue:

  • Natural Language Solver ($S_{NL}$): Generates high-level rationales and plans in plain English.
  • Geometric Tool Solver ($S_{GT}$): Translates those plans into specific tool sequences (e.g., "Line Tool," "Circle Tool").
  • Validators ($V_{NL}$ and $V_{GT}$): Two separate agents that critique the plans and tool steps, providing feedback for self-correction.
Figure 1. Drawing inspirations from the Ancient Greek Academy, we divide the reasoning pipeline into three stages. From left to right: The current geometric construction task is broken down into the image, its task description, and available tools. Our framework employs four LLM-based agents, each prompted with a specific role and task. A collaborative multi-round discussion is conducted where the geometric construction is effectively solved, reflecting the Academy’s collective approach towards problem-solving and reasoning.

Beyond the agents, the authors introduce three key techniques:

  • Adaptive-Shot: A dynamic prompting mechanism that uses a Sentence Transformer to retrieve the most relevant past problems from a "memory bank" to guide the current task.
  • Visual Relations Prompt (VRP): To fix spatial blindness, they use a Vision-Language Model (VLLM) to generate a detailed text-based description of the scene's geometry, which is then shared with all agents.
  • Variable Renaming: They mitigate naming bias by substituting target variables with 'X', a neutral mathematical symbol for unknowns.

Datasets

  • Euclidea: The primary benchmark, consisting of 98 challenges from the popular geometric construction game.
  • Euclid’s Elements: The seminal work on geometry was used to fine-tune open-source models, providing them with foundational axioms and construction principles.
  • Generalization Benchmarks: The framework was also tested on GSM8K, SVAMP, and the MATH dataset (Geometry split) to ensure the multi-agent approach generalizes to broader mathematical reasoning.

Key Insights and Ideas

  • The "Alphabetical Trap": One of the most fascinating findings is that LLMs are biased by the alphabet. If a target point is named 'E', the model is statistically more likely to take extra steps to create 'C' and 'D' first. Renaming the target to 'X' significantly improves directness and accuracy.
  • Decoupling Vision from Reasoning: The authors found that feeding an image directly to an LLM during reasoning provides marginal gains. However, using a VLLM to "translate" the image into a precise text-based list of relations (the VRP) allows the reasoning agents to "see" the spatial constraints much more effectively.
  • Dialogue as a Debugger: The interaction between Solvers and Validators acts as a crucial error-correction loop. Validators often catch tool-specific errors (like using a tool not permitted in a specific level) that a single-shot model would miss.

Key Results

The multi-agent framework (referred to as "Ours" in the tables) showed dramatic improvements across the board.

Performance comparison on the Euclidea dataset

As shown in the results table above:

  • GPT-4 jumped from a 21.2% pass@1 rate in a standard few-shot setup to 38.9% using the multi-agent framework.
  • When ground-truth feedback was added (+FB), GPT-4 reached 41.2%.
  • MetaMath-Mistral (7B), an open-source model, saw its performance nearly double from 8.9% to 14.9%, even outperforming the few-shot version of ChatGPT.

Limitations and Future Work

While powerful, the authors acknowledge several limitations:

  • Cost and Latency: The extensive multi-round dialogue and large context windows required for four agents make this approach significantly more expensive and slower than single-query methods.
  • Domain Specificity: The current work is heavily focused on constructive geometry. While it showed promise on general math datasets, its full potential in other specialized domains remains to be seen.
  • Training for Interaction: The authors suggest that future LLMs should be explicitly trained to interact in multi-agent settings, rather than just relying on prompt engineering to force collaboration.

Summary updated

BibTeX
@misc{mouselinos2024beyond,
  author = {Spyridon Mouselinos and Henryk Michalewski and Mateusz Malinowski},
  title = {{Beyond Lines and Circles: Unveiling the Geometric Reasoning Gap in Large Language Models}},
  year = {2024},
  eprint = {2402.03877},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.03877},
}
Figure