Inter-GPS: Interpretable Geometry Problem Solving with Formal Language and Symbolic Reasoning

Pan Lu, Ran Gong, Shibiao Jiang, Liang Qiu, Siyuan Huang, Xiaodan Liang, Song-Chun Zhu

Introduction

Solving high-school geometry problems is a complex task that serves as a benchmark for human-level intelligence. It requires the seamless integration of visual perception to interpret diagrams, linguistic understanding to parse problem statements, and logical deduction to apply mathematical theorems. While "neural-only" models often struggle with multi-step abstract reasoning and "symbolic-only" solvers face challenges in parsing raw inputs or managing search space explosions, the Inter-GPS (Interpretable Geometry Problem Solver) framework proposes a hybrid approach. By bridging the gap between perception and logic through a structured formal language, Inter-GPS achieves state-of-the-art performance on geometry benchmarks.

The Inter-GPS Framework

The core innovation of Inter-GPS lies in its three-stage pipeline designed to transform unstructured problem data into a verifiable logical solution.

1. Formal Language Parsing

To move from raw pixels and text to mathematical logic, Inter-GPS translates inputs into a set of formal literals. The Text Parser utilizes a rule-based approach to extract geometric relationships from the problem statement. Simultaneously, the Diagram Parser employs a neural object detector (RetinaNet) to identify symbols and a Hough Transformation to detect primitives like lines and circles. These elements are then "grounded" into a coherent formal representation.

Figure 1: Inter-GPS translates both diagrammatic and textual information into a unified formal language of mathematical literals.

2. Neural-Guided Symbolic Reasoning

Once the problem is formalized, a Symbolic Geometry Solver takes over. This engine applies a knowledge base of 17 core geometry theorems to the initial set of literals, iteratively updating the "relation set" until the target value is found. To navigate the vast search space of possible theorem applications, the authors introduced a Theorem Predictor (TP). This Transformer-based model provides "neural intuition" by predicting the most relevant sequence of theorems for a given problem, significantly improving search efficiency compared to brute-force methods.

The Geometry3K Benchmark

Progress in automated geometry solving has historically been hindered by the lack of large-scale, publicly available datasets. To address this, the authors released Geometry3K, a benchmark containing 3,002 multi-choice problems sourced from high-school textbooks. Each problem is meticulously annotated with ground-truth formal language descriptions for both text and diagrams, providing a rigorous testing ground for both parsers and solvers.

Figure 6: A sample problem from the Geometry3K dataset involving an isosceles triangle and trigonometric or geometric properties.

Results and Key Insights

Inter-GPS demonstrates a significant leap in performance over existing methods:

  • Superior Accuracy: On the Geometry3K benchmark, Inter-GPS achieved an accuracy of 57.5%, nearly doubling the 33.0% achieved by the best neural baseline (FiLM-BART).
  • Interpretability: Unlike "black-box" neural models, Inter-GPS provides a human-readable trace of its reasoning, detailing every theorem applied to reach the final answer.
  • The Parsing Bottleneck: When provided with human-annotated ground-truth (GT) formal descriptions, the solver's accuracy rises to 78.3%. This indicates that while the reasoning engine is highly capable, the primary challenge remains the automated parsing of complex or ambiguous diagrams.

Conclusion and Future Work

Inter-GPS proves that combining neural "intuition" with symbolic "logic" via a formal language bridge is a powerful strategy for complex problem-solving. While the system currently outperforms average human crowdsourcers, it still trails behind human experts. Future work will focus on expanding the theorem knowledge base and improving the robustness of multi-modal parsers to handle more intricate geometric primitives and overlapping symbols.

Summary updated

BibTeX
@inproceedings{lu2021inter,
  author = {Pan Lu and Ran Gong and Shibiao Jiang and Liang Qiu and Siyuan Huang and Xiaodan Liang and Song-Chun Zhu},
  title = {{Inter-GPS: Interpretable Geometry Problem Solving with Formal Language and Symbolic Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.528},
}
Figure