A Meaning-Based Statistical English Math Word Problem Solver

Chao-Chun Liang, Yu-Shiang Wong, Yi-Chung Lin, Keh-Yih SuNAACL 2018

Introduction

Solving Math Word Problems (MWPs) is a foundational challenge in Natural Language Understanding. While the underlying arithmetic—such as addition or subtraction—is often elementary, the primary difficulty lies in "grounding" numerical values within a linguistic context. Traditional solvers frequently struggle with language ambiguity or rely on mechanical pattern matching that fails when faced with irrelevant information. This paper introduces MeSys, a solver designed to understand the "physical meaning" of quantities by mapping text to logic forms before performing inference.

The MeSys Framework

The researchers propose a four-stage pipeline that moves beyond simple keyword detection to a structured semantic analysis.

The MeSys pipeline architecture, illustrating the flow from problem text to logic inference.
  1. Language Analysis: The system utilizes standard tools like Stanford CoreNLP to parse the syntax of the problem sentences.
  2. Solution Type Identification (STI): An SVM classifier identifies the necessary mathematical template (e.g., Addition, Multiplication, or time-variant quantities) using 26 features that relate quantities to the core question.
  3. Logic Form Transformation (LFT): This core innovation transforms text into First-Order Logic (FOL). It assigns "role-tags" to numbers, capturing the Entity (what the number counts), the Verb (the action), and the Subject (the owner).
  4. Logic Inference: A reasoning engine uses these logic forms to derive the answer. It employs a Probabilistic Operand Selection model to ensure that only relevant quantities—those with consistent entity attributes—are used in the calculation.

Datasets and Evaluation

MeSys was evaluated on two standard benchmarks and a custom "stress test":

  • AI2 Dataset: 395 elementary addition and subtraction problems.
  • IL Dataset: 562 problems covering all four basic arithmetic operations.
  • NDS (Noisy Dataset): To test robustness, the authors "poisoned" 136 solvable problems by adding irrelevant sentences containing extra numbers. This evaluates whether a system truly understands the context or is merely performing statistical guessing.

To further analyze dataset difficulty, the paper introduces a Perplexity-flavor measure (PP). This metric quantifies the likelihood of a random baseline guessing the correct answer, providing an objective lens on the inherent "guessability" of different benchmarks.

Results and Discussion

MeSys demonstrated superior performance and robustness compared to both traditional statistical models and modern Deep Learning (DNN) approaches.

Performance comparison showing MeSys (Statistical) outperforming DNN-based and previous state-of-the-art solvers on AI2 and IL datasets.

As shown in the results table, the statistical version of MeSys achieved state-of-the-art accuracy of 81.5% on AI2 and 81.0% on IL. Crucially, while the performance of previous solvers like the Illinois Math Solver plummeted to 28.5% on the noisy NDS dataset, MeSys maintained a high accuracy of 82.1%. This suggests that the "meaning-based" approach effectively filters out irrelevant data that typically confuses DNN-based models.

Conclusion and Future Work

While MeSys represents a significant step forward in robust MWP solving, it remains limited by its dependency on the initial language parsing pipeline; errors in syntax analysis can cascade through the system. Additionally, the solver still lacks the "common sense" required for complex entailments not explicitly stated in the text. Future research will focus on integrating these logic-based role-tags directly into neural architectures, combining the flexibility of deep learning with the precision of formal reasoning.

Summary updated

BibTeX
@inproceedings{liang2018meaning,
  author = {Chao-Chun Liang and Yu-Shiang Wong and Yi-Chung Lin and Keh-Yih Su},
  title = {{A Meaning-Based Statistical English Math Word Problem Solver}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1060},
}
Figure