带辅助任务的数学应用题神经符号求解器
Neural-Symbolic Solver for Math Word Problems with Auxiliary Tasks
摘要:
以前的数学应用题求解器遵循编码器-解码器范式,未能明确纳入基本的数学符号约束,导致无法解释和不合理的预测。在这里,我们提出了神经元符号求解器(NS-求解器)明确和无缝地将不同层次的符号约束的辅助任务。我们的NS-求解器包括一个问题阅读器编码的问题,一个程序员生成符号方程,和一个符号执行器获得答案。除了目标表达式监督,我们的求解器还通过4个新的辅助目标进行优化,以执行不同的符号推理:a)自我监督的数字预测任务,预测数字数量和数字位置; b)常识常数预测任务,预测什么先验知识(例如鸡有多少条腿)是必需的; c)程序一致性检查器计算预测方程与目标方程之间的语义损失,以确保方程映射的合理性; d)对偶性开发任务,利用符号方程生成和问题词性生成之间的准对偶性,提高求解者的理解能力。此外,为了给开发通用的、可扩展的求解器提供一个更现实、更具挑战性的基准,我们还构建了一个新的大规模MWP基准CM 17 K,该基准由4种MWP(算术、一元线性、一元非线性、方程组)组成,样本数超过17 K。在Math 23 K和我们的CM 17 k上进行的大量实验证明了我们的NS-Solver与最先进的方法相比的优越性。
英文摘要:
Previous math word problem solvers following the encoder-decoder paradigm fail to explicitly incorporate essential math symbolic constraints, leading to unexplainable and unreasonable predictions. Herein, we propose Neural-Symbolic Solver (NS-Solver) to explicitly and seamlessly incorporate different levels of symbolic constraints by auxiliary tasks. Our NS-Solver consists of a problem reader to encode problems, a programmer to generate symbolic equations, and a symbolic executor to obtain answers. Along with target expression supervision, our solver is also optimized via 4 new auxiliary objectives to enforce different symbolic reasoning: a) self-supervised number prediction task predicting both number quantity and number locations; b) commonsense constant prediction task predicting what prior knowledge (e.g. how many legs a chicken has) is required; c) program consistency checker computing the semantic loss between predicted equation and target equation to ensure reasonable equation mapping; d) duality exploiting task exploiting the quasi duality between symbolic equation generation and problem's part-of-speech generation to enhance the understanding ability of a solver. Besides, to provide a more realistic and challenging benchmark for developing a universal and scalable solver, we also construct a new large-scale MWP benchmark CM17K consisting of 4 kinds of MWPs (arithmetic, one-unknown linear, one-unknown non-linear, equation set) with more than 17K samples. Extensive experiments on Math23K and our CM17k demonstrate the superiority of our NS-Solver compared to state-of-the-art methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。