HMS: A Hierarchical Solver with Dependency-Enhanced Understanding for Math Word Problem

Abstract

Automatically solving math word problems is a crucial task for exploring the intelligence levels of machines in the general AI domain. It is highly challenging since it requires not only natural language understanding but also mathematical expression inference. Existing solutions usually explore sequence-to-sequence models to generate expressions, where the problems are simply encoded sequentially. However, such models are generally far from enough for understanding problems as similar to humans and lead to incorrect answers. To this end, in this paper, we propose a novel Hierarchical Math Solver (HMS) to make deep understanding and exploitation of problems. In problem understanding, imitating human reading habits, we propose a hierarchical word-clause-problem encoder. Specifically, we first split each problem into several clauses and learn problem semantics from the local clause level to the global problem level. Then, in clause understanding, we propose a dependency-based module to enhance clause semantics with the dependency structure of the problem. Next, in expression inference, we propose a novel tree-based decoder to generate the mathematical expression for the answer. In the decoder, we apply a hierarchical attention mechanism to enhance the problem semantics with context from different levels, and a pointer-generator network to guide the model to copy existing information and infer extra knowledge. Extensive experimental results on two widely used datasets demonstrate that HMS achieves not only better answers but also more reasonable inference.

Cite

Text

Lin et al. "HMS: A Hierarchical Solver with Dependency-Enhanced Understanding for Math Word Problem." AAAI Conference on Artificial Intelligence, 2021. doi:10.1609/AAAI.V35I5.16547

Markdown

[Lin et al. "HMS: A Hierarchical Solver with Dependency-Enhanced Understanding for Math Word Problem." AAAI Conference on Artificial Intelligence, 2021.](https://mlanthology.org/aaai/2021/lin2021aaai-hms/) doi:10.1609/AAAI.V35I5.16547

BibTeX

@inproceedings{lin2021aaai-hms,
  title     = {{HMS: A Hierarchical Solver with Dependency-Enhanced Understanding for Math Word Problem}},
  author    = {Lin, Xin and Huang, Zhenya and Zhao, Hongke and Chen, Enhong and Liu, Qi and Wang, Hao and Wang, Shijin},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2021},
  pages     = {4232-4240},
  doi       = {10.1609/AAAI.V35I5.16547},
  url       = {https://mlanthology.org/aaai/2021/lin2021aaai-hms/}
}