Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problem

Wenqi Zhang, Yongliang Shen, Yanna Ma, Xiaoxia Cheng, Zeqi Tan +2 more
10/21/2022
cs.CLcs.AIcs.LG
contrastive-ssl

Official code: zwq2018/Math-Reasoning-With-PLMs (218 stars, Python, MIT, last commit 2024-10-03).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

EMNLP22: Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problem

2181PythonOct 20, 20222 years agoMIT

Similar Papers

Cite this paper

@article{zhang2022multiview,
  title  = {Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problem},
  author = {Wenqi Zhang and Yongliang Shen and Yanna Ma and Xiaoxia Cheng and Zeqi Tan and Qingpeng Nong and Weiming Lu},
  year   = {2022},
  eprint = {2210.11694},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11694}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.11694.svg)](https://codeofpaper.com/paper/2210.11694)

Discussion