Deep Neural Network based system for solving Arithmetic Word problems

Purvanshi Mehta, Pruthwik Mishra, Vinayak Athavale, Manish Shrivastava, Dipti Misra SharmaIJCNLP (System Demonstrations) 2017

Abstract

DILTON is a system designed to solve simple arithmetic word problems using a Deep Neural Network (DNN) model. The system bifurcates questions into two components: the "worldstate" and the "query." These components are processed through separate networks before being merged to predict the final mathematical operation. DILTON represents the first deep learning approach for predicting operations between two numbers, achieving 88.81% accuracy on a corpus of primary school questions.

Introduction

Solving mathematical word problems (MWPs) remains a significant challenge in artificial intelligence. While computational engines are adept at arithmetic, translating natural language "stories" into formal equations requires sophisticated linguistic understanding. A system must identify relevant quantities, filter out distractors, and map specific verbs or contexts to mathematical operations like addition or subtraction.

Traditional methods have relied on manual rule-sets or rigid templates. DILTON (Deep Neural Network based system for solving Arithmetic Word problems) proposes a more flexible, data-driven alternative using neural architectures to automate this translation process.

Methodology

The DILTON pipeline consists of three primary modules designed to extract meaning and structure from raw text.

1. Text Splitting and Encoding

The system divides each problem into two parts: the WorldState (narrative background) and the Query (the specific question being asked). Each part is converted into vector representations using word2vec. These sequences are then fed into separate Sequence Autoencoders utilizing Gated Recurrent Units (GRUs) to capture semantic dependencies.

2. Representation Merging and Operation Prediction

The encoded vectors from the WorldState and Query are combined via element-wise summation. This unified representation is processed through a final GRU layer and a softmax output layer to predict the required mathematical operation (addition, subtraction, multiplication, or division).

The DILTON neural network architecture, showing the separate processing of Query and Worldstate followed by a merge layer and GRU encoder.

3. Operand Identification

To select the correct numbers for the operation, DILTON employs a similarity-matching technique. It compares the linguistic context of each number in the text to the text of the query. The system found that a context window of a single word (length 1) provided the highest accuracy for identifying relevant quantities.

Experimental Setup

The model was evaluated using the MAWPS (Math Word Problem Repository) dataset, specifically the singleop and addsub subsets. The dataset was split into a training set of 1,314 questions and a test set of 438 questions. The scope was limited to problems involving two numerical quantities and a single operation.

Results and Discussion

DILTON demonstrated superior performance compared to existing symbolic baselines. The system achieved an operation prediction accuracy of 88.81%, significantly outperforming the ARIS system's 81.2%.

Comparison of categorization (operation prediction) accuracies between the baseline Aris system and DILTON.

Beyond operation prediction, the system identified relevant operands with 92.25% accuracy. When evaluating the end-to-end solution (correctly identifying both the operands and the operator), DILTON achieved an overall success rate of 81.92%. Comparative tests also indicated that GRU architectures slightly outperformed LSTMs for this specific natural language task.

Conclusion

DILTON successfully demonstrates the efficacy of deep learning in solving arithmetic word problems by separating narrative context from the specific query. While currently limited to two-operand, single-operation problems, the system provides a robust foundation for future work. Subsequent iterations will focus on handling multi-step problems and improving the logic required to filter out irrelevant numerical information in complex scenarios.

Summary updated

BibTeX
@inproceedings{mehta2017deep,
  author = {Purvanshi Mehta and Pruthwik Mishra and Vinayak Athavale and Manish Shrivastava and Dipti Misra Sharma},
  title = {{Deep Neural Network based system for solving Arithmetic Word problems}},
  booktitle = {IJCNLP (System Demonstrations)},
  year = {2017},
  url = {https://openreview.net/forum?id=uRJ5e1VIEvn},
}
Figure