Draw2Think:
Harnessing Geometry Reasoning through Constraint Engine Interaction

1National University of Singapore 2Centre for Frontier AI Research, A*STAR 3Institute of High Performance Computing, A*STAR
juncheng.hu@u.nus.edu  ·  {dujw, zhangx7, Joey_Zhou}@a-star.edu.sg

TL;DR

Overview: Four Paradigms for Externalizing Geometry Reasoning

Visual Artifacts

Perceptual feedbackrendered image / bitmap

pixel approximation;
no engine-exact certificate.

Textual Traces

Internal self-checkreasoning trace in text

intermediate text lacks
exact validation

Executable Scripts

Post-hoc verificationcode / configuration / scripts

geometry checked after generation;
no per-action engine feedback

Constraint-Agentic Harness

Draw2Think (ours)
Typed actions · Exact verdicts · Reusable canvas

Prior routes externalize intermediate geometry as visual artifacts, textual traces, or executable scripts — each surfaces a state while leaving geometric validity uncertified during construction. Draw2Think adds a fourth route: a constraint-agentic harness where a frozen VLM selects typed ToolSpecs, the GeoGebra engine updates an engine-valid canvas state, and structured observations return after each action. The distinction is less about externalizing state than about when verification enters the loop.

The Propose-Draw-Verify Loop

Draw2Think wraps a frozen VLM around a dynamic-geometry engine via typed ToolSpecs. In dynamic geometry systems such as GeoGebra, construction commands enforce geometric relationships algebraically rather than by coordinate approximation. Each accepted action is therefore engine-checkable, while the model still chooses the construction strategy.

  1. Propose The VLM reads the problem and current canvas snapshot, then emits one or more typed ToolSpec calls (e.g., line_through_perpendicular, circle_through_center).
  2. Draw GeoGebra executes the call algebraically. Invalid or degenerate configurations surface as engine errors rather than silent approximations.
  3. Verify Structured observations (exact lengths, angles, intersections, error messages) return to the model and ground the next step.

Two properties become separately auditable: Construction Fidelity (model-level: did the canvas realize the intended configuration?) and Measurement Faithfulness (engine-level: are exact values and relations preserved by canvas constraints?).

Live walk-through

Five real Draw2Think trajectories from four datasets. Pick a problem below — hover or click any Engine command step; the model response (left), engine output (right), and live canvas (below) all snap to that step in lock-step. For multi-turn problems, the turn tabs at the top of the command column scroll the active turn into view.

Model response (function call)

        
Engine command (Model → Engine Harness)
    Engine output (new objects)
    
            
    GeoGebra canvas (live)
    Canvas loads from geogebra.org. Needs internet on first paint.

    If the canvas renders incorrectly, refresh with Ctrl/Cmd + Shift + R.

    Insights from the Harness

    Constraint interaction separates latent strategy from checked state: the model still explores, while accepted canvas state is already engine-checked.

    Verification timing

    Verification timing matters as much as externalization.

    Visual sketches, text traces, and generated scripts all expose intermediate objects. Draw2Think moves the verification point earlier: each accepted action becomes a checked premise for the next action.

    Selective grounding

    External grounding pays off when geometry is the bottleneck.

    The gain appears when the model needs exact measurements, consistent construction, or a stable state. On easy or memorized routes, building the canvas can impose cost rather than add evidence.

    Auditable state

    Outcome accuracy hides too many failure modes.

    A final answer does not separate perception, construction, measurement, and algebra errors. A canvas audit lets us ask whether the intermediate geometry itself was realized, independently of the final response.

    Mechanisms

    Beyond geometry, Draw2Think shows how a generative model can use a deterministic engine for checks while keeping construction choices under model control.

    Readout is part of reasoning.

    Query tools turn exact engine state into answerable evidence. When that channel is removed, answers shift toward escape routes: internal reasoning, construction-return shortcuts, or unanchored final responses.

    Cached context changes the cost profile.

    With cacheable input context, marginal cost shifts toward generated reasoning. On high-thinking benchmarks, engine readouts cut thinking tokens by up to 36%, while ToolSpecs turn free-form text into typed calls and structured observations.

    ToolSpecs shape trajectories.

    The interface is a control surface for tool orchestration. Small descriptions shift tool selection, parameter binding, and readout anchoring because the model chooses among typed operations rather than emitting arbitrary pixels.

    Per-action verification leaves strategy open.

    GeoGebra can reject invalid constructions and return exact observations. Auxiliary-object selection and stopping decisions remain with the model, so residual failures point to policy-level planning.

    Future Directions

    Future work could use Draw2Think to study process evidence directly, treating final-answer gains as one metric among canvas audits, planning signals, and reusable trajectory data.

    Strategy-level checks

    Expose more than the rendered canvas.

    Future harnesses can return dependency graphs, unresolved constraints, and symbolic query opportunities so the model can reason from the construction plan alongside visible objects, measurements, and final pixels.

    Proximal twins

    Generalize toward physical-world reasoning.

    Geometry isolates the setting: the engine rejects invalid actions and exposes local state. Similar loops may extend to physical-world AI when tasks have typed actions, an executable twin, and cheap local checks before acting in the real system.

    Reusable trajectories

    Treat process records as assets.

    A Draw2Think trajectory contains typed dependencies, engine verdicts, and concrete canvas effects. That makes it a denser training signal than a final answer or a free-form explanation.

    Citation

    If Draw2Think (or the live demos on this project page) is useful for your research, please cite:

    @article{hu2026draw2think,
      title  = {Draw2Think: Harnessing Geometry Reasoning through Constraint Engine Interaction},
      author = {Hu, Juncheng and Du, Jiawei and Zhang, Xin and Zhou, Joey Tianyi},
      journal = {arXiv preprint arXiv:2605.20743},
      year   = {2026},
      url    = {https://draw2think.github.io}
    }