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

Geometry problem solving has attracted much attention in the NLP community recently. The task is challenging as it requires abstract problem understanding and symbolic reasoning with axiomatic knowledge. However, current datasets are either small in scale or not publicly available. Thus, we construct a new large-scale benchmark, Geometry3K, consisting of 3,002 geometry problems with dense annotation in formal language. We further propose a novel geometry solving approach with formal language and symbolic reasoning, called Interpretable Geometry Problem Solver (Inter-GPS). Inter-GPS first parses the problem text and diagram into formal language automatically via rule-based text parsing and neural object detecting, respectively. Unlike implicit learning in existing methods, Inter-GPS incorporates theorem knowledge as conditional rules and performs symbolic reasoning step by step. Also, a theorem predictor is designed to infer the theorem application sequence fed to the symbolic solver for the more efficient and reasonable searching path. Extensive experiments on the Geometry3K and GEOS datasets demonstrate that Inter-GPS achieves significant improvements over existing methods. The project with code and data is available at https://lupantech.github.io/inter-gps.

[1]  Oren Etzioni,et al.  Diagram Understanding in Geometry Questions , 2014, AAAI.

[2]  Andrew McCallum,et al.  RelNet: End-to-end Modeling of Entities & Relations , 2017, AKBC@NIPS.

[3]  Eric P. Xing,et al.  From Textbooks to Knowledge: A Case Study in Harvesting Axiomatic Knowledge from Textbooks to Solve Geometry Problems , 2017, EMNLP.

[4]  Aaron C. Courville,et al.  FiLM: Visual Reasoning with a General Conditioning Layer , 2017, AAAI.

[5]  Lukasz Kaiser,et al.  Attention is All you Need , 2017, NIPS.

[6]  Heng Tao Shen,et al.  Template-Based Math Word Problem Solvers with Recursive Neural Networks , 2019, AAAI.

[7]  Song-Chun Zhu,et al.  Learning by Fixing: Solving Math Word Problems with Weak Supervision , 2020, AAAI.

[8]  Yan Wang,et al.  Translating a Math Word Problem to a Expression Tree , 2018, EMNLP.

[9]  Shuming Shi,et al.  Learning Fine-Grained Expressions to Solve Math Word Problems , 2017, EMNLP.

[10]  Eric P. Xing,et al.  Learning to Solve Geometry Problems from Natural Language Demonstrations in Textbooks , 2017, *SEMEVAL.

[11]  Azriel Rosenfeld,et al.  Computer Vision , 1988, Adv. Comput..

[12]  Dan Roth,et al.  Unit Dependency Graph and Its Application to Arithmetic Word Problem Solving , 2016, AAAI.

[13]  Mislav Balunovic,et al.  Learning to Solve SMT Formulas , 2018, NeurIPS.

[14]  Tom M. Mitchell,et al.  Discourse in Multimedia: A Case Study in Extracting Geometry Knowledge from Textbooks , 2020, Computational Linguistics.

[15]  Feng Han,et al.  Bottom-up/top-down image parsing by attribute graph grammar , 2005, Tenth IEEE International Conference on Computer Vision (ICCV'05) Volume 1.

[16]  Hirokazu Anai,et al.  Semantic Parsing of Pre-university Math Problems , 2017, ACL.

[17]  O. Jones,et al.  Square , 2020, Tree Cultures.

[18]  Kevin Gimpel,et al.  Tailoring Continuous Word Representations for Dependency Parsing , 2014, ACL.

[19]  Xiaodan Liang,et al.  Semantically-Aligned Universal Tree-Structured Solver for Math Word Problems , 2020, EMNLP.

[20]  Ming-Wei Chang,et al.  BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding , 2019, NAACL.

[21]  Kewei Tu,et al.  Joint Video and Text Parsing for Understanding Events and Answering Queries , 2013, IEEE MultiMedia.

[22]  Xinguo Yu,et al.  Automatically Proving Plane Geometry Theorems Stated by Text and Diagram , 2019, Int. J. Pattern Recognit. Artif. Intell..

[23]  Wenjun Wu,et al.  Basic principles of mechanical theorem proving in elementary geometries , 1986, Journal of Automated Reasoning.

[24]  Xiao-Shan Gao,et al.  Automated generation of readable proofs with geometric invariants , 1996, Journal of Automated Reasoning.

[25]  Dan Song,et al.  Retrieving geometric information from images: the case of hand-drawn diagrams , 2017, Data Mining and Knowledge Discovery.

[26]  Quoc V. Le,et al.  Sequence to Sequence Learning with Neural Networks , 2014, NIPS.

[27]  Xinguo Yu,et al.  AUTOMATIC UNDERSTANDING AND FORMALIZATION OF NATURAL LANGUAGE GEOMETRY PROBLEMS USING SYNTAX-SEMANTICS MODELS , 2017 .

[28]  Xinguo Yu,et al.  A Framework for Solving Explicit Arithmetic Word Problems and Proving Plane Geometry Theorems , 2019, International journal of pattern recognition and artificial intelligence.

[29]  Dan Roth,et al.  Mapping to Declarative Knowledge for Word Problem Solving , 2017, TACL.

[30]  Xavier Carreras,et al.  Simple Semi-supervised Dependency Parsing , 2008, ACL.

[31]  Ross B. Girshick,et al.  Focal Loss for Dense Object Detection , 2017, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[32]  Sarah M. Loos,et al.  Graph Representations for Higher-Order Logic and Theorem Proving , 2019, AAAI.

[33]  Cezary Kaliszyk,et al.  Deep Network Guided Proof Search , 2017, LPAR.

[34]  Ronan Le Bras,et al.  SemEval-2019 Task 10: Math Question Answering , 2019, *SEMEVAL.

[35]  Sumit Gulwani,et al.  Synthesis of Solutions for Shaded Area Geometry Problems , 2017, FLAIRS Conference.

[36]  Sumit Gulwani,et al.  Synthesis of Geometry Proof Problems , 2014, AAAI.

[37]  Jian Sun,et al.  Deep Residual Learning for Image Recognition , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[38]  Oren Etzioni,et al.  Solving Geometry Problems: Combining Text and Diagram Interpretation , 2015, EMNLP.

[39]  M. Chinnappan Schemas and mental models in geometry problem solving , 1998 .

[40]  Omer Levy,et al.  BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension , 2019, ACL.

[41]  Yoshua Bengio,et al.  On the Properties of Neural Machine Translation: Encoder–Decoder Approaches , 2014, SSST@EMNLP.

[42]  Linda G. Shapiro,et al.  Computer Vision , 2001 .

[43]  Yejin Choi,et al.  MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms , 2019, NAACL.