Learning To Use Formulas To Solve Simple Arithmetic Problems

Arindam Mitra, Chitta Baral

Abstract

Researchers at Arizona State University have developed a novel system that solves arithmetic word problems by mapping natural language to abstract mathematical "formulas" such as part-whole or change. By leveraging semantic knowledge bases and dependency parsing, their model achieves a state-of-the-art accuracy of 86.07% on the AddSub dataset, significantly outperforming previous template-matching approaches.

Introduction

Solving math word problems is a classic "AI-complete" challenge because it requires two distinct, difficult steps: comprehension (understanding what the text is actually saying) and grounding (mapping that understanding into a formal mathematical representation). The core difficulty lies in the gap between the messy flexibility of human language and the rigid precision of algebra. Previous approaches often relied on "system templates"—essentially trying to match a new problem to a specific equation structure seen during training. However, these systems struggle when the wording changes or when they encounter a problem type they haven't seen before. The authors aim to bridge this gap by using higher-level mathematical concepts as an intermediate step.

Methodology

The authors propose a two-step grounding process to move from text to a solvable equation:

  1. Abstract Mapping: The system analyzes sentences to identify variables (numbers and the unknown $x$) and their attributes, such as the object being counted and the associated verb.
  2. Formula Application: Instead of jumping straight to an equation, the system identifies which of three high-level "formulas" applies:
  3. Part-Whole: The whole is the sum of its parts.
  4. Change: An initial quantity is modified by increments or decrements.
  5. Comparison: A relationship between two quantities (e.g., "more than").
Example of mapping a word problem to a part-whole formula and its resulting equation.

Semantic Features

To decide which formula fits, the system uses a log-linear model powered by a rich feature function. It utilizes dependency parsing to understand grammatical relationships, and queries external knowledge bases like WordNet and ConceptNet to understand semantics. For example, it can recognize that "apples" and "oranges" are both types of "fruit" using isA relations. This allows the system to extract the "type" attribute of a number, which is crucial for filtering out "distractor" numbers that do not belong in the final equation.

Experimental Results

The study focuses on the AddSub dataset, a benchmark of 395 elementary school arithmetic problems split into three subsets: MA1 (standard), MA2 (noisy/irrelevant info), and IXL (implied logic).

As shown in the table below, the system achieved an overall accuracy of 86.07%, a significant jump over the previous state-of-the-art (Roy & Roth, 2015) at 78%. Notably, the model excelled on the MA2 subset, achieving 79.33% accuracy where previous systems like KAZB struggled at 51.2%. This demonstrates that the semantic "type" checking and formula-based approach are highly effective at ignoring distractions.

Performance comparison across different subsets of the AddSub dataset.

Conclusion and Future Work

By modeling math as a few abstract formulas with "slots" (e.g., start, end, gains, losses for the Change formula), the system becomes much more robust than systems that try to learn thousands of specific equation patterns. However, the current system is restricted to single-equation problems and is dependent on the accuracy of the underlying dependency parser. Future work will focus on extending the model to handle multi-step problems and a wider variety of mathematical operations like ratios and percentages.

Summary updated

BibTeX
@inproceedings{mitra2016learning,
  author = {Arindam Mitra and Chitta Baral},
  title = {{Learning To Use Formulas To Solve Simple Arithmetic Problems}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2016},
  doi = {10.18653/v1/p16-1202},
}
Figure