Draw2Think: Harnessing Geometry Reasoning through Constraint Engine Interaction

Juncheng Hu, Jiawei Du, Xin Zhang, Joey Tianyi Zhou

TL;DR

Draw2Think is a new framework that connects Vision-Language Models (VLMs) to the GeoGebra constraint engine, allowing them to solve geometry problems through a "Propose-Draw-Verify" loop. By externalizing reasoning onto a verifiable, algebraic canvas, the system achieves significant accuracy gains—especially in 3D geometry—and provides a 100% auditable trail of the model's geometric claims.

What Problem Does This Paper Address?

While modern VLMs (like Gemini or GPT-4o) are increasingly capable of solving complex math problems, geometry remains a "stress test." The difficulty lies in the gap between visual perception and logical deduction.

Currently, most models reason in "latent tokens"—they look at a diagram and guess that an angle is 90° or that two lines are parallel because they look that way. If a model makes a small mistake early in its reasoning (a "hallucination"), that error propagates through the entire proof. Existing solutions like writing one-shot Python scripts or rendering pixels don't solve this because they don't provide real-time, per-action geometric guarantees. If the code is wrong, the model has no way to "feel" the constraint violation.

Methods

The authors introduce the Propose-Draw-Verify (PDV) loop, which treats geometry solving as an agentic interaction with an external workspace (GeoGebra).

  1. Propose: The VLM (acting as an agent) selects a "ToolSpec"—a typed command like add_perpendicular_line or query_angle.
  2. Draw: The GeoGebra engine executes the command. Because GeoGebra uses a Computer Algebra System (CAS) under the hood, it enforces geometric relations algebraically. If a model tries to find the intersection of two parallel lines, the engine returns an explicit error.
  3. Verify: The engine returns structured observations (exact coordinates, lengths, or error messages) back to the model.

This creates a constraint-checked evolving canvas. The model doesn't just "think" about the geometry; it builds it step-by-step, grounding every subsequent deduction in a verified state.

Datasets

The researchers evaluated Draw2Think across a massive battery of benchmarks:

  • Planar (2D): GeoQA, PGPS9K, MathVista, Geo3K, GeoLaux, MathVerse (Plane), GeoSketch, and OlympiadBench.
  • Solid (3D): MathVerse-solid and SolidGeo-hard (Level 3).
  • Rendering: GenExam-math (testing the ability to generate accurate diagrams from text).
  • Fidelity Audit: GeoGoal, used to check if the model's final canvas actually matches the problem's intended predicates.

Key Insights and Ideas

  • Cognitive Offloading: The engine handles the "spatial simulation." Instead of the VLM struggling to estimate a length from pixels, it simply queries the engine. This allows the model to focus on high-level strategy.
  • Selective Gains: Interestingly, the "engine overhead" is only worth it for hard problems. On simple textbook problems where the VLM already has a "cheap internal route," forcing it to use tools can actually slightly decrease performance. However, on "vision-heavy" or 3D tasks, the gains are massive.
  • Auditable Fidelity: The paper distinguishes between Construction Fidelity (did the model build the right diagram?) and Measurement Faithfulness (are the engine's numbers right?). They found that their canvases pass 95.9% of predicate-level checks, making the reasoning process far more transparent than a standard text-only "Chain of Thought."
  • Algebraic Truth: Unlike pixel-based systems, GeoGebra's measurements are exact. An 89.9° angle will never be mistaken for 90° by the engine, forcing the model to reconcile its visual priors with mathematical reality.

Key Results

  • 3D Mastery: The most dramatic improvement was on SolidGeo-hard, where accuracy jumped by 16.4%.
  • Planar Gains: Significant improvements on visually grounded benchmarks like MathVerse (+3.5%) and GeoSketch (+4.1%).
  • Diagram Rendering: On the GenExam-math leaderboard, Draw2Think attained a 68.2% strict accuracy score, outperforming the leading native Text-to-Image (T2I) systems (like GPT-Image-2) by nearly 12 points.
  • Construction Quality: On GeoGoal, the system built canvases that passed 84.0% of strict problem-level checks, proving that the model-engine interaction is highly reliable.

Limitations and Future Work

  • The Strategy Gap: The engine verifies individual actions, but it cannot verify the strategy. If a model chooses a technically valid but logically useless tool, the engine will still execute it.
  • Single-Instance Focus: The current framework is designed for single numeric Euclidean problems rather than proving universal theorems (e.g., "prove this is true for all triangles").
  • Future Directions: The authors suggest exposing the "Construction DAG" (the map of how objects depend on each other) directly to the model's planner to help it understand dependencies. They also envision using these verified trajectories to fine-tune smaller, specialized geometry models.

Summary updated

BibTeX
@inproceedings{hu2026draw,
  author = {Juncheng Hu and Jiawei Du and Xin Zhang and Joey Tianyi Zhou},
  title = {{Draw2Think: Harnessing Geometry Reasoning through Constraint Engine Interaction}},
  booktitle = {AI4Math @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=8wlVmrAP8v},
}

Loading related content...

Figure