TL;DR
GeoFocus is a novel framework that significantly improves Large Multimodal Models (LMMs) in solving geometry problems by mimicking the human "global-to-local" visual perception process. By combining a highly compact topological language (VertexLang) for global structure with a theory-driven Critical Local Perceptor, it reduces training time by 20% while boosting problem-solving accuracy by an average of 4.7% over state-of-the-art specialized models.
What Problem Does This Paper Address?
While Large Multimodal Models excel at general visual question-answering, Geometry Problem-Solving (GPS) remains a notorious weak spot. Solving a geometry problem requires a model to do two things simultaneously: comprehend the global topology of a diagram and precisely parse intricate local relationships (like parallel lines, midpoints, or angle bisectors) that map directly to mathematical theorems.
Existing methods fall into two flawed paradigms:
- Image Reconstruction: Models try to reconstruct diagrams pixel-by-pixel or by generating bulky rendering code (e.g., matplotlib scripts). This is computationally expensive, slow, and prone to topological hallucinations.
- Oversimplified Data Synthesis: Models are trained on synthetic question-answering pairs that lack the structural richness and complexity of real-world exam problems.
As a result, models often miss the exact local features needed to unlock a geometric proof, even if they recognize the overall shape.
Methods
The authors introduce GeoFocus, a framework designed around a human-like, two-stage perception process: first grasp the global layout, then zoom in on critical local details.
The architecture consists of two core modules:
1. VertexLang Topology Perceptor (Global)
Instead of forcing the model to write hundreds of lines of python code to reconstruct an image, the authors designed VertexLang—a compact, symbolic formal language. It defines a geometric diagram using only three clean dictionaries:
- Radius ($R$): For circles.
- Coordinates ($P$): Normalized $(x,y)$ positions of vertices.
- Connectivity ($E$): A dictionary mapping which vertices are connected by straight lines.
This strips away all non-essential rendering boilerplate, shrinking the representation from an average of 2,500 characters down to just 300.
2. Critical Local Perceptor (Local)
To force the model to look at theorem-relevant details, the authors built 13 theory-grounded perception templates spanning basic measurements (angle/length values and comparisons) and relational reasoning (midpoints, collinearity, perpendicularity, etc.).
Instead of standard Supervised Fine-Tuning (SFT), which can over-constrain the model's language output, they use Direct Preference Optimization (DPO) to train the model to favor correct local geometric relationships over incorrect ones.
Training Strategy: DynamicGT-RL
To stabilize the reinforcement learning process during image reconstruction, the authors introduce DynamicGT-RL. In the early stages of training, it dynamically substitutes the model's faulty outputs with ground-truth data to keep the optimization trajectory on track.
Datasets
The framework was trained on synthetic data generated by their pipeline and evaluated across several tough, real-world GPS benchmarks:
- Geo3K: 601 textbook geometry problems with concise text and heavy reliance on image perception.
- GeoQA: 754 scanned, real-world secondary school exam questions from China.
- FormalGeo7K: 1,050 complex geometry problems.
- MATHVERSE: Used specifically to evaluate robustness across different text-visual balances (Vision Intensive, Vision Dominant, and Vision Only).
- CogAlign-data: Used to benchmark pure geometric perception tasks.
Key Insights and Ideas
- Global First, Local Second: The authors experimented with the training order of their modules. They discovered that teaching the model global topology before local relationships yields significantly better results than the reverse. Global perception acts as a necessary foundation for local feature extraction.
- Less Code is More Learning: Code-rendering approaches waste model capacity on syntax and formatting. By replacing code with pure symbolic topology (VertexLang), the model focuses entirely on geometry, which paradoxically increases its final diagram-generation accuracy.
- DPO for Perception: Using preference optimization (DPO) rather than standard token-matching (SFT) prevents the model from hallucinating non-unique geometric expressions, leading to much better cross-scene generalization.
Key Results
- State-of-the-Art Accuracy: GeoFocus-7B outperformed advanced specialized geometric models like GeoUni by an average of 4.7% across Geo3K, GeoQA, and FormalGeo7K.
- Efficiency Gains: VertexLang achieved an 88% reduction in character count for image representation, translating to a 20% reduction in training time compared to code-based methods.
- Massive Feature Coverage: The Critical Local Perceptor expanded critical local feature coverage by 61% over previous synthetic datasets.
- Visual Robustness: On the MATHVERSE benchmark, GeoFocus demonstrated minimal performance degradation when textual cues were completely removed, proving it genuinely "sees" and infers properties from the diagrams.
Limitations and Future Work
A current limitation occurs in point-circle positional relationships. When explicit coordinates slightly contradict topological constraints (e.g., a point intended to sit exactly on a circle's circumference doesn't perfectly satisfy the circle equation due to float precision), rendering failures can happen. Currently, VertexLang prioritizes coordinates over constraints to maintain robustness, which introduces minor deviations.
For future work, the authors plan to extend VertexLang and the Critical Local Perceptor from 2D plane geometry to 3D solid geometry, enabling LMMs to model spatial relationships, polyhedra, and curved surfaces.
Summary updated