TL;DR
Multi-modal Large Language Models (MLLMs) often perform worse on geometry problems when given a diagram because their vision encoders are optimized for natural scenes rather than abstract geometric structures. To fix this, the authors introduce DFE-GPS, a framework that translates geometric diagrams into a structured formal language before solving the problem. Supported by a new 228K synthetic dataset, DFE-GPS significantly outperforms state-of-the-art models like GPT-4o on both multiple-choice and open-ended geometry benchmarks.
What Problem Does This Paper Address?
When humans solve geometry problems, we naturally look at the diagram to understand relationships like parallel lines, intersecting circles, or congruent angles. You would expect Multi-modal Large Language Models (MLLMs) to do the same. However, recent studies show a bizarre trend: adding a geometric diagram to a prompt often decreases an MLLM's problem-solving accuracy compared to giving it the text alone.
This "diagram penalty" occurs because standard vision encoders (like CLIP or SigLIP) are pre-trained on natural scenes (dogs, landscapes, street views). They struggle to interpret abstract geometric diagrams, leading the model to extract incorrect or irrelevant information. Furthermore, AI models lack an effective methodology to represent and reason about precise geometric relationships. This paper aims to bridge the gap between raw visual pixels and symbolic geometric reasoning.
Methods
The authors propose the Diagram Formalization Enhanced Geometry Problem Solver (DFE-GPS). Instead of forcing the primary language model to reason directly from visual features, DFE-GPS uses a multi-stage pipeline to translate the diagram into a symbolic intermediate representation called Conditional Declaration Language (CDL).
The architecture consists of three main components trained across three distinct stages:
- Diagram Formalizer (Stage 1): Combines a vision encoder (SigLIP) with a lightweight LLM (Qwen2-0.5B) to parse the diagram. It generates two types of formal language:
ConsCDL(structural properties like collinearity and shapes) andImgCDL(algebraic relations like segment lengths and angle measurements). - Projection Alignment (Stage 2): An MLP aligns the visual features extracted by the diagram encoder with the semantic space of the primary LLM.
- Instruction Fine-Tuning & Calibration (Stage 3): The primary LLM (Yi-1.5-Chat, either 9B or 34B) takes the predicted CDL, the problem text, and instructions. Crucially, during training, the authors inject random perturbations (errors) into the predicted CDL. This teaches the primary LLM to calibrate (correct) mistakes made by the vision module before generating a final step-by-step natural language solution.
To evaluate open-ended questions, they also introduce a Process Evaluation Score (PES), which leverages GPT-4o-mini to grade the model's step-by-step reasoning based on calculation accuracy, logical coherence, and conciseness.
Datasets
The paper utilizes and introduces several key datasets:
- SynthGeo228K (New): A large-scale synthetic dataset created from scratch using a geometry model builder. It contains 228,000 geometric diagrams generated from 462 templates, fully annotated with both formal CDL and natural language captions. This dataset is used to pre-train the Diagram Formalizer.
- formalgeo7k: A standard benchmark dataset for geometry problem-solving. The authors derived two subsets from it for training:
formalgeo-structure774k(for diagram formalization) andformalgeo-reasoning238k(for problem-solving).
Key Insights and Ideas
- Formal Language as a Cognitive Bridge: MLLMs are excellent at linguistic and symbolic reasoning but terrible at geometric pixel perception. Translating pixels into a structured formal language allows the primary LLM to operate in its comfort zone.
- Learning to Self-Correct: By intentionally feeding the primary LLM flawed CDL data during training (Stage 3), the model learns to cross-reference the text prompt with the diagram data to fix formalization errors. This makes the entire system highly robust against visual misinterpretations.
- Reversing the Diagram Penalty: While other models suffer a performance drop when images are introduced, DFE-GPS actually shows a performance gain, proving that its vision encoder successfully extracts meaningful geometric features.
Key Results
The authors evaluated DFE-GPS on the formalgeo7k test set against various state-of-the-art models:
- Top-Tier Accuracy: The DFE-GPS-34B model achieved an outstanding 82.38% accuracy on multiple-choice questions and 75.33% on open-ended questions. For comparison, GPT-4o scored 47.14% (multiple-choice) and 41.62% (open-ended).
- Ablation Success: When evaluating the 9B model variant without the CDL formalization step, accuracy dropped significantly (from 77.05% down to 66.10% on multiple-choice), validating the importance of the diagram formalization step.
- Diagram Utilization ($\Delta$): While adding diagrams caused QwenVL's accuracy to drop by 10.85%, the DFE-GPS-9B model (without CDL input to isolate the vision encoder's impact) saw a 6.85% improvement when diagrams were included.
Limitations and Future Work
The authors note that the framework's success is heavily dependent on the accuracy of the intermediate formal language translation. If the Diagram Formalizer fails completely on a highly complex or novel diagram structure, it can bottleneck the primary LLM.
For future work, the authors suggest exploring reinforcement learning and tree search strategies (similar to approaches used in AlphaGeometry) to help the model navigate and optimize its multi-step reasoning paths more effectively.
Summary updated