Math word problem solver requires both precise relation reasoning about quantities in the text and reliable generation for the diverse equation. Current sequence-to-tree or relation extraction methods regard this only from a fixed view, struggling to simultaneously handle complex semantics and diverse equations. However, human solving naturally involves two consistent reasoning views: top-down and bottom-up, just as math equations also can be expressed in multiple equivalent forms: pre-order and post-order. We propose a multi-view consistent contrastive learning for a more complete semantics-to-equation mapping. The entire process is decoupled into two independent but consistent views: top-down decomposition and bottom-up construction, and the two reasoning views are aligned in multi-granularity for consistency, enhancing global generation and precise reasoning. Experiments on multiple datasets across two languages show our approach significantly outperforms the existing baselines, especially on complex problems. We also show after consistent alignment, multi-view can absorb the merits of both views and generate more diverse results consistent with the mathematical laws.
翻译:数学问题解答器既要求对文本中的数量进行精确的关联推理,也需要对不同方程式的可靠生成进行精确的生成。 当前的序列对树或关系提取方法只能从固定的观点来看待这一点, 努力同时处理复杂的语义和不同的方程式。 然而, 人解自然需要两种一致的推理观点: 自上而下和自下而上, 正如数学方程式也可以以多种等同形式表达: 顺序前和顺序后。 我们建议对更完整的语义对等映射进行多视角一致的对比学习。 整个过程分解成两种独立但一致的观点: 上至下分解和自下而上构造, 两种推理观点在多语种一致性、 增强全球生成和精确推理方面是一致的。 对两种语言的多重数据集的实验显示我们的方法大大超越了现有基线, 特别是在复杂问题上。 我们还表明, 经过一致的调整后, 多视角可以吸收两种观点的优点, 并产生与数学法则更加多样化的结果。