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

GeoSketch: A Neural-Symbolic Approach to Geometric Multimodal Reasoning with Auxiliary Line Construction and Affine Transformation

Shichao Weng, Zhiqiang Wang, Yuhua Zhou, Rui Lu, Ting Liu, Zhiyang Teng, Xiaozhang Liu, Hanmeng Liu

TL;DR

GeoSketch introduces a neural-symbolic framework that enables Multimodal Large Language Models (MLLMs) to solve complex geometry problems by dynamically manipulating diagrams—such as drawing auxiliary lines or rotating shapes—within an interactive perception-reasoning-action loop. By decoupling mathematical reasoning from image rendering, GeoSketch allows a specialized 7B model to outperform massive generalist models like GPT-4o on advanced visuospatial tasks.

What Problem Does This Paper Address?

When humans tackle complex geometry problems, we rarely just stare at a static image to find the answer. Instead, we actively manipulate the diagram: we draw auxiliary lines to reveal hidden relationships, or we mentally rotate and reflect triangles to prove congruency.

Figure 1: An visual geometric problem that require dynamic image manipulation

Current MLLMs, however, treat geometry diagrams as static pixels. While they are adept at visual question answering, they lack a "cognitive workspace" to alter images step-by-step. Prior attempts to fix this forced models to write verbose Python code to redraw images, which often conflates the challenge of mathematical logic with the error-prone task of code generation. GeoSketch addresses this gap by giving models a structured, executable action space to interact with diagrams dynamically.

Methods

GeoSketch implements a closed-loop, three-tier architecture that mirrors human problem-solving:

  1. Visual Perception Module: Converts the diagram into a structured, symbolic "logic form" (a JSON object detailing points, lines, and circles) using fine-tuned YOLOv11 and U-Net models. Crucially, it features an MLLM-driven auto-correction loop that compares the original image with a losslessly rendered version of the JSON to fix any parsing errors.
  2. Symbolic Reasoning Module: Powered by an MLLM acting as a theorem prover, this module ingests the problem text, the current logic form, and the history of actions. It outputs the next logical deduction alongside a concise, declarative command (e.g., rotate(triangle_ABC, 90)).
  3. Sketch Action Module: A deterministic rendering engine executes the command, updates the coordinates in the logic form, and redraws the diagram. This updated visual state is fed back into the perception module for the next turn.
Figure 2: The three-tier GeoSketch architecture first uses its perception module to get the initial logic form and then refine the logic form until it gets a complete one. Then the neural-symbolic reasoning module tries to solve the question by drawing auxiliary lines, and the sketch-action module manipulates the image.

To train the system, the authors use a two-stage pipeline. First, Supervised Fine-Tuning (SFT) distills multi-step expert trajectories from larger frontier models into a smaller Qwen2.5-VL-7B model. Second, Reinforcement Learning (RL) via Group Relative Policy Optimization (GRPO) uses sparse, rule-based rewards to encourage strategic exploration and ensure the model outputs syntactically valid commands that lead to the correct final answer.

Datasets

The authors evaluated and trained their framework using several datasets:

  • GeoSketch Fine-Tuning Dataset: 2,000 synthetically generated, high-quality multi-step visual reasoning trajectories used for the SFT phase.
  • GeoSketch Benchmark: A newly introduced, curated evaluation set of 390 challenging geometry problems that strictly require auxiliary line construction or affine transformations. Problems are categorized by answer type: Numerical, Ratio, and Descriptor.
  • Geometry3K & GeoQA: Standard, static geometry benchmarks used to test the framework's generalization capabilities.

Key Insights and Ideas

  • Reasoning with Diagrams, Not Just About Them: By converting images into declarative logic forms, GeoSketch eliminates visual hallucinations. The MLLM focuses entirely on math logic, while the rendering engine handles the pixel-perfect drawing.
  • Specialization Beats Raw Scale: A 7B parameter model explicitly trained to use these interactive tools can outperform much larger generalist models like GPT-4o.
  • Dynamic Training Boosts Static Intelligence: Surprisingly, training a model to interactively manipulate diagrams significantly improves its performance on static benchmarks where no manipulation is allowed. Teaching the model the process of construction instills a deeper intrinsic understanding of geometric principles.

Key Results

The integration of the GeoSketch framework yielded substantial performance leaps across all tested MLLMs compared to static "Pure Run" baselines:

Table 1: Performance comparison of MLLMs on the GeoSketch benchmark. The “Pure Run” col- umn shows the accuracy of models operating statically on images, while the “GeoSketch” column shows the accuracy when models are empowered with dynamic reasoning and action capabilities. The “Improvement” rows highlight the substantial gains achieved with our framework. Our final RL- tuned model achieves state-of-the-art performance, outperforming even significantly larger models. All results are in accuracy %.
  • Framework Gains: Activating the GeoSketch loop boosted GPT-4o's accuracy by +16.66% and Qwen2.5VL-72B's by +15.63%.
  • State-of-the-Art RL Model: The custom-trained GeoSketch-Qwen2.5VL-7B-RL achieved the highest overall accuracy on the benchmark at 59.23%, outperforming both the 72B model (58.71%) and GPT-4o (49.74%).
  • Generalization: On the static GeoQA dataset, the RL-tuned 7B model improved accuracy from 47.28% (base) to 72.52%—a massive 25.24 percentage point increase.
  • Efficiency: Compared to code-generation baselines like Visual Sketchpad, GeoSketch cut average input token overhead by over 55% (from ~12,900 to ~5,692 tokens), drastically lowering computational latency.

Limitations and Future Work

The primary limitation acknowledged by the authors is that their evaluation metrics focus strictly on final answer accuracy. The framework does not currently assess the mathematical validity or logical soundness of the intermediate reasoning steps taken by the model. The authors note that future iterations will incorporate step-wise verification mechanisms to ensure the entire generation trajectory is mathematically rigorous.

Summary updated

BibTeX
@misc{weng2025geosketch,
  author = {Shichao Weng and Zhiqiang Wang and Yuhua Zhou and Rui Lu and Ting Liu and Zhiyang Teng and Xiaozhang Liu and Hanmeng Liu},
  title = {{GeoSketch: A Neural-Symbolic Approach to Geometric Multimodal Reasoning with Auxiliary Line Construction and Affine Transformation}},
  year = {2025},
  eprint = {2509.22460},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.22460},
}
Figure