Solving Arithmetic Word Problems Automatically Using Transformer and Unambiguous Representations

Kaden Griffith, Jugal Kalita
12/2/2019
cs.CLcs.LGstat.ML
transformer-attention

Official code: kadengriffith/MWP-Automatic-Solver (24 stars, Python, last commit 2020-04-26).

Abstract

Constructing accurate and automatic solvers of math word problems has proven to be quite challenging. Prior attempts using machine learning have been trained on corpora specific to math word problems to produce arithmetic expressions in infix notation before answer computation.

Show full abstract

We find that custom-built neural networks have struggled to generalize well. This paper outlines the use of Transformer networks trained to translate math word problems to equivalent arithmetic expressions in infix, prefix, and postfix notations. In addition to training directly on domain-specific corpora, we use an approach that pre-trains on a general text corpus to provide foundational language abilities to explore if it improves performance. We compare results produced by a large number of neural configurations and find that most configurations outperform previously reported approaches on three of four datasets with significant increases in accuracy of over 20 percentage points. The best neural approaches boost accuracy by almost 10% on average when compared to the previous state of the art.

View on arXivView PDF

Code Implementations(1)

This is a comprehensive training/testing environment using the Transformer model for solving Math Word Problems. Features easy configuration for novice users.

247Python, ShellNov 24, 20196 years ago

Similar Papers

Cite this paper

@article{griffith2019solving,
  title  = {Solving Arithmetic Word Problems Automatically Using Transformer and Unambiguous Representations},
  author = {Kaden Griffith and Jugal Kalita},
  year   = {2019},
  eprint = {1912.00871},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.00871}
}

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

Discussion