NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data-Driven Methods for Solving Algebra Word Problems

Benjamin Robaidek, Rik Koncel-Kedziorski, Hannaneh HajishirziarXiv 2018

Abstract

Math word problems (MWPs) represent a significant benchmark for artificial intelligence, requiring a combination of natural language understanding and logical reasoning. This paper evaluates three primary data-driven paradigms—retrieval, classification, and generation—across three diverse datasets. Our findings reveal that a well-tuned BiLSTM classifier consistently outperforms more complex sequence-to-sequence and self-attention models. Despite these gains, a substantial performance gap remains, primarily driven by models' inability to incorporate semantic reasoning and common-sense world knowledge.

Introduction

Solving a math word problem involves two critical steps: parsing natural language and mapping it to a formal mathematical structure. Traditional "semantic" approaches relied on hand-crafted rules and parsers, which, while interpretable, often proved brittle and difficult to scale. The field has consequently shifted toward data-driven methods that treat MWP solving as a machine learning task. This study provides a rigorous head-to-head comparison of different modeling paradigms to determine the most effective approach for mapping problem text to equation templates.

Methodology and Datasets

The researchers evaluated three mapping paradigms:

  1. Retrieval: Using Jaccard or Cosine similarity to find the nearest neighbor in the training set.
  2. Classification: Utilizing a Bi-directional Long Short-Term Memory (BiLSTM) network or Structured Self-Attention to categorize problems into pre-defined equation templates.
  3. Generation: Employing Sequence-to-Sequence (Seq2Seq) models (LSTM and CNN-based) to generate equation templates token-by-token.

These methods were tested on three benchmarks: DRAW (1,000 English problems), MAWPS (2,373 English problems), and Math23K (23,164 Chinese problems).

Key Results: The Case for Simpler Models

The experimental results demonstrated a surprising trend: simpler, well-tuned classification models frequently outperformed more sophisticated generative architectures.

Performance comparison of retrieval, generation, and classification paradigms across three datasets.

As shown in the table above, the BiLSTM classifier achieved the highest accuracy on the MAWPS dataset (62.8%) and remained highly competitive on the large-scale Math23K dataset (57.9%). This suggests that for current benchmarks, identifying an existing pattern (classification) is a more robust strategy than attempting to construct a logical string from scratch (generation).

The Impact of Pretrained Embeddings

A notable finding was that standard NLP boosters, such as GloVe and ELMo, actually hindered performance. While these embeddings are transformative for general NLP tasks, they appear to introduce noise in the mathematical domain. The technical and precise language of math problems likely requires domain-specific embeddings rather than those trained on general-purpose text like Wikipedia.

Error Analysis: The Reasoning Gap

Despite the success of classification models, a significant gap remains between current performance and the "Oracle" ceiling (the maximum possible score if the correct template is always selected). An analysis of model failures highlights two primary bottlenecks:

  1. Semantic Limitations (36% of errors): Models often fail to recognize categorical relationships. For instance, they may not realize that "grape juice" and "cranberry juice" both contribute to the total volume of "punch."
  2. World Knowledge (19% of errors): Models lack the common-sense reasoning required to interpret physical scenarios, such as understanding how directional cues (e.g., "north" vs. "south") influence mathematical operations.
Qualitative examples of errors categorized by semantic limitations and lack of world knowledge.

Conclusion

The study concludes that while data-driven classification is currently the most effective paradigm for solving algebra word problems, the path to human-level reasoning requires more than just larger neural networks. Future research must focus on integrating semantic depth and world knowledge into these models to bridge the gap between pattern recognition and true logical understanding.

Summary updated

BibTeX
@misc{robaidek2018data,
  author = {Benjamin Robaidek and Rik Koncel-Kedziorski and Hannaneh Hajishirzi},
  title = {{Data-Driven Methods for Solving Algebra Word Problems}},
  year = {2018},
  eprint = {1804.10718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.10718},
}
Figure