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 · Submission to ICLR 2026 · Withdrawn

TL;DR

GeoSketch transforms geometric problem solving in Multimodal Large Language Models (MLLMs) from static image perception into an interactive perception–reasoning–action loop. By iteratively converting diagrams into declarative logic forms, deciding geometric steps, and executing visual manipulations (such as auxiliary lines and affine transformations), a trained 7B agent outperforms even 72B and proprietary models like GPT-4o.

What Problem Does This Paper Address?

When human mathematicians solve geometry problems, they rarely stare passively at a static figure. Instead, they interact with the diagram: extending segments, constructing altitudes, or rotating and reflecting triangles to reveal hidden relationships.

Standard MLLMs, by contrast, ingest a static image and are expected to generate a text-only solution in a single pass. Recent attempts to introduce dynamic sketching (such as Visual Sketchpad) treat drawing as raw Python or XML code generation, which conflates mathematical reasoning with syntax generation, incurs heavy token overhead, and requires manual error correction. GeoSketch addresses this gap by formalizing a dynamic, autonomous, and verifiable environment where models can manipulate geometric diagrams step-by-step.

Methods

GeoSketch implements a closed-loop, three-tier architecture:

  1. Visual Perception Module: Extracts geometric elements from the diagram using fine-tuned YOLOv11 (object detection), U-Net (segmentation), and OCR. It produces a machine-readable, declarative JSON logic form (e.g., points, lines, circles). If discrepancies exist between the logic form and the original image, an MLLM-based checker combined with an L-BFGS geometry constraint solver automatically refines the coordinates without human intervention.
  2. Neural-Symbolic Reasoning Module: An MLLM acts as a theorem prover. Conditioned on the problem statement, current logic form, and past reasoning steps, it outputs natural language deductions alongside a structured action command.
  3. Sketch Action Module: Executes symbolic operations—such as draw_perpendicular_line, rotate, reflect, translate, or backtrack—updates the underlying logic form, and re-renders the diagram for the next loop iteration.
Diagram ──► [Perception] ──► Logic Form ──► [MLLM Reasoner]
    ▲                                              │
    └──────── [Sketch Action] ◄── Executable Tool ─┘

Two-Stage Training Pipeline

  • Supervised Fine-Tuning (SFT): Distills 2,000 multi-turn trajectories generated by frontier reasoning models (e.g., Gemini-2.5-Pro, DeepSeek-R1) into a compact Qwen2.5-VL-7B base model.
  • Reinforcement Learning (RL): Employs Group Relative Policy Optimization (GRPO) with rule-based rewards: a format reward (+1.0 for valid JSON tool syntax) and a result reward (+1.0 for correct final answers).

Datasets

  • GeoSketch Benchmark (New): 390 rigorously filtered, high-difficulty geometry problems requiring auxiliary line construction or transformations (201 numerical, 108 ratio, and 81 descriptive/proof tasks). Each problem includes initial diagrams, gold solutions, and step-by-step action trajectories.
  • GeoSketch Fine-Tuning Dataset (New): 2,000 multi-step synthetic trajectories synthesized from hard geometric templates with automated image correction.
  • Standard Geometry Benchmarks: Evaluated on Geometry3K and GeoQA to test generalization to static geometry problems.

Key Insights and Ideas

  • Declarative Logic beats Imperative Code: Instead of generating brittle matplotlib/Python code, GeoSketch generates high-level declarative actions (rotate, draw_line). This cuts input token counts by over 55% (from 12,899 to 5,693 tokens) and output tokens by 14% compared to Visual Sketchpad.
  • Dynamic Training Boosts Static Reasoning: Training a model to manipulate figures dynamically also teaches fundamental deductive reasoning. The RL-trained model improves by +9.49% on Geometry3K and +25.24% on GeoQA without tool usage.
  • Specialized 7B Models Can Beat 72B Generalists: With targeted SFT and RL, a 7B model can explore the geometric action space more effectively than generalist models multiple times its size.

Key Results

  • Massive Gains Across Backbones: Enabling the GeoSketch interaction loop yields universal improvements on the GeoSketch benchmark over static ("pure run") baselines:
  • GPT-4o: 33.08% $\to$ 49.74% (+16.66%)
  • Qwen2.5-VL-72B: 43.08% $\to$ 58.71% (+15.63%)
  • Qwen2.5-VL-7B (Base): 32.56% $\to$ 48.46% (+15.90%)
  • SOTA via SFT + RL: GeoSketch-Qwen2.5VL-7B-RL achieved 59.23% total accuracy (a +23.59% gain over its pure baseline), edging out the 10× larger Qwen2.5-VL-72B (58.71%) and beating GPT-4o by nearly 10 percentage points.
  • Zero-Shot Transfer to Static Benchmarks:
  • Geometry3K: Base 19.30% $\to$ SFT 22.46% $\to$ RL 28.79%
  • GeoQA: Base 47.28% $\to$ SFT 65.09% $\to$ RL 72.52%

Limitations and Future Work

  • Outcome-Only Evaluation: The RL phase and primary benchmarks evaluate task success via final answer correctness ($R_{\text{result}}$) rather than step-by-step formal proof verification.
  • Future Work: Integrating intermediate theorem verification to guarantee logical soundness throughout the multi-step trajectory, preventing valid answers derived through flawed intermediate reasoning.

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