Recall and Learn: A Memory-augmented Solver for Math Word Problems

Shifeng Huang, Jiawei Wang, Jiao Xu, Da Cao, Ming Yang
9/27/2021
cs.CLcs.AI

Official code: sfeng-m/REAL4MWP (16 stars, Python, last commit 2022-10-20).

Abstract

In this article, we tackle the math word problem, namely, automatically answering a mathematical problem according to its textual description. Although recent methods have demonstrated their promising results, most of these methods are based on template-based generation scheme which results in limited generalization capability.

Show full abstract

To this end, we propose a novel human-like analogical learning method in a recall and learn manner. Our proposed framework is composed of modules of memory, representation, analogy, and reasoning, which are designed to make a new exercise by referring to the exercises learned in the past. Specifically, given a math word problem, the model first retrieves similar questions by a memory module and then encodes the unsolved problem and each retrieved question using a representation module. Moreover, to solve the problem in a way of analogy, an analogy module and a reasoning module with a copy mechanism are proposed to model the interrelationship between the problem and each retrieved question. Extensive experiments on two well-known datasets show the superiority of our proposed algorithm as compared to other state-of-the-art competitors from both overall performance comparison and micro-scope studies.

View on arXivView PDF

Code Implementations(1)

sfeng-m/REAL4MWPOfficial100%

Code for EMNLP 2021 Paper "Recall and Learn: A Memory-augmented Solver for Math Word Problems".

161PythonSep 6, 20214 years ago

Similar Papers

Cite this paper

@article{huang2021recall,
  title  = {Recall and Learn: A Memory-augmented Solver for Math Word Problems},
  author = {Shifeng Huang and Jiawei Wang and Jiao Xu and Da Cao and Ming Yang},
  year   = {2021},
  eprint = {2109.13112},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.13112}
}

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

Discussion