Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

An Expression Tree Decoding Strategy for Mathematical Equation Generation

About

Generating mathematical equations from natural language requires an accurate understanding of the relations among math expressions. Existing approaches can be broadly categorized into token-level and expression-level generation. The former treats equations as a mathematical language, sequentially generating math tokens. Expression-level methods generate each expression one by one. However, each expression represents a solving step, and there naturally exist parallel or dependent relations between these steps, which are ignored by current sequential methods. Therefore, we integrate tree structure into the expression-level generation and advocate an expression tree decoding strategy. To generate a tree with expression as its node, we employ a layer-wise parallel decoding strategy: we decode multiple independent expressions (leaf nodes) in parallel at each layer and repeat parallel decoding layer by layer to sequentially generate these parent node expressions that depend on others. Besides, a bipartite matching algorithm is adopted to align multiple predictions with annotations for each layer. Experiments show our method outperforms other baselines, especially for these equations with complex structures.

Wenqi Zhang, Yongliang Shen, Qingpeng Nong, Zeqi Tan, Yanna Ma, Weiming Lu• 2023

Related benchmarks

TaskDatasetResultRank
Math Word Problem SolvingMath23K (test)--
73
Math Word Problem SolvingMath23K (5-fold cross-val)--
56
Math Word Problem SolvingMathQA (test)
Accuracy81.5
34
Mathematical Equation GenerationMAWPS (5-fold cross-validation)
Accuracy (5-fold)92.3
23
Showing 4 of 4 rows

Other info

Follow for update