HMS: A Hierarchical Solver with Dependency-Enhanced Understanding for Math Word Problem
Xin Lin, Zhenya Huang, Hongke Zhao, Enhong Chen, Qi Liu, Hao Wang, Shijin Wang
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext e2935e9b-a2a7-43a4-8371-8e3a408dccbeCited by top-tier papers16
- Decompose, Analyze and Rethink: Solving Intricate Problems with Human-like Reasoning CycleShangzi Xue, Zhenya Huang, Jiayu Liu, Xin Lin et al.NeurIPS 2024 · 55 citations
- A Survey of Deep Learning for Mathematical ReasoningPan Lu, Liang Qiu, Wenhao Yu, Sean Welleck et al.ACL 2023 · 43 citations
- Improving Math Word Problems with Pre-trained Knowledge and Hierarchical ReasoningWeijiang Yu, Yingpeng Wen, Fudan Zheng, Nong XiaoEMNLP 2021 · 30 citations
- Learning by Applying: A General Framework for Mathematical Reasoning via Enhancing Explicit Knowledge LearningJiayu Liu, Zhenya Huang, ChengXiang Zhai, Qi LiuAAAI 2023 · 23 citations
- Analogical Math Word Problems Solving with Enhanced Problem-Solution AssociationZhenwen Liang, Jipeng Zhang, Xiangliang ZhangEMNLP 2022 · 18 citations
Builds on1
Related papers
- A Knowledge-Aware Sequence-to-Tree Network for Math Word Problem SolvingQinzhuo Wu, Qi Zhang, Jinlan Fu, Xuanjing HuangEMNLP 2020 · 71 citations
- An Expression Tree Decoding Strategy for Mathematical Equation GenerationWenqi Zhang, Yongliang Shen, Qingpeng Nong, Zeqi Tan et al.EMNLP 2023 · 3 citations
- Semantically-Aligned Universal Tree-Structured Solver for Math Word ProblemsJinghui Qin, Lihui Lin, Xiaodan Liang, Rumin Zhang et al.EMNLP 2020 · 62 citations
- Learning to Reason Deductively: Math Word Problem Solving as Complex Relation ExtractionZhanming Jie, Jierui Li, Wei LuACL 2022
- SMART: A Situation Model for Algebra Story Problems via Attributed GrammarYining Hong, Qing Li, Ran Gong, Daniel Ciao et al.AAAI 2021 · 33 citations
