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.
翻译:在编码器- 解码器范式之后, 先前的数学问题解答器未能明确包含基本的数学符号限制, 从而导致无法解释和不合理的预测。 在这里, 我们提议 Neal- Symblic Solver (NS- Solver), 以明确和无缝的方式纳入不同层次的符号性限制。 我们的 NS- Solver 包含一个解码问题阅读器, 一个生成象征性方程式的程序员, 一个获得答案的象征性执行器。 与目标表达监督一起, 我们的解答器也通过四个新的辅助目标优化了, 以实施不同的符号推理: a) 自我监督的数字预测任务, 预测数量和数字位置的预测任务; b) 普通常识常识预测任务, 预测需要哪些先前的知识( 例如, 鸡腿有多条腿) ; c) 程序一致性检查器计算预测方程式和目标方程式之间的语义损失, 以确保合理的方程绘图; d) 17 利用双重性任务, 利用符号式方程生成和问题所在部分的已知的双重性方言态, 来显示和问题方略的方略生成, 来提高我们无法理解的解算法的直径直径的平基平基平的直径的直径的直径的计算。