arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.03145cs.CLcs.SC
收藏

改进神经数学单词问题解决器的技术

Techniques to Improve Neural Math Word Problem Solvers

McGill University(麦吉尔大学)

Youyuan Zhang

摘要:

开发数学应用题自动求解器是一项具有挑战性的任务,它需要对自然语言的理解和数学推理能力。最近的基于神经元的方法主要使用语言模型对问题文本进行编码,并迭代地对数量和运算符上的数学表达式进行解码。注意,MWP的问题文本由上下文部分和问题部分组成,最近的工作发现这些神经求解器可能仅在上下文文本和黄金表达式之间执行浅模式匹配,其中问题文本没有得到很好的利用。同时,现有的解码过程未能将数学定律强制执行到设计中,其中数学等价表达式的表示是不同的。为了解决这两个问题,我们提出了一个新的编码器-解码器架构,充分利用问题的文本,并保留逐步交换律。除了生成数量嵌入,我们的编码器进一步编码的问题文本,并使用它来指导解码过程。在每一步中,我们的解码器使用深度集来计算表达式表示,以便这些嵌入在任何数量排列下都是不变的。对四个既定基准的实验表明,我们的框架优于最先进的神经MWP求解器,表明了我们技术的有效性。我们还对结果进行了详细的分析,以显示我们的方法的局限性,并进一步讨论未来的工作。代码可在https://github.com/sophistz/Question-Aware-Deductive-MWP上获得。

英文摘要:

Developing automatic Math Word Problem (MWP) solvers is a challenging task that demands the ability of understanding and mathematical reasoning over the natural language. Recent neural-based approaches mainly encode the problem text using a language model and decode a mathematical expression over quantities and operators iteratively. Note the problem text of a MWP consists of a context part and a question part, a recent work finds these neural solvers may only perform shallow pattern matching between the context text and the golden expression, where question text is not well used. Meanwhile, existing decoding processes fail to enforce the mathematical laws into the design, where the representations for mathematical equivalent expressions are different. To address these two issues, we propose a new encoder-decoder architecture that fully leverages the question text and preserves step-wise commutative law. Besides generating quantity embeddings, our encoder further encodes the question text and uses it to guide the decoding process. At each step, our decoder uses Deep Sets to compute expression representations so that these embeddings are invariant under any permutation of quantities. Experiments on four established benchmarks demonstrate that our framework outperforms state-of-the-art neural MWP solvers, showing the effectiveness of our techniques. We also conduct a detailed analysis of the results to show the limitations of our approach and further discuss the potential future work. Code is available at https://github.com/sophistz/Question-Aware-Deductive-MWP.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑