Textual Enhanced Contrastive Learning for Solving Math Word Problems

Yibin Shen, Qianying Liu, Zhuoyuan Mao, Fei Cheng, Sadao Kurohashi
11/29/2022
cs.CL
contrastive-ssl

Official code: yiyunya/Textual_CL_MWP (2 stars, Python, last commit 2022-12-15).

Abstract

Solving math word problems is the task that analyses the relation of quantities and requires an accurate understanding of contextual natural language information. Recent studies show that current models rely on shallow heuristics to predict solutions and could be easily misled by small textual perturbations.

Show full abstract

To address this problem, we propose a Textual Enhanced Contrastive Learning framework, which enforces the models to distinguish semantically similar examples while holding different mathematical logic. We adopt a self-supervised manner strategy to enrich examples with subtle textual variance by textual reordering or problem re-construction. We then retrieve the hardest to differentiate samples from both equation and textual perspectives and guide the model to learn their representations. Experimental results show that our method achieves state-of-the-art on both widely used benchmark datasets and also exquisitely designed challenge datasets in English and Chinese. \footnote{Our code and data is available at \url{https://github.com/yiyunya/Textual_CL_MWP}

View on arXivView PDF

Code Implementations(1)

Code and data for EMNLP 2022 Findings paper: Textual Enhanced Contrastive Learning for Solving Math Word Problems

20PythonOct 21, 20223 years ago

Similar Papers

Cite this paper

@article{shen2022textual,
  title  = {Textual Enhanced Contrastive Learning for Solving Math Word Problems},
  author = {Yibin Shen and Qianying Liu and Zhuoyuan Mao and Fei Cheng and Sadao Kurohashi},
  year   = {2022},
  eprint = {2211.16022},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.16022}
}

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/2211.16022.svg)](https://codeofpaper.com/paper/2211.16022)

Discussion