TL;DR
This paper introduces Pi-GPS, a novel framework that significantly improves geometry problem-solving by explicitly addressing textual ambiguities using diagrammatic information. By employing a unique rectifier-verifier module powered by Multimodal Large Language Models (MLLMs), Pi-GPS disambiguates text, leading to a nearly 10% improvement in accuracy on the Geometry3K benchmark compared to existing neural-symbolic methods.
What Problem Does This Paper Address?
Geometry Problem Solving (GPS) is a challenging task in AI that requires understanding both textual descriptions and visual diagrams. While recent advancements have been made, many approaches primarily focus on language processing, neglecting the crucial role of diagrams in clarifying ambiguities inherent in text. Text alone can be vague, referring to generic shapes or points without specific identifiers. Diagrams, however, provide visual context that can resolve these ambiguities, leading to more accurate and robust problem-solving. This paper tackles the gap where textual ambiguities, often overlooked, hinder the performance of existing GPS systems.
Methods
Pi-GPS introduces a novel Text Disambiguation Module that acts as a crucial pre-processing step before the reasoning phase. This module consists of two key components:
- Rectifier (using MLLM): This component leverages Multimodal Large Language Models (MLLMs) to disambiguate textual information by referencing the accompanying diagram. It identifies three primary types of ambiguities: unspecified points, unspecified shapes, and unspecified areas. The MLLM is prompted with specific queries based on the identified ambiguity type and the diagrammatic context to generate a refined, disambiguated formal language representation of the problem text.
- Verifier (using Diagram Heuristics): To mitigate potential hallucinations from the MLLM, a verifier is employed. This component uses diagram heuristics to ensure the rectified output is consistent with the geometric diagram. It checks for:
- Entity Existence: Verifies that generated geometric entities (points, lines, circles) actually exist in the diagram.
- Shape Closure and Order: Ensures that points forming a shape create a closed figure and are correctly ordered.
- Geometry Consistency: Confirms that vertices align with the intended geometric shape based on their coordinates.
If discrepancies are found, feedback is sent back to the rectifier, creating an iterative refinement loop.
The framework also includes a Theorem Predictor that uses an LLM to predict the sequence of theorems needed for solving the problem, leveraging the disambiguated formal language. This is followed by a Solver that applies these theorems.
Datasets
The paper evaluates Pi-GPS on two established datasets:
- Geometry3K: A dataset of 3,002 geometry problems, used for training, validation, and testing. It includes problem text, diagrams, and formal language parsing annotations.
- PGPS9K: An expanded version of Geometry3K, containing 9,022 geometry problems and 4,000 diagrams. This dataset includes problems from various mathematics textbooks.
Key Insights and Ideas
- Diagrams as Ambiguity Resolvers: The core insight is that diagrams are not just visual aids but essential tools for resolving textual ambiguities in geometry problems, a fact often underutilized by prior work.
- MLLMs for Targeted Disambiguation: Using MLLMs for the specific task of disambiguating text based on diagrams, rather than for end-to-end problem solving, proves to be a more tractable and effective approach, mitigating some of the challenges associated with MLLM hallucinations.
- Verifier is Crucial for Reliability: The verifier component is vital for ensuring the accuracy and trustworthiness of the MLLM's disambiguation, preventing incorrect modifications and ensuring geometric consistency.
- Domain-Specific Prompting Enhances MLLMs: Tailoring prompts for the rectifier based on identified ambiguity types significantly improves performance, highlighting the importance of domain-specific guidance for MLLMs.
- Text Ambiguity is a Major Bottleneck: The research strongly suggests that text ambiguity is a significant limiting factor in current geometry problem-solving systems, and addressing it yields substantial performance gains.
Key Results
- Pi-GPS achieves state-of-the-art performance on the Geometry3K dataset, outperforming existing neural-symbolic approaches by nearly 10% in accuracy.
- On the PGPS9K dataset, Pi-GPS shows significant improvements over the strong baseline GeoDRL, with gains of 5.8% in completion and 3.1% in choice evaluation.
- The text disambiguation module, particularly the rectifier with domain-specific prompting and the verifier, contributes significantly to the overall performance improvement.
- The framework demonstrates robustness across different MLLMs used in the rectifier, indicating generalizability.
Limitations and Future Work
The authors acknowledge several limitations:
- Limited Text Parsing Capability: The current text parser struggles with certain syntactic variations, sometimes leading to incomplete or erroneous formalizations even after disambiguation.
- Inadequate Diagram Parsing for Complex Relations: The diagram parser has difficulty identifying subtle or implicit complex geometric relationships (e.g., tangency), which can affect the accuracy of geometric analysis.
- Insufficient Theorem Base: The system's ability to solve problems is constrained by the completeness of its theorem base. For example, a lack of theorems for specific shapes like regular hexagons limits deductive reasoning.
Future work could focus on improving the text parser's robustness, enhancing the diagram parser's ability to handle complex relationships, and expanding the theorem knowledge base.
Summary updated