arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.04556cs.CLcs.AI
收藏

基于统一树结构的非自回归数学应用题求解器

Non-Autoregressive Math Word Problem Solver with Unified Tree Structure

National University of Singapore(新加坡国立大学);University of Electronic Science and Technology of China(电子科技大学);Singapore Management University(新加坡管理大学)

Yi Bin, Mengqun Han, Wenhao Shi, Lei Wang, Yang Yang, See-Kiong Ng, Heng Tao Shen

AI总结:

本文提出基于统一树结构的非自回归数学应用题求解器MWP-NAS,通过可置换的统一树表示解决多解变体带来的学习与评估问题,并设计路径度量指标,在Math23K和MAWPS上验证了有效性。

摘要:

现有的数学应用题(MWP)求解器采用序列或二叉树来表示解表达式,并从给定的问题描述中解码该表达式。然而,这类结构无法处理通过数学变换推导出的变体,例如 $(a_1+a_2) * a_3$ 和 $a_1 * a_3+a_2 * a_3$ 都可以是同一问题的有效解,但被表示为不同的表达式序列或树。描述同一输入问题的不同可能求解过程的多个解变体会引发两个问题:1)使模型难以有效学习输入空间与输出空间之间的映射函数;2)在评估一个有效的表达式变体时错误地将其判定为错误。为解决这些问题,我们引入一种统一树结构来表示解表达式,其中元素对所有表达式变体而言是可置换且相同的。我们提出一种新颖的非自回归求解器,名为 MWP-NAS,基于统一树来解析问题并推导解表达式。为评估可能的表达式变体,我们设计了一种基于路径的度量指标,用于评估统一树中表达式的部分准确率。在 Math23K 和 MAWPS 上进行的大量实验结果证明了我们所提出的 MWP-NAS 的有效性。代码和检查点可在以下地址获取:https://github.com/mengqunhan/MWP-NAS。

英文摘要:

Existing MWP solvers employ sequence or binary tree to present the solution expression and decode it from given problem description. However, such structures fail to handle the variants that can be derived via mathematical manipulation, e.g., $(a_1+a_2) * a_3$ and $a_1 * a_3+a_2 * a_3$ can both be possible valid solutions for a same problem but formulated as different expression sequences or trees. The multiple solution variants depicting different possible solving procedures for the same input problem would raise two issues: 1) making it hard for the model to learn the mapping function between the input and output spaces effectively, and 2) wrongly indicating \textit{wrong} when evaluating a valid expression variant. To address these issues, we introduce a unified tree structure to present a solution expression, where the elements are permutable and identical for all the expression variants. We propose a novel non-autoregressive solver, named \textit{MWP-NAS}, to parse the problem and deduce the solution expression based on the unified tree. For evaluating the possible expression variants, we design a path-based metric to evaluate the partial accuracy of expressions of a unified tree. The results from extensive experiments conducted on Math23K and MAWPS demonstrate the effectiveness of our proposed MWP-NAS. The codes and checkpoints are available at: \url{https://github.com/mengqunhan/MWP-NAS}.

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

↑