Skip to main content
QUICK REVIEW

[Paper Review] Translating a Math Word Problem to an Expression Tree

Lei Wang, Yan Wang|arXiv (Cornell University)|Nov 14, 2018
Intelligent Tutoring Systems and Adaptive LearningComputer Science10 citations
TL;DR

This paper proposes an equation normalization method that maps multiple equivalent equations from math word problems to a unique expression tree, reducing output ambiguity in sequence-to-sequence models. By normalizing equations using ordering and bracket rules and combining three SOTA Seq2Seq models (Bi-LSTM, ConvS2S, Transformer) into an ensemble, the approach improves accuracy on Math23K from 60.7% to 68.4%, setting a new state of the art.

ABSTRACT

Sequence-to-sequence (SEQ2SEQ) models have been successfully applied to automatic math word problem solving. Despite its simplicity, a drawback still remains: a math word problem can be correctly solved by more than one equations. This non-deterministic transduction harms the performance of maximum likelihood estimation. In this paper, by considering the uniqueness of expression tree, we propose an equation normalization method to normalize the duplicated equations. Moreover, we analyze the performance of three popular SEQ2SEQ models on the math word problem solving. We find that each model has its own specialty in solving problems, consequently an ensemble model is then proposed to combine their advantages. Experiments on dataset Math23K show that the ensemble model with equation normalization significantly outperforms the previous state-of-the-art methods.

Motivation & Objective

  • To address the non-deterministic output space in math word problem (MWP) solving caused by multiple valid equations for the same problem.
  • To improve the performance of sequence-to-sequence models on MWP solving by normalizing equivalent equations into a unique expression tree representation.
  • To investigate the complementary strengths of different Seq2Seq architectures in solving MWPs and combine them via ensemble learning.
  • To demonstrate that equation normalization and model ensembling significantly enhance state-of-the-art performance on the Math23K benchmark.

Proposed method

  • Applies number mapping to identify significant numbers in problems and replace them with tokens (e.g., n1, n2) to create equation templates.
  • Introduces two normalization rules: (1) prefer shorter templates when lengths differ, and (2) order tokens by their appearance in the original problem.
  • Removes redundant parentheses to eliminate bracket-based equation duplication.
  • Trains and compares three SOTA Seq2Seq models—Bi-LSTM, ConvS2S, and Transformer—on the normalized equation templates.
  • Constructs an ensemble model by combining predictions from the three models to leverage their complementary strengths.
  • Uses beam search decoding and post-processing to convert tokenized equation templates back to numerical solutions.

Experimental results

Research questions

  • RQ1Can normalizing multiple equivalent equations into a single expression tree representation improve the performance of sequence-to-sequence models in math word problem solving?
  • RQ2Do different Seq2Seq architectures (Bi-LSTM, ConvS2S, Transformer) exhibit distinct strengths in solving various types of math word problems?
  • RQ3To what extent does equation normalization reduce ambiguity and improve training stability in maximum likelihood estimation?
  • RQ4Can an ensemble of diverse Seq2Seq models outperform individual models on math word problem benchmarks?

Key findings

  • Equation normalization improves the accuracy of all individual models, with gains ranging from 2.7% to 7.1% across different architectures.
  • The Bi-LSTM model achieves the highest individual accuracy of 66.7% after normalization, followed by ConvS2S (64.2%) and Transformer (62.3%).
  • The ensemble model achieves the highest accuracy of 68.4%, representing a 1.7% improvement over the best individual model (Bi-LSTM).
  • The ablation study shows that eliminating parentheses (EB) contributes most to performance gain (65.3% for Bi-LSTM), followed by rule 2 (63.7%) and rule 1 (63.1%).
  • Case studies reveal that the Transformer model excels in complex inference tasks due to multi-head attention, while ConvS2S effectively captures contextual relationships through its convolutional blocks.
  • The method effectively reduces equation duplication, leading to a more deterministic and stable training process for sequence-to-sequence models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.