MWPToolkit: An Open-Source Framework for Deep Learning-Based Math Word Problem Solvers

Developing automatic Math Word Problem (MWP) solvers has been an interest of NLP researchers since the 1960s. Over the last few years, there are a growing number of datasets and deep learning-based methods proposed for effectively solving MWPs. However, most existing methods are benchmarked soly on one or two datasets, varying in different configurations, which leads to a lack of unified, standardized, fair, and comprehensive comparison between methods. This paper presents MWPToolkit, the first open-source framework for solving MWPs. In MWPToolkit, we decompose the procedure of existing MWP solvers into multiple core components and decouple their models into highly reusable modules. We also provide a hyper-parameter search function to boost the performance. In total, we implement and compare 17 MWP solvers on 4 widely-used single equation generation benchmarks and 2 multiple equations generation benchmarks. These features enable our MWPToolkit to be suitable for researchers to reproduce advanced baseline models and develop new MWP solvers quickly. Code and documents are available at https: //github.com/LYH-YF/MWPToolkit.

[1]  Steven C. H. Hoi,et al.  Photon: A Robust Cross-Domain Text-to-SQL System , 2020, ACL.

[2]  Hannaneh Hajishirzi,et al.  MAWPS: A Math Word Problem Repository , 2016, NAACL.

[3]  E. Feigenbaum,et al.  Computers and Thought , 1963 .

[4]  Ming-Wei Chang,et al.  Annotating Derivations: A New Evaluation Strategy and Dataset for Algebra Word Problems , 2016, EACL.

[5]  Yan Wang,et al.  Graph-to-Tree Learning for Solving Math Word Problems , 2020, ACL.

[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]  Ji-Rong Wen,et al.  TextBox: A Unified, Modularized, and Extensible Framework for Text Generation , 2021, ACL.

[9]  Daniel G. Bobrow,et al.  Natural Language Input for a Computer Problem Solving System , 1964 .

[10]  Navin Goyal,et al.  Are NLP Models really able to Solve Simple Math Word Problems? , 2021, NAACL.

[11]  Zhipeng Xie,et al.  A Goal-Driven Tree-Structured Neural Model for Math Word Problems , 2019, IJCAI.

[12]  Shuming Shi,et al.  Deep Neural Solver for Math Word Problems , 2017, EMNLP.

[13]  Heng Tao Shen,et al.  The Gap of Semantic Parsing: A Survey on Automatic Math Word Problem Solvers , 2018, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[14]  Song-Chun Zhu,et al.  Inter-GPS: Interpretable Geometry Problem Solving with Formal Language and Symbolic Reasoning , 2021, ACL.

[15]  Daisuke Kawahara,et al.  Tree-structured Decoding for Solving Math Word Problems , 2019, EMNLP.

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

[17]  Dongxiang Zhang,et al.  Modeling Intra-Relation in Math Word Problems with Different Functional Multi-Head Attentions , 2019, ACL.

[18]  Xiangliang Zhang,et al.  Solving Math Word Problems with Teacher Supervision , 2021, IJCAI.

[19]  Xiangliang Zhang,et al.  MWP-BERT: A Strong Baseline for Math Word Problems , 2021, ArXiv.

[20]  Yoshua Bengio,et al.  Neural Machine Translation by Jointly Learning to Align and Translate , 2014, ICLR.

[21]  Ilya Sutskever,et al.  Language Models are Unsupervised Multitask Learners , 2019 .

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

[23]  Xuanjing Huang,et al.  Math Word Problem Solving with Explicit Numerical Values , 2021, ACL.

[24]  Gahgene Gweon,et al.  TM-generation model: a template-based method for automatically solving mathematical word problems , 2021, The Journal of Supercomputing.

[25]  Ee-Peng Lim,et al.  Teacher-Student Networks with Multiple Decoders for Solving Math Word Problem , 2020, IJCAI.

[26]  Fengyuan Xu,et al.  Graph-to-Tree Neural Networks for Learning Structured Input-Output Translation with Applications to Semantic Parsing and Math Word Problem , 2020, FINDINGS.

[27]  Luke S. Zettlemoyer,et al.  Learning to Automatically Solve Algebra Word Problems , 2014, ACL.

[28]  Eric P. Xing,et al.  GeoQA: A Geometric Question Answering Benchmark Towards Multimodal Numerical Reasoning , 2021, FINDINGS.

[29]  Ji-Rong Wen,et al.  CRSLab: An Open-Source Toolkit for Building Conversational Recommender System , 2021, ACL.

[30]  Gahgene Gweon,et al.  Point to the Expression: Solving Algebraic Word Problems Using the Expression-Pointer Transformer Model , 2020, EMNLP.

[31]  Kavi Arya,et al.  A Weakly Supervised Model for Solving Math word Problems , 2021, ArXiv.

[32]  Yun-Nung Chen,et al.  Semantically-Aligned Equation Generation for Solving and Reasoning Math Word Problems , 2018, NAACL.

[33]  Cheqing Jin,et al.  Solving Math Word Problems with Multi-Encoders and Multi-Decoders , 2020, COLING.

[34]  Ji-Rong Wen,et al.  RecBole: Towards a Unified, Comprehensive and Efficient Framework for Recommendation Algorithms , 2020, CIKM.

[35]  Jinlan Fu,et al.  A Knowledge-Aware Sequence-to-Tree Network for Math Word Problem Solving , 2020, EMNLP.

[36]  Keh-Yih Su,et al.  A Diverse Corpus for Evaluating and Developing English Math Word Problem Solvers , 2020, ACL.

[37]  Jing Jiang,et al.  Investigating Math Word Problems using Pretrained Multilingual Language Models , 2021, ArXiv.

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

[39]  Omer Levy,et al.  RoBERTa: A Robustly Optimized BERT Pretraining Approach , 2019, ArXiv.

[40]  Wei-Ying Ma,et al.  How well do Computers Solve Math Word Problems? Large-Scale Dataset Construction and Evaluation , 2016, ACL.

[41]  Jinghui Qin,et al.  Neural-Symbolic Solver for Math Word Problems with Auxiliary Tasks , 2021, ACL.

[42]  Min Zhang,et al.  Variational Neural Machine Translation , 2016, EMNLP.

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

[44]  Jinlan Fu,et al.  ExplainaBoard: An Explainable Leaderboard for NLP , 2021, ACL.

[45]  Heng Tao Shen,et al.  MathDQN: Solving Arithmetic Word Problems via Deep Reinforcement Learning , 2018, AAAI.