Multimodal geometry reasoning requires AI models to jointly understand visual diagrams and perform structured symbolic inference. However, current vision-language models (VLMs) struggle with complex geometric constructions due to limited training data and weak visual-symbolic alignment. To bridge this gap, researchers have developed GeoCode, a novel pipeline that synthesizes complex multimodal geometry problems from scratch, ensuring perfect consistency across structure, text, reasoning, and images.
The Challenge of Multimodal Geometry
Solving a geometry problem is a highly complex task for AI. Unlike standard object detection, it requires precise spatial perception (e.g., identifying tangent lines or intersecting circles) followed by multi-step logical deductions. Current VLMs face two primary hurdles:
- Data Scarcity and Simplicity: Existing datasets are often small, manually designed, or rely on simplistic templates. They lack the "structural density"—the sheer number of points and lines—found in real-world math competitions.
- Weak Alignment: Models often treat diagrams as black-box latent representations. Consequently, they may bypass actual visual reasoning by relying on textual cues in the question, failing to genuinely "see" the geometric constraints.
Methodology: Synthesis and Alignment
The researchers propose a two-pronged solution: a sophisticated synthesis pipeline and a novel training objective.
1. The GeoCode Synthesis Pipeline
Instead of augmenting existing data, the pipeline builds problems from the ground up in three stages:
- Symbolic Seed Generation: A symbolic reasoning engine (inspired by AlphaGeometry) samples abstract geometric predicates and identifies non-trivial deductive targets.
- Grounded Instantiation: An "Instructor" LLM assigns real numerical values (such as Pythagorean triples) and drafts the problem statement, while a "Coder" module generates executable Python code to calculate exact coordinates.
- Two-Stage Verification: Every generated problem undergoes rigorous mathematical and visual checks to ensure the coordinates satisfy the theorem and the diagram is legible.
2. Plotting Code as Explicit Alignment
To improve visual-symbolic alignment, the researchers introduce a novel training objective. Rather than directly asking the model for an answer based on an image, they train the model to first predict the plotting code—a structured, JSON-like representation of every point, segment, circle, and annotation in the diagram. This transforms visual understanding into a verifiable, supervised structured prediction task.
The GeoCode Dataset
The primary contribution is the GeoCode dataset, comprising 18,000 multimodal geometry problems (13,000 numerical and 5,000 proof-based). GeoCode exhibits substantially higher structural complexity than existing benchmarks, averaging 14.4 line segments per diagram compared to just 4–6 in standard datasets like Geometry3K or GeoQA. The models were evaluated across a wide array of public sets, including Geometry3K, GeoQA, MathVerse, MathVista, and the high-difficulty OlympiadBench.
Key Insights and Results
- Textual Debiasing is Essential: Models often ignore images if the text is overly descriptive. By "debiasing" questions—removing information visually apparent in the diagram—the models are forced to rely on visual perception.
- Code Outperforms Captions: Plotting code supervision proved superior to standard natural language captions. Language can be lossy and ambiguous, whereas plotting code provides an executable, complete structural representation of the geometry.
- Perception Limits Reasoning: A model's ability to recover geometric structure (measured by segment F1 score) strongly correlates with its final solving accuracy. If a model cannot accurately parse the diagram, it cannot solve the problem.
- Massive Performance Gains: Training on GeoCode yields significant improvements. For instance, a Qwen3-VL-8B model trained with GeoCode achieved an absolute accuracy jump of +11.5% on the highly difficult OlympiadBench. Furthermore, applying reinforcement learning (GRPO) to GeoCode-trained models boosted accuracy on a test-mini set from a 17.9% baseline to 37.7%.
Limitations and Future Directions
While groundbreaking, the current pipeline is restricted to 2D Euclidean geometry and does not support 3D or non-Euclidean spaces. Additionally, the diagrams are rendered in a clean, "textbook" style, meaning models may still struggle with hand-drawn sketches or messy real-world exam papers. Finally, the synthesis pipeline relies on advanced LLMs for initial problem text generation, which can be computationally expensive and prone to hallucinations prior to verification.
Future research aims to extend this framework to 3D geometry and explore "Thinking With Images" to leverage structured visual representations for even more complex reasoning tasks.
Summary updated