TL;DR
VeriGeo is a multi-agent framework that generates high-quality, controllable geometry problems with perfectly aligned text, diagrams, and solutions. By combining LLM generation with a rigorous three-stage verification pipeline (numerical, analytical, and logical), it automatically repairs mathematical inconsistencies, producing verified synthetic data that significantly boosts the reasoning performance of multimodal models.
What Problem Does This Paper Address?
Training multimodal large language models (MLLMs) to solve geometry problems requires high-quality data where the problem text, visual diagram, geometric constraints, and step-by-step solutions are completely consistent. However, creating this data at scale is incredibly difficult.
Manually curating geometry problems is prohibitively expensive, while existing automated methods suffer from a harsh trade-off:
- Seed-based rewriting uses LLMs to modify existing questions, which is highly flexible but frequently introduces hallucinations and cross-modal contradictions.
- Diagram-first construction builds geometric figures using symbolic code first and then writes text around them, ensuring mathematical validity but making it very hard to target specific user constraints like difficulty levels or specific educational concepts.
VeriGeo addresses this gap by enabling controllable, agent-driven geometry question generation while enforcing strict mathematical and logical correctness.
Methods
VeriGeo utilizes a closed-loop, multi-agent architecture consisting of an Author Agent (which generates the question text and diagram) and a Solver Agent (which generates the proof-aligned solution).
Both agents ground their actions in a shared, executable action sequence (a JSON-based grammar) that translates natural language into explicit geometric operations (e.g., AddPoint, AddCircle, AddEdge). To guarantee validity, the framework passes these generations through a three-stage verification pipeline:
- Numerical Verification: Executes the action sequence step-by-step to render the diagram, checking local geometric consistency (e.g., verifying if a point claimed to be collinear actually lies on the line within a numeric tolerance). It uses exact symbolic representations (rationals and radicals) to prevent floating-point drift.
- Analytical Verification: Compiles the geometric constraints into a system of algebraic equations using the SymPy library. It applies advanced engineering techniques like gauge fixing and rank-aware filtering to solve the system, ensuring the entire configuration is globally realizable.
- Logical Verification: Employs an LLM-as-a-judge to audit higher-level consistency, checking for contradictory assumptions, unsupported inferences, or missing cases in the text and solution.
If an error is detected at any stage, a verification-guided reflection mechanism triggers, providing the error signal back to the agent to autonomously diagnose and repair the problem.
Datasets
The authors generated a dataset of 8.7k verified geometry examples using VeriGeo to perform downstream supervised fine-tuning (SFT). They evaluated their framework and the fine-tuned models using three standard multimodal geometry benchmarks:
- GeoQA
- PGPS9K
- MathVista-GPS
Key Insights and Ideas
- Raw LLMs struggle with geometric consistency: Without verification, raw LLM generations are highly unreliable. Across five major backbones, the average "Direct Pass" rate was only 29.02%.
- Reflection is a powerful data recovery tool: Instead of simply discarding failed generations, VeriGeo's reflection loop successfully repairs a substantial fraction of invalid attempts. For instance, Gemini 3.1 Pro recovered 36.00% of its failed attempts through verification-guided repair.
- Data quality trumps data scale: Fine-tuning a model on just 8.7k highly accurate, verified VeriGeo examples yielded superior performance compared to prior methods that utilized tens or hundreds of thousands of unverified synthetic examples.
- Superior diversity and coverage: By allowing the LLM to freely explore problem spaces under strict verification, VeriGeo achieved a much broader coverage of geometric concepts (354 distinct concepts in a 100-sample test) than template-bound or seed-bound alternatives.
Key Results
The authors fine-tuned a Qwen2.5-VL-7B-Instruct model on the 8.7k verified examples generated by VeriGeo, achieving state-of-the-art results:
- GeoQA: Achieved 82.74% accuracy, representing the best reported performance among end-to-end multimodal LLM-based solvers.
- PGPS9K & MathVista-GPS: Achieved 59.40% and 75.96% accuracy respectively, outperforming all prior geometry data-generation methods using SFT.
- Controllability: The framework demonstrated precise control over difficulty modulation and concept targeting. When tasked with creating a "harder" variant of a seed question, VeriGeo achieved a 100% target-difficulty matching rate.
Limitations and Future Work
While highly effective, VeriGeo's current implementation is bounded by its executable action grammar, meaning it cannot yet generate problem types outside its predefined geometric operators and constraint types (such as 3D geometry). Additionally, the multi-stage verification and reflection loops can be computationally expensive and time-consuming, particularly when using weaker backbone models that trigger multiple reflection rounds.
For future work, the authors propose extending the action grammar to support richer diagram types and 3D geometry. They also suggest exploring adaptive model routing to improve generation efficiency and incorporating reinforcement learning (RL) to optimize the process-level reasoning of the agents.
Summary updated