An Expression Tree Decoding Strategy for Mathematical Equation Generation

Wenqi Zhang, Yongliang Shen, Qingpeng Nong, Zeqi Tan, Yanna Ma +1 more
10/14/2023
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2023expression,
  title  = {An Expression Tree Decoding Strategy for Mathematical Equation Generation},
  author = {Wenqi Zhang and Yongliang Shen and Qingpeng Nong and Zeqi Tan and Yanna Ma and Weiming Lu},
  year   = {2023},
  eprint = {2310.09619},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.09619v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.09619.svg)](https://codeofpaper.com/paper/2310.09619)

Discussion