HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

An Expression Tree Decoding Strategy for Mathematical Equation Generation

Wenqi Zhang; Yongliang Shen; Qingpeng Nong; Zeqi Tan; Yanna Ma; Weiming Lu

An Expression Tree Decoding Strategy for Mathematical Equation Generation

Abstract

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.

Code Repositories

zwq2018/multi-view-consistency-for-mwp
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
math-word-problem-solving-on-math23kExp-Tree
Accuracy (5-fold): 84.1
Accuracy (training-test): 86.2
math-word-problem-solving-on-mathqaExp-Tree
Answer Accuracy: 81.5
math-word-problem-solving-on-mawpsExp-Tree
Accuracy (%): 92.3

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
An Expression Tree Decoding Strategy for Mathematical Equation Generation | Papers | HyperAI